Skip to content

Conversation

@HekmatullahAmin
Copy link
Member

  • Refactored MifosOutlinedTextField:
    • Introduced MifosTextFieldConfig to reduce parameters and improve readability.
  • Reorganized Composable Functions:
    • Fixed property order in @Composable functions for better clarity.
    • Commented out unused properties & methods to reduce clutter.
    • Split large functions into smaller, reusable chunks.
  • Reduced Return Count:
    • Ensured functions return at most two values to enhance maintainability.
  • Updated Detekt Configuration for KMP:
  • Excluded platform-specific files (.jvm.kt, .desktop.kt, .wasmJs.kt, .native.kt, .js.kt, .android.kt) from MatchingDeclarationName.

Fixes - Jira-#131

Didn't create a Jira ticket, click here to create new.

Please Add Screenshots If there are any UI changes.

Before After

Please make sure these boxes are checked before submitting your pull request - thanks!

  • Run the static analysis check ./gradlew check or ci-prepush.sh to make sure you didn't break anything

  • If you have multiple commits please combine them into one commit by squashing them.

@HekmatullahAmin
Copy link
Member Author

HekmatullahAmin commented Feb 9, 2025

@niyajali

As part of the Detekt fixes and refactoring, I made the following improvements:

Introduced MifosTextFieldConfig, but since it will be used across multiple modules, it would be better to move it to the model module for better maintainability and reusability.
Replaced @composable modifiers with Modifier.composed {} where necessary to reduce unnecessary recompositions and follow best practices.
and also other improvement and fixes where you can look at it in the description of PR inside the code.
If any modules get included in the future in settings.gradle, some of them are now commented out, those would also need similar fixes

@niyajali niyajali added firebase-test-on Upload Application on Firebase For Testing and removed firebase-test-on Upload Application on Firebase For Testing labels Feb 10, 2025
@niyajali niyajali self-requested a review February 10, 2025 12:01
@niyajali
Copy link
Collaborator

@HekmatullahAmin can you rebase your PR

@niyajali niyajali added firebase-test-on Upload Application on Firebase For Testing and removed firebase-test-on Upload Application on Firebase For Testing labels Feb 10, 2025
- **Refactored `MifosOutlinedTextField`**:
  - Introduced `MifosTextFieldConfig` to **reduce parameters** and improve readability.
- **Reorganized Composable Functions**:
  - Fixed **property order** in `@Composable` functions for better clarity.
  - **Commented out unused properties & methods** to reduce clutter.
  - **Split large functions into smaller, reusable chunks**.
- **Reduced Return Count**:
  - Ensured functions return at most **two values** to enhance maintainability.
- **Updated Detekt Configuration for KMP**:
  - **Excluded platform-specific files** (`.jvm.kt`, `.desktop.kt`, `.wasmJs.kt`, `.native.kt`, `.js.kt`, `.android.kt`) from `MatchingDeclarationName`.
@HekmatullahAmin
Copy link
Member Author

@HekmatullahAmin can you rebase your PR

sure, it is done

@therajanmaurya therajanmaurya merged commit a8b1b24 into openMF:kmp-impl Feb 10, 2025
7 checks passed
revanthkumarJ pushed a commit to revanthkumarJ/mifos-mobile that referenced this pull request Feb 13, 2025
@HekmatullahAmin HekmatullahAmin deleted the MM-131 branch February 22, 2025 15:04
Nagarjuna0033 pushed a commit to Nagarjuna0033/mifos-mobile that referenced this pull request May 12, 2025
Samriddhi743 pushed a commit to Samriddhi743/mifos-mobile that referenced this pull request Oct 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

firebase-test-on Upload Application on Firebase For Testing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants