2022-04-04 14:03:10 +00:00
|
|
|
|
plugins {
|
|
|
|
|
id 'com.android.application'
|
|
|
|
|
id 'kotlin-android'
|
|
|
|
|
// id "androidx.navigation.safeargs.kotlin"
|
|
|
|
|
id 'kotlin-kapt'
|
2023-01-13 14:54:16 +00:00
|
|
|
|
id 'com.google.gms.google-services'
|
|
|
|
|
id 'com.google.firebase.firebase-perf'
|
|
|
|
|
id 'com.google.firebase.crashlytics'
|
|
|
|
|
|
2022-04-04 14:03:10 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
android {
|
|
|
|
|
signingConfigs {
|
|
|
|
|
debug {
|
|
|
|
|
storeFile file('keystore\\coldmint_debug.keystore')
|
|
|
|
|
storePassword '147258369'
|
|
|
|
|
keyPassword '147258369'
|
|
|
|
|
keyAlias 'coldmint_debug'
|
|
|
|
|
}
|
|
|
|
|
release {
|
|
|
|
|
storeFile file('keystore\\coldmint_release.keystore')
|
|
|
|
|
storePassword '2923268971'
|
|
|
|
|
keyPassword '2923268971'
|
|
|
|
|
keyAlias 'coldmint'
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
compileSdkVersion 32
|
|
|
|
|
buildToolsVersion "30.0.3"
|
|
|
|
|
|
|
|
|
|
defaultConfig {
|
2022-09-01 08:47:39 +00:00
|
|
|
|
applicationId "com.coldmint.rust.pro"
|
2022-04-04 14:03:10 +00:00
|
|
|
|
minSdkVersion 21
|
2023-01-14 15:26:41 +00:00
|
|
|
|
targetSdkVersion 33
|
2023-01-27 05:21:59 +00:00
|
|
|
|
versionCode 25
|
|
|
|
|
versionName "2.1 Bata3(2023-1-27)"
|
2022-04-04 14:03:10 +00:00
|
|
|
|
|
|
|
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
buildTypes {
|
|
|
|
|
debug {
|
|
|
|
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
|
|
|
|
signingConfig signingConfigs.debug
|
|
|
|
|
}
|
|
|
|
|
release {
|
|
|
|
|
debuggable false //是否可以调试
|
|
|
|
|
buildConfigField "boolean", "LOG_DEBUG", "false" //不显示log
|
|
|
|
|
minifyEnabled true //移除无用java代码
|
|
|
|
|
|
|
|
|
|
shrinkResources true//移除无用的资源文件
|
|
|
|
|
zipAlignEnabled true//apk对其优化
|
|
|
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
|
|
|
signingConfig signingConfigs.release
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
compileOptions {
|
|
|
|
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
|
|
|
targetCompatibility JavaVersion.VERSION_1_8
|
|
|
|
|
}
|
|
|
|
|
kotlinOptions {
|
|
|
|
|
jvmTarget = '1.8'
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
buildFeatures {
|
|
|
|
|
viewBinding true
|
|
|
|
|
}
|
2022-04-23 12:41:25 +00:00
|
|
|
|
lint {
|
|
|
|
|
baseline file('lint-baseline.xml')
|
|
|
|
|
}
|
2022-05-14 00:19:30 +00:00
|
|
|
|
namespace 'com.coldmint.rust.pro'
|
2022-04-04 14:03:10 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
dependencies {
|
2023-01-13 14:54:16 +00:00
|
|
|
|
implementation platform('com.google.firebase:firebase-bom:31.1.1')
|
|
|
|
|
implementation 'com.google.firebase:firebase-analytics-ktx'
|
|
|
|
|
implementation 'com.google.firebase:firebase-crashlytics-ktx'
|
|
|
|
|
implementation 'com.google.firebase:firebase-perf-ktx'
|
|
|
|
|
|
2022-08-19 06:51:28 +00:00
|
|
|
|
def nav_version = "2.5.1"
|
|
|
|
|
|
2022-07-29 15:19:07 +00:00
|
|
|
|
// implementation 'com.luolc:emoji-rain:0.1.1'
|
2022-07-19 14:32:02 +00:00
|
|
|
|
implementation 'me.zhanghai.android.fastscroll:library:1.1.8'
|
2022-07-08 12:01:14 +00:00
|
|
|
|
// 语种切换框架:https://github.com/getActivity/MultiLanguages
|
|
|
|
|
implementation 'com.github.getActivity:MultiLanguages:8.0'
|
2022-04-04 14:03:10 +00:00
|
|
|
|
//权限申请
|
|
|
|
|
implementation 'com.guolindev.permissionx:permissionx:1.6.1'
|
|
|
|
|
implementation "androidx.room:room-runtime:2.4.0"
|
|
|
|
|
//注释处理器加上Room
|
|
|
|
|
annotationProcessor "androidx.room:room-compiler:2.4.0"
|
|
|
|
|
kapt "androidx.room:room-compiler:2.4.0"
|
|
|
|
|
|
|
|
|
|
implementation "dev.rikka.rikkax.preference:simplemenu-preference:1.0.3"
|
|
|
|
|
|
|
|
|
|
//沉浸式状态栏
|
|
|
|
|
implementation 'com.gyf.immersionbar:immersionbar:3.0.0'
|
|
|
|
|
implementation 'com.gyf.immersionbar:immersionbar-ktx:3.0.0'
|
|
|
|
|
|
|
|
|
|
// TinyPinyin核心包,约80KB
|
|
|
|
|
implementation 'com.github.promeg:tinypinyin:2.0.3'
|
|
|
|
|
implementation 'io.github.youth5201314:banner:2.2.2'
|
2022-08-17 01:25:20 +00:00
|
|
|
|
implementation 'androidx.core:core-ktx:1.8.0'
|
2022-09-04 07:49:29 +00:00
|
|
|
|
// implementation 'com.github.deano2390:MaterialShowcaseView:1.3.4'
|
2022-08-17 01:25:20 +00:00
|
|
|
|
implementation 'com.google.code.gson:gson:2.9.1'
|
2022-08-19 06:51:28 +00:00
|
|
|
|
implementation 'com.github.yalantis:ucrop:2.2.8-native'
|
2022-09-04 07:49:29 +00:00
|
|
|
|
// implementation 'com.kongzue.stacklabel:stacklabelview:1.1.9'
|
2022-08-17 01:25:20 +00:00
|
|
|
|
implementation 'io.github.Rosemoe.sora-editor:editor:0.16.5'
|
2022-04-04 14:03:10 +00:00
|
|
|
|
implementation project(path: ':assistantCoreLibrary')
|
2022-07-08 14:34:22 +00:00
|
|
|
|
implementation project(path: ':dialog')
|
2022-04-04 14:03:10 +00:00
|
|
|
|
implementation 'com.afollestad.material-dialogs:bottomsheets:3.3.0'
|
|
|
|
|
implementation 'com.afollestad.material-dialogs:input:3.3.0'
|
|
|
|
|
implementation 'com.github.bumptech.glide:glide:4.11.0'
|
|
|
|
|
implementation 'jp.wasabeef:glide-transformations:4.3.0'
|
|
|
|
|
implementation 'com.github.florent37:glidepalette:2.1.2'
|
|
|
|
|
implementation 'com.github.QuadFlask:colorpicker:0.0.15'
|
|
|
|
|
implementation 'cat.ereza:customactivityoncrash:2.3.0'
|
|
|
|
|
implementation "androidx.swiperefreshlayout:swiperefreshlayout:1.1.0"
|
2022-08-19 06:51:28 +00:00
|
|
|
|
implementation 'androidx.appcompat:appcompat:1.5.0'
|
2022-09-04 07:49:29 +00:00
|
|
|
|
implementation 'com.google.android.material:material:1.7.0-rc01'
|
2022-08-19 06:51:28 +00:00
|
|
|
|
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
|
|
|
|
|
implementation "androidx.navigation:navigation-fragment-ktx:$nav_version"
|
|
|
|
|
implementation "androidx.navigation:navigation-ui-ktx:$nav_version"
|
2022-08-06 13:59:24 +00:00
|
|
|
|
implementation 'androidx.preference:preference-ktx:1.2.0'
|
2022-04-04 14:03:10 +00:00
|
|
|
|
|
|
|
|
|
testImplementation 'junit:junit:4.13.2'
|
2022-07-04 14:39:28 +00:00
|
|
|
|
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
|
|
|
|
|
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
|
2022-04-04 14:03:10 +00:00
|
|
|
|
|
|
|
|
|
}
|