Skip to content

Commit bd5263d

Browse files
committed
feat(android): app gradle files now coming from CLI to prevent dependency on runtime update
1 parent 7c6dc40 commit bd5263d

File tree

6 files changed

+1173
-9
lines changed

6 files changed

+1173
-9
lines changed

lib/services/android-project-service.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -353,6 +353,14 @@ export class AndroidProjectService extends projectServiceBaseLib.PlatformProject
353353
"-R"
354354
);
355355

356+
// override app build.gradle from cli vendor to allow updates faster than the runtime
357+
const gradleTemplatePath = path.resolve(
358+
path.join(__dirname, "../../vendor/gradle-app")
359+
);
360+
const allGradleTemplateFiles = path.join(gradleTemplatePath, "*");
361+
362+
this.$fs.copyFile(allGradleTemplateFiles, path.join(this.getPlatformData(projectData).projectRoot, 'app'));
363+
356364
// TODO: Check if we actually need this and if it should be targetSdk or compileSdk
357365
this.cleanResValues(targetSdkVersion, projectData);
358366
}

0 commit comments

Comments
 (0)