wbspool пре 1 година
родитељ
комит
9d2ae33da2
2 измењених фајлова са 18 додато и 18 уклоњено
  1. 3 3
      app/build.gradle
  2. 15 15
      libBase/src/main/java/com/develop/base/ext/GlobaExt.kt

+ 3 - 3
app/build.gradle

@@ -12,7 +12,7 @@ ext{
 
     versionCode=Integer.parseInt(new SimpleDateFormat("yyMMddHH").format(new Date()) + 1)
 //    versionCode=230617180
-    brandCode="011A"
+    brandCode="010D"
     model="1039"
 
 }
@@ -122,8 +122,8 @@ android {
         brand010D {
             dimension "platform"
             applicationId "com.develop.foodcooking"
-            buildConfigField("String", "UpdatePlatform", "\"normal\"")
-            resValue("string", "app_theme", "@style/SplashTheme")
+            buildConfigField("String", "UpdatePlatform", "\"night\"")
+            resValue("string", "app_theme", "@style/Splash010DTheme")
         }
 
         brand030A {

+ 15 - 15
libBase/src/main/java/com/develop/base/ext/GlobaExt.kt

@@ -191,21 +191,21 @@ fun getSN(): String {
 
 
 
-//    return "017A10390020123010190001"
-
-    //通过反射获取sn号
-    try {
-        val c = Class.forName("android.os.SystemProperties")
-        val get = c.getMethod("get", String::class.java)
-        serial = get.invoke(c, "ro.serialno") as String
-        if (serial != "" && serial != "unknown") return serial
-
-        //9.0及以上无法获取到sn,此方法为补充,能够获取到多数高版本手机 sn
-        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) serial = Build.getSerial()
-    } catch (e: java.lang.Exception) {
-        serial = "unknown"
-    }
-    return serial
+    return "010D10390020123010190001"
+
+//    //通过反射获取sn号
+//    try {
+//        val c = Class.forName("android.os.SystemProperties")
+//        val get = c.getMethod("get", String::class.java)
+//        serial = get.invoke(c, "ro.serialno") as String
+//        if (serial != "" && serial != "unknown") return serial
+//
+//        //9.0及以上无法获取到sn,此方法为补充,能够获取到多数高版本手机 sn
+//        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) serial = Build.getSerial()
+//    } catch (e: java.lang.Exception) {
+//        serial = "unknown"
+//    }
+//    return serial
 }
 
 fun ImageView.load(data: Any?) {