From 5004a75319fbf9e310a32a2249395445e4d7cdb4 Mon Sep 17 00:00:00 2001 From: Trevor Slocum Date: Thu, 26 Oct 2023 17:36:07 -0700 Subject: [PATCH] Always bind Boxcars when building --- app/build.gradle | 8 +++++++- app/src/main/AndroidManifest.xml | 3 ++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index f715772..419ee1f 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -46,4 +46,10 @@ dependencies { task bindLibrary(type: Exec) { workingDir "$projectDir" commandLine 'sh', '-c', './bind.sh ' + project.ext.boxcarsVersion -} \ No newline at end of file +} + +afterEvaluate { + android.applicationVariants.all { variant -> + variant.javaCompiler.dependsOn(bindLibrary) + } +} diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 0608d92..bcac592 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -13,6 +13,7 @@ @@ -23,4 +24,4 @@ - \ No newline at end of file +