From 0fd8faf8061369296b4a92b081d83c940dfc233e Mon Sep 17 00:00:00 2001
From: wjc <1243177876@qq.com>
Date: 星期二, 06 一月 2026 18:24:36 +0800
Subject: [PATCH] 2026年01月06日18:24:23 暂隐藏前台服务

---
 app/build.gradle |  188 +++++++++++++++++++++++++++++++++++++++++++++--
 1 files changed, 180 insertions(+), 8 deletions(-)

diff --git a/app/build.gradle b/app/build.gradle
index f2ec162..3b4d0f1 100644
--- a/app/build.gradle
+++ b/app/build.gradle
@@ -1,37 +1,149 @@
 plugins {
     id 'com.android.application'
+    // 娣诲姞濡備笅閰嶇疆(鍗庝负鏋佸厜鎺ㄩ��)
+    id 'com.huawei.agconnect'
 }
+apply plugin: 'com.google.gms.google-services' // 鏀惧湪鏂囦欢搴曢儴
+//蹇呴』閰嶇疆uni
+def mfph = [
+        //瀹夸富鍖呭悕
+        "apk.applicationId": "com.hdl.photovoltaic",
+]
 
 android {
-    compileSdk 32
-
+    namespace 'com.hdl.photovoltaic'
+    signingConfigs {
+        debug {
+            storeFile file('../keystore/Untitled')
+            keyAlias 'hdlphotovotaic'
+            storePassword '85521566'
+            keyPassword '85521566'
+        }
+        release {
+            storeFile file('../keystore/Untitled')
+            keyAlias 'hdlphotovotaic'
+            storePassword '85521566'
+            keyPassword '85521566'
+        }
+    }
+    compileSdk 35
     defaultConfig {
         applicationId "com.hdl.photovoltaic"
         minSdk 23
-        targetSdk 32
-        versionCode 1
-        versionName "1.0"
-
+        targetSdk 35
+        versionCode 30
+        versionName "2.0.0"//鐗堟湰瑙勫垯1.3鏄骇鍝佸姛鑳借凯浠g敤鐨�,鏈�鍚庝竴浣�0鏄垜浠慨澶峛ug鐢ㄧ殑
         testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
+        multiDexEnabled true
+        manifestPlaceholders = mfph
+        ndk {
+            abiFilters 'armeabi-v7a', "arm64-v8a" //涓嶆敮鎸乤rmeabi
+        }
+
+        manifestPlaceholders = [
+                JPUSH_PKGNAME: applicationId,
+                //JPush 涓婃敞鍐岀殑鍖呭悕瀵瑰簲鐨� Appkey.
+                JPUSH_APPKEY : "3baee103750e192ba68f3878",
+                //鏆傛椂濉啓榛樿鍊煎嵆鍙�.
+                JPUSH_CHANNEL: "developer-default",
+
+//                //鑻ヤ笉闆嗘垚鍘傚晢閫氶亾锛屽彲鐩存帴璺宠繃浠ヤ笅閰嶇疆
+//                MEIZU_APPKEY : "MZ-榄呮棌鐨凙PPKEY",
+//                MEIZU_APPID : "MZ-榄呮棌鐨凙PPID",
+//                XIAOMI_APPID : "MI-灏忕背鐨凙PPID",
+//                XIAOMI_APPKEY : "MI-灏忕背鐨凙PPKEY",
+//                OPPO_APPKEY : "OP-oppo鐨凙PPKEY",
+//                OPPO_APPID : "OP-oppo鐨凙PPID",
+//                OPPO_APPSECRET : "OP-oppo鐨凙PPSECRET",
+//                VIVO_APPKEY : "vivo鐨凙PPKEY",
+//                VIVO_APPID : "vivo鐨凙PPID",
+//                HONOR_APPID : "Honor鐨凙PP ID",
+//                MEIZU_APPKEY : "MZ-榄呮棌鐨凙PPKEY",
+//                MEIZU_APPID : "110098313",
+
+        ]
+
+    }
+//    // 淇濊瘉鍏朵粬鐨刲ib娌℃湁琚玴reDex
+//    dexOptions {
+//        preDexLibraries = false
+//    }
+    repositories {
+        flatDir {
+            dirs 'libs'
+        }
+    }
+    //姝ゅ閰嶇疆蹇呴』娣诲姞 鍚﹀垯鏃犳硶姝g‘杩愯uni
+    aaptOptions {
+        additionalParameters '--auto-add-overlay'
+        //noCompress 'foo', 'bar'
+        ignoreAssetsPattern "!.svn:!.git:.*:!CVS:!thumbs.db:!picasa.ini:!*.scc:*~"
+    }
+//    lintOptions {
+//        checkReleaseBuilds false
+//        // Or, if you prefer, you can continue to check for errors in release builds,
+//        // but continue the build even when errors are found:
+//        abortOnError false
+//    }
+
+    packagingOptions {
+        jniLibs {
+            useLegacyPackaging true
+        }
+    }
+    /**
+     * 鎵撳寘鑷姩鍛藉悕
+     */
+    android.applicationVariants.configureEach { variant ->
+        variant.outputs.configureEach {
+            outputFileName = "photovoltaic_v${versionName}_${generateTime()}_${getEnvironmentVersion(4)}.apk"
+        }
     }
 
     buildTypes {
         release {
-            minifyEnabled false
+            minifyEnabled false //寮�鍚贩娣�
             proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
+            signingConfig signingConfigs.release
+        }
+        debug {
+            signingConfig signingConfigs.debug
+
         }
     }
 
     buildFeatures {
         viewBinding true
+        aidl true
+        buildConfig = true
     }
     compileOptions {
         sourceCompatibility JavaVersion.VERSION_1_8
         targetCompatibility JavaVersion.VERSION_1_8
     }
 }
+//鏋勫缓鏃堕棿
+static def generateTime() {
+    return new Date().format("yyyyMMddHHmm")
+}
+
+//鐜鐗堟湰鍙凤細姝ょ増鏈彿鐢ㄤ簬鏍囨敞褰撳墠鐗堟湰鐨勮蒋浠跺浜庡摢涓紑鍙戦樁娈碉紝褰撹蒋浠惰繘鍏ュ埌鍙︿竴涓樁娈垫椂闇�瑕佷慨鏀规鐗堟湰鍙枫��
+static String getEnvironmentVersion(int environmentVersionValue) {
+    if (environmentVersionValue == 1) {
+        return "dev"//寮�鍙戦樁娈电増鏈��(涓�鑸笉鍚戝閮ㄥ彂甯冿紝bug浼氭瘮杈冨锛屽姛鑳戒篃涓嶅叏锛屼竴鑸彧鏈夊紑鍙戜汉鍛樹娇鐢ㄣ��)
+    } else if (environmentVersionValue == 2) {
+        return "test"//娴嬭瘯闃舵鐗堟湰銆�(杩欎釜闃舵鐗堟湰浼氶厤鍚堟祴璇曚汉鍛樹慨澶峛ug锛岀洿鍒版弧瓒冲彂甯冩潯浠躲��)
+    } else if (environmentVersionValue == 3) {
+        return "beta"//鍏祴闃舵鐗堟湰銆�(鍏紑娴嬭瘯鐗堟湰锛屼竴鑸槸鍐呮祴閫氳繃鐨勶紝涓昏浼氭湁"绮変笣鐢ㄦ埛"浣跨敤浣撻獙銆�)
+    } else if (environmentVersionValue == 4) {
+        return "release"
+//鍙戝竷闃舵鐗堟湰銆�(璇ョ増鏈剰鍛�"鏈�缁堢増鏈�"锛屽湪鍓嶉潰鐗堟湰鐨勪竴绯诲垪娴嬭瘯鐗堜箣鍚庯紝缁堝綊浼氭湁涓�涓寮忕増鏈紝鏄渶缁堜氦浠樼敤鎴蜂娇鐢ㄧ殑涓�涓増鏈�傝鐗堟湰鏈夋椂涔熺О涓烘爣鍑嗙増銆備竴鑸儏鍐典笅锛孯elease涓嶄細浠ュ崟璇嶅舰寮忓嚭鐜板湪杞欢灏侀潰涓娿��)
+    }
+}
 
 dependencies {
+
+    implementation fileTree(include: ['*.jar', '*.aar'], dir: 'libs')
 
     implementation 'androidx.appcompat:appcompat:1.3.0'
     implementation 'com.google.android.material:material:1.4.0'
@@ -39,11 +151,71 @@
     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: ':pickerview')
+    //鍥捐〃搴�
+    implementation project(path: ':aa_chart_core')
+    //鍥藉鍒楄〃鍜屾墜鏈哄尯鍙峰簱
+    implementation project(path: ':countrypicker')
+    //浜岀淮鐮佸簱
     implementation project(path: ':third-zxing')
+    //Link鏈湴搴擄紙鍦ㄧ嚎渚濊禆缃戠粶搴擄級
+    implementation 'com.hdl.android:pmsdk:1.0.22'
+//    implementation 'com.hdl.android:debugsdk:1.0.71'
+    implementation project(path: ':sdk')
+    implementation 'androidx.activity:activity:1.2.3'
+    implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.1.0'
+
     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 'org.greenrobot:eventbus:3.0.0'
+    implementation 'com.hdl.hdlhttp:hxhttp:1.0.4'//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'
+
+
+    //鍥剧墖鍔犺浇搴�
+    annotationProcessor 'com.github.bumptech.glide:compiler:4.9.0'
+
+    //娣诲姞StatusBarUtil鐨勪緷璧� 鐘舵�佹爮閫傞厤
+    implementation 'com.jaeger.statusbarutil:library:1.5.1'
+
+
+    //********UniSDK蹇呴』娣诲姞鐨勪緷璧� start********
+    implementation "androidx.recyclerview:recyclerview:1.0.0"
+    implementation 'com.alibaba:fastjson:1.2.66'//蹇呴』闆嗘垚锛宖astjson鍔熻兘闇�瑕�
+    implementation 'com.facebook.fresco:fresco:3.6.0'//蹇呴』闆嗘垚锛屽浘鐗囧姞杞介渶瑕�
+    implementation 'com.facebook.fresco:animated-gif:3.6.0'//蹇呴』闆嗘垚锛屽浘鐗囧姞杞介渶瑕�
+    implementation 'com.facebook.fresco:webpsupport:3.6.0'
+    implementation 'com.facebook.fresco:animated-webp:3.6.0'
+    implementation 'com.github.bumptech.glide:glide:5.0.5'//蹇呴』闆嗘垚锛屽浘鐗囧姞杞介渶瑕�
+    implementation 'com.android.support:multidex:1.0.3'
+    implementation 'androidx.webkit:webkit:1.6.1'//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'
+
+    //閫氱敤閫傞厤鍣�
+    implementation 'com.github.CymChad:BaseRecyclerViewAdapterHelper:3.0.6'
+
+    // //鍙嬬洘
+    // implementation 'com.umeng.umsdk:common:9.5.6'// 蹇呴��
+    // implementation 'com.umeng.umsdk:asms:1.6.3'// 蹇呴��
+    // implementation 'com.umeng.umsdk:apm:1.7.0' // 閿欒鍒嗘瀽
+    //寮曞叆FCM锛堝師鐢熻胺姝岋級
+    implementation 'com.google.firebase:firebase-messaging:23.2.1'
+    // 浣跨敤 ShortcutBadger 搴擄紝娓呴櫎瑙掓爣
+    implementation 'me.leolin:ShortcutBadger:1.1.22@aar'
 
 
 }
\ No newline at end of file

--
Gitblit v1.8.0