Generate altosdroid/app/build.gradle at configure time
authorKeith Packard <keithp@keithp.com>
Tue, 28 Jan 2020 20:55:47 +0000 (12:55 -0800)
committerKeith Packard <keithp@keithp.com>
Tue, 28 Jan 2020 20:55:47 +0000 (12:55 -0800)
This file includes the release version numbers, which are set in
configure.ac.

Signed-off-by: Keith Packard <keithp@keithp.com>
altosdroid/app/build.gradle [deleted file]
altosdroid/app/build.gradle.in [new file with mode: 0644]
configure.ac

diff --git a/altosdroid/app/build.gradle b/altosdroid/app/build.gradle
deleted file mode 100644 (file)
index 1d97693..0000000
+++ /dev/null
@@ -1,47 +0,0 @@
-apply plugin: 'com.android.application'
-
-def keystorePropertiesFile = file(System.properties['user.home'] + "/altusmetrumllc/android_keystore.properties")
-def keystoreProperties = new Properties()
-keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
-
-android {
-    signingConfigs {
-        release {
-            storeFile file(System.properties['user.home'] + "/altusmetrumllc/android_keystore.jks")
-            storePassword keystoreProperties['storePassword']
-            keyAlias keystoreProperties['keyAlias']
-            keyPassword keystoreProperties['keyPassword']
-        }
-    }
-
-    compileSdkVersion 28
-    defaultConfig {
-        applicationId "org.altusmetrum.AltosDroid"
-        minSdkVersion 26
-        targetSdkVersion 28
-        versionCode 19
-        versionName "1.9.1rc1"
-    }
-    buildTypes {
-        release {
-            signingConfig signingConfigs.release
-            minifyEnabled false
-            debuggable false
-            proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
-        }
-        debug {
-            debuggable true
-        }
-    }
-    lintOptions {
-        abortOnError false
-    }
-}
-
-dependencies {
-    implementation 'androidx.appcompat:appcompat:1.0.0'
-    implementation 'androidx.legacy:legacy-support-v4:1.0.0'
-    implementation 'com.google.android.gms:play-services-maps:17.0.0'
-    implementation fileTree(dir: 'libs', include: ['*.jar'])
-}
-
diff --git a/altosdroid/app/build.gradle.in b/altosdroid/app/build.gradle.in
new file mode 100644 (file)
index 0000000..cc29d86
--- /dev/null
@@ -0,0 +1,47 @@
+apply plugin: 'com.android.application'
+
+def keystorePropertiesFile = file(System.properties['user.home'] + "/altusmetrumllc/android_keystore.properties")
+def keystoreProperties = new Properties()
+keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
+
+android {
+    signingConfigs {
+        release {
+            storeFile file(System.properties['user.home'] + "/altusmetrumllc/android_keystore.jks")
+            storePassword keystoreProperties['storePassword']
+            keyAlias keystoreProperties['keyAlias']
+            keyPassword keystoreProperties['keyPassword']
+        }
+    }
+
+    compileSdkVersion 28
+    defaultConfig {
+        applicationId "org.altusmetrum.AltosDroid"
+        minSdkVersion 21
+        targetSdkVersion 28
+        versionCode @ANDROID_VERSION@
+        versionName "@VERSION@"
+    }
+    buildTypes {
+        release {
+            signingConfig signingConfigs.release
+            minifyEnabled false
+            debuggable false
+            proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
+        }
+        debug {
+            debuggable true
+        }
+    }
+    lintOptions {
+        abortOnError false
+    }
+}
+
+dependencies {
+    implementation 'androidx.appcompat:appcompat:1.0.0'
+    implementation 'androidx.legacy:legacy-support-v4:1.0.0'
+    implementation 'com.google.android.gms:play-services-maps:17.0.0'
+    implementation fileTree(dir: 'libs', include: ['*.jar'])
+}
+
index 76b5e57ac913e1d0555dfcf96b67a8995ef79e28..d966988d3d8cf180196d1899befbc6ced897cbaf 100644 (file)
@@ -556,6 +556,7 @@ telegps/telegps-windows.nsi
 altosdroid/Makefile
 altosdroid/local.properties
 altosdroid/app/src/main/AndroidManifest.xml
+altosdroid/app/build.gradle
 ao-tools/Makefile
 ao-tools/lib/Makefile
 ao-tools/ao-rawload/Makefile