X-Git-Url: https://gitweb.stoutner.com/?p=PrivacyBrowserAndroid.git;a=blobdiff_plain;f=app%2Fproguard-rules.pro;h=8d07177010e93ad8884b1529996023454ef7b2d1;hp=189b58019d321a17467f8fd65e7f496da905eef5;hb=606b5659cfd41c546fcbf248dcde72fd3c60d1c3;hpb=8a06558b0071fa94e2a7d1093b3118417ac5cc8f diff --git a/app/proguard-rules.pro b/app/proguard-rules.pro index 189b5801..8d071770 100644 --- a/app/proguard-rules.pro +++ b/app/proguard-rules.pro @@ -1,6 +1,23 @@ +# Copyright © 2020 Soren Stoutner . +# +# This file is part of 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 . + # 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