forked from openMF/mobile-wallet
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: build.gradle grovvy to dsl * refactor openMF#1476: migrated data package from java to kotlin * fix: update Dockerfile * fix: update ndk version * fix: use the -S option to read from standard input * fix: remove sudo * fix: latest ndk * fix: hard code Android Home dir * fix: comment ndk install for now * fix: corrupt png file * refactor openMF#1481: migrated core utils and MifosPayApplication to kotlin --------- Co-authored-by: Rajan Maurya <rajanmaurya154@gmail.com> Co-authored-by: Pratyush Singh <aries.pratyush@gmail.com>
- Loading branch information
1 parent
ada9ab4
commit e92b306
Showing
34 changed files
with
782 additions
and
923 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,6 @@ | ||
// Top-level build file where you can add configuration options common to all sub-projects/modules. | ||
plugins { | ||
alias(libs.plugins.android.application) apply false | ||
alias(libs.plugins.kotlin.android) apply false | ||
alias(libs.plugins.kotlin.serialization) apply false | ||
alias(libs.plugins.firebase.crashlytics) apply false | ||
alias(libs.plugins.gms) apply false | ||
//alias(libs.plugins.butterknife) apply false | ||
alias(libs.plugins.hilt.gradle) apply false | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
plugins { | ||
alias(libs.plugins.android.library) | ||
alias(libs.plugins.kotlin.android) | ||
alias(libs.plugins.kotlin.kapt) | ||
alias(libs.plugins.kotlin.parcelize) | ||
} | ||
|
||
apply(from = "../config/quality/quality.gradle") | ||
|
||
group = "com.github.ankurs287" | ||
|
||
android { | ||
compileSdk = libs.versions.compileSdk.get().toInt() | ||
namespace = "org.mifos.mobilewallet.core" | ||
defaultConfig { | ||
minSdk = libs.versions.minSdk.get().toInt() | ||
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner" | ||
} | ||
buildTypes { | ||
getByName("release") { | ||
isMinifyEnabled = false | ||
proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro") | ||
} | ||
getByName("debug") { | ||
isMinifyEnabled = false | ||
} | ||
} | ||
|
||
compileOptions { | ||
sourceCompatibility = JavaVersion.VERSION_17 | ||
targetCompatibility = JavaVersion.VERSION_17 | ||
} | ||
|
||
composeOptions { | ||
kotlinCompilerExtensionVersion = "1.5.7" | ||
} | ||
|
||
kotlinOptions { | ||
jvmTarget = "17" | ||
} | ||
|
||
buildFeatures{ | ||
dataBinding = true | ||
buildConfig = true | ||
} | ||
|
||
lint { | ||
abortOnError = false | ||
disable += "InvalidPackage" | ||
} | ||
} | ||
|
||
dependencies { | ||
implementation("androidx.appcompat:appcompat:1.6.1") | ||
|
||
implementation("com.google.dagger:hilt-android:2.48") | ||
kapt("com.google.dagger:hilt-compiler:2.48") | ||
|
||
implementation(libs.squareup.retrofit2) { | ||
// exclude Retrofit’s OkHttp peer-dependency module and define your own module import | ||
exclude(module = "okhttp") | ||
} | ||
implementation(libs.squareup.retrofit.adapter.rxjava) | ||
implementation(libs.squareup.retrofit.converter.gson) | ||
implementation(libs.squareup.okhttp) | ||
implementation(libs.squareup.logging.interceptor) | ||
|
||
implementation(libs.reactivex.rxjava.android) | ||
implementation(libs.reactivex.rxjava) | ||
|
||
implementation(libs.jetbrains.kotlin.jdk7) | ||
|
||
testImplementation(libs.junit) | ||
androidTestImplementation("androidx.test.espresso:espresso-core:3.1.0") { | ||
exclude(group = "com.android.support", module = "support-annotations") | ||
} | ||
} | ||
|
||
kapt { | ||
correctErrorTypes = true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
61 changes: 0 additions & 61 deletions
61
core/src/main/java/org/mifos/mobilewallet/core/utils/Constants.java
This file was deleted.
Oops, something went wrong.
54 changes: 54 additions & 0 deletions
54
core/src/main/java/org/mifos/mobilewallet/core/utils/Constants.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
package org.mifos.mobilewallet.core.utils | ||
|
||
import java.util.Arrays | ||
import java.util.Collections | ||
|
||
/** | ||
* Created by naman on 17/6/17. | ||
*/ | ||
object Constants { | ||
const val BASIC = "Basic " | ||
const val SAVINGS = "savingsAccounts" | ||
const val TRANSACTIONS = "transactions" | ||
const val WALLET_ACCOUNT_SAVINGS_PRODUCT_ID = 1 | ||
const val MIFOS_MERCHANT_SAVINGS_PRODUCT_ID = 165 // 372 | ||
const val MIFOS_CONSUMER_SAVINGS_PRODUCT_ID = 165 // 373 | ||
private const val MOBILE_WALLET_ROLE_ID = 471 | ||
private const val SUPER_USER_ROLE_ID = 1 | ||
@JvmField | ||
val NEW_USER_ROLE_IDS: Collection<Int> = Collections.unmodifiableList( | ||
Arrays.asList(MOBILE_WALLET_ROLE_ID, SUPER_USER_ROLE_ID) | ||
) | ||
const val ENTITY_TYPE_CLIENTS = "clients" | ||
const val FETCH_ACCOUNT_TRANSFER_USECASE = "FetchAccountTransfer" | ||
const val NO_SAVED_CARDS = "No saved cards." | ||
const val MIFOS_PASSWORD = "mifos:password" | ||
const val ERROR_VERIFYING_USER = "Error verifying user" | ||
const val ERROR_REGISTERING_USER = "Error registering user" | ||
const val NO_CLIENTS_FOUND = "No clients found" | ||
const val ERROR_SEARCHING_CLIENTS = "Error searching clients" | ||
const val CLIENTS = "clients" | ||
const val NO_ACCOUNTS_FOUND = "No accounts found" | ||
const val ERROR_FETCHING_ACCOUNTS = "Error fetching accounts" | ||
const val ERROR_MAKING_TRANSFER = "Error making transfer" | ||
const val WALLET_TRANSFER = "Wallet transfer" | ||
const val ERROR_ADDING_BENEFICIARY = "Error adding beneficiary" | ||
const val ERROR_FETCHING_BENEFICIARIES = "Error fetching beneficiaries" | ||
const val ERROR_FETCHING_TO_ACCOUNT = "Error fetching to account" | ||
const val NO_WALLET_FOUND = "No wallet found" | ||
const val ERROR_FETCHING_FROM_ACCOUNT = "Error fetching from account" | ||
const val ERROR_FETCHING_CLIENT_DATA = "Error fetching client data" | ||
const val NO_CLIENT_FOUND = "No client found" | ||
const val ERROR_LOGGING_IN = "Error logging in" | ||
const val ERROR_FETCHING_REMOTE_ACCOUNT_TRANSACTIONS = | ||
"Error fetching remote account transactions" | ||
const val PDF = "PDF" | ||
const val ERROR_FETCHING_ACCOUNT = "Error fetching account" | ||
const val NO_ACCOUNT_FOUND = "No account found" | ||
const val INVOICE_DOES_NOT_EXIST = "Invoice does not exist." | ||
const val INVALID_UPL = "Invalid UPL" | ||
const val MERCHANT = "merchant" | ||
const val FETCH_CLIENT_DETAILS_USE_CASE = "Fetch Client Details UseCase" | ||
const val ERROR_FETCHING_NOTIFICATIONS = "Error fetching notifications" | ||
const val UNAUTHORIZED_ERROR = "401 Unauthorized" | ||
} |
Oops, something went wrong.