Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: assembleRelease and build issues #2736

Open
wants to merge 6 commits into
base: development
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions androidApp/src/demo/res/mipmap-anydpi-v26/ic_launcher.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright 2025 Mifos Initiative

This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
If a copy of the MPL was not distributed with this file,
You can obtain one at https://mozilla.org/MPL/2.0/.

See https://github.com/openMF/mobile-mobile/blob/master/LICENSE.md
-->
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@color/ic_launcher_background"/>
<foreground android:drawable="@mipmap/ic_launcher_foreground"/>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright 2025 Mifos Initiative

This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
If a copy of the MPL was not distributed with this file,
You can obtain one at https://mozilla.org/MPL/2.0/.

See https://github.com/openMF/mobile-mobile/blob/master/LICENSE.md
-->
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@color/ic_launcher_background"/>
<foreground android:drawable="@mipmap/ic_launcher_foreground"/>
Expand Down
2 changes: 2 additions & 0 deletions androidApp/src/main/res/values-ar/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
-->
<resources>
<string name="feature_about_app_name">ميفوس موبايل</string>
<string name="new_password"> كلمة مرور جديدة</string>
<string name="change_account_password">غيير كلمة مرور الحساب</string>
<string name="login">تسجيل الدخول</string>
<string name="toast_welcome">%1$s أهلا بك</string>
<string name="unable_to_connect">غير متصل بالإنترنت</string>
Expand Down
2 changes: 2 additions & 0 deletions androidApp/src/main/res/values-bn/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
-->
<resources>
<string name="login">লগ ইন করুন</string>
<string name="new_password">নতুন পাসওয়ার্ড</string>
<string name="change_account_password">অ্যাকাউন্ট পাসওয়ার্ড পরিবর্তন করুন</string>
<string name="toast_welcome">হ্যালো, %1$s।</string>
<string name="unable_to_connect">কোন ইন্টারনেট সংযোগ নেই</string>
<string name="basic">প্রাথমিক</string>
Expand Down
2 changes: 2 additions & 0 deletions androidApp/src/main/res/values-es/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
-->
<resources>
<string name="login">Iniciar sesión</string>
<string name="new_password">Nueva contraseña</string>
<string name="change_account_password">Cambiar la contraseña de la cuenta</string>
<string name="toast_welcome">Hola, %1$s.</string>
<string name="unable_to_connect">Falta conexión internet</string>
<string name="basic">Primario</string>
Expand Down
2 changes: 2 additions & 0 deletions androidApp/src/main/res/values-fr/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
-->
<resources>
<string name="login">Se connecter</string>
<string name="new_password">Nouveau mot de passe</string>
<string name="change_account_password">Changer le mot de passe du compte</string>
<string name="toast_welcome">Bonjour, %1$s.</string>
<string name="unable_to_connect">Pas de connexion internet</string>
<string name="basic">Primaire</string>
Expand Down
2 changes: 2 additions & 0 deletions androidApp/src/main/res/values-in/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
-->
<resources>
<string name="login">Masuk</string>
<string name="new_password">Kata sandi baru</string>
<string name="change_account_password">Ubah kata sandi akun</string>
<string name="toast_welcome">Halo, %1$s.</string>
<string name="unable_to_connect">Tidak ada koneksi internet</string>
<string name="basic">Primer</string>
Expand Down
2 changes: 2 additions & 0 deletions androidApp/src/main/res/values-km/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
See https://github.com/openMF/mobile-mobile/blob/master/LICENSE.md
-->
<resources>
<string name="new_password">ពាក្យសម្ងាត់ថ្មី</string>
<string name="change_account_password">ប្តូរពាក្យសម្ងាត់គណនី</string>
<string name="login">ចូល</string>
<string name="toast_welcome">សួស្តី, %1$s ។</string>
<string name="unable_to_connect">គ្មានការតភ្ជាប់អ៊ីនធឺណិត</string>
Expand Down
2 changes: 2 additions & 0 deletions androidApp/src/main/res/values-kn/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
-->
<resources>
<string name="login">ಲಾಗ್ ಇನ್ ಮಾಡಿ</string>
<string name="new_password"> ಹೊಸ ಪಾಸ್‌ವರ್ಡ್</string>
<string name="change_account_password">ಖಾತೆ ಪಾಸ್‌ವರ್ಡ್ ಬದಲಾಯಿಸಿ</string>
<string name="toast_welcome">ಹಲೋ, %1$s.</string>
<string name="unable_to_connect">ಇಂಟರ್ನೆಟ್ ಸಂಪರ್ಕವಿಲ್ಲ</string>
<string name="basic">ಪ್ರಾಥಮಿಕ</string>
Expand Down
2 changes: 2 additions & 0 deletions androidApp/src/main/res/values-my/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@
-->
<resources>
<string name="feature_about_app_name">Mifos မိုဘိုင်း</string>
<string name="new_password"> စကားဝှက်အသစ်</string>
<string name="login">လော့ဂ်အင်</string>
<string name="change_account_password">အကောင့်စကားဝှက်ပြောင် း ပါ </string>
<string name="toast_welcome">%1$s ကိုမှလှိုက်လှဲစွာကြိုဆိုပါသည်</string>
<string name="unable_to_connect">အင်တာနက်ချိတ်ဆက်မ</string>
<string name="basic">အခြေခံပညာ</string>
Expand Down
2 changes: 2 additions & 0 deletions androidApp/src/main/res/values-pl/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
-->
<resources>
<string name="login">Zaloguj Się</string>
<string name="new_password">Nowe hasło</string>
<string name="change_account_password">Zmień hasło do konta</string>
<string name="toast_welcome">Witaj, %1$s.</string>
<string name="unable_to_connect">Brak połączenia z Internetem</string>
<string name="basic">Podstawowy</string>
Expand Down
2 changes: 2 additions & 0 deletions androidApp/src/main/res/values-pt/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
-->
<resources>
<string name="feature_about_app_name">Mifos Mobile</string>
<string name="new_password">Nova senha</string>
<string name="change_account_password">Alterar senha da conta</string>
<string name="login">Entrar</string>
<string name="toast_welcome">Bem-vindo %1$s</string>
<string name="unable_to_connect">Não conectado à internet</string>
Expand Down
2 changes: 2 additions & 0 deletions androidApp/src/main/res/values-ru/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
-->
<resources>
<string name="login">Вход</string>
<string name="new_password">Новый пароль</string>
<string name="change_account_password">Изменить пароль учетной записи</string>
<string name="toast_welcome">Здравствуйте, %1$s.</string>
<string name="unable_to_connect">Нет подключения к интернету</string>
<string name="basic">Первичный</string>
Expand Down
2 changes: 2 additions & 0 deletions androidApp/src/main/res/values-sw/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
-->
<resources>
<string name="login">Ingia</string>
<string name="new_password">Nenosiri la akaunti</string>
<string name="change_account_password">Badilisha nenosiri la akaunti</string>
<string name="toast_welcome">Sawadi, %1$s.</string>
<string name="unable_to_connect">Hakuna uhusiano wa internet</string>
<string name="basic">Msingi</string>
Expand Down
2 changes: 2 additions & 0 deletions androidApp/src/main/res/values-te/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
<resources>
<string name="feature_about_app_name">Mifos Mobile</string>
<string name="login">లాగిన్</string>
<string name="new_password">కొత్త పాస్‌వర్డ్</string>
<string name="change_account_password">ాతా పాస్‌వర్డ్ మార్చండి</string>
<string name="toast_welcome">స్వాగతం %1$s</string>
<string name="feature_about_about_us">మా గురించి</string>
<string name="unable_to_connect">ఇంటర్నెట్కి కనెక్ట్ చేయబడలేదు</string>
Expand Down
2 changes: 2 additions & 0 deletions androidApp/src/main/res/values-ur/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
<resources>
<string name="feature_about_app_name">Mifos موبائل</string>
<string name="login">لاگ ان کریں</string>
<string name="new_password">نیا پاس ورڈ</string>
<string name="change_account_password">اکاؤنٹ پاس ورڈ تبدیل کریں</string>
<string name="toast_welcome">خوش آمدید %1$s</string>
<string name="unable_to_connect">انٹرنیٹ سے منسلک نہیں</string>
<string name="basic">بنیادی</string>
Expand Down
23 changes: 23 additions & 0 deletions androidApp/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
See https://github.com/openMF/mobile-mobile/blob/master/LICENSE.md
-->
<resources>
<string name="change_account_password">Change Account Password</string>
<string name="new_password">New Password</string>
<string name="current_password">Current Password</string>
<string name="feature_about_app_name">Mifos Mobile</string>
<string name="login">Login</string>
<string name="toast_welcome">Welcome %1$s</string>
Expand Down Expand Up @@ -609,6 +612,26 @@
<item>فارسی</item>
</string-array>

<string-array name="faq_qs">
<item>How to apply for a new account?</item>
<item>Where can I view my profile information?</item>
<item>Where can I see my savings account transactions?</item>
<item>What is the use of a QR code?</item>
<item>How to create a beneficiary using a QR code?</item>
<item>How to make a payment for a loan account?</item>
</string-array>

<string-array name="faq_ans">
<item>To apply for a loan account, click on "Report loan application" on the home screen.</item>
<item>You can view your profile information by clicking on the profile picture on the main page of the application.</item>
<item>To view transactions in your savings account, go to the Accounts section, click on the required savings account, click on the
three dots present in the upper right corner and select the Transaction option.</item>
<item>The QR code of all loan or savings accounts can be shared with other users which will allow them to create a beneficiary.</item>
<item>To create a beneficiary, go to the beneficiary on the main page of the application, then click on the button in the lower right corner, select the scan option which will open the camera
of the device, scan the QR code of the person for whom you want to create a beneficiary, after filling in the required data, create beneficiaries using the QR code.</item>
<item>To make a payment for a loan account, go to the Accounts section, select the LOAN option, open the target loan account and click on the Make a payment option.</item>
</string-array>

<string-array name="core_common_languages_value" translatable="false">
<item>System_Language</item>
<item>en</item>
Expand Down
2 changes: 1 addition & 1 deletion config/detekt/detekt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -828,7 +828,7 @@ style:
active: false
ReturnCount:
active: true
max: 2
max: 4
excludedFunctions:
- "equals"
excludeLabeled: false
Expand Down
6 changes: 6 additions & 0 deletions core/common/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,14 @@ plugins {

android {
namespace = "org.mifos.mobile.core.common"

lint {
disable.add( "NullSafeMutableLiveData" )
}

}

dependencies {

implementation(libs.androidx.preference.ktx)
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ object ParcelableAndSerializableUtils {
return if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU) {
this.getParcelableArrayList(key, classType)
} else {
@Suppress("DEPRECATION")
this.getParcelableArrayList(key)
}
}
Expand All @@ -27,6 +28,7 @@ object ParcelableAndSerializableUtils {
return if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU) {
this.getParcelable(key, classType)
} else {
@Suppress("DEPRECATION")
this.getParcelable(key)
}
}
Expand All @@ -35,6 +37,7 @@ object ParcelableAndSerializableUtils {
return if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU) {
this.getSerializable(key, classType)
} else {
@Suppress("DEPRECATION")
this.getSerializable(key)
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ object Utils {
val drawable = menu.getItem(i).icon
if (drawable != null) {
drawable.mutate()
@Suppress("DEPRECATION")
drawable.setColorFilter(
ContextCompat.getColor(context!!, color),
PorterDuff.Mode.SRC_IN,
Expand Down
4 changes: 4 additions & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,8 @@ jbSavedState = "1.2.2"
packageName = "MifosWallet"
packageNamespace = "org.mifos.desktop"
packageVersion = "1.0.0"
preferenceKtxVersion = "1.2.1"
annotationJvmVersion = "1.9.1"

[libraries]
accompanist-pager = { group = "com.google.accompanist", name = "accompanist-pager", version.ref = "accompanistVersion" }
Expand Down Expand Up @@ -312,6 +314,8 @@ moko-permission = { group = "dev.icerock.moko", name = "permissions", version.re
moko-permission-compose = { group = "dev.icerock.moko", name = "permissions-compose", version.ref = "mokoPermission" }

window-size = { group = "dev.chrisbanes.material3", name = "material3-window-size-class-multiplatform", version.ref = "windowsSizeClass" }
androidx-preference-ktx = { group = "androidx.preference", name = "preference-ktx", version.ref = "preferenceKtxVersion" }
androidx-annotation-jvm = { group = "androidx.annotation", name = "annotation-jvm", version.ref = "annotationJvmVersion" }

[bundles]
androidx-compose-ui-test = [
Expand Down
Loading