Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

Commit

Permalink
Update proguard rules (#2993)
Browse files Browse the repository at this point in the history
Something has changed after the latest tools update and some classes were being obfuscated which led to a crash.
  • Loading branch information
keianhzo authored Mar 19, 2020
1 parent a7251f8 commit c9d7007
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ dependencies {

// Common
implementation deps.lifecycle.runtime
implementation deps.lifecycle.extensions
implementation deps.lifecycle.viewmodel
implementation deps.support.cardview
//implementation deps.support.app_compat
implementation(name:'appcompat', ext:'aar')
Expand Down
16 changes: 15 additions & 1 deletion app/proguard-rules.pro
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
public static int d(...);
}


# --------------------------------------------------------------------
# REMOVE android speech dependency from GV
# --------------------------------------------------------------------
Expand Down Expand Up @@ -66,6 +65,21 @@
-keep class com.psmart.vrlib.** {*;}
-keep class com.picovr.** {*;}

# --------------------------------------------------------------------
# App Services
# --------------------------------------------------------------------
-keep class mozilla.appservices.rustlog.** {*;}

# --------------------------------------------------------------------
# Android ViewModel
# --------------------------------------------------------------------
-keep class * extends androidx.lifecycle.ViewModel {
<init>();
}
-keep class * extends androidx.lifecycle.AndroidViewModel {
<init>(android.app.Application);
}

-dontwarn **
-target 1.7
-dontusemixedcaseclassnames
Expand Down
2 changes: 1 addition & 1 deletion versions.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ deps.room = room

def lifecycle = [:]
lifecycle.runtime = "androidx.lifecycle:lifecycle-runtime:$versions.lifecycle"
lifecycle.extensions = "androidx.lifecycle:lifecycle-extensions:$versions.lifecycle"
lifecycle.viewmodel = "androidx.lifecycle:lifecycle-viewmodel:$versions.lifecycle"
lifecycle.java8 = "androidx.lifecycle:lifecycle-common-java8:$versions.lifecycle"
lifecycle.compiler = "androidx.lifecycle:lifecycle-compiler:$versions.lifecycle"
deps.lifecycle = lifecycle
Expand Down

0 comments on commit c9d7007

Please sign in to comment.