Compare commits

...

2 Commits

  1. 2
      entrypoint.sh
  2. 10
      patches/10-pro.diff

@ -15,7 +15,7 @@ echo $KEYSTORE_FILE | base64 -d > keystore.jks
echo $KEYSTORE_PROPERTIES | base64 -d > keystore.properties echo $KEYSTORE_PROPERTIES | base64 -d > keystore.properties
for patch in /patches/*; do for patch in /patches/*; do
patch -p0 < $patch [ -e $patch ] && patch -p0 < $patch
done done
gradle --no-daemon assembleGithub gradle --no-daemon assembleGithub

@ -1,6 +1,6 @@
--- app/src/play/java/eu/faircode/email/ActivityBilling.java 2020-08-15 10:33:56.000000000 +0000 --- app/src/play/java/eu/faircode/email/ActivityBilling.java 2020-08-30 11:37:31.000000000 +0000
+++ app/src/play/java/eu/faircode/email/ActivityBilling.java 2020-08-15 10:33:56.000000000 +0000 +++ app/src/play/java/eu/faircode/email/ActivityBilling.java 2020-08-30 17:14:51.498662023 +0000
@@ -192,10 +192,7 @@ @@ -196,10 +196,11 @@
} }
static boolean isPro(Context context) { static boolean isPro(Context context) {
@ -8,6 +8,10 @@
- return true; - return true;
- return PreferenceManager.getDefaultSharedPreferences(context) - return PreferenceManager.getDefaultSharedPreferences(context)
- .getBoolean("pro", false); - .getBoolean("pro", false);
+ SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
+ if (!prefs.getBoolean("pro", false)) {
+ prefs.edit().putBoolean("pro", true).commit();
+ }
+ return true; + return true;
} }

Loading…
Cancel
Save