From 54a8c79222bba0644b02fe1dbc5d75e26ea50b5d Mon Sep 17 00:00:00 2001 From: mac <user@users-MacBook-Pro.local> Date: 星期二, 14 十一月 2023 18:17:58 +0800 Subject: [PATCH] 2023年11月14日18:17:48 --- app/build.gradle | 48 ++++++++++++++++++++++++++++++++++++++++++++++-- 1 files changed, 46 insertions(+), 2 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index a2a4d12..ed09318 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -8,12 +8,26 @@ ] android { - compileSdk 32 + signingConfigs { + debug { + storeFile file('../keystore/Untitled') + keyAlias 'hdlphotovotaic' + storePassword '85521566' + keyPassword '85521566' + } + release { + storeFile file('../keystore/Untitled') + keyAlias 'photovoltaic' + storePassword '85521566' + keyPassword '85521566' + } + } + compileSdk 30 defaultConfig { applicationId "com.hdl.photovoltaic" minSdk 23 - targetSdk 32 + targetSdk 30 versionCode 1 versionName "1.0" @@ -36,11 +50,23 @@ dirs 'libs' } } + /** + * 鎵撳寘鑷姩鍛藉悕 + */ + android.applicationVariants.configureEach { variant -> + variant.outputs.configureEach { + outputFileName = "photovoltaic_${name}_v${versionName}_${generateTime()}.apk" + } + } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' + signingConfig signingConfigs.release + } + debug { + signingConfig signingConfigs.debug } } @@ -51,6 +77,10 @@ sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 } +} +//鏋勫缓鏃堕棿 +static def generateTime() { + return new Date().format("yyyyMMddHHmm") } dependencies { @@ -63,15 +93,29 @@ implementation 'androidx.navigation:navigation-fragment:2.3.5' implementation 'androidx.navigation:navigation-ui:2.3.5' implementation 'androidx.legacy:legacy-support-v4:1.0.0' + implementation project(path: ':third-zxing') + //Link鏈湴搴� + implementation project(path: ':HDLLinkLocalSdk') +// implementation project(path: ':HDLLinkPMSdk') + testImplementation 'junit:junit:4.13.2' androidTestImplementation 'androidx.test.ext:junit:1.1.3' androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0' // implementation 'org.greenrobot:eventbus:3.0.0' implementation 'com.hdl.hdlhttp:hxhttp:1.0.4' + //okhttp 鎵撳嵃 + implementation 'com.squareup.okhttp3:logging-interceptor:4.9.1' //Eventbus浜嬩欢鍙戝竷涓庢帴鏀� implementation 'org.greenrobot:eventbus:3.3.1' + //灞忓箷閫傞厤 + implementation 'com.github.JessYanCoding:AndroidAutoSize:v1.2.1' + + //鍥剧墖鍔犺浇搴� + implementation 'com.github.bumptech.glide:glide:4.12.0' + annotationProcessor 'com.github.bumptech.glide:compiler:4.12.0' + //********UniSDK蹇呴』娣诲姞鐨勪緷璧� start******** -- Gitblit v1.8.0