Skip to content

Commit e4dea58

Browse files
committed
chore: Update dependencies and remove READ_CONTACTS permission
This commit updates various dependencies to their latest versions, including Compose, Koin, Ktor, and Firebase. It also removes the `READ_CONTACTS` permission from the Android manifest, as it is no longer needed. Additionally, proguard configurations are updated to support the updated Ktor library and Ktorfit library.
1 parent b5c0b36 commit e4dea58

11 files changed

+1084
-1103
lines changed

.github/workflows/multi-platform-build-and-publish.yml

-18
Original file line numberDiff line numberDiff line change
@@ -86,21 +86,6 @@ on:
8686
default: false
8787
description: Publish iOS App On App Store
8888

89-
publish_desktop:
90-
type: boolean
91-
default: false
92-
description: Publish Desktop Apps On App Store
93-
94-
publish_web:
95-
type: boolean
96-
default: true
97-
description: Publish Web App
98-
99-
build_ios:
100-
type: boolean
101-
default: false
102-
description: Build iOS App
103-
10489
permissions:
10590
contents: write
10691
id-token: write
@@ -122,10 +107,7 @@ jobs:
122107
desktop_package_name: 'mifospay-desktop' # <-- Change this to your desktop package name
123108
web_package_name: 'mifospay-web' # <-- Change this to your web package name
124109
publish_android: ${{ inputs.publish_android }}
125-
build_ios: ${{ inputs.build_ios }}
126110
publish_ios: ${{ inputs.publish_ios }}
127-
publish_desktop: ${{ inputs.publish_desktop }}
128-
publish_web: ${{ inputs.publish_web }}
129111
secrets:
130112
original_keystore_file: ${{ secrets.ORIGINAL_KEYSTORE_FILE }}
131113
original_keystore_file_password: ${{ secrets.ORIGINAL_KEYSTORE_FILE_PASSWORD }}

build-logic/convention/src/main/kotlin/KMPKoinConventionPlugin.kt

+1-6
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
import com.google.devtools.ksp.gradle.KspExtension
1+
22
import org.gradle.api.Plugin
33
import org.gradle.api.Project
4-
import org.gradle.kotlin.dsl.configure
54
import org.gradle.kotlin.dsl.dependencies
65
import org.mifospay.libs
76

@@ -23,10 +22,6 @@ class KMPKoinConventionPlugin : Plugin<Project> {
2322

2423
add("commonTestImplementation", libs.findLibrary("koin.test").get())
2524
}
26-
27-
extensions.configure<KspExtension> {
28-
arg("KOIN_CONFIG_CHECK","true")
29-
}
3025
}
3126
}
3227
}

core/network/consumer-rules.pro

+9-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
-keep class io.ktor.** { *; }
22
-keep class kotlinx.serialization.** { *; }
3+
-keep class io.ktor.client.network.sockets.** { *; }
4+
-keep class io.ktor.client.plugins.* { *; }
5+
-keep class io.ktor.util.* { *; }
6+
-keep class io.ktor.utils.io.* { *; }
7+
-keep class java.lang.management.* { *; }
38
-dontwarn io.ktor.client.network.sockets.SocketTimeoutException
49
-dontwarn java.lang.management.RuntimeMXBean
510

@@ -19,4 +24,7 @@
1924
-dontwarn org.bouncycastle.**
2025
-dontwarn org.openjsse.**
2126

22-
-keep class org.mifospay.core.network.services.* { *;}
27+
-keep class org.mifospay.core.network.services.* { *;}
28+
-keep class de.jensklingenberg.ktorfit.converter.** { *; }
29+
-keep class de.jensklingenberg.ktorfit.** { *; }
30+
-keeppackagenames de.jensklingenberg.ktorfit.*

gradle/libs.versions.toml

+13-13
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@ androidTools = "31.7.2"
1010
androidx-test-ext-junit = "1.2.1"
1111
androidxActivity = "1.9.3"
1212
androidxBrowser = "1.8.0"
13-
androidxComposeBom = "2024.11.00"
13+
androidxComposeBom = "2024.12.01"
1414
androidxComposeCompiler = "1.5.15"
1515
androidxComposeMaterial3Adaptive = "1.0.0"
16-
androidxComposeRuntimeTracing = "1.7.5"
16+
androidxComposeRuntimeTracing = "1.7.6"
1717
androidxCoreSplashscreen = "1.0.1"
1818
androidxLifecycle = "2.8.7"
1919
androidxMetrics = "1.0.0-beta01"
20-
androidxNavigation = "2.8.4"
20+
androidxNavigation = "2.8.5"
2121
androidxProfileinstaller = "1.4.1"
2222
androidxTracing = "1.3.0-alpha02"
2323
appcompatVersion = "1.7.0"
@@ -28,9 +28,9 @@ lifecycleExtensionsVersion = "2.2.0"
2828
lifecycleVersion = "2.8.7"
2929

3030
# Android Camera & Play Services
31-
cameraLifecycleVersion = "1.4.0"
32-
cameraViewVersion = "1.4.0"
33-
playServicesAuthVersion = "21.2.0"
31+
cameraLifecycleVersion = "1.4.1"
32+
cameraViewVersion = "1.4.1"
33+
playServicesAuthVersion = "21.3.0"
3434
playServicesCodeScanner = "16.1.0"
3535
mlkit="17.3.0"
3636

@@ -65,26 +65,26 @@ versionCatalogLinterVersion = "1.0.3"
6565
fineractSdk = "1.0.3"
6666

6767
# Firebase
68-
firebaseBom = "33.6.0"
68+
firebaseBom = "33.7.0"
6969
firebaseCrashlyticsPlugin = "3.0.2"
7070
firebasePerfPlugin = "1.4.2"
7171

7272
# Kotlin KMP Dependencies
73-
kotlin = "2.0.21"
73+
kotlin = "2.1.0"
7474
kotlinInject = "0.7.2"
7575
kotlinxCoroutines = "1.9.0"
7676
kotlinxDatetime = "0.6.1"
7777
kotlinxImmutable = "0.3.8"
7878
kotlinxSerializationJson = "1.7.3"
79-
ksp = "2.0.21-1.0.27"
79+
ksp = "2.1.0-1.0.29"
8080

8181
# Ktor & Ktorfit
82-
ktorVersion = "3.0.1"
82+
ktorVersion = "3.0.3"
8383
ktorfit = "2.2.0"
84-
ktorfitKsp = "2.2.0-1.0.27"
84+
ktorfitKsp = "2.2.0-1.0.29"
8585

8686
# Koin CMP Dependencies
87-
koin = "4.0.0"
87+
koin = "4.0.1-RC1"
8888
koinAnnotationsVersion = "1.4.0-RC4"
8989

9090
# CMP Libraries
@@ -104,7 +104,7 @@ wire = "5.0.0"
104104
windowsSizeClass = "0.5.0"
105105
uiDesktopVersion = "1.7.0"
106106
composeJB = "1.7.0"
107-
composeLifecycle = "2.8.2"
107+
composeLifecycle = "2.8.3"
108108
composeNavigation = "2.8.0-alpha10"
109109
jbCoreBundle = "1.0.1"
110110
jbSavedState = "1.2.2"

mifospay-android/build.gradle.kts

+4-12
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,6 @@ import com.google.gms.googleservices.GoogleServicesPlugin.GoogleServicesPluginCo
1111
import org.mifospay.MifosBuildType
1212
import org.mifospay.dynamicVersion
1313

14-
/*
15-
* Copyright 2024 Mifos Initiative
16-
*
17-
* This Source Code Form is subject to the terms of the Mozilla Public
18-
* License, v. 2.0. If a copy of the MPL was not distributed with this
19-
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
20-
*
21-
* See https://github.com/openMF/mobile-wallet/blob/master/LICENSE.md
22-
*/
23-
2414
plugins {
2515
alias(libs.plugins.mifospay.android.application)
2616
alias(libs.plugins.mifospay.android.application.compose)
@@ -58,10 +48,12 @@ android {
5848
applicationIdSuffix = MifosBuildType.DEBUG.applicationIdSuffix
5949
}
6050

51+
// Disabling proguard for now until
52+
// https://github.com/openMF/mobile-wallet/issues/1815 this issue is resolved
6153
release {
62-
isMinifyEnabled = true
54+
isMinifyEnabled = false
6355
applicationIdSuffix = MifosBuildType.RELEASE.applicationIdSuffix
64-
isShrinkResources = true
56+
isShrinkResources = false
6557
isDebuggable = false
6658
isJniDebuggable = false
6759
signingConfig = signingConfigs.getByName("release")

0 commit comments

Comments
 (0)