LSPlant/test/build.gradle.kts

56 lines
1.5 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
2022-02-20 23:53:06 +08:00
val androidNdkVersion: String by rootProject.extra
val androidCmakeVersion: String by rootProject.extra
2022-02-18 11:01:39 +08:00
android {
compileSdk = androidCompileSdkVersion
2022-02-20 23:53:06 +08:00
ndkVersion = androidNdkVersion
2022-02-18 11:01:39 +08:00
buildToolsVersion = androidBuildToolsVersion
buildFeatures {
prefab = true
}
defaultConfig {
2022-02-20 23:53:06 +08:00
applicationId = "org.lsposed.lsplant"
2022-02-18 11:01:39 +08:00
minSdk = androidMinSdkVersion
targetSdk = androidTargetSdkVersion
versionCode = 1
versionName = "1.0"
2022-02-20 23:53:06 +08:00
testInstrumentationRunner = "androidx.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 {
2022-02-20 23:53:06 +08:00
path = file("src/main/jni/CMakeLists.txt")
version = androidCmakeVersion
2022-02-18 11:01:39 +08:00
}
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}
}
dependencies {
2022-02-20 23:53:06 +08:00
implementation(project(":lsplant"))
2022-02-18 11:01:39 +08:00
implementation("io.github.vvb2060.ndk:dobby:1.2")
2022-02-20 23:53:06 +08:00
androidTestImplementation("androidx.test.ext:junit:1.1.3")
androidTestImplementation("androidx.test:runner:1.4.0")
androidTestImplementation("androidx.test.espresso:espresso-core:3.4.0")
2022-02-18 11:01:39 +08:00
}