forked from REBOOTERS/AndroidAnimationExercise
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
187 lines (153 loc) · 6.41 KB
/
build.gradle
File metadata and controls
187 lines (153 loc) · 6.41 KB
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
175
176
177
178
179
180
181
182
183
184
185
186
187
if (imitate_isApp.toBoolean()) {
apply plugin: 'com.android.application'
} else {
apply plugin: 'com.android.library'
}
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
apply plugin: 'kotlin-kapt'
def ext = rootProject.ext
android {
compileSdkVersion ext.compileSdkVersion
buildToolsVersion ext.buildToolsVersion
defaultConfig {
minSdkVersion ext.minSdkVersion
targetSdkVersion ext.targetSdkVersion
versionCode 1
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
kapt {
arguments {
arg("moduleName", project.getName())
}
}
javaCompileOptions {
annotationProcessorOptions {
arguments = [AROUTER_MODULE_NAME: project.getName()]
}
}
//只保留中文资源和 xxhdpi 分辨率图片
resConfigs "zh-rCN", "xxhdpi"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
sourceSets {
main {
if (imitate_isApp.toBoolean()) {
manifest.srcFile 'src/main/module/AndroidManifest.xml'
} else {
manifest.srcFile 'src/main/AndroidManifest.xml'
}
res.srcDirs += [
'src/main/res/layouts/ninepoint'
]
}
}
packagingOptions {
pickFirst 'META-INF/library_release.kotlin_module'
// pickFirst 'META-INF/atomicfu.kotlin_module'
// pickFirst 'META-INF/kotlinx-coroutines-io.kotlin_module'
}
testOptions {
unitTests {
includeAndroidResources = true
}
}
signingConfigs {
debug {
keyAlias IMITATE_DEBUG_KEY_ALIAS
keyPassword IMITATE_DEBUG_KEY_PASSWORD
storeFile file(IMITATE_DEBUG_STORE_FILE)
storePassword IMITATE_DEBUG_STORE_PASSWORD
}
}
ndkVersion ext.ndk_version
}
kapt {
arguments {
arg("moduleName", project.getName())
}
}
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation "androidx.appcompat:appcompat:$ext.androidx_appcompat"
implementation "androidx.cardview:cardview:1.0.0"
implementation "androidx.constraintlayout:constraintlayout:${ext.constraint_layout}"
implementation "com.github.bumptech.glide:glide:$ext.glide"
implementation 'com.xw.repo:bubbleseekbar:3.18'
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
implementation 'androidx.lifecycle:lifecycle-process:2.2.0'
testImplementation 'junit:junit:4.13'
androidTestImplementation 'androidx.test:runner:1.3.0-alpha04'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0-alpha04'
implementation "com.alibaba:arouter-api:$ext.arouter_api"
kapt "com.alibaba:arouter-compiler:$ext.arouter_compiler"
implementation 'com.facebook.fresco:fresco:2.2.0'
implementation 'com.zhihu.android:matisse:0.5.3-beta3'
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
implementation 'com.permissionx.guolindev:permissionx:1.4.0'
implementation 'io.reactivex.rxjava2:rxjava:2.2.19'
implementation 'io.reactivex.rxjava2:rxandroid:2.1.1'
implementation 'com.facebook.stetho:stetho:1.5.1'
debugImplementation 'com.squareup.leakcanary:leakcanary-android:2.5'
implementation 'net.sourceforge.streamsupport:streamsupport:1.7.2'
//
implementation 'com.github.andrefrsousa:SuperBottomSheet:1.3.0'
implementation 'com.flipboard:bottomsheet-core:1.5.3'
implementation 'de.hdodenhof:circleimageview:3.1.0'
implementation 'androidx.recyclerview:recyclerview:1.1.0'
implementation 'androidx.viewpager:viewpager:1.0.0'
implementation 'com.hyman:flowlayout-lib:1.1.2'
implementation 'com.contrarywind:Android-PickerView:4.1.8'
implementation 'com.afollestad:assent:2.3.1'
implementation 'com.wang.avi:library:2.1.3'
implementation "androidx.viewpager2:viewpager2:1.0.0"
// https://github.com/prostory/AndroidZdog
implementation 'com.github.prostory:AndroidZdog:v1.0.0'
// robolectric
testImplementation 'androidx.test:core:1.2.0'
testImplementation 'androidx.test:rules:1.2.0'
testImplementation 'androidx.test.espresso:espresso-core:3.2.0'
testImplementation 'org.robolectric:robolectric:4.3.1'
testImplementation 'com.facebook.soloader:soloader:0.9.0'
// robolectric
implementation group: 'commons-io', name: 'commons-io', version: '20030203.000550'
implementation project(path: ':game')
implementation project(path: ':gif-revert')
implementation 'bg.devlabs.fastlist:fast-list:1.4'
implementation 'com.jaredrummler:simple-mvp:1.0.2'
implementation 'com.github.Dovar66:DToast:1.1.5'
implementation 'com.romandanylyk:pageindicatorview:1.0.3'
// from 2020
implementation "com.google.android.material:material:$ext.androidx_material"
implementation "androidx.preference:preference-ktx:${ext.androidx_preference}"
implementation "com.github.skydoves:transformationlayout:1.0.5"
implementation 'com.beust:klaxon:5.0.1'
implementation 'com.alibaba:fastjson:1.2.66'
implementation 'com.google.code.gson:gson:2.8.6'
//room
implementation "androidx.room:room-runtime:$ext.roomVersion"
implementation "androidx.room:room-rxjava2:$ext.roomVersion"
kapt "androidx.room:room-compiler:$ext.roomVersion"
// coroutines
// 👇 依赖协程核心库
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:$kotlin_coroutines"
// 👇 依赖当前平台所对应的平台库
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:$kotlin_coroutines"
// https://github.com/didi/DoraemonKit
debugImplementation "com.didichuxing.doraemonkit:dokitx:$doraemonkit"
releaseImplementation "com.didichuxing.doraemonkit:dokitx-no-op:$doraemonkit"
implementation 'com.github.wanglu1209:PhotoViewer:0.50'
// https://github.com/gyf-dev/ImmersionBar
// 基础依赖包,必须要依赖
implementation 'com.gyf.immersionbar:immersionbar:3.0.0'
}
apply from: file('hyperion-config.gradle')