60 lines
1.3 KiB
Groovy
60 lines
1.3 KiB
Groovy
plugins {
|
|
id 'com.android.application'
|
|
}
|
|
|
|
android {
|
|
namespace 'run.evan.gost'
|
|
compileSdk 32
|
|
|
|
defaultConfig {
|
|
applicationId "run.evan.gost"
|
|
minSdk 26
|
|
targetSdk 32
|
|
versionCode 3
|
|
versionName "3.0"
|
|
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
}
|
|
buildFeatures {
|
|
viewBinding = true
|
|
aidl true
|
|
}
|
|
buildTypes {
|
|
release {
|
|
minifyEnabled false
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
}
|
|
}
|
|
compileOptions {
|
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
targetCompatibility JavaVersion.VERSION_1_8
|
|
}
|
|
packagingOptions {
|
|
jniLibs {
|
|
useLegacyPackaging true
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
|
|
task nativeLibsToJar(type: Jar, description: 'create a jar archive of the native libs') {
|
|
destinationDir file("$buildDir/native-libs")
|
|
baseName 'native-libs'
|
|
from fileTree(dir: 'mybins', include: '**/*')
|
|
into 'lib/'
|
|
}
|
|
tasks.withType(JavaCompile)
|
|
{
|
|
compileTask -> compileTask.dependsOn(nativeLibsToJar)
|
|
}
|
|
|
|
|
|
dependencies {
|
|
implementation fileTree(dir: "$buildDir/native-libs", include: 'native-libs.jar')
|
|
implementation 'androidx.annotation:annotation:1.3.0'
|
|
}
|
|
|
|
|
|
|