@@ -7,7 +7,6 @@ import * as projectServiceBaseLib from "./platform-project-service-base";
7
7
import { DeviceAndroidDebugBridge } from "../common/mobile/android/device-android-debug-bridge" ;
8
8
import { AndroidDeviceHashService } from "../common/mobile/android/android-device-hash-service" ;
9
9
import { EOL } from "os" ;
10
- import { createGUID } from "../common/helpers" ;
11
10
12
11
export class AndroidProjectService extends projectServiceBaseLib . PlatformProjectServiceBase implements IPlatformProjectService {
13
12
private static VALUES_DIRNAME = "values" ;
@@ -507,27 +506,5 @@ export class AndroidProjectService extends projectServiceBaseLib.PlatformProject
507
506
508
507
} ) . future < void > ( ) ( ) ;
509
508
}
510
-
511
- private isAndroidManifestFileCorrect ( pathToAndroidManifest : string ) : IFuture < boolean > {
512
- return ( ( ) : boolean => {
513
- try {
514
- // Check if the AndroidManifest in app/App_Resouces is the correct one
515
- // Use a real magic to detect if this is the correct file, by checking some mandatory strings.
516
- let fileContent = this . $fs . readText ( pathToAndroidManifest ) . wait ( ) ,
517
- isFileCorrect = ! ! ( ~ fileContent . indexOf ( "android:minSdkVersion" ) && ~ fileContent . indexOf ( "android:targetSdkVersion" )
518
- && ~ fileContent . indexOf ( "uses-permission" ) && ~ fileContent . indexOf ( "<application" )
519
- && ~ fileContent . indexOf ( "<activity" ) && ~ fileContent . indexOf ( "<intent-filter>" )
520
- && ~ fileContent . indexOf ( "android.intent.action.MAIN" )
521
- && ~ fileContent . indexOf ( "android:versionCode" )
522
- && ! this . $xmlValidator . getXmlFileErrors ( pathToAndroidManifest ) . wait ( ) ) ;
523
-
524
- this . $logger . trace ( `Existing ${ this . platformData . configurationFileName } is ${ isFileCorrect ? "" : "NOT " } correct.` ) ;
525
- return isFileCorrect ;
526
- } catch ( err ) {
527
- this . $logger . trace ( `Error while checking ${ pathToAndroidManifest } : ` , err ) ;
528
- return false ;
529
- }
530
- } ) . future < boolean > ( ) ( ) ;
531
- }
532
509
}
533
510
$injector . register ( "androidProjectService" , AndroidProjectService ) ;
0 commit comments