55 lines
1.2 KiB
Groovy
55 lines
1.2 KiB
Groovy
plugins {
|
|
id 'com.android.application'
|
|
}
|
|
|
|
project.ext {
|
|
boxcarsVersion = "v1.2.4" // https://code.rocket9labs.com/tslocum/boxcars/tags
|
|
}
|
|
|
|
android {
|
|
compileSdkVersion 34
|
|
buildToolsVersion "34.0.0"
|
|
ndkVersion "26.0.10792818"
|
|
|
|
namespace = "com.rocket9labs.boxcars"
|
|
|
|
defaultConfig {
|
|
applicationId "com.rocket9labs.boxcars"
|
|
minSdkVersion 21
|
|
targetSdkVersion 34
|
|
versionCode 102040
|
|
versionName "1.2.4"
|
|
}
|
|
|
|
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
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation fileTree(dir: 'libs', include: ['*.jar', '*.aar'])
|
|
|
|
}
|
|
|
|
task bindLibrary(type: Exec) {
|
|
workingDir "$projectDir"
|
|
commandLine 'sh', '-c', './bind.sh ' + project.ext.boxcarsVersion
|
|
}
|
|
|
|
afterEvaluate {
|
|
android.applicationVariants.all { variant ->
|
|
variant.javaCompiler.dependsOn(bindLibrary)
|
|
}
|
|
}
|