初始化项目
This commit is contained in:
@@ -0,0 +1,105 @@
|
||||
plugins {
|
||||
id 'com.android.application'
|
||||
}
|
||||
|
||||
android {
|
||||
namespace 'com.bbitcn.silk'
|
||||
compileSdk 34
|
||||
|
||||
defaultConfig {
|
||||
applicationId "com.bbitcn.silk"
|
||||
minSdk 22
|
||||
targetSdk 34
|
||||
versionCode 22
|
||||
versionName "1.2.2"
|
||||
|
||||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||||
}
|
||||
signingConfigs {
|
||||
release {
|
||||
keyAlias 'store'
|
||||
keyPassword '123456'
|
||||
storeFile file('../key/store.jks')
|
||||
storePassword '123456'
|
||||
}
|
||||
debug {
|
||||
keyAlias 'store'
|
||||
keyPassword '123456'
|
||||
storeFile file('../key/store.jks')
|
||||
storePassword '123456'
|
||||
}
|
||||
}
|
||||
|
||||
//修改生成的apk名字,格式为 app名_版本号_打包时间.apk
|
||||
applicationVariants.all { variant ->
|
||||
def type = variant.buildType.name
|
||||
def time = new Date().format("yyyy-MM-dd_HH-mm")
|
||||
if (type == 'release') {
|
||||
variant.outputs.all { output ->
|
||||
outputFileName = "BBIT智慧蚕桑_${versionCode}_${versionName}_${time}.apk"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
buildTypes {
|
||||
release {
|
||||
minifyEnabled false
|
||||
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
||||
}
|
||||
}
|
||||
compileOptions {
|
||||
sourceCompatibility JavaVersion.VERSION_17
|
||||
targetCompatibility JavaVersion.VERSION_17
|
||||
}
|
||||
buildFeatures {
|
||||
viewBinding true
|
||||
dataBinding true
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation 'androidx.appcompat:appcompat:1.6.1'
|
||||
implementation 'com.google.android.material:material:1.9.0'
|
||||
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
|
||||
testImplementation 'junit:junit:4.13.2'
|
||||
androidTestImplementation 'androidx.test.ext:junit:1.1.5'
|
||||
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
|
||||
|
||||
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
|
||||
implementation 'com.android.support:support-annotations:28.0.0'
|
||||
implementation 'androidx.localbroadcastmanager:localbroadcastmanager:1.1.0'
|
||||
//屏幕适配
|
||||
implementation 'com.github.JessYanCoding:AndroidAutoSize:v1.2.1'
|
||||
//dataBinding
|
||||
implementation 'androidx.databinding:databinding-runtime:8.0.0'
|
||||
//RxJava
|
||||
implementation 'io.reactivex.rxjava2:rxjava:2.2.20'
|
||||
implementation 'io.reactivex.rxjava2:rxandroid:2.1.1'
|
||||
implementation 'com.jakewharton.rxbinding2:rxbinding:2.2.0'
|
||||
implementation 'com.github.xuexiangjys:RxUtil2:1.2.1'
|
||||
//util
|
||||
implementation 'com.blankj:utilcodex:1.31.1'
|
||||
//网络请求库
|
||||
// implementation 'org.xutils:xutils:3.9.0'
|
||||
//流式布局
|
||||
implementation 'com.google.android.flexbox:flexbox:3.0.0'
|
||||
//MMKV
|
||||
implementation 'com.tencent:mmkv:1.2.13'
|
||||
//日志库
|
||||
implementation 'com.jakewharton.timber:timber:5.0.1'
|
||||
//权限库
|
||||
implementation 'com.github.getActivity:XXPermissions:18.5'
|
||||
//GSON
|
||||
implementation 'com.google.code.gson:gson:2.9.0'
|
||||
//下拉刷新 加载更多
|
||||
implementation 'com.scwang.smart:refresh-layout-kernel:2.0.3'
|
||||
implementation 'com.scwang.smart:refresh-header-classics:2.0.3'
|
||||
//Toast
|
||||
implementation 'com.github.GrenderG:Toasty:1.5.2'
|
||||
//加载中
|
||||
implementation 'me.samlss:broccoli:1.0.0'
|
||||
//解决依赖冲突
|
||||
implementation(platform("org.jetbrains.kotlin:kotlin-bom:1.8.0"))
|
||||
//日期下拉框
|
||||
implementation 'com.contrarywind:Android-PickerView:4.1.9'
|
||||
}
|
||||
Reference in New Issue
Block a user