You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using Curtains with R8 and the proguard-android-optimize.txt file, it crashes due to missing JavaViewSpy.getWindowAttachCount.
This could be fixed by adding the method to the proguard.
-keepclassmembers class android.view.JavaViewSpy {
static int windowAttachCount(android.view.View);
}
Stacktrace:
E AndroidRuntime: java.lang.IllegalAccessError: Method 'int android.view.View.getWindowAttachCount()' is inaccessible to class 'android.view.ViewSpyInternalKt' (declaration of 'android.view.ViewSpyInternalKt' appears in /data/app/~~VymduIXOo6hl8tOVtZTVLQ==/com.squareup.curtains.sample-CvXF72T_Jes38DnrA1SIXg==/base.apk)
E AndroidRuntime: at android.view.ViewSpyInternalKt.windowAttachCount(ViewSpyInternal.kt:7)
E AndroidRuntime: at com.example.macrobenchmark.target.ClickTrace$install$1.onRootViewAdded(ClickTrace.kt:7)
E AndroidRuntime: at com.example.macrobenchmark.target.ClickTrace$install$1.onRootViewsChanged(ClickTrace.kt:7)
E AndroidRuntime: at curtains.internal.RootViewsSpy$delegatingViewList$1.add(RootViewsSpy.kt:28)
E AndroidRuntime: at android.view.WindowManagerGlobal.addView(WindowManagerGlobal.java:350)
E AndroidRuntime: at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:94)
E AndroidRuntime: at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:3880)
Steps to reproduce:
Add minification and the default proguard file to the sample app
When using Curtains with R8 and the
proguard-android-optimize.txt
file, it crashes due to missingJavaViewSpy.getWindowAttachCount
.This could be fixed by adding the method to the proguard.
Stacktrace:
Steps to reproduce:
The text was updated successfully, but these errors were encountered: