/
build.gradle
174 lines (131 loc) · 5.4 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
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android-extensions'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-kapt'
apply plugin: 'realm-android'
apply plugin: 'org.greenrobot.greendao' // apply plugin
//apply plugin: 'com.android.library'
apply plugin: 'com.jakewharton.butterknife'
android {
compileSdkVersion 28
buildToolsVersion '30.0.2'
defaultConfig {
applicationId "pro.upchain.ethwallet"
minSdkVersion 23
//noinspection ExpiredTargetSdkVersion
targetSdkVersion 26
versionCode 2
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
vectorDrawables.useSupportLibrary = true
multiDexEnabled true
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
buildTypes.each {
Properties properties = new Properties()
properties.load(project.rootProject.file('local.properties').newDataInputStream())
def InfuraKey = properties.getProperty('infura.key')
it.buildConfigField 'String', 'InfuraKey', "\"${InfuraKey}\""
}
packagingOptions {
exclude 'META-INF/NOTICE.txt'
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/NOTICE'
exclude 'META-INF/LICENSE'
exclude 'META-INF/DEPENDENCIES'
exclude 'lib/x86_64/darwin/libscrypt.dylib'
}
lintOptions {
abortOnError false
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}
//dexOptions{
// incrementaltruejavaMaxHeapSize"4g"
//}
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
implementation 'androidx.core:core-ktx:1.2.0'
// implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support:recyclerview-v7:28.0.0'
implementation 'com.android.support:design:28.0.0'
implementation 'androidx.drawerlayout:drawerlayout:1.1.1'
implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.1.0'
// implementation 'com.android.support:support-v4:28.0.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.2'
implementation "com.android.support:multidex:1.0.2"
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.1'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1'
implementation "com.trustwallet:wallet-core:2.9.7"
implementation "com.louiscad.splitties:splitties-alertdialog-material:3.0.0"
implementation 'com.github.trustwallet:trust-web3-provider:2.0.0-alpha'
// implementation 'android.arch.lifecycle:runtime:1.0.3'
implementation 'android.arch.lifecycle:extensions:1.1.1'
// implementation 'android.arch.core:runtime:1.1.1'
// Annotation
// implementation 'com.jakewharton:butterknife:8.8.1'
// annotationProcessor 'com.jakewharton:butterknife-compiler:8.8.1'
implementation "com.jakewharton:butterknife:10.2.3"
annotationProcessor "com.jakewharton:butterknife-compiler:10.2.3"
// leakcanary 可以迅速定位内存泄漏
debugImplementation 'com.squareup.leakcanary:leakcanary-android:1.5.4'
releaseImplementation 'com.squareup.leakcanary:leakcanary-android-no-op:1.5.4'
testImplementation 'com.squareup.leakcanary:leakcanary-android-no-op:1.5.4'
// Rx ReactiveX
implementation 'io.reactivex.rxjava2:rxandroid:2.1.1'
implementation 'io.reactivex.rxjava2:rxjava:2.2.6'
implementation 'org.slf4j:slf4j-jdk14:1.7.25'
//Retrofit
implementation 'com.squareup.retrofit2:retrofit:2.3.0'
// Gson converter
implementation 'com.squareup.retrofit2:converter-gson:2.3.0'
implementation "com.squareup.retrofit2:adapter-rxjava2:2.3.0"
// Okhttp
implementation 'com.squareup.okhttp3:okhttp:3.8.1'
// 沉浸式状态栏
implementation 'com.gyf.barlibrary:barlibrary:2.3.0'
implementation 'com.lcodecorex:tkrefreshlayout:1.0.7'
implementation 'com.github.CymChad:BaseRecyclerViewAdapterHelper:2.9.50'
// 圆形图片
implementation 'de.hdodenhof:circleimageview:2.1.0'
// 圆点Indicator
implementation 'com.youth.banner:banner:1.4.10'
implementation 'com.romandanylyk:pageindicatorview:1.0.0'
// glide 图片加载库
implementation('com.github.bumptech.glide:glide:4.6.1') {
exclude group: "com.android.support"
}
annotationProcessor 'com.github.bumptech.glide:compiler:4.6.1'
// greenDao
implementation 'org.greenrobot:greendao:3.3.0'
// ViewPagerIndicator
implementation 'com.shizhefei:ViewPagerIndicator:1.1.6'
// FlexboxLayoutManager
implementation 'com.google.android:flexbox:1.0.0'
// 以太坊开发库
implementation 'org.web3j:core:4.8.7-android'
// compile 'com.google.guava:guava:24.1-jre'
// or, for Android:
implementation 'com.google.guava:guava:27.0.1-android'
// bitcoinj
implementation 'org.bitcoinj:bitcoinj-core:0.14.7'
implementation 'cn.bingoogolapple:bga-qrcode-zxing:1.3.6'
implementation 'pub.devrel:easypermissions:1.0.1'
api "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
}
greendao {
schemaVersion 1
}
repositories {
mavenCentral()
}