-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathbuild.gradle.kts
93 lines (74 loc) · 2.63 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
import com.android.build.api.dsl.Packaging
import java.net.URL
plugins {
id("com.android.library")
id(libs.plugins.kotlin.android.get().pluginId)
alias(libs.plugins.google.ksp)
id("publish-module-android")
id("jacoco-report")
}
project.apply {
extra[KEY_PUBLISH_ARTIFACT_ID] = WALLETKIT
extra[KEY_PUBLISH_VERSION] = WALLETKIT_VERSION
extra[KEY_SDK_NAME] = "walletkit"
}
android {
namespace = "com.reown.walletkit"
compileSdk = COMPILE_SDK
defaultConfig {
minSdk = MIN_SDK
aarMetadata {
minCompileSdk = MIN_SDK
}
buildConfigField(type = "String", name = "SDK_VERSION", value = "\"${requireNotNull(extra.get(KEY_PUBLISH_VERSION))}\"")
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
isMinifyEnabled = true
proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "${rootDir.path}/gradle/proguard-rules/sdk-rules.pro", "${projectDir}/web3wallet-rules.pro")
}
}
lint {
abortOnError = true
ignoreWarnings = true
warningsAsErrors = false
}
compileOptions {
sourceCompatibility = jvmVersion
targetCompatibility = jvmVersion
}
packaging {
jniLibs.pickFirsts.add("lib/arm64-v8a/libuniffi_yttrium.so")
jniLibs.pickFirsts.add("lib/armeabi-v7a/libuniffi_yttrium.so")
}
kotlinOptions {
jvmTarget = jvmVersion.toString()
freeCompilerArgs = freeCompilerArgs + "-opt-in=kotlin.time.ExperimentalTime"
}
buildFeatures {
buildConfig = true
}
}
dependencies {
implementation("net.java.dev.jna:jna:5.15.0@aar")
implementation("com.github.reown-com:yttrium:0.5.2")
implementation(platform(libs.firebase.bom))
implementation(libs.firebase.messaging)
debugImplementation(project(":core:android"))
debugImplementation(project(":protocol:sign"))
releaseImplementation("com.reown:android-core:$CORE_VERSION")
releaseImplementation("com.reown:sign:$SIGN_VERSION")
testImplementation(libs.bundles.androidxTest)
testImplementation(libs.robolectric)
testImplementation(libs.json)
testImplementation(libs.coroutines.test)
testImplementation(libs.bundles.scarlet.test)
testImplementation(libs.bundles.sqlDelight.test)
testImplementation(libs.koin.test)
androidTestImplementation(libs.mockk.android)
androidTestImplementation(libs.coroutines.test)
androidTestImplementation(libs.core)
androidTestUtil(libs.androidx.testOrchestrator)
androidTestImplementation(libs.bundles.androidxAndroidTest)
}