Skip to content

Commit cbf728c

Browse files
committed
warning when gradle properties file is missing
1 parent b024f0f commit cbf728c

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

lib/services/android-project-service.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,13 @@ export class AndroidProjectService extends projectServiceBaseLib.PlatformProject
116116
} else {
117117
this.copy(this.platformData.projectRoot, frameworkDir, "src", "-R");
118118
}
119-
this.copy(this.platformData.projectRoot, frameworkDir, "build.gradle settings.gradle gradle.properties build-tools", "-Rf");
119+
this.copy(this.platformData.projectRoot, frameworkDir, "build.gradle settings.gradle build-tools", "-Rf");
120+
121+
try {
122+
this.copy(this.platformData.projectRoot, frameworkDir, "gradle.properties", "-Rf");
123+
} catch(e) {
124+
this.$logger.warn(`\n${e}\nIt's possible, the final .apk file will contain all architectures instead of the ones described in the abiFilters!\nYou can fix this by using the latest android platform.`);
125+
}
120126

121127
this.copy(this.platformData.projectRoot, frameworkDir, "gradle", "-R");
122128
this.copy(this.platformData.projectRoot, frameworkDir, "gradlew gradlew.bat", "-f");

0 commit comments

Comments
 (0)