From 3ec6f116310cd1f1cf51ff0a1c86a303dd79d610 Mon Sep 17 00:00:00 2001 From: strawmanbobi Date: Thu, 27 Nov 2025 15:54:35 +0800 Subject: [PATCH] fixed empty classes.jar issue --- android-sdk/build.gradle | 9 +++++---- android-sdk/proguard-rules.pro | 9 +++++++++ 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/android-sdk/build.gradle b/android-sdk/build.gradle index 452426e..734fd7d 100644 --- a/android-sdk/build.gradle +++ b/android-sdk/build.gradle @@ -77,14 +77,14 @@ android { minSdkVersion = 26 targetSdkVersion = 36 versionCode = 7 - versionName = '1.5.0' + versionName = '1.5.1' signingConfig = signingConfigs.irext_key } buildTypes { release { minifyEnabled true proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' - versionNameSuffix '1.5.0' + versionNameSuffix '1.5.1' } debug { debuggable true @@ -97,8 +97,6 @@ android { publishing { singleVariant('release') { - withSourcesJar() - withJavadocJar() } } } @@ -113,6 +111,9 @@ afterEvaluate { from components.release + artifact androidSourcesJar + artifact androidJavadocsJar + pom { name = 'irext-remote-index-android' description = 'Android Indexing API for IRext remote controller' diff --git a/android-sdk/proguard-rules.pro b/android-sdk/proguard-rules.pro index e4fe55e..8371904 100644 --- a/android-sdk/proguard-rules.pro +++ b/android-sdk/proguard-rules.pro @@ -23,3 +23,12 @@ # If you keep the line number information, uncomment this to # hide the original source file name. #-renamesourcefileattribute SourceFile +-keep public class net.irext.webapi.** { + public protected *; +} + +# If your library uses reflection (e.g., for JSON deserialization with Gson), +# you might need to add specific rules for those models: +-keep class * implements java.io.Serializable { + public ; +} \ No newline at end of file