Skip to content

Commit 42ab1e0

Browse files
fix: remove error when main activity not found in AndroidManifest.xml (#2187)
1 parent ac284e2 commit 42ab1e0

File tree

1 file changed

+1
-5
lines changed
  • packages/cli-platform-android/src/config

1 file changed

+1
-5
lines changed

packages/cli-platform-android/src/config/index.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,7 @@ export function projectConfig(
6666
const applicationId = buildGradlePath
6767
? getApplicationId(buildGradlePath, packageName)
6868
: packageName;
69-
const mainActivity = getMainActivity(manifestPath || '');
70-
71-
if (!mainActivity) {
72-
throw new CLIError(`Main activity not found in ${manifestPath}`);
73-
}
69+
const mainActivity = getMainActivity(manifestPath || '') ?? '';
7470

7571
return {
7672
sourceDir,

0 commit comments

Comments
 (0)