File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -530,7 +530,7 @@ describe("Plugins service", () => {
530
530
`\n@#[line:1,col:39].` +
531
531
`\n@#[line:1,col:39].` ;
532
532
mockBeginCommand ( testInjector , expectedErrorMessage ) ;
533
- pluginsService . prepare ( pluginJsonData ) . wait ( ) ;
533
+ pluginsService . prepare ( pluginJsonData , "android" ) . wait ( ) ;
534
534
} ) ;
535
535
it ( "merges AndroidManifest.xml and produces correct xml" , ( ) => {
536
536
let pluginName = "mySamplePlugin" ;
@@ -609,7 +609,7 @@ describe("Plugins service", () => {
609
609
let pluginConfigurationFilePath = path . join ( pluginPlatformsDirPath , "AndroidManifest.xml" ) ;
610
610
fs . writeFile ( pluginConfigurationFilePath , xml ) . wait ( ) ;
611
611
612
- pluginsService . prepare ( pluginJsonData ) . wait ( ) ;
612
+ pluginsService . prepare ( pluginJsonData , "android" ) . wait ( ) ;
613
613
614
614
let expectedXml = '<?xmlversion="1.0"encoding="utf-8"?><manifestxmlns:android="http://schemas.android.com/apk/res/android"package="com.example.android.basiccontactables"android:versionCode="1"android:versionName="1.0"><supports-screensandroid:smallScreens="true"android:normalScreens="true"android:largeScreens="true"android:xlargeScreens="true"/><uses-sdkandroid:minSdkVersion="17"android:targetSdkVersion="23"/><uses-permissionandroid:name="android.permission.READ_EXTERNAL_STORAGE"/><uses-permissionandroid:name="android.permission.WRITE_EXTERNAL_STORAGE"/><uses-permissionandroid:name="android.permission.INTERNET"/><applicationandroid:name="com.tns.NativeScriptApplication"android:allowBackup="true"android:icon="@drawable/icon"android:label="@string/app_name"android:theme="@style/AppTheme"><activityandroid:name="com.tns.NativeScriptActivity"android:label="@string/title_activity_kimera"android:configChanges="keyboardHidden|orientation|screenSize"><intent-filter><actionandroid:name="android.intent.action.MAIN"/><categoryandroid:name="android.intent.category.LAUNCHER"/></intent-filter></activity><activityandroid:name="com.tns.ErrorReportActivity"/></application><uses-permissionandroid:name="android.permission.READ_CONTACTS"/></manifest>' ;
615
615
expectedXml = helpers . stringReplaceAll ( expectedXml , EOL , "" ) ;
You can’t perform that action at this time.
0 commit comments