forked from Auto-Accounting/Qianji_auto
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
executable file
·159 lines (139 loc) · 5.29 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
plugins {
id 'com.android.application'
}
apply plugin: 'kotlin-android'
static def releaseTime() {
return new Date().format("yyyy-MM-dd")
}
static def releaseTimeMin() {
return new Date().format("HH_mm_ss")
}
android {
compileSdkVersion 31
defaultConfig {
resConfigs('zh-rCN')
applicationId "cn.dreamn.qianji_auto"
minSdkVersion 24
targetSdkVersion 31
versionCode 187
versionName "涅槃 3.3.2"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
ndk {
setAbiFilters(['arm64-v8a'])
}
}
def currentVersionCode = Math.random().toString().substring(2, 5)
buildTypes {
release {
minifyEnabled false
shrinkResources false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
applicationVariants.all { variant ->
variant.outputs.all {
outputFileName = "${defaultConfig.versionName}_${releaseTime()}.apk"
}
}
}
debug{
versionNameSuffix "-${currentVersionCode}"
minifyEnabled false
shrinkResources false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility 1.8
targetCompatibility 1.8
}
buildFeatures {
viewBinding true
//noinspection DataBindingWithoutKapt
// dataBinding = true
}
}
dependencies {
implementation 'androidx.appcompat:appcompat:1.3.1'
implementation 'androidx.cardview:cardview:1.0.0'
implementation 'androidx.gridlayout:gridlayout:1.0.0'
implementation project(path: ':filechooser')
implementation project(path: ':material-dialogs-bottomsheets')
implementation 'com.google.android.material:material:1.4.0'
implementation project(path: ':timepicker')
implementation 'androidx.constraintlayout:constraintlayout:2.1.2'
implementation 'androidx.navigation:navigation-fragment:2.3.5'
implementation 'androidx.navigation:navigation-ui:2.3.5'
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
//今日头条屏幕适配方案
implementation 'me.jessyan:autosize:1.2.1'
// XPage
implementation 'com.github.xuexiangjys.XPage:xpage-lib:3.1.1'
annotationProcessor 'com.github.xuexiangjys.XPage:xpage-compiler:3.1.1'
// ButterKnife的sdk
implementation 'com.jakewharton:butterknife:10.2.3'
annotationProcessor 'com.jakewharton:butterknife-compiler:10.2.3'
// 腾讯MMKV
implementation 'com.tencent:mmkv:1.2.10'
// 主题
implementation 'com.github.LillteZheng:ZSkinPlugin:v1.2'
//下拉刷新框架
implementation 'com.github.xuexiangjys.SmartRefreshLayout:refresh-layout:1.1.5'
//列表视图
implementation 'com.yanzhenjie.recyclerview:x:1.3.2'
//权限授权
implementation 'com.github.getActivity:XXPermissions:11.5'
// 吐司框架:https://github.com/getActivity/ToastUtils
implementation 'com.github.getActivity:ToastUtils:9.5'
//自定义imgview
implementation "com.github.xiaofeidev:round:1.1.1"
//安卓Room数据库
def room_version = '2.3.0'
//noinspection GradleDependency
implementation "androidx.room:room-runtime:$room_version"
annotationProcessor "androidx.room:room-compiler:2.3.0"
// optional - RxJava support for Room
//noinspection GradleDependency
implementation "androidx.room:room-rxjava2:$room_version"
// optional - Guava support for Room, including Optional and ListenableFuture
//noinspection GradleDependency
implementation "androidx.room:room-guava:$room_version"
// optional - Test helpers
//noinspection GradleDependency
testImplementation "androidx.room:room-testing:2.3.0"
//内存泄漏监测leak,就需要加上这个依赖
// debugImplementation 'com.squareup.leakcanary:leakcanary-android:2.7'
//rhino
implementation 'org.mozilla:rhino:1.7.13'
//多状态组件
implementation 'com.github.SheHuan:StatusView:1.0.5'
//material-dialogs
implementation 'com.afollestad.material-dialogs:core:3.3.0'
//implementation 'com.afollestad.material-dialogs:color:3.3.0'
// implementation 'com.afollestad.material-dialogs:datetime:3.3.0'
//选择器
//悬浮按钮
implementation 'com.getbase:floatingactionbutton:1.10.1'
//悬浮窗
implementation 'com.github.xuexiangjys:XFloatView:1.0.2'
//网络请求库
implementation('com.squareup.okhttp3:okhttp:5.0.0-alpha.2')
//WebDav
implementation 'com.thegrizzlylabs.sardine-android:sardine-android:0.5'
//FastJSON
implementation 'com.alibaba:fastjson:1.2.76'
//Xposed组件库
compileOnly 'de.robv.android.xposed:api:82'
compileOnly 'de.robv.android.xposed:api:82:sources'
//图片加载库
implementation 'com.github.bumptech.glide:glide:4.12.0'
annotationProcessor 'com.github.bumptech.glide:compiler:4.12.0'
//xml
implementation 'com.github.smart-fun:XmlToJson:1.4.5'
//apache转义工具类
implementation "org.apache.commons:commons-text:1.3"
//
}
repositories {
mavenCentral()
}