Fix build failures across all KMP targets (JVM, JS, WASM, iOS)#2608
Fix build failures across all KMP targets (JVM, JS, WASM, iOS)#2608Arinyadav1 wants to merge 5 commits intoopenMF:developmentfrom
Conversation
|
Important Review skippedToo many files! This PR contains 226 files, which is 76 over the limit of 150. You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
| "kspDesktop", | ||
| "kspAndroid", | ||
| "kspIosArm64", | ||
| "kspIosX64", |
There was a problem hiding this comment.
Can you tell us the reason for removal of this line? I can see it is present in kmp project template.
| kotlinOptions { | ||
| jvmTarget = JavaVersion.VERSION_17.toString() | ||
| compilerOptions { | ||
| jvmTarget.set(JvmTarget.JVM_17) |
There was a problem hiding this comment.
| jvmTarget.set(JvmTarget.JVM_17) | |
| jvmTarget = JvmTarget.JVM_17 |
Cleaner and more idiomatic in Kotlin DSL.
| fun ComponentActivity.setupEdgeToEdge( | ||
| appThemeFlow: Flow<DarkThemeConfig>, | ||
| ) { | ||
| @Suppress("MaxLineLength", "ktlint:standard:multiline-expression-wrapping") |
There was a problem hiding this comment.
This annotation isn't present in kmp-project-template: "ktlint:standard:multiline-expression-wrapping".
There was a problem hiding this comment.
I will fix this one
| * will emit changes as needed. | ||
| * Emits whether the system is currently in dark mode. | ||
| */ | ||
| @Suppress("ktlint:standard:multiline-expression-wrapping") |
There was a problem hiding this comment.
I will fix this one
| file(System.getenv("KEYSTORE_PATH") ?: "../keystores/release_keystore.keystore") | ||
| storePassword = System.getenv("KEYSTORE_PASSWORD") ?: "mifos1234" | ||
| keyAlias = System.getenv("KEYSTORE_ALIAS") ?: "mifos-mobile" | ||
| keyAlias = System.getenv("KEYSTORE_ALIAS") ?: "mifos" |
There was a problem hiding this comment.
Are you sure about this default value?
There was a problem hiding this comment.
Yes, I am sure it is working fine
|
|
||
| kotlin { | ||
| listOf( | ||
| iosX64(), |
There was a problem hiding this comment.
A question previously asked about its exclusion.
There was a problem hiding this comment.
I have explained the reason in previously asked question
| targetSdk=36 | ||
| compileSdk=36 | ||
|
|
||
| android.experimental.lint.version=8.8.2 |
There was a problem hiding this comment.
This was added to fix Android build and publish workflow:
Added lint config in gradle properties to fix version incompatibility between lint and AGP.
Are you sure about this change that it won't break the workflow?
There was a problem hiding this comment.
Yes' it is working fine
There was a problem hiding this comment.
Can you tell us the reason for getting rid of the WasmJsNetworkMonitor.kt?
There was a problem hiding this comment.
There was not have a correct implementation of it because in other target devices have other name file and other in wasmJs in other file that's why I just fix this file issue and make consistent with other target devices
There was a problem hiding this comment.
There was not have a correct implementation of it because in other target devices have other name file and other in Js in other file that's why I just fix this file issue and make consistent with other target devices
There was a problem hiding this comment.
Can you tell us the reason for repurposing the existing files instead of creating new ones?
There was a problem hiding this comment.
There was a problem hiding this comment.
core/network/src/wasmJsMain/kotlin/com/mifos/core/network/utils/ImageLoaderUtils.js.kt
And I deleted this file because there was not have expect function in commonMain so that's why it is nothing any use so simple I deleted it.
There was a problem hiding this comment.
There was a problem hiding this comment.
core/network/src/jsMain/kotlin/com/mifos/core/network/utils/ImageLoaderUtils.js.kt
And I deleted this file because there was not have expect function in commonMain so that's why it is nothing any use so simple I deleted it.
| @androidx.compose.runtime.Composable | ||
| actual fun PathTrackingScreen( | ||
| onBackPressed: () -> Unit, | ||
| viewModel: com.mifos.feature.path.tracking.PathTrackingViewModel, |
There was a problem hiding this comment.
Please move this to import section.
| @androidx.compose.runtime.Composable | ||
| actual fun PathTrackingScreen( | ||
| onBackPressed: () -> Unit, | ||
| viewModel: com.mifos.feature.path.tracking.PathTrackingViewModel, |
| paddingValues: androidx.compose.foundation.layout.PaddingValues, | ||
| onAddGroupClick: () -> Unit, | ||
| onGroupClick: (groupId: Int) -> Unit, | ||
| viewModel: com.mifos.feature.groups.groupList.GroupsListViewModel, |
There was a problem hiding this comment.
Please move relevant lines to import section.
| paddingValues: androidx.compose.foundation.layout.PaddingValues, | ||
| onAddGroupClick: () -> Unit, | ||
| onGroupClick: (groupId: Int) -> Unit, | ||
| viewModel: com.mifos.feature.groups.groupList.GroupsListViewModel, |
| pagingFlow: kotlinx.coroutines.flow.Flow<androidx.paging.PagingData<com.mifos.core.model.objects.clients.Page<com.mifos.room.entities.client.ChargesEntity>>>, | ||
| onAction: (com.mifos.feature.client.charges.ChargesAction) -> Unit, |
| actual fun ShowClientCharge( | ||
| pagingFlow: kotlinx.coroutines.flow.Flow<androidx.paging.PagingData<com.mifos.core.model.objects.clients.Page<com.mifos.room.entities.client.ChargesEntity>>>, | ||
| onAction: (com.mifos.feature.client.charges.ChargesAction) -> Unit, |
| state: com.mifos.feature.center.centerList.ui.CenterListUiState, | ||
| isInSelectionMode: Boolean, | ||
| selectedItems: com.mifos.feature.center.centerList.ui.SelectedItemsState, | ||
| onRefresh: () -> Unit, |
There was a problem hiding this comment.
Please move relevant lines to import section.
| state: com.mifos.feature.center.centerList.ui.CenterListUiState, | ||
| isInSelectionMode: Boolean, | ||
| selectedItems: com.mifos.feature.center.centerList.ui.SelectedItemsState, |
|






Fixes - Jira-#644