123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119 |
- plugins {
- id 'com.android.application'
- id 'kotlin-android'
- id 'kotlin-android-extensions'
- id 'kotlin-kapt'
- }
- android {
- signingConfigs {
- debug {
- storeFile file('C:\\myFiles\\code\\androidProjects\\issp\\signature.jks')
- storePassword '123456'
- keyAlias 'isspt'
- keyPassword '123456'
- }
- }
- compileSdkVersion 30
- buildToolsVersion "30.0.2"
- defaultConfig {
- applicationId "com.doverfuelingsolutions.issp"
- minSdkVersion 22
- targetSdkVersion 26
- versionCode 23
- versionName "1.2.10"
- archivesBaseName = versionName + "." + getTime()
- testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
- ndk {
- // 设置支持的SO库架构
- abiFilters 'armeabi', 'armeabi-v7a' //, 'x86', 'armeabi-v7a', 'x86_64', 'arm64-v8a'
- }
- }
- buildFeatures {
- dataBinding true
- }
- buildTypes {
- debug {
- minifyEnabled false
- proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
- }
- release {
- minifyEnabled false
- proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
- }
- }
- compileOptions {
- sourceCompatibility JavaVersion.VERSION_1_8
- targetCompatibility JavaVersion.VERSION_1_8
- }
- kotlinOptions {
- jvmTarget = '1.8'
- }
- }
- dependencies {
- implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
- implementation 'androidx.core:core-ktx:1.3.2'
- implementation 'androidx.appcompat:appcompat:1.2.0'
- implementation 'com.google.android.material:material:1.2.1'
- implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
- implementation 'androidx.preference:preference-ktx:1.1.1'
- testImplementation 'junit:junit:4.+'
- androidTestImplementation 'androidx.test.ext:junit:1.1.2'
- androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
- implementation project(':waynelib_')
- implementation project(':libserial')
- def retrofitVersion = '2.9.0'
- implementation "com.squareup.retrofit2:retrofit:$retrofitVersion"
- implementation "com.squareup.okio:okio:$retrofitVersion"
- implementation "com.squareup.retrofit2:converter-gson:$retrofitVersion"
- def coroutineVersion = '1.4.2'
- implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:$coroutineVersion"
- implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:$coroutineVersion"
- def lifecycleVersion = '2.2.0'
- implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:$lifecycleVersion"
- implementation "androidx.lifecycle:lifecycle-runtime-ktx:$lifecycleVersion"
- implementation "androidx.lifecycle:lifecycle-livedata-ktx:$lifecycleVersion"
- def work_version = "2.4.0"
- implementation "androidx.work:work-runtime-ktx:$work_version"
- implementation 'androidx.startup:startup-runtime:1.0.0'
- implementation 'com.youth.banner:banner:2.1.0'
- def refresh_version = '2.0.1'
- implementation "com.scwang.smart:refresh-layout-kernel:$refresh_version"
- implementation "com.scwang.smart:refresh-header-classics:$refresh_version"
- implementation 'com.hjq:toast:8.8'
- implementation 'com.moos:Material-ProgressView:1.0.6'
- implementation 'com.tencent.bugly:crashreport_upgrade:1.5.0'
- implementation 'com.tencent.bugly:nativecrashreport:3.7.700'
- def leakcanaryVersion = '1.6.3'
- debugImplementation "com.squareup.leakcanary:leakcanary-android:$leakcanaryVersion"
- releaseImplementation "com.squareup.leakcanary:leakcanary-android-no-op:$leakcanaryVersion"
- //zxing 二维码相关
- // implementation 'com.google.zxing:core:3.3.0'
- implementation 'com.google.zxing:android-core:3.3.0'
- implementation 'com.blankj:utilcode:1.29.0'
- }
- static String getTime() {
- return new Date().format("yyyyMMddHHmmss")
- }
|