diff --git a/common-60.keystore b/common-60.keystore new file mode 100755 index 0000000..99ee674 Binary files /dev/null and b/common-60.keystore differ diff --git a/library/build.gradle b/library/build.gradle index a4deb53..5fd09e0 100755 --- a/library/build.gradle +++ b/library/build.gradle @@ -4,9 +4,11 @@ apply plugin: 'kotlin-android' android { namespace 'cc.shinichi.library' compileSdkVersion 34 + buildToolsVersion '34.0.0' defaultConfig { minSdkVersion 24 targetSdkVersion 34 + multiDexEnabled true } buildTypes { release { diff --git a/library/proguard-rules.pro b/library/proguard-rules.pro index f1b4245..27b6fca 100755 --- a/library/proguard-rules.pro +++ b/library/proguard-rules.pro @@ -19,3 +19,7 @@ # If you keep the line number information, uncomment this to # hide the original source file name. #-renamesourcefileattribute SourceFile + +# Please add these rules to your existing keep rules in order to suppress warnings. +# This is generated automatically by the Android Gradle plugin. +-dontwarn java.lang.invoke.StringConcatFactory \ No newline at end of file diff --git a/sample/build.gradle b/sample/build.gradle index 8755516..fecc992 100755 --- a/sample/build.gradle +++ b/sample/build.gradle @@ -2,20 +2,36 @@ apply plugin: 'com.android.application' apply plugin: 'kotlin-android' android { + signingConfigs { + debug { + storeFile file('../common-60.keystore') + storePassword '000000' + keyAlias '000000' + keyPassword '000000' + } + release { + storeFile file('../common-60.keystore') + storePassword '000000' + keyAlias '000000' + keyPassword '000000' + } + } namespace 'cc.shinichi.bigimageviewpager' compileSdkVersion 34 + buildToolsVersion '34.0.0' defaultConfig { applicationId "cc.shinichi.bigimageviewpager" minSdkVersion 24 targetSdkVersion 34 versionCode 800 versionName "androidx-8.0.0" + signingConfig signingConfigs.debug + multiDexEnabled true } buildTypes { release { - minifyEnabled true + minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' - signingConfig signingConfigs.debug } } compileOptions { diff --git a/sample/proguard-rules.pro b/sample/proguard-rules.pro index 80bfe03..d75a7f8 100755 --- a/sample/proguard-rules.pro +++ b/sample/proguard-rules.pro @@ -22,4 +22,9 @@ # This is generated automatically by the Android Gradle plugin. -dontwarn org.conscrypt.Conscrypt --dontwarn org.conscrypt.OpenSSLProvider \ No newline at end of file +-dontwarn org.conscrypt.OpenSSLProvider + +# 配置 +-keep class cc.shinichi.library.** { *; } +-keep interface cc.shinichi.library.** { *; } +-dontwarn cc.shinichi.library.** \ No newline at end of file