caste and category issue

This commit is contained in:
smileomi18@gmail.com
2023-08-01 14:23:56 +05:30
parent f2fb60f08e
commit 6c0e7dc31d
3 changed files with 25 additions and 32 deletions

View File

@@ -12,7 +12,7 @@ android {
compileSdk 34 compileSdk 34
defaultConfig { defaultConfig {
applicationId "in.sminnovations.hposregistration.prod" applicationId "in.sminnovations.hposregistration"
minSdk 26 minSdk 26
targetSdk 34 targetSdk 34
versionCode 1 versionCode 1

View File

@@ -1,41 +1,33 @@
{ {
"project_info": { "project_info": {
"project_number": "1012719870714", "project_number": "650071678820",
"project_id": "hpos-prod", "project_id": "hpos-af3cc",
"storage_bucket": "hpos-prod.appspot.com" "storage_bucket": "hpos-af3cc.appspot.com"
}, },
"client": [ "client": [
{ {
"client_info": { "client_info": {
"mobilesdk_app_id": "1:1012719870714:android:2122895c593b5c1bde5f43", "mobilesdk_app_id": "1:650071678820:android:f1435a1c07f710036c6471",
"android_client_info": { "android_client_info": {
"package_name": "com.example.hposconsentform" "package_name": "com.example.hposconsentform"
} }
}, },
"oauth_client": [ "oauth_client": [
{ {
"client_id": "1012719870714-47951kfciei7suf9lkb8h9mih5511a49.apps.googleusercontent.com", "client_id": "650071678820-to41afi9f0gi5r3k6v7pe1e5p96nupcs.apps.googleusercontent.com",
"client_type": 1,
"android_info": {
"package_name": "com.example.hposconsentform",
"certificate_hash": "7714b9268a81d0cf0fb178b0af8dbb630f8fc70a"
}
},
{
"client_id": "1012719870714-uli6cdjea3lfnnueh6e4r15i10ei1vlj.apps.googleusercontent.com",
"client_type": 3 "client_type": 3
} }
], ],
"api_key": [ "api_key": [
{ {
"current_key": "AIzaSyCr755mlFbEbjABXRCrhlJE25lBiuJ_eiE" "current_key": "AIzaSyAVdNGCev_AFX0qmuZJF6kxzRzXUTeAW5I"
} }
], ],
"services": { "services": {
"appinvite_service": { "appinvite_service": {
"other_platform_oauth_client": [ "other_platform_oauth_client": [
{ {
"client_id": "1012719870714-uli6cdjea3lfnnueh6e4r15i10ei1vlj.apps.googleusercontent.com", "client_id": "650071678820-to41afi9f0gi5r3k6v7pe1e5p96nupcs.apps.googleusercontent.com",
"client_type": 3 "client_type": 3
} }
] ]
@@ -44,35 +36,35 @@
}, },
{ {
"client_info": { "client_info": {
"mobilesdk_app_id": "1:1012719870714:android:ef0f9ee982d1e20ade5f43", "mobilesdk_app_id": "1:650071678820:android:7569c1cad4fc99916c6471",
"android_client_info": { "android_client_info": {
"package_name": "in.sminnovations.hposregistration.prod" "package_name": "in.sminnovations.hposregistration"
} }
}, },
"oauth_client": [ "oauth_client": [
{ {
"client_id": "1012719870714-6bh1e40n7sn7e14obeqe06lbmn3r5qtr.apps.googleusercontent.com", "client_id": "650071678820-70kp5jvjda4r5diqch2kn4lc40p4f42g.apps.googleusercontent.com",
"client_type": 1, "client_type": 1,
"android_info": { "android_info": {
"package_name": "in.sminnovations.hposregistration.prod", "package_name": "in.sminnovations.hposregistration",
"certificate_hash": "7714b9268a81d0cf0fb178b0af8dbb630f8fc70a" "certificate_hash": "7714b9268a81d0cf0fb178b0af8dbb630f8fc70a"
} }
}, },
{ {
"client_id": "1012719870714-uli6cdjea3lfnnueh6e4r15i10ei1vlj.apps.googleusercontent.com", "client_id": "650071678820-to41afi9f0gi5r3k6v7pe1e5p96nupcs.apps.googleusercontent.com",
"client_type": 3 "client_type": 3
} }
], ],
"api_key": [ "api_key": [
{ {
"current_key": "AIzaSyCr755mlFbEbjABXRCrhlJE25lBiuJ_eiE" "current_key": "AIzaSyAVdNGCev_AFX0qmuZJF6kxzRzXUTeAW5I"
} }
], ],
"services": { "services": {
"appinvite_service": { "appinvite_service": {
"other_platform_oauth_client": [ "other_platform_oauth_client": [
{ {
"client_id": "1012719870714-uli6cdjea3lfnnueh6e4r15i10ei1vlj.apps.googleusercontent.com", "client_id": "650071678820-to41afi9f0gi5r3k6v7pe1e5p96nupcs.apps.googleusercontent.com",
"client_type": 3 "client_type": 3
} }
] ]
@@ -81,35 +73,35 @@
}, },
{ {
"client_info": { "client_info": {
"mobilesdk_app_id": "1:1012719870714:android:5bfc19f874284d77de5f43", "mobilesdk_app_id": "1:650071678820:android:f96be19e5d43102b6c6471",
"android_client_info": { "android_client_info": {
"package_name": "in.sminnovations.hpostesting.prod" "package_name": "in.sminnovations.hpostesting"
} }
}, },
"oauth_client": [ "oauth_client": [
{ {
"client_id": "1012719870714-ucnt94gpjdrj8ac7rnkts9v5o2t6ae10.apps.googleusercontent.com", "client_id": "650071678820-l87dnr0bdj95get0khgnvfv2an1k6ogq.apps.googleusercontent.com",
"client_type": 1, "client_type": 1,
"android_info": { "android_info": {
"package_name": "in.sminnovations.hpostesting.prod", "package_name": "in.sminnovations.hpostesting",
"certificate_hash": "7714b9268a81d0cf0fb178b0af8dbb630f8fc70a" "certificate_hash": "7714b9268a81d0cf0fb178b0af8dbb630f8fc70a"
} }
}, },
{ {
"client_id": "1012719870714-uli6cdjea3lfnnueh6e4r15i10ei1vlj.apps.googleusercontent.com", "client_id": "650071678820-to41afi9f0gi5r3k6v7pe1e5p96nupcs.apps.googleusercontent.com",
"client_type": 3 "client_type": 3
} }
], ],
"api_key": [ "api_key": [
{ {
"current_key": "AIzaSyCr755mlFbEbjABXRCrhlJE25lBiuJ_eiE" "current_key": "AIzaSyAVdNGCev_AFX0qmuZJF6kxzRzXUTeAW5I"
} }
], ],
"services": { "services": {
"appinvite_service": { "appinvite_service": {
"other_platform_oauth_client": [ "other_platform_oauth_client": [
{ {
"client_id": "1012719870714-uli6cdjea3lfnnueh6e4r15i10ei1vlj.apps.googleusercontent.com", "client_id": "650071678820-to41afi9f0gi5r3k6v7pe1e5p96nupcs.apps.googleusercontent.com",
"client_type": 3 "client_type": 3
} }
] ]

View File

@@ -60,6 +60,7 @@ class UserDetailsRegistrationFragment : Fragment() {
user.careOf.let { etCareof.setText(it) } user.careOf.let { etCareof.setText(it) }
user.maritalStatus.let { etIsMarried.setText(it, false) } user.maritalStatus.let { etIsMarried.setText(it, false) }
user.caste.let { etCaste.setText(it) } user.caste.let { etCaste.setText(it) }
user.category.let { etCategory.setText(it) }
user.subCaste.let { etSubCaste.setText(it) } user.subCaste.let { etSubCaste.setText(it) }
user.house.let { etHouse.setText(it) } user.house.let { etHouse.setText(it) }
user.city.let { etCity.setText(it) } user.city.let { etCity.setText(it) }
@@ -163,9 +164,9 @@ class UserDetailsRegistrationFragment : Fragment() {
userData.maritalStatus = maritalStatus userData.maritalStatus = maritalStatus
} }
val category = etCaste.text.toString() val category = etCategory.text.toString()
if (category.isEmpty()) { if (category.isEmpty()) {
etCaste.error = "Please enter your category" etCategory.error = "Please enter your category"
return false return false
} else { } else {
userData.category = category userData.category = category