Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c00a2965 authored by tibbi's avatar tibbi
Browse files

add calendar to the list of pro apps, not yet sure when will it become pro

parent 7a71ccd2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -7,7 +7,7 @@ buildscript {
        propMinSdkVersion = 21
        propTargetSdkVersion = propCompileSdkVersion
        propVersionCode = 1
        propVersionName = '5.3.14'
        propVersionName = '5.3.15'
        kotlin_version = '1.3.0'
    }

+6 −0
Original line number Diff line number Diff line
@@ -20,6 +20,9 @@ class UpgradeToProDialog(val activity: Activity) {
    private val NOTES_FREE_TILL = 1542326400000L     // November 16
    private val NOV_16 = "Nov 16 2018"

    private val CALENDAR_FREE_TILL = 1542326400000L     // November 17
    private val NOV_17 = "Nov 17 2018"

    init {
        var text = activity.getString(R.string.upgrade_to_pro_long)
        if ((packageName.endsWith("draw") || packageName.endsWith("gallery") || packageName.endsWith("filemanager")) && System.currentTimeMillis() < FIRST_APPS_FREE_TILL) {
@@ -31,6 +34,9 @@ class UpgradeToProDialog(val activity: Activity) {
        } else if (packageName.endsWith("notes") && System.currentTimeMillis() < NOTES_FREE_TILL) {
            val freeTill = String.format(activity.getString(R.string.it_is_free), NOV_16)
            text += "\n$freeTill"
        } else if (packageName.endsWith("calendar") && System.currentTimeMillis() < CALENDAR_FREE_TILL) {
            val freeTill = String.format(activity.getString(R.string.it_is_free), NOV_17)
            text += "\n$freeTill"
        }

        val view = activity.layoutInflater.inflate(R.layout.dialog_upgrade_to_pro, null).apply {
+1 −1
Original line number Diff line number Diff line
@@ -250,4 +250,4 @@ fun getConflictResolution(resolutions: LinkedHashMap<String, Int>, path: String)
    }
}

val proPackages = arrayListOf("draw", "gallery", "filemanager", "contacts", "notes")
val proPackages = arrayListOf("draw", "gallery", "filemanager", "contacts", "notes", "calendar")