Skip to content

Commit

Permalink
feat: added default proguard configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
gotev committed Nov 9, 2023
1 parent 3f4af60 commit 56dfdcc
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 53 deletions.
4 changes: 2 additions & 2 deletions manifest.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
1 change: 1 addition & 0 deletions uploadservice-ftp/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ android {
versionCode version_code
versionName library_version
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles 'proguard-rules.pro'
}

buildTypes {
Expand Down
18 changes: 1 addition & 17 deletions uploadservice-ftp/proguard-rules.pro
Original file line number Diff line number Diff line change
@@ -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.** { *; }
1 change: 1 addition & 0 deletions uploadservice-okhttp/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ android {
versionCode version_code
versionName library_version
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles 'proguard-rules.pro'
}

buildTypes {
Expand Down
18 changes: 1 addition & 17 deletions uploadservice-okhttp/proguard-rules.pro
Original file line number Diff line number Diff line change
@@ -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.** { *; }
1 change: 1 addition & 0 deletions uploadservice/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ android {
buildConfigField 'String', 'VERSION_NAME', "\"$library_version\""

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles 'proguard-rules.pro'
}

buildTypes {
Expand Down
18 changes: 1 addition & 17 deletions uploadservice/proguard-rules.pro
Original file line number Diff line number Diff line change
@@ -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.** { *; }

0 comments on commit 56dfdcc

Please sign in to comment.