Skip to content

Commit aaa3717

Browse files
Fix using of custom AndroidManifest.xml
In case user had edited his AndroidManifest.xml, he may have removed the com.tns.ErrorReportActivity. In this case, NativeScript CLI thinks that the AndroidManifest.xml is not correct, creates a backup for it and extracts the default one from the template. Remove the check for `com.tns.ErrorReportActivity`.
1 parent 035b9b1 commit aaa3717

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/services/android-project-service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -533,7 +533,7 @@ export class AndroidProjectService extends projectServiceBaseLib.PlatformProject
533533
isFileCorrect = !!(~fileContent.indexOf("android:minSdkVersion") && ~fileContent.indexOf("android:targetSdkVersion")
534534
&& ~fileContent.indexOf("uses-permission") && ~fileContent.indexOf("<application")
535535
&& ~fileContent.indexOf("<activity") && ~fileContent.indexOf("<intent-filter>")
536-
&& ~fileContent.indexOf("android.intent.action.MAIN") && ~fileContent.indexOf("com.tns.ErrorReportActivity")
536+
&& ~fileContent.indexOf("android.intent.action.MAIN")
537537
&& ~fileContent.indexOf("android:versionCode")
538538
&& !this.$xmlValidator.getXmlFileErrors(pathToAndroidManifest).wait());
539539

0 commit comments

Comments
 (0)