50 lines
1.1 KiB
Groovy
50 lines
1.1 KiB
Groovy
plugins {
|
|
id 'com.android.application'
|
|
}
|
|
|
|
android {
|
|
compileSdkVersion 30
|
|
buildToolsVersion "30.0.2"
|
|
|
|
defaultConfig {
|
|
applicationId "space.rocketnine.xenia"
|
|
minSdkVersion 16
|
|
targetSdkVersion 30
|
|
versionCode 13
|
|
versionName "0.1.3"
|
|
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
minifyEnabled true
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
}
|
|
}
|
|
|
|
compileOptions {
|
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
targetCompatibility JavaVersion.VERSION_1_8
|
|
}
|
|
}
|
|
|
|
ext {
|
|
// https://gitlab.com/tslocum/gmitohtml
|
|
gmitohtmlVersion = "v1.0.2"
|
|
}
|
|
|
|
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'])
|
|
}
|