LSPlant/test/build.gradle.kts

63 lines
1.7 KiB
Plaintext
Raw Normal View History

2022-02-18 11:01:39 +08:00
plugins {
id("com.android.application")
}
val androidTargetSdkVersion: Int by rootProject.extra
val androidMinSdkVersion: Int by rootProject.extra
val androidBuildToolsVersion: String by rootProject.extra
val androidCompileSdkVersion: Int by rootProject.extra
val androidCompileNdkVersion: String by rootProject.extra
android {
namespace = "org.lsposed.lsplant.test"
compileSdk = androidCompileSdkVersion
ndkVersion = androidCompileNdkVersion
buildToolsVersion = androidBuildToolsVersion
buildFeatures {
prefab = true
}
defaultConfig {
applicationId = "org.lsposed.lsplant.test"
minSdk = androidMinSdkVersion
targetSdk = androidTargetSdkVersion
versionCode = 1
versionName = "1.0"
testInstrumentationRunner = "android.support.test.runner.AndroidJUnitRunner"
2022-02-19 03:09:30 +08:00
externalNativeBuild {
cmake {
arguments += "-DANDROID_STL=c++_shared"
}
}
2022-02-18 11:01:39 +08:00
}
externalNativeBuild {
cmake {
path("src/main/jni/CMakeLists.txt")
}
}
buildTypes {
release {
isMinifyEnabled = true
proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro")
}
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}
}
dependencies {
implementation(project(":library"))
implementation("io.github.vvb2060.ndk:dobby:1.2")
testImplementation("junit:junit:4.13.2")
androidTestImplementation("com.android.support.test:runner:1.0.2")
androidTestImplementation("com.android.support.test.espresso:espresso-core:3.0.2")
}