diff --git a/app/build.gradle.kts b/app/build.gradle.kts index f10ba1da..e5040028 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -6,7 +6,6 @@ plugins { alias(libs.plugins.android) alias(libs.plugins.kotlinAndroid) alias(libs.plugins.kotlinSerialization) - alias(libs.plugins.parcelize) alias(libs.plugins.ksp) base } diff --git a/app/proguard-rules.pro b/app/proguard-rules.pro index 2c52942d..1ae3546f 100644 --- a/app/proguard-rules.pro +++ b/app/proguard-rules.pro @@ -28,3 +28,8 @@ public static <1> INSTANCE; kotlinx.serialization.KSerializer serializer(...); } + +# Gson +-keep class com.simplemobiletools.commons.models.SimpleContact { *; } +-keep class com.simplemobiletools.smsmessenger.models.Attachment { *; } +-keep class com.simplemobiletools.smsmessenger.models.MessageAttachment { *; } diff --git a/app/src/main/kotlin/com/simplemobiletools/smsmessenger/extensions/Context.kt b/app/src/main/kotlin/com/simplemobiletools/smsmessenger/extensions/Context.kt index 442aebce..3902bcd6 100644 --- a/app/src/main/kotlin/com/simplemobiletools/smsmessenger/extensions/Context.kt +++ b/app/src/main/kotlin/com/simplemobiletools/smsmessenger/extensions/Context.kt @@ -988,6 +988,7 @@ fun Context.getFileSizeFromUri(uri: Uri): Long { // fix a glitch at enabling Release version minifying from 5.12.3 // reset messages in 5.14.3 again, as PhoneNumber is no longer minified +// reset messages in 5.19.1 again, as SimpleContact is no longer minified fun Context.clearAllMessagesIfNeeded() { if (!config.wasDbCleared) { ensureBackgroundThread { diff --git a/app/src/main/kotlin/com/simplemobiletools/smsmessenger/helpers/Constants.kt b/app/src/main/kotlin/com/simplemobiletools/smsmessenger/helpers/Constants.kt index 390ee5b6..a32d6883 100644 --- a/app/src/main/kotlin/com/simplemobiletools/smsmessenger/helpers/Constants.kt +++ b/app/src/main/kotlin/com/simplemobiletools/smsmessenger/helpers/Constants.kt @@ -34,7 +34,7 @@ const val XML_MIME_TYPE = "text/xml" const val TXT_MIME_TYPE = "text/plain" const val IMPORT_SMS = "import_sms" const val IMPORT_MMS = "import_mms" -const val WAS_DB_CLEARED = "was_db_cleared_2" +const val WAS_DB_CLEARED = "was_db_cleared_3" const val EXTRA_VCARD_URI = "vcard" const val SCHEDULED_MESSAGE_ID = "scheduled_message_id" const val SOFT_KEYBOARD_HEIGHT = "soft_keyboard_height" diff --git a/build.gradle.kts b/build.gradle.kts index 9b58ac03..46e23adf 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -1,7 +1,6 @@ plugins { alias(libs.plugins.android).apply(false) alias(libs.plugins.kotlinAndroid).apply(false) - alias(libs.plugins.parcelize).apply(false) alias(libs.plugins.kotlinSerialization).apply(false) alias(libs.plugins.ksp).apply(false) } diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index f6b82ae0..8ed7d753 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -60,5 +60,4 @@ room = [ android = { id = "com.android.application", version.ref = "gradlePlugins-agp" } kotlinAndroid = { id = "org.jetbrains.kotlin.android", version.ref = "kotlin" } kotlinSerialization = { id = "org.jetbrains.kotlin.plugin.serialization", version.ref = "kotlin" } -parcelize = { id = "org.jetbrains.kotlin.plugin.parcelize", version.ref = "kotlin" } ksp = { id = "com.google.devtools.ksp", version.ref = "ksp" }