DEADSOFTWARE

Update version
[cavedroid.git] / android / build.gradle
index ef956e098bd8dd2c6dcdb6b317163b8960240a60..097eff5c93375e6724b90ec2c4d1ac5b202c443f 100644 (file)
@@ -1,6 +1,10 @@
+plugins {
+    id "kotlin-android"
+}
+
 android {
-    buildToolsVersion "28.0.3"
-    compileSdkVersion 29
+    namespace "ru.deadsoftware.cavedroid"
+    compileSdkVersion 34
     sourceSets {
         main {
             manifest.srcFile 'AndroidManifest.xml'
@@ -15,15 +19,24 @@ android {
             res.srcDirs = ['debug/res']
         }
     }
+    compileOptions {
+        sourceCompatibility 17
+        targetCompatibility 17
+    }
     packagingOptions {
         exclude 'META-INF/robovm/ios/robovm.xml'
     }
     defaultConfig {
         applicationId "ru.deadsoftware.cavedroid"
-        minSdkVersion 14
-        targetSdkVersion 29
-        versionCode 10
-        versionName "alpha0.4"
+        minSdkVersion 24
+        targetSdkVersion 34
+        versionCode 15
+        versionName "alpha0.5.1"
+    }
+    applicationVariants.all { variant ->
+        variant.outputs.all {
+            outputFileName = "android-${versionName}.apk"
+        }
     }
     buildTypes {
         release {
@@ -33,6 +46,9 @@ android {
             applicationIdSuffix ".debug"
         }
     }
+    buildFeatures {
+        buildConfig true
+    }
 
 }