From caa35eaa7d9cae55a57155d9508d1285999f1bba Mon Sep 17 00:00:00 2001 From: mac <user@users-MacBook-Pro.local> Date: 星期四, 30 十一月 2023 22:16:42 +0800 Subject: [PATCH] 2023年11月30日22:16:31 --- app/build.gradle | 52 +++++++++++++++++++++++++++++++++++++++++++++++++--- 1 files changed, 49 insertions(+), 3 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 3819430..12d6ca3 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -8,14 +8,28 @@ ] android { - compileSdk 32 + signingConfigs { + debug { + storeFile file('../keystore/Untitled') + keyAlias 'photovotaic' + storePassword '85521566' + keyPassword '85521566' + } + release { + storeFile file('../keystore/Untitled') + keyAlias 'photovotaic' + storePassword '85521566' + keyPassword '85521566' + } + } + compileSdk 30 defaultConfig { applicationId "com.hdl.photovoltaic" minSdk 23 - targetSdk 32 + targetSdk 30 versionCode 1 - versionName "1.0" + versionName "1.1.1" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" multiDexEnabled true @@ -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 { @@ -67,14 +97,24 @@ 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******** @@ -88,6 +128,12 @@ implementation 'com.android.support:multidex:1.0.3' implementation 'androidx.webkit:webkit:1.3.0'//3.6.15鐗堟湰涔嬪悗 蹇呴』闆嗘垚锛岀敤鏉ユ敮鎸佹殫榛戞ā寮� //********UniSDK蹇呴』娣诲姞鐨勪緷璧� end******** + //NanoHTTPD鎼缓鏈嶅姟鍣� + implementation 'org.nanohttpd:nanohttpd:2.3.1' + //Apache FileUtils 绗笁鏂瑰伐鍏风被 + implementation 'commons-io:commons-io:2.11.0' + //鏉冮檺璇锋眰妗嗘灦 + implementation 'com.github.getActivity:XXPermissions:12.8' } \ No newline at end of file -- Gitblit v1.8.0