Skip to content

Commit

Permalink
refactor: Login module
Browse files Browse the repository at this point in the history
  • Loading branch information
akashmeruva9 committed Jul 5, 2024
2 parents 5dafa72 + ec8d6b8 commit 6d4ce45
Show file tree
Hide file tree
Showing 15 changed files with 106 additions and 236 deletions.
2 changes: 2 additions & 0 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,8 @@ dependencies {
implementation(projects.feature.beneficiary)
implementation(projects.feature.guarantor)
implementation(projects.feature.savings)
implementation(projects.feature.qr)
implementation(projects.feature.transferProcess)



Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ import org.mifos.mobile.core.common.Constants
import org.mifos.mobile.core.model.entity.payload.TransferPayload
import org.mifos.mobile.core.common.utils.ParcelableAndSerializableUtils.getCheckedParcelable
import org.mifos.mobile.core.common.utils.ParcelableAndSerializableUtils.getCheckedSerializable
import org.mifos.mobile.feature.transfer.process.TransferProcessScreen
import org.mifos.mobile.feature.transfer.process.TransferProcessViewModel

/**
* Created by dilpreet on 1/7/17.
Expand Down

This file was deleted.

2 changes: 0 additions & 2 deletions feature/registration/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
plugins {
alias(libs.plugins.android.library)
alias(libs.plugins.kotlin.android)
alias(libs.plugins.mifos.android.feature)
alias(libs.plugins.mifos.android.library.compose)
}
Expand Down
1 change: 1 addition & 0 deletions feature/transfer-process/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/build
20 changes: 20 additions & 0 deletions feature/transfer-process/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
plugins {
alias(libs.plugins.mifos.android.feature)
alias(libs.plugins.mifos.android.library.compose)
}


android {
namespace = "org.mifos.mobile.feature.transfer.process"
}

dependencies {
implementation(projects.ui)
implementation(projects.core.common)
implementation(projects.core.model)
implementation(projects.core.data)

testImplementation(libs.junit)
androidTestImplementation(libs.androidx.test.ext.junit)
androidTestImplementation(libs.espresso.core)
}
Empty file.
21 changes: 21 additions & 0 deletions feature/transfer-process/proguard-rules.pro
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Add project specific ProGuard rules here.
# You can control the set of applied configuration files using the
# proguardFiles setting in build.gradle.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html

# If your project uses WebView with JS, uncomment the following
# and specify the fully qualified class name to the JavaScript interface
# class:
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
# public *;
#}

# Uncomment this to preserve the line number information for
# debugging stack traces.
#-keepattributes SourceFile,LineNumberTable

# If you keep the line number information, uncomment this to
# hide the original source file name.
#-renamesourcefileattribute SourceFile
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
package org.mifos.mobile.feature.transfer.process

import androidx.test.platform.app.InstrumentationRegistry
import androidx.test.ext.junit.runners.AndroidJUnit4

import org.junit.Test
import org.junit.runner.RunWith

import org.junit.Assert.*

/**
* Instrumented test, which will execute on an Android device.
*
* See [testing documentation](http://d.android.com/tools/testing).
*/
@RunWith(AndroidJUnit4::class)
class ExampleInstrumentedTest {
@Test
fun useAppContext() {
// Context of the app under test.
val appContext = InstrumentationRegistry.getInstrumentation().targetContext
assertEquals("org.mifos.mobile.feature.transfer.process.test", appContext.packageName)
}
}
4 changes: 4 additions & 0 deletions feature/transfer-process/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android">

</manifest>
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.mifos.mobile.ui.transfer_process
package org.mifos.mobile.feature.transfer.process

import android.widget.Toast
import androidx.compose.foundation.BorderStroke
Expand Down Expand Up @@ -34,7 +34,6 @@ import androidx.compose.ui.tooling.preview.PreviewParameterProvider
import androidx.compose.ui.unit.dp
import androidx.hilt.navigation.compose.hiltViewModel
import androidx.lifecycle.compose.collectAsStateWithLifecycle
import org.mifos.mobile.R
import org.mifos.mobile.core.ui.component.MFScaffold
import org.mifos.mobile.core.ui.component.MifosErrorComponent
import org.mifos.mobile.core.ui.component.MifosProgressIndicatorOverlay
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.mifos.mobile.ui.transfer_process
package org.mifos.mobile.feature.transfer.process

import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
Expand Down
12 changes: 12 additions & 0 deletions feature/transfer-process/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="transfer">Transfer</string>
<string name="transferred_successfully">Transferred Successfully</string>
<string name="amount">Amount</string>
<string name="transfer_from_savings">Transfer from Savings</string>
<string name="pay_to">Pay To</string>
<string name="pay_from">Pay From</string>
<string name="date">Date</string>
<string name="cancel">Cancel</string>
<string name="remark">Remark</string>
</resources>
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
package org.mifos.mobile.feature.transfer.process

import org.junit.Test

import org.junit.Assert.*

/**
* Example local unit test, which will execute on the development machine (host).
*
* See [testing documentation](http://d.android.com/tools/testing).
*/
class ExampleUnitTest {
@Test
fun addition_isCorrect() {
assertEquals(4, 2 + 2)
}
}
1 change: 1 addition & 0 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,4 @@ include(":feature:registration")
include(":feature:login")
include(":feature:savings")
include(":feature:qr")
include(":feature:transfer-process")

0 comments on commit 6d4ce45

Please sign in to comment.