fixed empty classes.jar issue

This commit is contained in:
strawmanbobi
2025-11-27 15:54:35 +08:00
parent bfc5851f28
commit 3ec6f11631
2 changed files with 14 additions and 4 deletions

View File

@@ -77,14 +77,14 @@ android {
minSdkVersion = 26 minSdkVersion = 26
targetSdkVersion = 36 targetSdkVersion = 36
versionCode = 7 versionCode = 7
versionName = '1.5.0' versionName = '1.5.1'
signingConfig = signingConfigs.irext_key signingConfig = signingConfigs.irext_key
} }
buildTypes { buildTypes {
release { release {
minifyEnabled true minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
versionNameSuffix '1.5.0' versionNameSuffix '1.5.1'
} }
debug { debug {
debuggable true debuggable true
@@ -97,8 +97,6 @@ android {
publishing { publishing {
singleVariant('release') { singleVariant('release') {
withSourcesJar()
withJavadocJar()
} }
} }
} }
@@ -113,6 +111,9 @@ afterEvaluate {
from components.release from components.release
artifact androidSourcesJar
artifact androidJavadocsJar
pom { pom {
name = 'irext-remote-index-android' name = 'irext-remote-index-android'
description = 'Android Indexing API for IRext remote controller' description = 'Android Indexing API for IRext remote controller'

View File

@@ -23,3 +23,12 @@
# If you keep the line number information, uncomment this to # If you keep the line number information, uncomment this to
# hide the original source file name. # hide the original source file name.
#-renamesourcefileattribute SourceFile #-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 <fields>;
}