Skip to content

Project Setup

Sk Niyaj Ali edited this page Dec 11, 2024 · 3 revisions

Before you begin, you should have already downloaded the Android Studio SDK and set it up correctly. You can find a guide on how to do this here: Setting up Android Studio.

1. Fork the Git Repository

Forking the repository is the first step to start contributing. Click on the "Fork" button in the top right corner of the Mobile Wallet (Mifos Pay) repository to create your own fork.

Forking creates a copy of the project under your GitHub account. This enables you to work on changes without affecting the original repository directly.

2. Clone the Forked Repository

Once you have forked the repository, you need to clone it to your local development environment. Open a terminal or Git Bash and use the following command:

git clone https://github.com/yourUsername/mobile-wallet.git

Replace yourUsername with your actual GitHub username. Cloning creates a local copy of the repository on your machine, allowing you to make changes and contributions.

3. Working Locally on Your Cloned Repository

After cloning, navigate to the project directory using the terminal or Git Bash.

Before making any changes, create a new branch dedicated to the feature or bug fix you'll be working on:

git checkout -b "new-branch-name"

Ensure that new-branch-name reflects the purpose of your changes (e.g., add-payment-feature or fix-bug-123).

Make the necessary changes to the files to address the issue you're working on. Once you're done, you will be ready to proceed with verifying and committing your changes.

4. Perform a Gradle Check

All your pull requests must pass the CI build only then, it will be allowed to merge. Sometimes, when the build doesn't pass you can use these commands in your local terminal and check for the errors,

We've commited to use Material3 design in our project. And added lint check for not to use any M2 libraries in our project. And when adding new library, please make sure to follow the naming convention and place in sequential order(A->Z).

In MacOS, Windows or Linux, you should run the following commands before opening a PR, and make sure to pass all the commands:

In order to enhance our development process, we have implemented Git hooks in our project. To install these hooks locally, simply run the command ./gradlew installGitHooks. This will ensure that the Git hooks are installed on your local machine.

./gradlew check -p build-logic this checks build-logic configured properly.

./gradlew spotlessApply --no-configuration-cache an check and apply formatting to any file.

./gradlew dependencyGuardBaseline to generate dependency-guard baseline.

./gradlew detekt to check detekt error.

./gradlew testDemoDebug :lint:test :mifospay:lintProdRelease :lint:lint to check lint and test error.

./gradlew build to build the project.

./gradlew updateProdReleaseBadging to update the badging for the project.

Or Run the ci-prebuild.sh or ci-prebuild.bat script to run all the above commands in one go.

Demo credentials

  • Fineract Instance: venus.mifos.io
  • username: venus
  • password: Venus2023#
Clone this wiki locally