]> gitweb.stoutner.com Git - PrivacyBrowserAndroid.git/blobdiff - app/proguard-rules.pro
Fix the ViewPager not always moving to new tabs. https://redmine.stoutner.com/issues/798
[PrivacyBrowserAndroid.git] / app / proguard-rules.pro
index 189b58019d321a17467f8fd65e7f496da905eef5..81eafd045fdcad519fcaa21c7b6409881e59d7a1 100644 (file)
@@ -1,6 +1,24 @@
+# Copyright © 2020,2022 Soren Stoutner <soren@stoutner.com>.
+#
+# This file is part of Privacy Browser Android <https://www.stoutner.com/privacy-browser-android>.
+#
+# Privacy Browser Android 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 Android 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 Android.  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 +33,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