xenia/app/build.gradle

58 lines
1.3 KiB
Groovy

plugins {
id 'com.android.application'
}
project.ext {
gmitohtmlVersion = "v1.0.5" // https://code.rocket9labs.com/tslocum/gmitohtml/tags
}
android {
compileSdkVersion 34
buildToolsVersion "34.0.0"
ndkVersion "26.0.10792818"
namespace = "space.rocketnine.xenia"
defaultConfig {
applicationId "space.rocketnine.xenia"
minSdkVersion 21
targetSdkVersion 34
versionCode 16
versionName "0.1.6"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
debug {
minifyEnabled false
shrinkResources false
}
release {
minifyEnabled true
shrinkResources true
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}
task bindLibrary(type: Exec) {
workingDir "$projectDir"
commandLine 'sh', '-c', './bind.sh ' + project.ext.gmitohtmlVersion
}
afterEvaluate {
android.applicationVariants.all { variant ->
variant.javaCompiler.dependsOn(bindLibrary)
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar', '*.aar'])
}