forked from solana-mobile/mobile-wallet-adapter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
125 lines (110 loc) · 4.32 KB
/
build.gradle
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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
/*
* Copyright (c) 2022 Solana Mobile Inc.
*/
plugins {
alias libs.plugins.android.application
alias libs.plugins.kotlin.android
id 'androidx.navigation.safeargs.kotlin'
id 'kotlin-kapt'
}
android {
namespace = "com.solana.mobilewalletadapter.fakewallet"
compileSdk 34
defaultConfig {
applicationId "com.solana.mobilewalletadapter.fakewallet"
minSdk 23
targetSdk 34
versionCode 1
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
testOptions {
execution 'ANDROIDX_TEST_ORCHESTRATOR'
}
signingConfigs {
create("release") {
// APK signing keystore configuration provided by environment variables:
// ORG_GRADLE_PROJECT_apkSigningKeystorePath
// ORG_GRADLE_PROJECT_apkSigningKeystorePassword
// ORG_GRADLE_PROJECT_apkSigningKeyAlias
// ORG_GRADLE_PROJECT_apkSigningKeyPassword
final var storePath = findProperty("apkSigningKeystorePath")
if (storePath != null) {
storeFile = file(storePath)
}
storePassword = findProperty("apkSigningKeystorePassword")
keyAlias = findProperty("apkSigningKeyAlias")
keyPassword = findProperty("apkSigningKeyPassword")
}
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
final var releaseSigningConfig = signingConfigs["release"]
if (releaseSigningConfig.storeFile != null && releaseSigningConfig.storeFile.exists()) {
signingConfig = releaseSigningConfig
}
}
}
flavorDimensions = ["protocol_version"]
productFlavors {
v1 {
dimension "protocol_version"
buildConfigField "com.solana.mobilewalletadapter.common.protocol.SessionProperties.ProtocolVersion",
"PROTOCOL_VERSION", "com.solana.mobilewalletadapter.common.protocol.SessionProperties.ProtocolVersion.V1"
}
legacy {
dimension "protocol_version"
resValue "string", "app_name", "Fake Wallet App (Legacy)"
buildConfigField "com.solana.mobilewalletadapter.common.protocol.SessionProperties.ProtocolVersion",
"PROTOCOL_VERSION", "com.solana.mobilewalletadapter.common.protocol.SessionProperties.ProtocolVersion.LEGACY"
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_11
targetCompatibility JavaVersion.VERSION_11
}
kotlinOptions {
jvmTarget = '11'
}
buildFeatures {
viewBinding true
buildConfig true
}
}
dependencies {
androidTestImplementation libs.androidx.test.runner
androidTestUtil libs.androidx.test.orchestrator
androidTestImplementation libs.kotlin.stdlib
androidTestImplementation libs.androidx.test.core
androidTestImplementation libs.core.ktx
androidTestImplementation libs.androidx.junit
androidTestImplementation libs.androidx.junit.ktx
androidTestImplementation libs.androidx.test.runner
androidTestImplementation libs.androidx.test.rules
androidTestImplementation libs.androidx.test.espresso.core
androidTestImplementation libs.androidx.test.uiautomator
androidTestImplementation libs.java.websocket
androidTestImplementation libs.web3.solana
androidTestImplementation project(path: ':clientlib')
annotationProcessor libs.androidx.room.compiler
implementation libs.androidx.activity.ktx
implementation libs.androidx.appcompat
implementation libs.androidx.constraintlayout
implementation libs.androidx.core.ktx
implementation libs.androidx.lifecycle.runtime.ktx
implementation libs.androidx.lifecycle.viewmodel.ktx
implementation libs.androidx.navigation.fragment.ktx
implementation libs.androidx.room.runtime
implementation libs.androidx.room.ktx
implementation libs.material
implementation libs.digital.asset.links.android
implementation libs.coil
implementation libs.coil.svg
implementation libs.bcprov.jdk18on
implementation libs.kotlinx.coroutines.android
implementation libs.multimult
implementation project(path: ':walletlib')
kapt libs.androidx.room.compiler
}