Browse Source

增加签名

root 7 months ago
parent
commit
635004ae39
2 changed files with 10 additions and 2 deletions
  1. BIN
      app/NanoHTTPDemo.jks
  2. 10 2
      app/build.gradle

BIN
app/NanoHTTPDemo.jks


+ 10 - 2
app/build.gradle

@@ -5,6 +5,14 @@ plugins {
 android {
     compileSdkVersion 33
 
+    signingConfigs {
+        release {
+            storeFile file('MyKey.jks')
+            storePassword 'HUKSoy0Z'
+            keyAlias 'key0'
+            keyPassword 'HUKSoy0Z'
+        }
+    }
     defaultConfig {
         applicationId "me.yoqi.android.nanohttpdemo"
         minSdkVersion 16
@@ -22,8 +30,8 @@ android {
         }
     }
     compileOptions {
-        sourceCompatibility JavaVersion.VERSION_1_8
-        targetCompatibility JavaVersion.VERSION_1_8
+        sourceCompatibility JavaVersion.VERSION_11
+        targetCompatibility JavaVersion.VERSION_11
     }
 }