Skip to content

Commit

Permalink
Fixes databinding dependency on json that was breaking proguard
Browse files Browse the repository at this point in the history
Change-Id: I4bd03e38bc49098356edbdf296bed627a470a284
  • Loading branch information
JoseAlcerreca committed Jul 19, 2018
1 parent efac4b3 commit 024a685
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 9 deletions.
2 changes: 0 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -63,5 +63,3 @@ map_floorplan_nw=41.185897762727876f, 99.26048714480324f
map_floorplan_ne=41.18938475156247f, 99.26048714480324f
# South-East point.
map_floorplan_se=41.18938475156247f, 99.26486649009387f

#android.databinding.enableV2=true
4 changes: 4 additions & 0 deletions mobile/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,10 @@ dependencies {
debugImplementation "com.squareup.leakcanary:leakcanary-android:$leakCanaryVersion"
stagingImplementation "com.squareup.leakcanary:leakcanary-android-no-op:$leakCanaryVersion"
releaseImplementation "com.squareup.leakcanary:leakcanary-android-no-op:$leakCanaryVersion"

// Solve conflicts with gson. DataBinding is using an old version.
implementation "com.google.code.gson:gson:$gsonVersion"

}

apply plugin: 'com.google.gms.google-services'
2 changes: 1 addition & 1 deletion mobile/proguard-rules.pro
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@
-keepattributes SourceFile,LineNumberTable
-keep public class * extends java.lang.Exception
-keep class com.crashlytics.** { *; }
-dontwarn com.crashlytics.**
-dontwarn com.crashlytics.**
8 changes: 2 additions & 6 deletions shared/consumer-proguard-rules.pro
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,8 @@
-dontwarn retrofit2.Call

# Databinding CardViewBindingAdapter
-dontwarn android.support.v7.widget.CardView

# For 'wear' module
-dontwarn android.support.v4.**
-dontwarn org.threeten.bp.**
-dontwarn androidx.cardview.widget.CardView

-keep class com.google.samples.apps.iosched.model.** {
*;
}
}
7 changes: 7 additions & 0 deletions tv/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,13 @@ dependencies {
// Local unit tests
testImplementation "junit:junit:$rootProject.junitVersion"
testImplementation "org.hamcrest:hamcrest-library:$rootProject.hamcrestVersion"

// Solve conflicts with gson. DataBinding is using an old version.
implementation "com.google.code.gson:gson:$rootProject.gsonVersion"

// Solve conflicts with okhttp. Firestore is using an old version.
implementation "com.squareup.okhttp3:okhttp:$rootProject.okhttpVersion"

}

apply plugin: 'com.google.gms.google-services'

0 comments on commit 024a685

Please sign in to comment.