Skip to content

Conversation

@HekmatullahAmin
Copy link
Member

@HekmatullahAmin HekmatullahAmin commented Feb 6, 2025

Fixes - Jira-#126

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

Please Add Screenshots If there are any UI changes.

Before After
AboutScreen.mp4

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.

Copy link
Collaborator

@niyajali niyajali left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@HekmatullahAmin And there are a lot of compose library available to show open source library usages like google OSS use those instead, we no need to use WebView anymore

@niyajali
Copy link
Collaborator

niyajali commented Feb 7, 2025

@HekmatullahAmin
Copy link
Member Author

Hi @niyajali ,

I’ve implemented the changes as you suggested. Regarding the openUrl() function, it’s actually an expect function that provides platform-specific implementations to navigate to the given URL.

About the library you mentioned, I brought it up during the stand-up, and Mr. @therajanmaurya advised against adding any external libraries for now. As for the openUrl implementation, I’ve commented it out because it uses Intent, which requires a Context. For a small app I worked on previously, I passed an Application instance, and it worked. However, for mifos-mobile, I can’t pass the AndroidApp instance to the openUrl function.

Another potential approach could be adding a custom Application for the about module and updating its manifest, but I don’t think that would be the best solution either.

Let me know your thoughts!

@therajanmaurya
Copy link
Member

I want to keep the ticket scope as less as possible and we will implement the intent library in different ticket

@HekmatullahAmin HekmatullahAmin force-pushed the MM-126 branch 3 times, most recently from 7739aa6 to 6aa7d84 Compare February 10, 2025 17:31
@HekmatullahAmin
Copy link
Member Author

@niyajali If you're happy with this PR, please approve it so it can be merged.

Copy link
Collaborator

@niyajali niyajali left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi, here's the few things we have to maintain all over the project, make sure you've followed the same..

@HekmatullahAmin @Nagarjuna0033 @revanthkumarJ

  1. LazyColumn State:

    • Always pass the LazyColumn state as a function parameter wherever it is used.
  2. Keys for LazyColumn Items:

    • Ensure that every item in a LazyColumn has a unique key provided.
  3. Consistent Padding/Spacing:

    • Use 16.dp for padding and spacing consistently across the project where applicable.
  4. Named Arguments:

    • Always use named arguments when calling functions/class to improve readability and maintainability.
  5. State Hoisting:

    • Maintain and hoist state from the top-level composable to ensure better state management.

And use the above mentioned library for licence, I’ll discuss with the @therajanmaurya and explain the situation. No need to worry about this; I’ll handle it. Once the changes are implemented, let me know, and we’ll proceed with merging this PR.


import android.app.Application

class AndroidApp : Application() {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why we're creating another application for one feature, we can't do that..

@HekmatullahAmin
Copy link
Member Author

Hi @niyajali ,

Thanks for reviewing my PR! I’ve made sure to apply the necessary changes based on the project guidelines you shared. Specifically:

I really appreciate you sharing these best practices.

Regarding the License, this is not in the scope of my PR. As seen in the aboutUsNavGraph, the navigateToOssLicense function is simply assigned and will be handled elsewhere. So, this part doesn't require changes from my side. But I will work on another PR and will implement the library you suggested me.

As for why I created another application, that was just for testing purposes. In my PR, I had commented them out, and now, I have deleted them entirely.

Screenshot 2025-02-11 at 20 48 20

Copy link
Collaborator

@niyajali niyajali left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@HekmatullahAmin This could be merged after this PR #2772 gets merged. please wait until that is done and rebase your PR and let me know, we'll merge this one as well

activityVersion = "1.9.3"
androidDesugarJdkLibs = "2.1.4"
androidGradlePlugin = "8.7.3"
androidGradlePlugin = "8.8.0"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To avoid frustrating delays and build issues during a project migration, it's best to avoid changing the Android Gradle Plugin (AGP) or Gradle version. Many developers have already cached dependencies locally, and rebuilding with different versions can significantly increase build times. For a smoother experience, consistently use the same AGP and Gradle versions. and always remember to update toolsVersion as AGP

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, I got it.

@HekmatullahAmin
Copy link
Member Author

@HekmatullahAmin This could be merged after this PR #2772 gets merged. please wait until that is done and rebase your PR and let me know, we'll merge this one as well

@niyajali I rabased this and resolved the conflicts. Just wanted to let you know

@niyajali niyajali merged commit 0e5ca6b into openMF:kmp-impl Feb 13, 2025
7 checks passed
@HekmatullahAmin HekmatullahAmin deleted the MM-126 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

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants