Przeglądaj źródła

011 jna 添加调试

zhangshenjie 1 dzień temu
rodzic
commit
b88ef8e36a

+ 7 - 0
app/build.gradle

@@ -699,6 +699,7 @@ android {
 
     buildTypes {
         release {
+            multiDexEnabled true
             minifyEnabled false
             debuggable true
             productFlavors.brand010D.signingConfig signingConfigs.release
@@ -720,6 +721,7 @@ android {
         }
 
         debug {
+            multiDexEnabled true
             debuggable true
             productFlavors.brand032DTuya.signingConfig signingConfigs.debug
 //            buildConfigField("String", "UpdatePlatform", "\"054A\"")
@@ -988,6 +990,11 @@ android {
     viewBinding {
         enabled = true
     }
+//    packaging {
+//        resources {
+//            excludes += '/META-INF/{AL2.0,LGPL2.1}'
+//        }
+//    }
 }
 
 dependencies {

+ 1 - 0
app/proguard-rules.pro

@@ -22,3 +22,4 @@
 -keepattributes Signature
 -keep class com.tuya.smartai.iot_sdk.** {*;}
 -keep class com.tencent.mars.** {*;}
+-keep class com.sun.jna.** { *; }

+ 2 - 1
gradle.properties

@@ -22,4 +22,5 @@ kotlin.code.style=official
 # thereby reducing the size of the R class for that library
 android.nonTransitiveRClass=true
 android.enableJetifier=true
-android.jetifier.blacklist=bcprov-jdk15on-1.70.jar
+android.jetifier.blacklist=bcprov-jdk15on-1.70.jar
+#android.enableR8=false

+ 1 - 0
libThirdPart/build.gradle

@@ -48,6 +48,7 @@ dependencies {
     api 'androidx.room:room-runtime:2.4.3'
     implementation files('libs/commons-lang3-3.12.0.jar')
     api files('libs\\jna-5.15.0.jar')
+    api files('libs\\jna-platform-5.15.0.jar')
     kapt  "androidx.room:room-compiler:2.4.3"
 
     // ------------------------------优化策略-------------------------------------

BIN
libThirdPart/libs/jna-platform-5.15.0.jar