android: 5.2.2, build 142 (revert to API 32)

This commit is contained in:
Stanislav Dmitrenko
2023-08-07 18:53:25 +03:00
committed by Evgeny Poberezkin
parent 5a5876c258
commit f17889b3e3
4 changed files with 6 additions and 5 deletions

View File

@@ -17,7 +17,7 @@ android {
defaultConfig {
applicationId = "chat.simplex.app"
minSdkVersion(26)
targetSdkVersion(33)
targetSdkVersion(32)
// !!!
// skip version code after release to F-Droid, as it uses two version codes
versionCode = (extra["android.version_code"] as String).toInt()

View File

@@ -58,7 +58,8 @@ fun SetNotificationsMode(m: ChatModel) {
@Composable
fun SetNotificationsModeAdditions() {
if (Build.VERSION.SDK_INT >= 33) {
// When target and compile SDK are different
if (Build.VERSION.SDK_INT >= 33 && SimplexApp.context.applicationInfo.targetSdkVersion >= 33) {
val notificationsPermissionState = rememberPermissionState(Manifest.permission.POST_NOTIFICATIONS)
LaunchedEffect(notificationsPermissionState.hasPermission) {
if (notificationsPermissionState.hasPermission) {

View File

@@ -116,7 +116,7 @@ android {
sourceSets["main"].manifest.srcFile("src/androidMain/AndroidManifest.xml")
defaultConfig {
minSdkVersion(26)
targetSdkVersion(33)
targetSdkVersion(32)
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_1_8

View File

@@ -25,8 +25,8 @@ android.nonTransitiveRClass=true
android.enableJetifier=true
kotlin.mpp.androidSourceSetLayoutVersion=2
android.version_name=5.2.1
android.version_code=139
android.version_name=5.2.2
android.version_code=142
desktop.version_name=1.0