-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
/
build.gradle
109 lines (98 loc) · 3.78 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
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
android {
compileSdkVersion rootProject.ext.compileSdkVersion
buildToolsVersion rootProject.ext.buildToolsVersion
defaultConfig {
applicationId "com.example.jingbin.cloudreader"
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 52
versionName "3.8.2"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
renderscriptTargetApi 19
renderscriptSupportModeEnabled true
multiDexEnabled true
ndk {
//选择要添加的对应cpu类型的.so库。
abiFilters 'armeabi-v7a', 'arm64-v8a', 'x86'
}
}
// ------------------------注释下面代码(签名配置) ↓↓↓↓↓-----------------------------
// signingConfigs {
// debug {
// storeFile file(pStoreFile)
// storePassword pStorePassword
// keyAlias pKeyAlias
// keyPassword pKeyPassword
// v1SigningEnabled true
// v2SigningEnabled true
// }
//
// release {
// storeFile file(pStoreFile)
// storePassword pStorePassword
// keyAlias pKeyAlias
// keyPassword pKeyPassword
// v1SigningEnabled true
// v2SigningEnabled true
// }
// }
// gradle assembleRelease
// buildTypes {
// release {
// minifyEnabled false
// proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
// signingConfig signingConfigs.release
// // apk重命名
// android.applicationVariants.all { variant ->
// variant.outputs.all {
// outputFileName = "${project.name}_${defaultConfig.versionName}_${variant.buildType.name}.apk"
// }
// }
// }
// debug {
// minifyEnabled false
// proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
// signingConfig signingConfigs.debug
// }
// }
// ------------------------↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑-----------------------------
compileOptions {
sourceCompatibility JavaVersion.VERSION_11
targetCompatibility JavaVersion.VERSION_11
}
// dataBinding 加入
dataBinding {
enabled = true
}
// https://github.com/ReactiveX/RxJava/issues/4445
packagingOptions {
exclude 'META-INF/rxjava.properties'
}
}
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
androidTestImplementation('androidx.test.espresso:espresso-core:3.1.0', {
exclude group: 'com.android.support', module: 'support-annotations'
})
implementation project(path: ':bymvvm')
testImplementation "junit:junit:$rootProject.ext.junitVersion"
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
// 流式标签
implementation 'com.google.android.flexbox:flexbox:3.0.0'
implementation 'com.google.zxing:core:3.3.0'
implementation 'com.nineoldandroids:library:2.4.0'
implementation 'com.cocosw:bottomsheet:1.4.0'
implementation 'me.drakeet.support:toastcompat:1.1.0'
implementation 'com.github.chrisbanes:PhotoView:2.1.4'
implementation 'com.github.youlookwhat:ByBannerView:1.4.6'
implementation 'com.github.youlookwhat:ByWebView:1.2.1'
implementation 'androidx.webkit:webkit:1.4.0'
// leakcanary
// debugImplementation 'com.squareup.leakcanary:leakcanary-android:2.14'
// bugly
implementation 'com.tencent.bugly:crashreport:3.4.4'
implementation 'com.tencent.bugly:nativecrashreport:3.9.2'
}