-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
154 lines (140 loc) · 5.28 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
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
repositories {
google()
jcenter()
}
android {
compileSdkVersion androidCompileSdkVersion
buildToolsVersion androidSdkBuildVersion
dexOptions {
javaMaxHeapSize "4g"
}
packagingOptions {
exclude 'lib/x86_64/darwin/libscrypt.dylib'
exclude 'META-INF/LICENSE'
}
defaultConfig {
minSdkVersion 19
targetSdkVersion 25
versionCode 300905
versionName "3.0.9.5"
multiDexEnabled true
}
signingConfigs {
release {
if (project.hasProperty('prodKeyStore') &&
project.hasProperty('prodKeyAlias') &&
project.hasProperty('prodKeyStorePassword') &&
project.hasProperty('prodKeyAliasPassword')) {
storeFile file('../' + prodKeyStore)
keyAlias prodKeyAlias
storePassword prodKeyStorePassword
keyPassword prodKeyAliasPassword
} else {
storeFile commonDebugKeystore
storePassword 'android'
keyAlias 'androiddebugkey'
keyPassword 'android'
}
}
btctestnet {
if (project.hasProperty('testKeyStore') &&
project.hasProperty('testKeyAlias') &&
project.hasProperty('testKeyStorePassword') &&
project.hasProperty('testKeyAliasPassword')) {
storeFile file('../' + testKeyStore)
keyAlias testKeyAlias
storePassword testKeyStorePassword
keyPassword testKeyAliasPassword
} else {
storeFile commonDebugKeystore
storePassword 'android'
keyAlias 'androiddebugkey'
keyPassword 'android'
}
}
commonDebug {
storeFile commonDebugKeystore
storePassword 'android'
keyAlias 'androiddebugkey'
keyPassword 'android'
}
}
buildTypes {
all {
minifyEnabled false
}
debug {
signingConfig signingConfigs.commonDebug
applicationIdSuffix '.debug'
debuggable true
}
}
sourceSets {
main.java.srcDirs += 'src/main/kotlin'
}
flavorDimensions "flavor"
productFlavors {
prodnet {
applicationId 'com.mycelium.module.spvbch'
versionName = defaultConfig.versionName
signingConfig signingConfigs.release
buildConfigField 'boolean', 'IS_TESTNET', 'false'
buildConfigField 'String[]', 'TRUSTED_FULL_NODES', '{' +
'"tcp://bitcoin-abc-1.mycelium.com:8444",' +
'"tcp://bitcoin-abc-2.mycelium.com:8444",' +
'"tcp://bitcoin-abc-3.mycelium.com:8444",' +
'"tcp://bitcoin-abc-4.mycelium.com:8444"' +
'}'
ext {
appIdWallet = [release: "com.mycelium.wallet",
debug: "com.mycelium.wallet.debug"]
}
}
btctestnet {
applicationId 'com.mycelium.module.spvbch.testnet'
versionName = defaultConfig.versionName + '-TESTNET'
signingConfig signingConfigs.btctestnet
buildConfigField 'boolean', 'IS_TESTNET', 'true'
buildConfigField 'String[]', 'TRUSTED_FULL_NODES', '{' +
'"tcp://bitcoin-abc-1.mycelium.com:18444",' +
'"tcp://bitcoin-abc-2.mycelium.com:18444",' +
'"tcp://bitcoin-abc-3.mycelium.com:18444",' +
'"tcp://bitcoin-abc-4.mycelium.com:18444"' +
'}'
ext {
appIdWallet = [release: "com.mycelium.testnetwallet",
debug: "com.mycelium.testnetwallet.debug"]
}
}
}
applicationVariants.all { variant ->
def flavor = variant.productFlavors[0]
variant.buildConfigField "String", "appIdWallet", "\"${flavor.ext.appIdWallet[variant.buildType.name]}\""
}
}
configurations {
compile.exclude group: 'org.jetbrains' , module:'annotations'
}
dependencies {
testImplementation "junit:junit:$junitVersion"
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation "com.android.support:appcompat-v7:$androidSupportVersion"
implementation "com.android.support:support-v4:$androidSupportVersion"
implementation "com.android.support:preference-v7:$androidSupportVersion"
implementation 'com.android.support:multidex:1.0.3'
implementation project(includePrefix +':modulespvcontract')
implementation project(includePrefix +':wallet-android-modularization-tools:modularization-lib')
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
implementation 'com.squareup.retrofit2:retrofit:2.3.0'
implementation 'com.squareup.retrofit2:converter-gson:2.3.0'
implementation 'com.madgag.spongycastle:core:1.58.0.0'
implementation 'com.google.protobuf:protobuf-java:3.4.0'
implementation(guavaArtifact) {
force = true
}
implementation project(includePrefix +':view')
implementation project(includePrefix +':bitlib')
implementation project(includePrefix +':bitcoincashj:core')
}