Skip to content

Commit 83064a4

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 7c6184a commit 83064a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/services/android-project-service.ts

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

0 commit comments

Comments
 (0)