Skip to content
This repository has been archived by the owner. It is now read-only.

Commit

Permalink
Update libs, fix ProGuard release problem
Browse files Browse the repository at this point in the history
  • Loading branch information
a.ignatov committed Jul 2, 2021
1 parent 14660d5 commit a3cf007
Show file tree
Hide file tree
Showing 5 changed files with 64 additions and 15 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ allprojects {

```
dependencies {
implementation 'com.github.cloudpayments:CloudTips-SDK-Android:1.1.0'
implementation 'com.github.cloudpayments:CloudTips-SDK-Android:1.1.1'
}
```

Expand Down
18 changes: 14 additions & 4 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,20 @@ android {
}

buildTypes {
debug {
debuggable true
minifyEnabled true
shrinkResources true
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
release {
minifyEnabled false
debuggable false
minifyEnabled true
shrinkResources true
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}

compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
Expand All @@ -41,16 +50,17 @@ android {
dependencies {

implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
implementation 'androidx.core:core-ktx:1.3.2'
implementation 'androidx.appcompat:appcompat:1.2.0'
implementation 'androidx.core:core-ktx:1.6.0'
implementation 'androidx.appcompat:appcompat:1.3.0'
implementation 'com.google.android.material:material:1.3.0'
implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
implementation 'androidx.multidex:multidex:2.0.1'
implementation 'com.google.android.gms:play-services-wallet:18.1.2'
implementation 'com.google.android.gms:play-services-wallet:18.1.3'

// rxkotlin
implementation 'io.reactivex.rxjava2:rxkotlin:2.1.0'
implementation 'io.reactivex.rxjava2:rxandroid:2.1.1'

implementation project(path: ':sdk')
//implementation 'com.github.cloudpayments:CloudTips-SDK-Android:1.1.1'
}
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext.kotlin_version = "1.4.10"
ext.kotlin_version = "1.5.20"
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:4.2.1'
classpath 'com.android.tools.build:gradle:4.2.2'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"

// NOTE: Do not place your application dependencies here; they belong
Expand Down
23 changes: 16 additions & 7 deletions sdk/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,25 @@ android {
minSdkVersion 19
targetSdkVersion 29
versionCode 2
versionName "1.0.3"
versionName "1.1.1"
multiDexEnabled true
}

buildTypes {
debug {
debuggable true
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
consumerProguardFiles 'proguard-rules.pro'
}
release {
minifyEnabled false
debuggable false
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
consumerProguardFiles 'proguard-rules.pro'
}
}

compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
Expand All @@ -38,13 +47,13 @@ android {
dependencies {

implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
implementation 'androidx.core:core-ktx:1.3.2'
implementation 'androidx.appcompat:appcompat:1.2.0'
implementation 'androidx.core:core-ktx:1.6.0'
implementation 'androidx.appcompat:appcompat:1.3.0'
implementation 'com.google.android.material:material:1.3.0'
implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
implementation 'androidx.multidex:multidex:2.0.1'
implementation 'com.google.android.gms:play-services-wallet:18.1.2'
implementation 'com.google.android.gms:play-services-safetynet:17.0.0'
implementation 'com.google.android.gms:play-services-wallet:18.1.3'
implementation 'com.google.android.gms:play-services-safetynet:17.0.1'

// rxkotlin
implementation 'io.reactivex.rxjava2:rxkotlin:2.1.0'
Expand All @@ -65,5 +74,5 @@ dependencies {

implementation 'ru.tinkoff.decoro:decoro:1.5.0'

implementation 'com.github.cloudpayments:CloudPayments-SDK-Android:1.0.0-alpha03'
implementation 'com.github.cloudpayments:CloudPayments-SDK-Android:1.0.2'
}
32 changes: 31 additions & 1 deletion sdk/proguard-rules.pro
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,34 @@

# If you keep the line number information, uncomment this to
# hide the original source file name.
#-renamesourcefileattribute SourceFile
#-renamesourcefileattribute SourceFile

# com.squareup.retrofit2
-dontwarn javax.annotation.**
-dontwarn retrofit2.**
-keep, includedescriptorclasses class retrofit2.** { *; }
-keepattributes Signature
-keepattributes Exceptions
-keepclasseswithmembers class * {
@retrofit2.http.* <methods>;
}

# com.squareup.okhttp3
-keepattributes Signature
-keepattributes *Annotation*
-keep, includedescriptorclasses class okhttp3.** { *; }
-keep interface okhttp3.** { *; }
-dontwarn okhttp3.**
-keep class okhttp3.internal.platform.** { *; }
-dontwarn okhttp3.internal.platform.**
-dontnote okhttp3.internal.platform.**

# com.google.gson
-keep class com.google.gson.internal.** { *; }
-dontwarn com.google.gson.internal.**
-dontnote com.google.gson.internal.**

# ru.cloudpayments.sdk
-keep class ru.cloudtips.sdk.** { *; }
-dontwarn ru.cloudtips.sdk.**
-dontnote ru.cloudtips.sdk.**

0 comments on commit a3cf007

Please sign in to comment.