-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy pathbuild.gradle
98 lines (84 loc) · 3.06 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
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext.kotlin_version = '1.3.72'
repositories {
// maven { url 'https://maven.aliyun.com/nexus/content/groups/public/' }
google()
jcenter()
//maven { url 'https://developer.huawei.com/repo/' }
maven { url 'https://jitpack.io' }
}
dependencies {
classpath 'com.android.tools.build:gradle:3.5.0'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
// 资源文件混淆
classpath 'com.tencent.mm:AndResGuard-gradle-plugin:1.2.17'
// 腾讯多渠道打包工具:VasDolly
classpath 'com.leon.channel:plugin:2.0.3'
// 华为的
//classpath 'com.huawei.agconnect:agcp:1.2.1.301'
classpath 'com.novoda:bintray-release:0.9.1'
}
}
allprojects {
repositories {
//maven { url 'https://maven.aliyun.com/nexus/content/groups/public/' }
google()
jcenter()
// maven { url 'https://developer.huawei.com/repo/' }
maven { url 'https://jitpack.io' }
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
ext {
versionCode = 1
versionName = '1.0.1'
userOrg = 'arialyy'
groupId = 'com.arialyy.keepassA'
publishVersion = versionName
desc = 'KeepassA Basic components'
repoName='maven'
website = 'https://github.com/AriaLyy/KeepassA'
licences = ['MPL-2.0']
compileSdkVersion = 29
supportLibVersion = "27.1.1"
buildToolsVersion = "29.0.3" // https://developer.android.com/studio/releases/build-tools
targetSdkVersion = 29
minSdkVersion = 21
ndkVersion = '21.3.6528147'
lifecycleVersion = "2.2.0"
appcompatVersion = "1.1.0"
multidexVersion = "2.0.1"
materialVersion = "1.2.0"
roomVersion = "2.2.3"
retrofitVersion = "2.7.1"
okHttpVersion = "4.3.1"
// kotlin
kotlinJdk = "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
androidXKtx = 'androidx.core:core-ktx:1.3.1'
// android组件
appcompat = "androidx.appcompat:appcompat:$appcompatVersion"
material = "com.google.android.material:material:$materialVersion"
recyclerview = "androidx.recyclerview:recyclerview:$appcompatVersion"
multidex = "androidx.multidex:multidex:$multidexVersion"
// 测试模块
junit = 'junit:junit:4.12'
runner = 'androidx.test:runner:1.2.0'
androidXJunit = 'androidx.test.ext:junit:1.1.1'
espresso = 'androidx.test.espresso:espresso-core:3.2.0'
androidXRules = 'androidx.test:rules:1.2.0'
// liveData
lifecycleRuntime = "androidx.lifecycle:lifecycle-runtime:$lifecycleVersion"
lifecycleExtensions = "androidx.lifecycle:lifecycle-extensions:$lifecycleVersion"
lifecycleCompiler = "androidx.lifecycle:lifecycle-compiler:$lifecycleVersion"
// retrofit
retrofit = "com.squareup.retrofit2:retrofit:$retrofitVersion"
converterGson = "com.squareup.retrofit2:converter-gson:$retrofitVersion"
// okhttp
okhttp = "com.squareup.okhttp3:okhttp:$okHttpVersion"
loggingInterceptor = "com.squareup.okhttp3:logging-interceptor:$okHttpVersion"
// biometric 生物识别库,指纹,人脸识别
biometric = "androidx.biometric:biometric:1.0.1"
}