Skip to content

Commit

Permalink
feat wrt #1342 shows flag and country phone code
Browse files Browse the repository at this point in the history
  • Loading branch information
PratyushSingh07 authored and danascape committed Mar 9, 2023
1 parent d8c3220 commit a5406c8
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 13 deletions.
6 changes: 4 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ dependencies {
kapt "com.github.Raizlabs.DBFlow:dbflow-processor:$rootProject.dbflowVersion"
implementation "com.github.Raizlabs.DBFlow:dbflow-core:$rootProject.dbflowVersion"
implementation "com.github.Raizlabs.DBFlow:dbflow:$rootProject.dbflowVersion"

implementation 'io.michaelrocks:libphonenumber-android:8.10.16'
implementation "androidx.appcompat:appcompat:$rootProject.supportLibraryVersion"
implementation "com.google.android.material:material:$rootProject.designLibraryVersion"
implementation "androidx.preference:preference:1.0.0"
Expand All @@ -99,6 +99,8 @@ dependencies {
implementation "com.google.android.gms:play-services-oss-licenses:$rootProject.oss_licenses"
implementation "com.isseiaoki:simplecropview:$rootProject.cropviewVersion"

//Country Code picker
implementation "com.hbb20:ccp:$rootProject.$countryCodePicker"

//Square dependencies
implementation("com.squareup.retrofit2:retrofit:$rootProject.retrofitVersion") {
Expand Down Expand Up @@ -164,7 +166,7 @@ dependencies {
androidTestImplementation "androidx.test.espresso:espresso-core:$rootProject.espressoVersion"
androidTestImplementation "androidx.test:runner:$rootProject.runnerVersion"
androidTestImplementation "androidx.test:rules:$rootProject.rulesVersion"

implementation 'com.github.rahul-gill.mifos-ui-library:uihouse:alpha-2.1'
coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:1.1.5'

Expand Down
33 changes: 22 additions & 11 deletions app/src/main/res/layout/fragment_registration.xml
Original file line number Diff line number Diff line change
Expand Up @@ -59,18 +59,29 @@
android:layout_width="match_parent"/>
</com.google.android.material.textfield.TextInputLayout>

<com.google.android.material.textfield.TextInputLayout
android:layout_height="wrap_content"
android:layout_marginBottom="@dimen/Mifos.DesignSystem.Spacing.marginBetweenItemsSmall"
android:layout_width="match_parent">

<com.google.android.material.textfield.TextInputEditText
android:hint="@string/phone_number"
android:id="@+id/et_phone_number"
android:inputType="number"
android:layout_height="wrap_content"
android:layout_width="match_parent"/>
</com.google.android.material.textfield.TextInputLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<com.hbb20.CountryCodePicker
android:id="@+id/countyCodePicker"
android:layout_gravity="center"
app:ccp_showNameCode="false"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
<com.google.android.material.textfield.TextInputLayout
android:layout_height="wrap_content"
android:layout_marginBottom="@dimen/Mifos.DesignSystem.Spacing.marginBetweenItemsSmall"
android:layout_width="match_parent">
<com.google.android.material.textfield.TextInputEditText
android:hint="@string/phone_number"
android:id="@+id/et_phone_number"
android:inputType="number"
android:layout_height="wrap_content"
android:layout_width="match_parent"/>
</com.google.android.material.textfield.TextInputLayout>
</LinearLayout>


<com.google.android.material.textfield.TextInputLayout
android:layout_height="wrap_content"
Expand Down
1 change: 1 addition & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ ext {
compileSdkVersion = 31

// App dependencies
countryCodePicker='2.5.1'
supportLibraryVersion = '1.4.2'
designLibraryVersion = '1.6.1'
daggerVersion = '2.42'
Expand Down

0 comments on commit a5406c8

Please sign in to comment.