Bug #642
closedView Source crashes on production builds
0%
Description
This might fix a crash on Samsung devices. They crash consistently on opening View Source, which might be caused because of some bug in their modifications to Android that doesn't like the ViewModel being in Java and the ViewModelFactory being in Kotlin.
Updated by Soren Stoutner about 4 years ago
I have been informed that at least one old Motorola phone also has problems with this.
Updated by Soren Stoutner about 4 years ago
- Subject changed from Convert the ViewWebSource ViewModel to Kotlin to View Source crashes on production builds
So, it turns out that this crashes on release builds on all devices. Most of my test devices run debug builds, which is why I wasn't able to replicate the issue.
Updated by Soren Stoutner about 4 years ago
- Tracker changed from Feature to Bug
- Status changed from New to Closed
Fixed in commit https://git.stoutner.com/?p=PrivacyBrowser.git;a=commitdiff;h=606b5659cfd41c546fcbf248dcde72fd3c60d1c3.
The problem ended up being caused by ProGuard stripping out the ViewModel method during minification. This was fixed by adding a custom ProGuard rule.