Giter Site home page Giter Site logo

danishjamal104 / fineract-android-sdk Goto Github PK

View Code? Open in Web Editor NEW

This project forked from openmf/fineract-android-sdk

0.0 1.0 0.0 2.28 MB

This is architecture repository for mifos-android-sdk

License: Mozilla Public License 2.0

Kotlin 100.00%

fineract-android-sdk's Introduction

Mifos Android Architecture

This is architecture repository for mifos-android-sdk

Fineract API Client Library GitHub Workflow Status Jitpack License: MPL 2.0

A Kotlin based SDK that can be used to interact with the Apache Fineract 1.x Platform. This library depends on Fineract Client Library and exposes the use cases, providing abstraction layer and eliminating the need to take care of building the client. Client application can directly interact with the classes that provide simple methods for interacting with the API.

Feature

  1. Extend UserPreferences<USER> and BasePreferenceManager classes for handling the preferences tasks.

  2. The returned data can be easily casted as per client need using EntityMapper and AbstractMapper

  3. Single point of interaction for all the api services using BaseApiManager.

  4. Use of Kotlin provides endless possibilities to manipulate dat in our own way, client can define custom mapping logic and apply it to Observable<T>.

    fun <T, To> Observable<T>.map(entityMapper: EntityMapper<T, To>): Observable<To> {
            return this.map { entityMapper.mapFromEntity(it) }
    }

Add Gradle Dependency

To add library in your gradle project follow the steps below:

  1. Add this in your root build.gradle at the end of repositories:
    allprojects {
        repositories {
            ...
            maven { url 'https://jitpack.io' }
        }
    }
  2. Add the dependency
    dependencies {
        def sdk_Version = '1.0.2'
        implementation "com.github.openMF:mifos-android-sdk-arch:$sdk_Version"
    }

Architecture

  1. The core module in the SDK contains all the API requests written.
  2. The entry point to the library is the BaseApiManager.
  3. Use companion object's getInstance() function to get the instance of the implementation of BaseApiManager.
  4. For setting up the services, call createService(username: String, password: String, baseUrl: String, tenant: String) method of BaseApiManager providing valid credentials.
  5. Currently only the selected number of APIs are exposed, as much required in android-client.

Building the Code

  1. Clone the repository using command: git clone https://github.com/openMF/mifos-android-sdk-arch.git
  2. Open Android Studio.
  3. Click on 'Open an existing Android Studio project'
  4. Browse to the directory where you cloned the android-client repo and click OK.
  5. Let Android Studio import the project.
  6. Build the application in your device by clicking run button.

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -m 'Add some feature')
  4. In case of multiple commits squash them. You can find guide here: how to squash commits
  5. Clear the checks and make sure build is successfull
  6. Push your branch (git push origin my-new-feature)
  7. Create a new Pull Request, following the template

fineract-android-sdk's People

Contributors

danishjamal104 avatar grandolf49 avatar iamsh4shank avatar renovate-bot avatar therajanmaurya avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.