diff --git a/manifest.gradle b/manifest.gradle index 2d8031e1..dc4f041b 100644 --- a/manifest.gradle +++ b/manifest.gradle @@ -9,8 +9,8 @@ ext { library_licenses = ["Apache-2.0"] library_licenses_url = 'https://www.apache.org/licenses/LICENSE-2.0.txt' library_project_group = 'net.gotev' - library_version = '4.9.0' - version_code = 49 + library_version = '4.9.1' + version_code = 50 min_sdk = 21 target_sdk = 34 demo_app_id = 'net.gotev.uploadservicedemo' diff --git a/uploadservice-ftp/build.gradle b/uploadservice-ftp/build.gradle index de824f83..5c52225d 100644 --- a/uploadservice-ftp/build.gradle +++ b/uploadservice-ftp/build.gradle @@ -29,6 +29,7 @@ android { versionCode version_code versionName library_version testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" + consumerProguardFiles 'proguard-rules.pro' } buildTypes { diff --git a/uploadservice-ftp/proguard-rules.pro b/uploadservice-ftp/proguard-rules.pro index 4d9879af..567f5a4e 100644 --- a/uploadservice-ftp/proguard-rules.pro +++ b/uploadservice-ftp/proguard-rules.pro @@ -1,17 +1 @@ -# Add project specific ProGuard rules here. -# By default, the flags in this file are appended to flags specified -# in /Users/alex/workspace/sdk/tools/proguard/proguard-android.txt -# You can edit the include path and order by changing the proguardFiles -# directive in build.gradle. -# -# For more details, see -# http://developer.android.com/guide/developing/tools/proguard.html - -# Add any project specific keep options here: - -# If your project uses WebView with JS, uncomment the following -# and specify the fully qualified class name to the JavaScript interface -# class: -#-keepclassmembers class fqcn.of.javascript.interface.for.webview { -# public *; -#} +-keep class net.gotev.uploadservice.ftp.** { *; } diff --git a/uploadservice-okhttp/build.gradle b/uploadservice-okhttp/build.gradle index e92bab6b..ddef149f 100644 --- a/uploadservice-okhttp/build.gradle +++ b/uploadservice-okhttp/build.gradle @@ -29,6 +29,7 @@ android { versionCode version_code versionName library_version testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" + consumerProguardFiles 'proguard-rules.pro' } buildTypes { diff --git a/uploadservice-okhttp/proguard-rules.pro b/uploadservice-okhttp/proguard-rules.pro index 4d9879af..8546c622 100644 --- a/uploadservice-okhttp/proguard-rules.pro +++ b/uploadservice-okhttp/proguard-rules.pro @@ -1,17 +1 @@ -# Add project specific ProGuard rules here. -# By default, the flags in this file are appended to flags specified -# in /Users/alex/workspace/sdk/tools/proguard/proguard-android.txt -# You can edit the include path and order by changing the proguardFiles -# directive in build.gradle. -# -# For more details, see -# http://developer.android.com/guide/developing/tools/proguard.html - -# Add any project specific keep options here: - -# If your project uses WebView with JS, uncomment the following -# and specify the fully qualified class name to the JavaScript interface -# class: -#-keepclassmembers class fqcn.of.javascript.interface.for.webview { -# public *; -#} +-keep class net.gotev.uploadservice.okhttp.** { *; } diff --git a/uploadservice/build.gradle b/uploadservice/build.gradle index e23a3962..996750b3 100644 --- a/uploadservice/build.gradle +++ b/uploadservice/build.gradle @@ -36,6 +36,7 @@ android { buildConfigField 'String', 'VERSION_NAME', "\"$library_version\"" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" + consumerProguardFiles 'proguard-rules.pro' } buildTypes { diff --git a/uploadservice/proguard-rules.pro b/uploadservice/proguard-rules.pro index 4d9879af..ffddb80e 100644 --- a/uploadservice/proguard-rules.pro +++ b/uploadservice/proguard-rules.pro @@ -1,17 +1 @@ -# Add project specific ProGuard rules here. -# By default, the flags in this file are appended to flags specified -# in /Users/alex/workspace/sdk/tools/proguard/proguard-android.txt -# You can edit the include path and order by changing the proguardFiles -# directive in build.gradle. -# -# For more details, see -# http://developer.android.com/guide/developing/tools/proguard.html - -# Add any project specific keep options here: - -# If your project uses WebView with JS, uncomment the following -# and specify the fully qualified class name to the JavaScript interface -# class: -#-keepclassmembers class fqcn.of.javascript.interface.for.webview { -# public *; -#} +-keep class net.gotev.uploadservice.** { *; }