diff --git a/.idea/kotlinc.xml b/.idea/kotlinc.xml
index 217e5c5..9a55c2d 100644
--- a/.idea/kotlinc.xml
+++ b/.idea/kotlinc.xml
@@ -1,6 +1,6 @@
-
+
\ No newline at end of file
diff --git a/app/build.gradle b/app/build.gradle
index a8665b6..ff7e285 100644
--- a/app/build.gradle
+++ b/app/build.gradle
@@ -9,12 +9,12 @@ plugins {
android {
namespace 'in.sminnovations.hposregistration'
- compileSdk 33
+ compileSdk 34
defaultConfig {
- applicationId "in.sminnovations.hposregistration"
+ applicationId "in.sminnovations.hposregistration.prod"
minSdk 26
- targetSdk 33
+ targetSdk 34
versionCode 1
versionName "1.0"
@@ -71,8 +71,8 @@ dependencies {
kapt "androidx.hilt:hilt-compiler:1.0.0"
// Navigation Component
- implementation "androidx.navigation:navigation-fragment-ktx:2.7.0-beta01"
- implementation "androidx.navigation:navigation-ui-ktx:2.7.0-beta01"
+ implementation "androidx.navigation:navigation-fragment-ktx:2.7.0-beta02"
+ implementation "androidx.navigation:navigation-ui-ktx:2.7.0-beta02"
// Retrofit + GSON
implementation "com.squareup.retrofit2:retrofit:2.9.0"
@@ -89,9 +89,9 @@ dependencies {
annotationProcessor 'com.github.bumptech.glide:compiler:4.12.0'
//Room
- implementation "androidx.room:room-ktx:2.6.0-alpha01"
- implementation "androidx.room:room-runtime:2.6.0-alpha01"
- kapt ("androidx.room:room-compiler:2.6.0-alpha01")
+ implementation "androidx.room:room-ktx:2.6.0-alpha02"
+ implementation "androidx.room:room-runtime:2.6.0-alpha02"
+ kapt ("androidx.room:room-compiler:2.6.0-alpha02")
// Barcode scanner
implementation 'com.journeyapps:zxing-android-embedded:4.3.0'
diff --git a/app/google-services.json b/app/google-services.json
index 44d2b36..e0afa5a 100644
--- a/app/google-services.json
+++ b/app/google-services.json
@@ -1,41 +1,41 @@
{
"project_info": {
- "project_number": "650071678820",
- "project_id": "hpos-af3cc",
- "storage_bucket": "hpos-af3cc.appspot.com"
+ "project_number": "1012719870714",
+ "project_id": "hpos-prod",
+ "storage_bucket": "hpos-prod.appspot.com"
},
"client": [
{
"client_info": {
- "mobilesdk_app_id": "1:650071678820:android:7569c1cad4fc99916c6471",
+ "mobilesdk_app_id": "1:1012719870714:android:2122895c593b5c1bde5f43",
"android_client_info": {
- "package_name": "in.sminnovations.hposregistration"
+ "package_name": "com.example.hposconsentform"
}
},
"oauth_client": [
{
- "client_id": "650071678820-70kp5jvjda4r5diqch2kn4lc40p4f42g.apps.googleusercontent.com",
+ "client_id": "1012719870714-47951kfciei7suf9lkb8h9mih5511a49.apps.googleusercontent.com",
"client_type": 1,
"android_info": {
- "package_name": "in.sminnovations.hposregistration",
+ "package_name": "com.example.hposconsentform",
"certificate_hash": "7714b9268a81d0cf0fb178b0af8dbb630f8fc70a"
}
},
{
- "client_id": "650071678820-to41afi9f0gi5r3k6v7pe1e5p96nupcs.apps.googleusercontent.com",
+ "client_id": "1012719870714-uli6cdjea3lfnnueh6e4r15i10ei1vlj.apps.googleusercontent.com",
"client_type": 3
}
],
"api_key": [
{
- "current_key": "AIzaSyAVdNGCev_AFX0qmuZJF6kxzRzXUTeAW5I"
+ "current_key": "AIzaSyCr755mlFbEbjABXRCrhlJE25lBiuJ_eiE"
}
],
"services": {
"appinvite_service": {
"other_platform_oauth_client": [
{
- "client_id": "650071678820-to41afi9f0gi5r3k6v7pe1e5p96nupcs.apps.googleusercontent.com",
+ "client_id": "1012719870714-uli6cdjea3lfnnueh6e4r15i10ei1vlj.apps.googleusercontent.com",
"client_type": 3
}
]
@@ -44,35 +44,72 @@
},
{
"client_info": {
- "mobilesdk_app_id": "1:650071678820:android:f96be19e5d43102b6c6471",
+ "mobilesdk_app_id": "1:1012719870714:android:ef0f9ee982d1e20ade5f43",
"android_client_info": {
- "package_name": "in.sminnovations.hpostesting"
+ "package_name": "in.sminnovations.hposregistration.prod"
}
},
"oauth_client": [
{
- "client_id": "650071678820-l87dnr0bdj95get0khgnvfv2an1k6ogq.apps.googleusercontent.com",
+ "client_id": "1012719870714-6bh1e40n7sn7e14obeqe06lbmn3r5qtr.apps.googleusercontent.com",
"client_type": 1,
"android_info": {
- "package_name": "in.sminnovations.hpostesting",
+ "package_name": "in.sminnovations.hposregistration.prod",
"certificate_hash": "7714b9268a81d0cf0fb178b0af8dbb630f8fc70a"
}
},
{
- "client_id": "650071678820-to41afi9f0gi5r3k6v7pe1e5p96nupcs.apps.googleusercontent.com",
+ "client_id": "1012719870714-uli6cdjea3lfnnueh6e4r15i10ei1vlj.apps.googleusercontent.com",
"client_type": 3
}
],
"api_key": [
{
- "current_key": "AIzaSyAVdNGCev_AFX0qmuZJF6kxzRzXUTeAW5I"
+ "current_key": "AIzaSyCr755mlFbEbjABXRCrhlJE25lBiuJ_eiE"
}
],
"services": {
"appinvite_service": {
"other_platform_oauth_client": [
{
- "client_id": "650071678820-to41afi9f0gi5r3k6v7pe1e5p96nupcs.apps.googleusercontent.com",
+ "client_id": "1012719870714-uli6cdjea3lfnnueh6e4r15i10ei1vlj.apps.googleusercontent.com",
+ "client_type": 3
+ }
+ ]
+ }
+ }
+ },
+ {
+ "client_info": {
+ "mobilesdk_app_id": "1:1012719870714:android:5bfc19f874284d77de5f43",
+ "android_client_info": {
+ "package_name": "in.sminnovations.hpostesting.prod"
+ }
+ },
+ "oauth_client": [
+ {
+ "client_id": "1012719870714-ucnt94gpjdrj8ac7rnkts9v5o2t6ae10.apps.googleusercontent.com",
+ "client_type": 1,
+ "android_info": {
+ "package_name": "in.sminnovations.hpostesting.prod",
+ "certificate_hash": "7714b9268a81d0cf0fb178b0af8dbb630f8fc70a"
+ }
+ },
+ {
+ "client_id": "1012719870714-uli6cdjea3lfnnueh6e4r15i10ei1vlj.apps.googleusercontent.com",
+ "client_type": 3
+ }
+ ],
+ "api_key": [
+ {
+ "current_key": "AIzaSyCr755mlFbEbjABXRCrhlJE25lBiuJ_eiE"
+ }
+ ],
+ "services": {
+ "appinvite_service": {
+ "other_platform_oauth_client": [
+ {
+ "client_id": "1012719870714-uli6cdjea3lfnnueh6e4r15i10ei1vlj.apps.googleusercontent.com",
"client_type": 3
}
]
diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml
index 589db7a..3761d29 100644
--- a/app/src/main/AndroidManifest.xml
+++ b/app/src/main/AndroidManifest.xml
@@ -16,9 +16,9 @@
android:allowBackup="true"
android:dataExtractionRules="@xml/data_extraction_rules"
android:fullBackupContent="@xml/backup_rules"
- android:icon="@mipmap/ic_launcher"
+ android:icon="@mipmap/hpos_icon"
android:label="@string/app_name"
- android:roundIcon="@mipmap/ic_launcher_round"
+ android:roundIcon="@mipmap/hpos_icon_round"
android:supportsRtl="true"
android:theme="@style/Theme.HPOSRegistration"
tools:targetApi="31">
@@ -42,6 +42,11 @@
+
\ No newline at end of file
diff --git a/app/src/main/java/com/example/hposregistration/ui/fragments/registration/UserDetailsRegistrationFragment.kt b/app/src/main/java/com/example/hposregistration/ui/fragments/registration/UserDetailsRegistrationFragment.kt
index e3f62be..e92aa0f 100644
--- a/app/src/main/java/com/example/hposregistration/ui/fragments/registration/UserDetailsRegistrationFragment.kt
+++ b/app/src/main/java/com/example/hposregistration/ui/fragments/registration/UserDetailsRegistrationFragment.kt
@@ -5,7 +5,6 @@ import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.Toast
-import androidx.core.view.isVisible
import androidx.fragment.app.Fragment
import androidx.fragment.app.viewModels
import androidx.navigation.fragment.findNavController
@@ -60,14 +59,13 @@ class UserDetailsRegistrationFragment : Fragment() {
user.phoneNumber.let { etMobile.setText(it) }
user.careOf.let { etCareof.setText(it) }
user.maritalStatus.let { etIsMarried.setText(it, false) }
- user.caste.let { etCategory.setText(it, false) }
+ user.caste.let { etCaste.setText(it) }
user.subCaste.let { etSubCaste.setText(it) }
user.house.let { etHouse.setText(it) }
user.city.let { etCity.setText(it) }
user.district.let { etDistrict.setText(it) }
user.state.let { etState.setText(it) }
user.pinCode.let { etPincode.setText(it) }
- user.bloodGroup.let { etBloodGroup.setText(it, false) }
user.isUnderMedication.let {
if (it != null) {
yes.isChecked = it
@@ -200,19 +198,16 @@ class UserDetailsRegistrationFragment : Fragment() {
userData.maritalStatus = maritalStatus
}
- val category = etCategory.text.toString()
+ val category = etCaste.text.toString()
if (category.isEmpty()) {
- etCategory.error = "Please enter your caste"
+ etCaste.error = "Please enter your caste"
return false
} else {
userData.caste = category
}
val subCaste = etSubCaste.text.toString()
- if (subCaste.isEmpty()) {
- etSubCaste.error = "Please enter your sub caste"
- return false
- } else {
+ if (subCaste.isNotEmpty()) {
userData.subCaste = subCaste
}
@@ -256,13 +251,13 @@ class UserDetailsRegistrationFragment : Fragment() {
userData.pinCode = pincode
}
- val bloodGroup = etBloodGroup.text.toString()
- if (bloodGroup.isEmpty()) {
- etBloodGroup.error = "Please enter your blood group"
- return false
- } else {
- userData.bloodGroup = bloodGroup
- }
+// val bloodGroup = etBloodGroup.text.toString()
+// if (bloodGroup.isEmpty()) {
+// etBloodGroup.error = "Please enter your blood group"
+// return false
+// } else {
+// userData.bloodGroup = bloodGroup
+// }
userData.isUnderMedication = yes.isChecked
userData.isUnderTransfusion = yes1.isChecked
userData.sickleCellHistory = yes1history.isChecked.toString()
diff --git a/app/src/main/res/drawable-v24/ic_launcher_foreground.xml b/app/src/main/res/drawable-v24/ic_launcher_foreground.xml
deleted file mode 100644
index 2b068d1..0000000
--- a/app/src/main/res/drawable-v24/ic_launcher_foreground.xml
+++ /dev/null
@@ -1,30 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/app/src/main/res/drawable/ic_launcher_background.xml b/app/src/main/res/drawable/ic_launcher_background.xml
deleted file mode 100644
index 07d5da9..0000000
--- a/app/src/main/res/drawable/ic_launcher_background.xml
+++ /dev/null
@@ -1,170 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/app/src/main/res/layout/fragment_user_details_registration.xml b/app/src/main/res/layout/fragment_user_details_registration.xml
index 45bd043..b6ba2d5 100644
--- a/app/src/main/res/layout/fragment_user_details_registration.xml
+++ b/app/src/main/res/layout/fragment_user_details_registration.xml
@@ -4,7 +4,7 @@
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
- tools:context=".ui.fragments.registration.UserDetailsRegistrationFragment">
+ tools:context="com.example.hposregistration.ui.fragments.registration.UserDetailsRegistrationFragment">
-
+ android:hint="@string/_2" />
@@ -294,37 +291,38 @@
app:layout_constraintTop_toBottomOf="@id/til_pincode" />
-
+
+
+
+
+
+
+
+
+
+
-
+
+
+
+
+
+
+
+
-
+
+ app:layout_constraintTop_toBottomOf="@id/tv_title3" />
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/mipmap-anydpi-v26/hpos_icon_round.xml b/app/src/main/res/mipmap-anydpi-v26/hpos_icon_round.xml
new file mode 100644
index 0000000..3ef5c0b
--- /dev/null
+++ b/app/src/main/res/mipmap-anydpi-v26/hpos_icon_round.xml
@@ -0,0 +1,5 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml b/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
deleted file mode 100644
index 6f3b755..0000000
--- a/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
+++ /dev/null
@@ -1,6 +0,0 @@
-
-
-
-
-
-
\ No newline at end of file
diff --git a/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml b/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml
deleted file mode 100644
index 6f3b755..0000000
--- a/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml
+++ /dev/null
@@ -1,6 +0,0 @@
-
-
-
-
-
-
\ No newline at end of file
diff --git a/app/src/main/res/mipmap-hdpi/hpos_icon.png b/app/src/main/res/mipmap-hdpi/hpos_icon.png
new file mode 100644
index 0000000..3a19d34
Binary files /dev/null and b/app/src/main/res/mipmap-hdpi/hpos_icon.png differ
diff --git a/app/src/main/res/mipmap-hdpi/hpos_icon_foreground.png b/app/src/main/res/mipmap-hdpi/hpos_icon_foreground.png
new file mode 100644
index 0000000..7893471
Binary files /dev/null and b/app/src/main/res/mipmap-hdpi/hpos_icon_foreground.png differ
diff --git a/app/src/main/res/mipmap-hdpi/hpos_icon_round.png b/app/src/main/res/mipmap-hdpi/hpos_icon_round.png
new file mode 100644
index 0000000..047361a
Binary files /dev/null and b/app/src/main/res/mipmap-hdpi/hpos_icon_round.png differ
diff --git a/app/src/main/res/mipmap-hdpi/ic_launcher.webp b/app/src/main/res/mipmap-hdpi/ic_launcher.webp
deleted file mode 100644
index c209e78..0000000
Binary files a/app/src/main/res/mipmap-hdpi/ic_launcher.webp and /dev/null differ
diff --git a/app/src/main/res/mipmap-hdpi/ic_launcher_round.webp b/app/src/main/res/mipmap-hdpi/ic_launcher_round.webp
deleted file mode 100644
index b2dfe3d..0000000
Binary files a/app/src/main/res/mipmap-hdpi/ic_launcher_round.webp and /dev/null differ
diff --git a/app/src/main/res/mipmap-mdpi/hpos_icon.png b/app/src/main/res/mipmap-mdpi/hpos_icon.png
new file mode 100644
index 0000000..2a5eebe
Binary files /dev/null and b/app/src/main/res/mipmap-mdpi/hpos_icon.png differ
diff --git a/app/src/main/res/mipmap-mdpi/hpos_icon_foreground.png b/app/src/main/res/mipmap-mdpi/hpos_icon_foreground.png
new file mode 100644
index 0000000..5d4950d
Binary files /dev/null and b/app/src/main/res/mipmap-mdpi/hpos_icon_foreground.png differ
diff --git a/app/src/main/res/mipmap-mdpi/hpos_icon_round.png b/app/src/main/res/mipmap-mdpi/hpos_icon_round.png
new file mode 100644
index 0000000..3bec44e
Binary files /dev/null and b/app/src/main/res/mipmap-mdpi/hpos_icon_round.png differ
diff --git a/app/src/main/res/mipmap-mdpi/ic_launcher.webp b/app/src/main/res/mipmap-mdpi/ic_launcher.webp
deleted file mode 100644
index 4f0f1d6..0000000
Binary files a/app/src/main/res/mipmap-mdpi/ic_launcher.webp and /dev/null differ
diff --git a/app/src/main/res/mipmap-mdpi/ic_launcher_round.webp b/app/src/main/res/mipmap-mdpi/ic_launcher_round.webp
deleted file mode 100644
index 62b611d..0000000
Binary files a/app/src/main/res/mipmap-mdpi/ic_launcher_round.webp and /dev/null differ
diff --git a/app/src/main/res/mipmap-xhdpi/hpos_icon.png b/app/src/main/res/mipmap-xhdpi/hpos_icon.png
new file mode 100644
index 0000000..b65f7db
Binary files /dev/null and b/app/src/main/res/mipmap-xhdpi/hpos_icon.png differ
diff --git a/app/src/main/res/mipmap-xhdpi/hpos_icon_foreground.png b/app/src/main/res/mipmap-xhdpi/hpos_icon_foreground.png
new file mode 100644
index 0000000..1f74549
Binary files /dev/null and b/app/src/main/res/mipmap-xhdpi/hpos_icon_foreground.png differ
diff --git a/app/src/main/res/mipmap-xhdpi/hpos_icon_round.png b/app/src/main/res/mipmap-xhdpi/hpos_icon_round.png
new file mode 100644
index 0000000..20aea94
Binary files /dev/null and b/app/src/main/res/mipmap-xhdpi/hpos_icon_round.png differ
diff --git a/app/src/main/res/mipmap-xhdpi/ic_launcher.webp b/app/src/main/res/mipmap-xhdpi/ic_launcher.webp
deleted file mode 100644
index 948a307..0000000
Binary files a/app/src/main/res/mipmap-xhdpi/ic_launcher.webp and /dev/null differ
diff --git a/app/src/main/res/mipmap-xhdpi/ic_launcher_round.webp b/app/src/main/res/mipmap-xhdpi/ic_launcher_round.webp
deleted file mode 100644
index 1b9a695..0000000
Binary files a/app/src/main/res/mipmap-xhdpi/ic_launcher_round.webp and /dev/null differ
diff --git a/app/src/main/res/mipmap-xxhdpi/hpos_icon.png b/app/src/main/res/mipmap-xxhdpi/hpos_icon.png
new file mode 100644
index 0000000..28cb835
Binary files /dev/null and b/app/src/main/res/mipmap-xxhdpi/hpos_icon.png differ
diff --git a/app/src/main/res/mipmap-xxhdpi/hpos_icon_foreground.png b/app/src/main/res/mipmap-xxhdpi/hpos_icon_foreground.png
new file mode 100644
index 0000000..cd1b5cd
Binary files /dev/null and b/app/src/main/res/mipmap-xxhdpi/hpos_icon_foreground.png differ
diff --git a/app/src/main/res/mipmap-xxhdpi/hpos_icon_round.png b/app/src/main/res/mipmap-xxhdpi/hpos_icon_round.png
new file mode 100644
index 0000000..8e6d235
Binary files /dev/null and b/app/src/main/res/mipmap-xxhdpi/hpos_icon_round.png differ
diff --git a/app/src/main/res/mipmap-xxhdpi/ic_launcher.webp b/app/src/main/res/mipmap-xxhdpi/ic_launcher.webp
deleted file mode 100644
index 28d4b77..0000000
Binary files a/app/src/main/res/mipmap-xxhdpi/ic_launcher.webp and /dev/null differ
diff --git a/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp b/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp
deleted file mode 100644
index 9287f50..0000000
Binary files a/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp and /dev/null differ
diff --git a/app/src/main/res/mipmap-xxxhdpi/hpos_icon.png b/app/src/main/res/mipmap-xxxhdpi/hpos_icon.png
new file mode 100644
index 0000000..65b6c82
Binary files /dev/null and b/app/src/main/res/mipmap-xxxhdpi/hpos_icon.png differ
diff --git a/app/src/main/res/mipmap-xxxhdpi/hpos_icon_foreground.png b/app/src/main/res/mipmap-xxxhdpi/hpos_icon_foreground.png
new file mode 100644
index 0000000..5d004e4
Binary files /dev/null and b/app/src/main/res/mipmap-xxxhdpi/hpos_icon_foreground.png differ
diff --git a/app/src/main/res/mipmap-xxxhdpi/hpos_icon_round.png b/app/src/main/res/mipmap-xxxhdpi/hpos_icon_round.png
new file mode 100644
index 0000000..01337dd
Binary files /dev/null and b/app/src/main/res/mipmap-xxxhdpi/hpos_icon_round.png differ
diff --git a/app/src/main/res/mipmap-xxxhdpi/ic_launcher.webp b/app/src/main/res/mipmap-xxxhdpi/ic_launcher.webp
deleted file mode 100644
index aa7d642..0000000
Binary files a/app/src/main/res/mipmap-xxxhdpi/ic_launcher.webp and /dev/null differ
diff --git a/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp b/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp
deleted file mode 100644
index 9126ae3..0000000
Binary files a/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp and /dev/null differ
diff --git a/app/src/main/res/values/hpos_icon_background.xml b/app/src/main/res/values/hpos_icon_background.xml
new file mode 100644
index 0000000..d0e39e1
--- /dev/null
+++ b/app/src/main/res/values/hpos_icon_background.xml
@@ -0,0 +1,4 @@
+
+
+ #FFFFFF
+
\ No newline at end of file
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index edd84f1..70fa182 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -81,6 +81,7 @@
Login ID
Password
Login
+ Caste
diff --git a/build.gradle b/build.gradle
index bbb0449..ebad084 100644
--- a/build.gradle
+++ b/build.gradle
@@ -3,7 +3,7 @@ plugins {
id 'com.android.application' version '8.0.2' apply false
id 'com.android.library' version '8.0.2' apply false
id 'org.jetbrains.kotlin.android' version '1.8.0' apply false
- id 'androidx.navigation.safeargs' version '2.7.0-beta01' apply false
+ id 'androidx.navigation.safeargs' version '2.7.0-beta02' apply false
id 'com.google.dagger.hilt.android' version '2.46' apply false
id "com.google.gms.google-services" version "4.3.15" apply false
}
\ No newline at end of file
diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties
index 5325390..99d6797 100644
--- a/gradle/wrapper/gradle-wrapper.properties
+++ b/gradle/wrapper/gradle-wrapper.properties
@@ -1,6 +1,6 @@
-#Wed Jun 14 15:14:47 IST 2023
+#Wed Jul 12 14:05:11 IST 2023
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
-distributionUrl=https\://services.gradle.org/distributions/gradle-8.1-bin.zip
+distributionUrl=https\://services.gradle.org/distributions/gradle-8.0.2-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists