-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle.kts
67 lines (60 loc) · 1.72 KB
/
build.gradle.kts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
plugins {
alias(libs.plugins.android.library)
alias(libs.plugins.kotlin.android)
`maven-publish`
}
group = "com.kyant"
version = libs.versions.lib.version.get()
android {
namespace = "com.kyant.taglib"
compileSdk = libs.versions.android.compileSdk.get().toInt()
buildToolsVersion = libs.versions.android.buildToolsVersion.get()
ndkVersion = libs.versions.android.ndkVersion.get()
defaultConfig {
minSdk = libs.versions.android.minSdk.get().toInt()
consumerProguardFiles("consumer-rules.pro")
ndk {
abiFilters += arrayOf("arm64-v8a", "armeabi-v7a", "x86_64", "x86")
}
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
isMinifyEnabled = false
proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro")
}
}
externalNativeBuild {
cmake {
path("src/main/cpp/CMakeLists.txt")
version = "3.31.1"
}
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_21
targetCompatibility = JavaVersion.VERSION_21
}
kotlin {
jvmToolchain(21)
explicitApi()
}
lint {
checkReleaseBuilds = false
}
}
dependencies {
androidTestImplementation(libs.androidx.runner)
androidTestImplementation(libs.androidx.rules)
}
afterEvaluate {
publishing {
publications {
register("mavenRelease", MavenPublication::class) {
groupId = "com.kyant"
artifactId = "taglib"
version = libs.versions.lib.version.get()
from(components["release"])
}
}
}
}