blob: a8ec9caafacb39cd1392e050459c3ab64df7cfe0 (
plain)
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
|
diff --git a/lib/gif/build.gradle.kts b/lib/gif/build.gradle.kts
index 511c1a4..11ffd2e 100644
--- a/lib/gif/build.gradle.kts
+++ b/lib/gif/build.gradle.kts
@@ -4,7 +4,6 @@ import okio.buffer
import okio.source
plugins {
- alias(libs.plugins.androidLibrary)
alias(libs.plugins.kotlinMultiplatform)
alias(libs.plugins.kotlinSerialization)
alias(libs.plugins.spotless)
@@ -15,42 +14,6 @@ version = "1.0"
fun prop(key: String) = project.findProperty(key) as String
-android {
- ndkVersion = "29.0.14206865"
- namespace = "top.kagg886.gif"
-
- compileSdk = prop("TARGET_SDK").toInt()
-
- defaultConfig {
- minSdk = prop("MIN_SDK").toInt()
- externalNativeBuild {
- cmake {
- targets += "cargo-build_gif_rust"
- }
- }
- ndk {
- // 只支持arm64和x64
- abiFilters += listOf("arm64-v8a", "x86_64")
- }
- }
-
- buildTypes {
- release {
- isMinifyEnabled = false
- proguardFiles(
- getDefaultProguardFile("proguard-android-optimize.txt"),
- "proguard-rules.pro",
- )
- }
- }
-
- externalNativeBuild {
- cmake {
- path = File("src/rust/CMakeLists.txt")
- }
- }
-}
-
val kotlinArchToRustArch = mapOf(
"iosArm64" to "aarch64-apple-ios",
"iosSimulatorArm64" to "aarch64-apple-ios-sim",
@@ -74,10 +37,6 @@ kotlin {
}
}
- androidTarget {
- publishLibraryVariants("release")
- }
-
sourceSets {
commonMain.dependencies {
implementation(libs.kermit)
|