| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105 |
- plugins {
- alias(libs.plugins.android.application)
- alias(libs.plugins.jetbrains.kotlin.android)
- }
- android {
- namespace 'com.grkj.iscs'
- compileSdk 34
- viewBinding.enabled = true
- dataBinding {
- enabled true
- }
- defaultConfig {
- applicationId "com.grkj.iscs"
- minSdk 24
- targetSdk 34
- versionCode 1
- versionName "1.0"
- multiDexEnabled true
- testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
- }
- //签名配置signingConfigs一定要在buildTypes前
- signingConfigs {
- release {
- storeFile file('../ISCS.jks')
- storePassword "iscs123456"
- keyAlias "iscs"
- keyPassword "iscs123456"
- }
- }
- buildTypes {
- release {
- release {
- minifyEnabled true // 混淆
- zipAlignEnabled true // 进行压缩优化
- shrinkResources true // 移除无用的resource文件
- proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
- signingConfig signingConfigs.release
- android.applicationVariants.all { variant ->
- variant.outputs.all {
- outputFileName = "ISCS_v${versionName}_${versionCode}.apk"
- }
- }
- }
- }
- }
- compileOptions {
- sourceCompatibility JavaVersion.VERSION_1_8
- targetCompatibility JavaVersion.VERSION_1_8
- }
- kotlinOptions {
- jvmTarget = '1.8'
- }
- }
- dependencies {
- implementation libs.androidx.core.ktx
- implementation libs.androidx.appcompat
- implementation libs.material
- implementation libs.androidx.activity
- implementation libs.androidx.constraintlayout
- testImplementation libs.junit
- androidTestImplementation libs.androidx.junit
- androidTestImplementation libs.androidx.espresso.core
- // implementation libs.mvvmhabit
- implementation libs.okhttps
- implementation libs.okhttps.stomp
- implementation libs.log.interceptor
- implementation libs.autosize
- implementation libs.fastble
- implementation fileTree(dir: "libs", include: ["*.jar", "*.aar"])
- // RV通用Adapter https://github.com/hongyangAndroid/base-adapter
- implementation 'com.zhy:base-rvadapter:3.0.3'
- // 日志工具 https://github.com/orhanobut/logger
- implementation 'com.orhanobut:logger:2.2.0'
- implementation 'androidx.multidex:multidex:2.0.1'
- //https://github.com/googlesamples/easypermissions
- implementation 'pub.devrel:easypermissions:3.0.0'
- // https://github.com/scwang90/SmartRefreshLayout
- implementation 'androidx.appcompat:appcompat:1.7.0' //必须 1.0.0 以上
- implementation 'io.github.scwang90:refresh-layout-kernel:2.1.0' //核心必须依赖
- implementation 'io.github.scwang90:refresh-header-classics:2.1.0' //经典刷新头
- implementation 'androidx.recyclerview:recyclerview:1.3.0'
- implementation 'com.leon:lfilepickerlibrary:1.8.0'
- implementation 'com.github.jzmanu:MDatePickerSample:v1.0.5'
- }
|