Skip to content

Commit 56dfdcc

Browse files
committed
feat: added default proguard configuration
1 parent 3f4af60 commit 56dfdcc

File tree

7 files changed

+8
-53
lines changed

7 files changed

+8
-53
lines changed

manifest.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ ext {
99
library_licenses = ["Apache-2.0"]
1010
library_licenses_url = 'https://www.apache.org/licenses/LICENSE-2.0.txt'
1111
library_project_group = 'net.gotev'
12-
library_version = '4.9.0'
13-
version_code = 49
12+
library_version = '4.9.1'
13+
version_code = 50
1414
min_sdk = 21
1515
target_sdk = 34
1616
demo_app_id = 'net.gotev.uploadservicedemo'

uploadservice-ftp/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ android {
2929
versionCode version_code
3030
versionName library_version
3131
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
32+
consumerProguardFiles 'proguard-rules.pro'
3233
}
3334

3435
buildTypes {

uploadservice-ftp/proguard-rules.pro

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1 @@
1-
# Add project specific ProGuard rules here.
2-
# By default, the flags in this file are appended to flags specified
3-
# in /Users/alex/workspace/sdk/tools/proguard/proguard-android.txt
4-
# You can edit the include path and order by changing the proguardFiles
5-
# directive in build.gradle.
6-
#
7-
# For more details, see
8-
# http://developer.android.com/guide/developing/tools/proguard.html
9-
10-
# Add any project specific keep options here:
11-
12-
# If your project uses WebView with JS, uncomment the following
13-
# and specify the fully qualified class name to the JavaScript interface
14-
# class:
15-
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
16-
# public *;
17-
#}
1+
-keep class net.gotev.uploadservice.ftp.** { *; }

uploadservice-okhttp/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ android {
2929
versionCode version_code
3030
versionName library_version
3131
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
32+
consumerProguardFiles 'proguard-rules.pro'
3233
}
3334

3435
buildTypes {
Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1 @@
1-
# Add project specific ProGuard rules here.
2-
# By default, the flags in this file are appended to flags specified
3-
# in /Users/alex/workspace/sdk/tools/proguard/proguard-android.txt
4-
# You can edit the include path and order by changing the proguardFiles
5-
# directive in build.gradle.
6-
#
7-
# For more details, see
8-
# http://developer.android.com/guide/developing/tools/proguard.html
9-
10-
# Add any project specific keep options here:
11-
12-
# If your project uses WebView with JS, uncomment the following
13-
# and specify the fully qualified class name to the JavaScript interface
14-
# class:
15-
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
16-
# public *;
17-
#}
1+
-keep class net.gotev.uploadservice.okhttp.** { *; }

uploadservice/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ android {
3636
buildConfigField 'String', 'VERSION_NAME', "\"$library_version\""
3737

3838
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
39+
consumerProguardFiles 'proguard-rules.pro'
3940
}
4041

4142
buildTypes {

uploadservice/proguard-rules.pro

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1 @@
1-
# Add project specific ProGuard rules here.
2-
# By default, the flags in this file are appended to flags specified
3-
# in /Users/alex/workspace/sdk/tools/proguard/proguard-android.txt
4-
# You can edit the include path and order by changing the proguardFiles
5-
# directive in build.gradle.
6-
#
7-
# For more details, see
8-
# http://developer.android.com/guide/developing/tools/proguard.html
9-
10-
# Add any project specific keep options here:
11-
12-
# If your project uses WebView with JS, uncomment the following
13-
# and specify the fully qualified class name to the JavaScript interface
14-
# class:
15-
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
16-
# public *;
17-
#}
1+
-keep class net.gotev.uploadservice.** { *; }

0 commit comments

Comments
 (0)