]> gitweb.stoutner.com Git - PrivacyBrowserAndroid.git/blobdiff - app/proguard-rules.pro
Fix View Source crashing on release builds. https://redmine.stoutner.com/issues/642
[PrivacyBrowserAndroid.git] / app / proguard-rules.pro
index 189b58019d321a17467f8fd65e7f496da905eef5..8d07177010e93ad8884b1529996023454ef7b2d1 100644 (file)
@@ -1,6 +1,23 @@
+# Copyright © 2020 Soren Stoutner <soren@stoutner.com>.
+#
+# This file is part of Privacy Browser <https://www.stoutner.com/privacy-browser>.
+#
+# Privacy Browser is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# Privacy Browser is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with Privacy Browser.  If not, see <http://www.gnu.org/licenses/>.
+
 # Add project specific ProGuard rules here.
 # By default, the flags in this file are appended to flags specified
-# in /home/soren/Android/Sdk/tools/proguard/proguard-android.txt
+# in ~/Android/Sdk/tools/proguard/proguard-android-optimize.txt
 # You can edit the include path and order by changing the proguardFiles
 # directive in build.gradle.
 #
@@ -15,3 +32,6 @@
 #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
 #   public *;
 #}
+
+# Make Kotlin ViewModels work correctly.
+-keep class * extends androidx.lifecycle.ViewModel { *; }
\ No newline at end of file