Compare commits
59 Commits
crop
...
Label_stru
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
50bd29ac94 | ||
|
|
04316b4903 | ||
|
|
0d2124e030 | ||
|
|
1e587b01d5 | ||
|
|
b5cf8586b4 | ||
|
|
2b8edbc23c | ||
|
|
e21afcf87d | ||
|
|
505bed89a1 | ||
|
|
7c7ed3b314 | ||
|
|
e764e69420 | ||
|
|
378db4492e | ||
|
|
e5a27a0eca | ||
|
|
ba981e2b82 | ||
|
|
83dbadef00 | ||
|
|
c0782b85a0 | ||
|
|
aeb70990fb | ||
|
|
5d42da889f | ||
|
|
ae2608e6da | ||
|
|
23850d4bfe | ||
|
|
4e5df74cea | ||
|
|
1dcfe2a34f | ||
|
|
8c1e30764c | ||
|
|
4b74277bd3 | ||
|
|
4e213f4920 | ||
|
|
425bc61a50 | ||
|
|
2e824c1bed | ||
|
|
73597b9cf4 | ||
|
|
b1e828c51a | ||
|
|
8a0c0f326b | ||
|
|
ff972759f5 | ||
|
|
610e206f27 | ||
|
|
d24578cc1c | ||
|
|
6835068f13 | ||
|
|
0e2dc2f306 | ||
|
|
51d6cd57c3 | ||
|
|
48befc8b31 | ||
|
|
ccc50108d3 | ||
|
|
2bd6495612 | ||
|
|
143d90b028 | ||
|
|
3bda3f0d51 | ||
|
|
b6a03e2ebf | ||
|
|
eec8867ddc | ||
|
|
8a4cedb566 | ||
|
|
a3d67a7a88 | ||
|
|
8dcec7bb3f | ||
|
|
a239cd882f | ||
|
|
8a2b0374e3 | ||
|
|
be78cff112 | ||
|
|
6c0e7dc31d | ||
|
|
f2fb60f08e | ||
|
|
57de28b937 | ||
|
|
bdadfe95e9 | ||
|
|
f7d27d79b5 | ||
|
|
378c526115 | ||
|
|
e029b2e49c | ||
|
|
909fd4dc17 | ||
|
|
69518034be | ||
|
|
48799a7f77 | ||
|
|
e74a69662e |
3
.gitignore
vendored
@@ -10,6 +10,9 @@
|
||||
.DS_Store
|
||||
/build
|
||||
/captures
|
||||
/app/google-services.json
|
||||
.externalNativeBuild
|
||||
.cxx
|
||||
local.properties
|
||||
/.idea/misc.xml
|
||||
/.idea/vcs.xml
|
||||
|
||||
3
.idea/.gitignore
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
# Default ignored files
|
||||
/shelf/
|
||||
/workspace.xml
|
||||
2
.idea/gradle.xml
generated
@@ -8,7 +8,7 @@
|
||||
<option name="distributionType" value="DEFAULT_WRAPPED" />
|
||||
<option name="externalProjectPath" value="$PROJECT_DIR$" />
|
||||
<option name="gradleHome" value="$USER_HOME$/andriod studio gradle/gradle-7.3" />
|
||||
<option name="gradleJvm" value="Embedded JDK" />
|
||||
<option name="gradleJvm" value="jbr-17" />
|
||||
<option name="modules">
|
||||
<set>
|
||||
<option value="$PROJECT_DIR$" />
|
||||
|
||||
2
.idea/kotlinc.xml
generated
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="KotlinJpsPluginSettings">
|
||||
<option name="version" value="1.8.21" />
|
||||
<option name="version" value="1.8.22" />
|
||||
</component>
|
||||
</project>
|
||||
3
.idea/misc.xml
generated
@@ -1,3 +0,0 @@
|
||||
<project version="4">
|
||||
<component name="ProjectRootManager" version="2" languageLevel="JDK_17" project-jdk-name="jbr-17" project-jdk-type="JavaSDK" />
|
||||
</project>
|
||||
4
.idea/shelf/Changes.xml
generated
Normal file
@@ -0,0 +1,4 @@
|
||||
<changelist name="Changes" date="1696578975861" recycled="false">
|
||||
<option name="PATH" value="$PROJECT_DIR$/.idea/shelf/Changes/shelved.patch" />
|
||||
<option name="DESCRIPTION" value="Changes" />
|
||||
</changelist>
|
||||
232
.idea/shelf/Changes/shelved.patch
generated
Normal file
4
.idea/shelf/Changes1.xml
generated
Normal file
@@ -0,0 +1,4 @@
|
||||
<changelist name="Changes1" date="1701673804446" recycled="false">
|
||||
<option name="PATH" value="$PROJECT_DIR$/.idea/shelf/Changes1/shelved.patch" />
|
||||
<option name="DESCRIPTION" value="Changes" />
|
||||
</changelist>
|
||||
709
.idea/shelf/Changes1/shelved.patch
generated
Normal file
4
.idea/shelf/Changes2.xml
generated
Normal file
@@ -0,0 +1,4 @@
|
||||
<changelist name="Changes2" date="1701681731623" recycled="false">
|
||||
<option name="PATH" value="$PROJECT_DIR$/.idea/shelf/Changes2/shelved.patch" />
|
||||
<option name="DESCRIPTION" value="Changes" />
|
||||
</changelist>
|
||||
21
.idea/shelf/Changes2/shelved.patch
generated
Normal file
@@ -0,0 +1,21 @@
|
||||
Index: app/src/main/java/com/example/hposregistration/adapters/UserListOnlineAdapter.kt
|
||||
IDEA additional info:
|
||||
Subsystem: com.intellij.openapi.diff.impl.patch.BaseRevisionTextPatchEP
|
||||
<+>package com.example.hposregistration.adapters\r\n\r\nimport android.annotation.SuppressLint\r\nimport android.view.LayoutInflater\r\nimport android.view.View\r\nimport android.view.ViewGroup\r\nimport androidx.recyclerview.widget.RecyclerView\r\nimport com.bumptech.glide.Glide\r\nimport com.example.hposregistration.data.user.UserData\r\nimport com.firebase.ui.firestore.FirestoreRecyclerAdapter\r\nimport com.firebase.ui.firestore.FirestoreRecyclerOptions\r\nimport `in`.sminnovations.hposregistration.R\r\nimport `in`.sminnovations.hposregistration.databinding.UserItemViewBinding\r\n\r\nclass UserListOnlineAdapter(options: FirestoreRecyclerOptions<UserData>, private val view: View) :\r\n FirestoreRecyclerAdapter<UserData, UserListOnlineAdapter.OrderItemViewHolder>(options) {\r\n\r\n class OrderItemViewHolder(val binding: UserItemViewBinding) :\r\n RecyclerView.ViewHolder(binding.root)\r\n\r\n override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): OrderItemViewHolder {\r\n return OrderItemViewHolder(\r\n UserItemViewBinding\r\n .inflate(LayoutInflater.from(parent.context), parent, false)\r\n )\r\n }\r\n\r\n @SuppressLint(\"SetTextI18n\")\r\n override fun onBindViewHolder(holder: OrderItemViewHolder, position: Int, model: UserData) {\r\n holder.binding.apply {\r\n userName.text = view.context.getString(R.string.name) + \": ${model.name}\"\r\n userId.text = view.context.getString(R.string.userid) + \": ${model._id}\"\r\n Glide.with(view).load(model.userImageURL).into(userImage)\r\n }\r\n }\r\n}
|
||||
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
|
||||
<+>UTF-8
|
||||
===================================================================
|
||||
diff --git a/app/src/main/java/com/example/hposregistration/adapters/UserListOnlineAdapter.kt b/app/src/main/java/com/example/hposregistration/adapters/UserListOnlineAdapter.kt
|
||||
--- a/app/src/main/java/com/example/hposregistration/adapters/UserListOnlineAdapter.kt (revision 610e206f27d8ce39c57e9e76b95bfdb7b6047307)
|
||||
+++ b/app/src/main/java/com/example/hposregistration/adapters/UserListOnlineAdapter.kt (date 1701681731375)
|
||||
@@ -28,8 +28,8 @@
|
||||
@SuppressLint("SetTextI18n")
|
||||
override fun onBindViewHolder(holder: OrderItemViewHolder, position: Int, model: UserData) {
|
||||
holder.binding.apply {
|
||||
- userName.text = view.context.getString(R.string.name) + ": ${model.name}"
|
||||
- userId.text = view.context.getString(R.string.userid) + ": ${model._id}"
|
||||
+ userName.text = view.context.getString(R.string.name) + " : ${model.name}"
|
||||
+ userId.text = view.context.getString(R.string.userid) + " : ${model._id}"
|
||||
Glide.with(view).load(model.userImageURL).into(userImage)
|
||||
}
|
||||
}
|
||||
4
.idea/shelf/Changes3.xml
generated
Normal file
@@ -0,0 +1,4 @@
|
||||
<changelist name="Changes3" date="1701681803133" recycled="false">
|
||||
<option name="PATH" value="$PROJECT_DIR$/.idea/shelf/Changes3/shelved.patch" />
|
||||
<option name="DESCRIPTION" value="Changes" />
|
||||
</changelist>
|
||||
0
.idea/shelf/Changes3/shelved.patch
generated
Normal file
0
.idea/shelf/Uncommitted_changes_before_Checkout_at_04-12-2023_01_16_pm_[Changes]/shelved.patch
generated
Normal file
4
.idea/shelf/Uncommitted_changes_before_Checkout_at_04-12-2023_01_16_pm__Changes_.xml
generated
Normal file
@@ -0,0 +1,4 @@
|
||||
<changelist name="Uncommitted_changes_before_Checkout_at_04-12-2023_01_16_pm_[Changes]" date="1701676341703" recycled="true">
|
||||
<option name="PATH" value="$PROJECT_DIR$/.idea/shelf/Uncommitted_changes_before_Checkout_at_04-12-2023_01_16_pm_[Changes]/shelved.patch" />
|
||||
<option name="DESCRIPTION" value="Uncommitted changes before Checkout at 04-12-2023 01:16 pm [Changes]" />
|
||||
</changelist>
|
||||
995
.idea/shelf/Uncommitted_changes_before_Checkout_at_04-12-2023_01_38_pm_[Changes]/shelved.patch
generated
Normal file
4
.idea/shelf/Uncommitted_changes_before_Checkout_at_04-12-2023_01_38_pm__Changes_.xml
generated
Normal file
@@ -0,0 +1,4 @@
|
||||
<changelist name="Uncommitted_changes_before_Checkout_at_04-12-2023_01_38_pm_[Changes]" date="1701677677817" recycled="true">
|
||||
<option name="PATH" value="$PROJECT_DIR$/.idea/shelf/Uncommitted_changes_before_Checkout_at_04-12-2023_01_38_pm_[Changes]/shelved.patch" />
|
||||
<option name="DESCRIPTION" value="Uncommitted changes before Checkout at 04-12-2023 01:38 pm [Changes]" />
|
||||
</changelist>
|
||||
6
.idea/vcs.xml
generated
@@ -1,6 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="VcsDirectoryMappings">
|
||||
<mapping directory="" vcs="Git" />
|
||||
</component>
|
||||
</project>
|
||||
1496
Login_Feature.patch
Normal file
3
app/.gitignore
vendored
@@ -1 +1,2 @@
|
||||
/build
|
||||
/build
|
||||
/google-services*
|
||||
@@ -5,18 +5,19 @@ plugins {
|
||||
id 'com.google.gms.google-services'
|
||||
id 'androidx.navigation.safeargs.kotlin'
|
||||
id 'kotlin-kapt'
|
||||
id 'com.google.firebase.crashlytics'
|
||||
}
|
||||
|
||||
android {
|
||||
namespace 'in.sminnovations.hposregistration'
|
||||
compileSdk 33
|
||||
compileSdk 34
|
||||
|
||||
defaultConfig {
|
||||
applicationId "in.sminnovations.hposregistration"
|
||||
minSdk 26
|
||||
targetSdk 33
|
||||
versionCode 1
|
||||
versionName "1.0"
|
||||
targetSdk 34
|
||||
versionCode 13
|
||||
versionName "1.0.13"
|
||||
|
||||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||||
}
|
||||
@@ -41,38 +42,45 @@ android {
|
||||
|
||||
dependencies {
|
||||
|
||||
implementation 'androidx.core:core-ktx:1.10.1'
|
||||
implementation 'androidx.core:core-ktx:1.12.0'
|
||||
implementation 'androidx.appcompat:appcompat:1.6.1'
|
||||
implementation 'com.google.android.material:material:1.9.0'
|
||||
implementation 'com.google.android.material:material:1.11.0'
|
||||
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
|
||||
implementation 'androidx.preference:preference-ktx:1.2.1'
|
||||
implementation 'androidx.games:games-activity:2.0.2'
|
||||
testImplementation 'junit:junit:4.13.2'
|
||||
androidTestImplementation 'androidx.test.ext:junit:1.1.5'
|
||||
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
|
||||
|
||||
//firebase
|
||||
implementation platform('com.google.firebase:firebase-bom:32.1.0')
|
||||
// firebase
|
||||
implementation("com.google.firebase:firebase-crashlytics-ktx")
|
||||
implementation platform("com.google.firebase:firebase-bom:32.2.2")
|
||||
implementation("com.google.firebase:firebase-analytics-ktx")
|
||||
implementation 'com.google.firebase:firebase-firestore-ktx'
|
||||
implementation 'com.google.firebase:firebase-auth-ktx'
|
||||
implementation 'com.google.firebase:firebase-storage-ktx'
|
||||
implementation 'com.firebaseui:firebase-ui-firestore:8.0.2'
|
||||
implementation 'com.google.android.gms:play-services-auth:20.5.0'
|
||||
implementation 'com.google.android.gms:play-services-auth:20.7.0'
|
||||
implementation 'com.google.firebase:firebase-appdistribution:16.0.0-beta11'
|
||||
implementation("com.google.firebase:firebase-appdistribution-api-ktx:16.0.0-beta11")
|
||||
implementation("com.google.firebase:firebase-analytics-ktx")
|
||||
|
||||
// Coroutines
|
||||
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4'
|
||||
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.6.4'
|
||||
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.7.1'
|
||||
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.7.1'
|
||||
|
||||
// Coroutine Lifecycle Scopes
|
||||
implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:2.6.1"
|
||||
implementation "androidx.lifecycle:lifecycle-runtime-ktx:2.6.1"
|
||||
implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:2.6.2"
|
||||
implementation "androidx.lifecycle:lifecycle-runtime-ktx:2.6.2"
|
||||
|
||||
//Dagger - Hilt
|
||||
implementation "com.google.dagger:hilt-android:2.46"
|
||||
kapt "com.google.dagger:hilt-android-compiler:2.46"
|
||||
kapt "androidx.hilt:hilt-compiler:1.0.0"
|
||||
kapt "androidx.hilt:hilt-compiler:1.1.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.6"
|
||||
implementation "androidx.navigation:navigation-ui-ktx:2.7.6"
|
||||
|
||||
// Retrofit + GSON
|
||||
implementation "com.squareup.retrofit2:retrofit:2.9.0"
|
||||
@@ -82,20 +90,21 @@ dependencies {
|
||||
implementation 'com.jakewharton.timber:timber:4.7.1'
|
||||
|
||||
// Activity KTX for viewModels()
|
||||
implementation "androidx.activity:activity-ktx:1.7.2"
|
||||
implementation "androidx.activity:activity-ktx:1.8.2"
|
||||
|
||||
//image
|
||||
implementation 'com.github.bumptech.glide:glide:4.13.2'
|
||||
annotationProcessor 'com.github.bumptech.glide:compiler:4.12.0'
|
||||
annotationProcessor 'com.github.bumptech.glide:compiler:4.13.2'
|
||||
|
||||
implementation 'com.opencsv:opencsv:5.5'
|
||||
|
||||
//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.1"
|
||||
implementation "androidx.room:room-runtime:2.6.1"
|
||||
kapt ("androidx.room:room-compiler:2.6.1")
|
||||
|
||||
// Barcode scanner
|
||||
implementation 'com.journeyapps:zxing-android-embedded:4.3.0'
|
||||
|
||||
// cropping
|
||||
implementation 'com.github.yalantis:ucrop:2.2.6'
|
||||
|
||||
}
|
||||
@@ -1,84 +0,0 @@
|
||||
{
|
||||
"project_info": {
|
||||
"project_number": "650071678820",
|
||||
"project_id": "hpos-af3cc",
|
||||
"storage_bucket": "hpos-af3cc.appspot.com"
|
||||
},
|
||||
"client": [
|
||||
{
|
||||
"client_info": {
|
||||
"mobilesdk_app_id": "1:650071678820:android:7569c1cad4fc99916c6471",
|
||||
"android_client_info": {
|
||||
"package_name": "in.sminnovations.hposregistration"
|
||||
}
|
||||
},
|
||||
"oauth_client": [
|
||||
{
|
||||
"client_id": "650071678820-70kp5jvjda4r5diqch2kn4lc40p4f42g.apps.googleusercontent.com",
|
||||
"client_type": 1,
|
||||
"android_info": {
|
||||
"package_name": "in.sminnovations.hposregistration",
|
||||
"certificate_hash": "7714b9268a81d0cf0fb178b0af8dbb630f8fc70a"
|
||||
}
|
||||
},
|
||||
{
|
||||
"client_id": "650071678820-to41afi9f0gi5r3k6v7pe1e5p96nupcs.apps.googleusercontent.com",
|
||||
"client_type": 3
|
||||
}
|
||||
],
|
||||
"api_key": [
|
||||
{
|
||||
"current_key": "AIzaSyAVdNGCev_AFX0qmuZJF6kxzRzXUTeAW5I"
|
||||
}
|
||||
],
|
||||
"services": {
|
||||
"appinvite_service": {
|
||||
"other_platform_oauth_client": [
|
||||
{
|
||||
"client_id": "650071678820-to41afi9f0gi5r3k6v7pe1e5p96nupcs.apps.googleusercontent.com",
|
||||
"client_type": 3
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"client_info": {
|
||||
"mobilesdk_app_id": "1:650071678820:android:f96be19e5d43102b6c6471",
|
||||
"android_client_info": {
|
||||
"package_name": "in.sminnovations.hpostesting"
|
||||
}
|
||||
},
|
||||
"oauth_client": [
|
||||
{
|
||||
"client_id": "650071678820-l87dnr0bdj95get0khgnvfv2an1k6ogq.apps.googleusercontent.com",
|
||||
"client_type": 1,
|
||||
"android_info": {
|
||||
"package_name": "in.sminnovations.hpostesting",
|
||||
"certificate_hash": "7714b9268a81d0cf0fb178b0af8dbb630f8fc70a"
|
||||
}
|
||||
},
|
||||
{
|
||||
"client_id": "650071678820-to41afi9f0gi5r3k6v7pe1e5p96nupcs.apps.googleusercontent.com",
|
||||
"client_type": 3
|
||||
}
|
||||
],
|
||||
"api_key": [
|
||||
{
|
||||
"current_key": "AIzaSyAVdNGCev_AFX0qmuZJF6kxzRzXUTeAW5I"
|
||||
}
|
||||
],
|
||||
"services": {
|
||||
"appinvite_service": {
|
||||
"other_platform_oauth_client": [
|
||||
{
|
||||
"client_id": "650071678820-to41afi9f0gi5r3k6v7pe1e5p96nupcs.apps.googleusercontent.com",
|
||||
"client_type": 3
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"configuration_version": "1"
|
||||
}
|
||||
7
app/proguard-rules.pro
vendored
@@ -18,9 +18,4 @@
|
||||
|
||||
# If you keep the line number information, uncomment this to
|
||||
# hide the original source file name.
|
||||
#-renamesourcefileattribute SourceFile
|
||||
|
||||
# ucrop
|
||||
-dontwarn com.yalantis.ucrop**
|
||||
-keep class com.yalantis.ucrop** { *; }
|
||||
-keep interface com.yalantis.ucrop** { *; }
|
||||
#-renamesourcefileattribute SourceFile
|
||||
@@ -7,7 +7,10 @@
|
||||
android:required="false" />
|
||||
|
||||
<uses-permission android:name="android.permission.CAMERA" />
|
||||
<uses-permission android:name="android.permission.MANAGE_EXTERNAL_STORAGE"
|
||||
tools:ignore="ScopedStorage" />
|
||||
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
|
||||
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
|
||||
<uses-permission android:name="android.permission.INTERNET" />
|
||||
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
|
||||
|
||||
@@ -16,16 +19,16 @@
|
||||
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">
|
||||
|
||||
<provider
|
||||
android:name="androidx.core.content.FileProvider"
|
||||
android:authorities="com.example.hposregistration.provider"
|
||||
android:authorities="in.sminnovations.hposregistration.provider"
|
||||
android:exported="false"
|
||||
android:grantUriPermissions="true">
|
||||
<meta-data
|
||||
@@ -34,7 +37,6 @@
|
||||
</provider>
|
||||
<activity
|
||||
android:name="com.example.hposregistration.ui.activities.MainActivity"
|
||||
android:screenOrientation="portrait"
|
||||
android:exported="true">
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.MAIN" />
|
||||
@@ -42,11 +44,11 @@
|
||||
<category android:name="android.intent.category.LAUNCHER" />
|
||||
</intent-filter>
|
||||
</activity>
|
||||
|
||||
<activity
|
||||
android:name="com.yalantis.ucrop.UCropActivity"
|
||||
android:screenOrientation="portrait"
|
||||
android:theme="@style/Theme.AppCompat.Light.NoActionBar" />
|
||||
android:name="com.journeyapps.barcodescanner.CaptureActivity"
|
||||
android:screenOrientation="fullSensor"
|
||||
android:stateNotNeeded="true"
|
||||
tools:replace="android:screenOrientation" />
|
||||
</application>
|
||||
|
||||
</manifest>
|
||||
@@ -1,7 +1,14 @@
|
||||
package com.example.hposregistration
|
||||
|
||||
import android.app.Application
|
||||
import com.google.firebase.analytics.FirebaseAnalytics
|
||||
import dagger.hilt.android.HiltAndroidApp
|
||||
|
||||
@HiltAndroidApp
|
||||
class HPOSRegistrationApplication: Application()
|
||||
class HPOSRegistrationApplication: Application() {
|
||||
|
||||
override fun onCreate() {
|
||||
super.onCreate()
|
||||
FirebaseAnalytics.getInstance(this)
|
||||
}
|
||||
}
|
||||
@@ -43,7 +43,7 @@ class UserListOfflineAdapter(private val view: View) : RecyclerView.Adapter<User
|
||||
holder.binding.apply {
|
||||
userName.text = userList.name
|
||||
userId.text = userList._id
|
||||
Glide.with(view).load(userList.userImage).into(userImage)
|
||||
Glide.with(view).load(userList.userImageURL).into(userImage)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -9,6 +9,7 @@ import com.bumptech.glide.Glide
|
||||
import com.example.hposregistration.data.user.UserData
|
||||
import com.firebase.ui.firestore.FirestoreRecyclerAdapter
|
||||
import com.firebase.ui.firestore.FirestoreRecyclerOptions
|
||||
import `in`.sminnovations.hposregistration.R
|
||||
import `in`.sminnovations.hposregistration.databinding.UserItemViewBinding
|
||||
|
||||
class UserListOnlineAdapter(options: FirestoreRecyclerOptions<UserData>, private val view: View) :
|
||||
@@ -27,9 +28,9 @@ class UserListOnlineAdapter(options: FirestoreRecyclerOptions<UserData>, private
|
||||
@SuppressLint("SetTextI18n")
|
||||
override fun onBindViewHolder(holder: OrderItemViewHolder, position: Int, model: UserData) {
|
||||
holder.binding.apply {
|
||||
userName.text = model.name
|
||||
userId.text = model._id
|
||||
Glide.with(view).load(model.userImage).into(userImage)
|
||||
userName.text = view.context.getString(R.string.name) + " : ${model.name}"
|
||||
userId.text = view.context.getString(R.string.userid) + " : ${model._id}"
|
||||
Glide.with(view).load(model.userImageURL).into(userImage)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,27 +0,0 @@
|
||||
package com.example.hposregistration.dao
|
||||
|
||||
import androidx.room.TypeConverter
|
||||
import com.example.hposregistration.data.user.UserData
|
||||
import com.google.gson.Gson
|
||||
|
||||
class Converters {
|
||||
private val gson = Gson()
|
||||
|
||||
@TypeConverter
|
||||
fun fromString(value: String?): UserData.Location? {
|
||||
return if (value != null) {
|
||||
gson.fromJson(value, UserData.Location::class.java)
|
||||
} else {
|
||||
null
|
||||
}
|
||||
}
|
||||
|
||||
@TypeConverter
|
||||
fun toString(location: UserData.Location?): String? {
|
||||
return if (location != null) {
|
||||
gson.toJson(location)
|
||||
} else {
|
||||
null
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,12 +1,36 @@
|
||||
package com.example.hposregistration.dao
|
||||
|
||||
import android.content.Context
|
||||
import androidx.room.Database
|
||||
import androidx.room.Room
|
||||
import androidx.room.RoomDatabase
|
||||
import androidx.room.TypeConverters
|
||||
import androidx.room.migration.Migration
|
||||
import androidx.sqlite.db.SupportSQLiteDatabase
|
||||
import com.example.hposregistration.data.user.UserData
|
||||
|
||||
@Database(entities = [UserData::class], version = 1, exportSchema = false)
|
||||
@TypeConverters(Converters::class)
|
||||
@Database(entities = [UserData::class], version = 4, exportSchema = false)
|
||||
abstract class MyDatabase : RoomDatabase() {
|
||||
|
||||
abstract fun userDao(): UserDao
|
||||
}
|
||||
|
||||
companion object {
|
||||
val MIGRATION_2_3: Migration = object : Migration(2, 3) {
|
||||
override fun migrate(database: SupportSQLiteDatabase) {
|
||||
// Define the necessary SQL statements for migration from version 2 to 3
|
||||
// For example, you can alter tables or create new ones
|
||||
database.execSQL("ALTER TABLE user_table ADD COLUMN aadharIdSearch TEXT")
|
||||
}
|
||||
}
|
||||
|
||||
fun getInstance(context: Context): MyDatabase {
|
||||
return Room.databaseBuilder(
|
||||
context.applicationContext,
|
||||
MyDatabase::class.java,
|
||||
"my_database"
|
||||
)
|
||||
.addMigrations(MIGRATION_2_3)
|
||||
.build()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,6 +5,7 @@ import androidx.room.Dao
|
||||
import androidx.room.Insert
|
||||
import androidx.room.OnConflictStrategy
|
||||
import androidx.room.Query
|
||||
import androidx.room.Update
|
||||
import com.example.hposregistration.data.user.UserData
|
||||
|
||||
@Dao
|
||||
@@ -20,4 +21,11 @@ interface UserDao {
|
||||
|
||||
@Query("DELETE FROM user_table WHERE _id = :id")
|
||||
suspend fun deleteById(id: String)
|
||||
|
||||
@Query("UPDATE user_table SET isCSVCreated = :newValue WHERE _id = :id")
|
||||
suspend fun updateCSVFieldById(id: String, newValue: Boolean)
|
||||
|
||||
@Update
|
||||
suspend fun updateUserData(userData: List<UserData>)
|
||||
|
||||
}
|
||||
@@ -10,12 +10,34 @@ object Constant {
|
||||
}
|
||||
|
||||
fun String.mapToGender(): UserData.Gender {
|
||||
return if (this.lowercase() == "m"|| this.lowercase() == "male") {
|
||||
return if (this.lowercase() == "m" || this.lowercase() == "male") {
|
||||
UserData.Gender.MALE
|
||||
} else if (this.lowercase() == "f"|| this.lowercase() == "female") {
|
||||
} else if (this.lowercase() == "f" || this.lowercase() == "female") {
|
||||
UserData.Gender.FEMALE
|
||||
} else {
|
||||
UserData.Gender.OTHER
|
||||
}
|
||||
}
|
||||
|
||||
const val USER_ID = "usernameId"
|
||||
|
||||
val STATICID = listOf(
|
||||
"SMIREG1",
|
||||
"SMIREG2",
|
||||
"SMIREG3",
|
||||
"SMIREG4",
|
||||
"SMIREG5",
|
||||
"SMIREG6",
|
||||
"SMIREG7",
|
||||
"SMIREG8",
|
||||
"SMIREG9",
|
||||
"SMIREG10",
|
||||
"SMIREG11",
|
||||
"SMIREG12",
|
||||
"SMIREG13",
|
||||
"SMIREG14",
|
||||
"SMIREG15"
|
||||
)
|
||||
|
||||
const val password = "SMI@12345"
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
package com.example.hposregistration.data
|
||||
|
||||
import android.content.Context
|
||||
import android.content.SharedPreferences
|
||||
import java.util.Locale
|
||||
|
||||
object LanguageManager {
|
||||
private const val LANGUAGE_PREF_KEY = "language_pref"
|
||||
|
||||
fun setLocale(context: Context, languageCode: String) {
|
||||
val locale = Locale(languageCode)
|
||||
Locale.setDefault(locale)
|
||||
|
||||
val resources = context.resources
|
||||
val configuration = resources.configuration
|
||||
configuration.setLocale(locale)
|
||||
|
||||
context.createConfigurationContext(configuration)
|
||||
}
|
||||
|
||||
fun persistLanguagePreference(context: Context, languageCode: String) {
|
||||
val prefs: SharedPreferences = context.getSharedPreferences("AppPrefs", Context.MODE_PRIVATE)
|
||||
prefs.edit().putString(LANGUAGE_PREF_KEY, languageCode).apply()
|
||||
}
|
||||
|
||||
fun getSavedLanguage(context: Context): String {
|
||||
val prefs: SharedPreferences = context.getSharedPreferences("AppPrefs", Context.MODE_PRIVATE)
|
||||
return prefs.getString(LANGUAGE_PREF_KEY, "en") ?: "en"
|
||||
}
|
||||
}
|
||||
@@ -3,6 +3,8 @@ package com.example.hposregistration.data
|
||||
import androidx.lifecycle.LiveData
|
||||
import com.example.hposregistration.dao.UserDao
|
||||
import com.example.hposregistration.data.user.UserData
|
||||
import kotlinx.coroutines.Dispatchers
|
||||
import kotlinx.coroutines.withContext
|
||||
import javax.inject.Inject
|
||||
import javax.inject.Singleton
|
||||
|
||||
@@ -30,4 +32,10 @@ class MainRepository @Inject constructor(
|
||||
return userFireBaseDao.addUserToDatabase(userData)
|
||||
}
|
||||
|
||||
suspend fun updateCSVFieldById(id: String, isCSVCreated: Boolean) {
|
||||
userDao.updateCSVFieldById(id, isCSVCreated)
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,170 @@
|
||||
package com.example.hposregistration.data.datasource
|
||||
|
||||
import android.content.Context
|
||||
import android.os.Environment
|
||||
import android.util.Log
|
||||
import com.example.hposregistration.data.user.UserData
|
||||
|
||||
import com.opencsv.CSVWriter
|
||||
import java.io.File
|
||||
import java.io.FileOutputStream
|
||||
import java.io.FileWriter
|
||||
import java.io.IOException
|
||||
import java.io.InputStream
|
||||
import java.net.URL
|
||||
import java.text.SimpleDateFormat
|
||||
import java.util.Date
|
||||
import java.util.Locale
|
||||
|
||||
class LocalFileDataSource {
|
||||
|
||||
fun saveCsvToDisk(filepath: String, contents: ArrayList<Array<String>>){
|
||||
val writer = CSVWriter(FileWriter(filepath))
|
||||
writer.writeAll(contents) // data is adding to csv
|
||||
writer.close()
|
||||
}
|
||||
|
||||
fun saveTextToDisk(filepath: String, contents: String){
|
||||
val writer = FileWriter(File(filepath))
|
||||
|
||||
writer.append(contents)
|
||||
writer.flush()
|
||||
writer.close()
|
||||
}
|
||||
|
||||
|
||||
fun exportDataToCSV(
|
||||
fileName: String, dataList: List<UserData>
|
||||
): Boolean {
|
||||
try {
|
||||
val formattedFileName = fileName.replace(Regex("[^a-zA-Z0-9.-]"), "_")
|
||||
val csvFilePath = File(getExternalStorageDirectory(), formattedFileName)
|
||||
val csvWriter = CSVWriter(FileWriter(csvFilePath))
|
||||
// Write CSV header
|
||||
val header = arrayOf(
|
||||
"Sample ID",
|
||||
"Name",
|
||||
"ABHA ID",
|
||||
"Aadhaar ID",
|
||||
"BirthYear",
|
||||
"Gender",
|
||||
"Caste",
|
||||
"Category",
|
||||
"Marital Status",
|
||||
"Address",
|
||||
"District",
|
||||
"State",
|
||||
"PinCode",
|
||||
"Mobile Number",
|
||||
"Date",
|
||||
"BloodGroup",
|
||||
"Center Name",
|
||||
"City",
|
||||
"TestStatus", // Assuming testStatus is a boolean field
|
||||
"AppVersion",
|
||||
"CareOf",
|
||||
"SubCaste",
|
||||
"IsUnderMedication",
|
||||
"IsUnderTransfusion",
|
||||
"SickleCellHistory",
|
||||
"RegisteredBy",
|
||||
"userAbhaRegistrationLog",
|
||||
"userDetailslog",
|
||||
"UserImageURL",
|
||||
)
|
||||
csvWriter.writeNext(header)
|
||||
val imagesFolder = File(getExternalStorageDirectory(), "images${getCurrentDateTime()}")
|
||||
// val imagesFolder = File(getExternalStorageDirectory(), "Images")
|
||||
if (!imagesFolder.exists()) {
|
||||
if (!imagesFolder.mkdirs()) {
|
||||
Log.e("DirectoryCreation", "Error creating images folder: ${imagesFolder.absolutePath}")
|
||||
}
|
||||
}
|
||||
|
||||
// Write data rows
|
||||
for (data in dataList) {
|
||||
// Download and save the user image
|
||||
val imageUrl = data.userImageURL
|
||||
val localImageFile = downloadImage(imagesFolder, data._id, imageUrl)
|
||||
|
||||
val row = arrayOf(
|
||||
data._id,
|
||||
data.name,
|
||||
data.abhaId,
|
||||
data.aadharId,
|
||||
data.birthYear,
|
||||
data.gender,
|
||||
data.caste,
|
||||
data.category,
|
||||
data.maritalStatus,
|
||||
data.house,
|
||||
data.state,
|
||||
data.district,
|
||||
data.pinCode,
|
||||
data.phoneNumber,
|
||||
data.createdAt ?: "",
|
||||
data.bloodGroup,
|
||||
data.registrationCenterName ?: "",
|
||||
data.city,
|
||||
data.testStatus?.toString() ?: "",
|
||||
data.appVersion ?: "",
|
||||
data.careOf,
|
||||
data.subCaste ?: "",
|
||||
data.isUnderMedication?.toString() ?: "",
|
||||
data.isUnderTransfusion?.toString() ?: "",
|
||||
data.sickleCellHistory ?: "",
|
||||
data.registeredBy ?: "",
|
||||
data.userAbhaRegistrationLog,
|
||||
data.userDetailsLog,
|
||||
localImageFile?.absolutePath ?: "" ,
|
||||
|
||||
)
|
||||
csvWriter.writeNext(row)
|
||||
}
|
||||
csvWriter.close()
|
||||
return true
|
||||
} catch (e: IOException) {
|
||||
e.printStackTrace()
|
||||
Log.e("CSVExport", "Error exporting data to CSV: ${e.message}")
|
||||
return false
|
||||
}
|
||||
}
|
||||
|
||||
private fun downloadImage(folder: File, userId: String, imageUrl: String): File? {
|
||||
return try {
|
||||
val url = URL(imageUrl)
|
||||
val connection = url.openConnection()
|
||||
|
||||
val inputStream: InputStream = connection.inputStream
|
||||
val localImageFile = File(folder, "$userId.jpg")
|
||||
val outputStream = FileOutputStream(localImageFile)
|
||||
|
||||
inputStream.use { input ->
|
||||
outputStream.use { fileOut ->
|
||||
input.copyTo(fileOut)
|
||||
}
|
||||
}
|
||||
|
||||
localImageFile
|
||||
} catch (e: Exception) {
|
||||
e.printStackTrace()
|
||||
Log.e("ImageDownloader", "Error downloading image: ${e.message}")
|
||||
null
|
||||
}
|
||||
}
|
||||
|
||||
private fun getExternalStorageDirectory(): File {
|
||||
val folder = File(Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOWNLOADS), "HposRegistration")
|
||||
|
||||
if (!folder.exists()) {
|
||||
folder.mkdirs()
|
||||
}
|
||||
|
||||
return folder
|
||||
}
|
||||
private fun getCurrentDateTime(): String {
|
||||
val dateFormat = SimpleDateFormat("dd_MM_yy", Locale.getDefault())
|
||||
val currentDateTime = Date()
|
||||
return dateFormat.format(currentDateTime)
|
||||
}
|
||||
}
|
||||
@@ -7,16 +7,21 @@ import androidx.room.PrimaryKey
|
||||
data class UserData(
|
||||
@PrimaryKey
|
||||
var _id: String = "",
|
||||
var AbhaId: String = "",
|
||||
var AadharId: String = "",
|
||||
var _idSearch: String = "",
|
||||
var abhaId: String = "",
|
||||
var abhaIdSearch: String = "",
|
||||
var aadharId: String = "",
|
||||
var aadharIdSearch: String = "",
|
||||
var name: String = "",
|
||||
var birthYear: String = "",
|
||||
var gender: String = "",
|
||||
var phoneNumber: String = "",
|
||||
var careOf: String = "",
|
||||
var maritalStatus: String = "",
|
||||
var category: String = "",
|
||||
var caste: String = "",
|
||||
var subCaste: String = "",
|
||||
var subCaste: String? = "",
|
||||
var appVersion: String ="",
|
||||
var house: String = "",
|
||||
var city: String = "",
|
||||
var district: String = "",
|
||||
@@ -26,25 +31,19 @@ data class UserData(
|
||||
var isUnderMedication: Boolean? = false,
|
||||
var isUnderTransfusion: Boolean? = false,
|
||||
var sickleCellHistory: String? = "",
|
||||
var userImage: String = "",
|
||||
var location: Location? = null,
|
||||
var uploadTime: String? = "",
|
||||
var testStatus: Boolean? = false,
|
||||
var mobileId: String = "",
|
||||
var deviceId: String = "",
|
||||
var kitSerial: String = "",
|
||||
var csvPath: String = "",
|
||||
var reportPath: String = "",
|
||||
var CenterName: String = ""
|
||||
var userImageURL: String = "",
|
||||
var registeredBy: String? = "",
|
||||
var createdAt: String? = "",
|
||||
var registrationCenterName: String? = "",
|
||||
var testStatus: Boolean = false,
|
||||
var isCSVCreated: Boolean = false,
|
||||
var localFlag: Boolean = false,
|
||||
var userAbhaRegistrationLog:String = "",
|
||||
var userDetailsLog: String = "",
|
||||
){
|
||||
enum class Gender {
|
||||
MALE,
|
||||
FEMALE,
|
||||
OTHER
|
||||
}
|
||||
|
||||
data class Location(
|
||||
var latitude: Double? = null,
|
||||
var longitude: Double? = null
|
||||
)
|
||||
}
|
||||
}
|
||||
@@ -5,6 +5,7 @@ import android.content.Context
|
||||
import androidx.room.Room
|
||||
import com.example.hposregistration.dao.MyDatabase
|
||||
import com.example.hposregistration.dao.UserDao
|
||||
import com.example.hposregistration.data.datasource.LocalFileDataSource
|
||||
import dagger.Module
|
||||
import dagger.Provides
|
||||
import dagger.hilt.InstallIn
|
||||
@@ -41,4 +42,10 @@ object AppModule {
|
||||
fun provideContext(application: Application): Context {
|
||||
return application.applicationContext
|
||||
}
|
||||
|
||||
@Provides
|
||||
@Singleton
|
||||
fun provideLocalFileDataSource(): LocalFileDataSource {
|
||||
return LocalFileDataSource()
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,6 @@
|
||||
package com.example.hposregistration.network
|
||||
|
||||
import androidx.room.Query
|
||||
import com.example.hposregistration.data.Response
|
||||
import com.example.hposregistration.data.user.UserData
|
||||
import com.google.firebase.firestore.FirebaseFirestore
|
||||
@@ -24,7 +25,12 @@ class UserDao {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
// suspend fun getPatientList(): List<UserData> {
|
||||
// return patientCollection.get().await().toObjects(UserData::class.java)
|
||||
// }
|
||||
|
||||
|
||||
|
||||
}
|
||||
@@ -1,7 +1,13 @@
|
||||
package com.example.hposregistration.ui.activities
|
||||
|
||||
import android.content.Context
|
||||
import androidx.appcompat.app.AppCompatActivity
|
||||
import android.os.Bundle
|
||||
import android.widget.Toast
|
||||
import com.example.hposregistration.data.LanguageManager
|
||||
import com.google.firebase.appdistribution.FirebaseAppDistribution
|
||||
import com.google.firebase.appdistribution.FirebaseAppDistributionException
|
||||
import com.google.firebase.crashlytics.FirebaseCrashlytics
|
||||
import dagger.hilt.android.AndroidEntryPoint
|
||||
import `in`.sminnovations.hposregistration.databinding.ActivityMainBinding
|
||||
|
||||
@@ -10,9 +16,57 @@ class MainActivity : AppCompatActivity() {
|
||||
|
||||
private lateinit var binding: ActivityMainBinding
|
||||
|
||||
|
||||
override fun attachBaseContext(newBase: Context?) {
|
||||
val languageCode = LanguageManager.getSavedLanguage(newBase!!)
|
||||
LanguageManager.setLocale(newBase, languageCode)
|
||||
super.attachBaseContext(newBase)
|
||||
}
|
||||
|
||||
override fun onCreate(savedInstanceState: Bundle?) {
|
||||
super.onCreate(savedInstanceState)
|
||||
binding = ActivityMainBinding.inflate(layoutInflater)
|
||||
setContentView(binding.root)
|
||||
|
||||
}
|
||||
|
||||
override fun onResume() {
|
||||
super.onResume()
|
||||
|
||||
val firebaseAppDistribution = FirebaseAppDistribution.getInstance()
|
||||
firebaseAppDistribution.updateIfNewReleaseAvailable()
|
||||
.addOnProgressListener { updateProgress ->
|
||||
|
||||
if (updateProgress.apkBytesDownloaded > 0) {
|
||||
Toast.makeText(
|
||||
this,
|
||||
"${updateProgress.updateStatus}. ${updateProgress.apkBytesDownloaded / 1048576} /${updateProgress.apkFileTotalBytes / 1048576} MB",
|
||||
Toast.LENGTH_SHORT
|
||||
).show()
|
||||
}
|
||||
}
|
||||
.addOnFailureListener { e ->
|
||||
// (Optional) Handle errors.
|
||||
if (e is FirebaseAppDistributionException) {
|
||||
when (e.errorCode) {
|
||||
FirebaseAppDistributionException.Status.NOT_IMPLEMENTED -> {
|
||||
// SDK did nothing. This is expected when building for Play.
|
||||
}
|
||||
|
||||
else -> {
|
||||
// Handle other errors.
|
||||
Toast.makeText(
|
||||
this,
|
||||
"AppDistribution error, status: ${e.errorCode}",
|
||||
Toast.LENGTH_SHORT
|
||||
).show()
|
||||
}
|
||||
}
|
||||
FirebaseCrashlytics.getInstance().recordException(e)
|
||||
}
|
||||
}
|
||||
.addOnSuccessListener {
|
||||
// Toast.makeText(this, "App Update: Success!", Toast.LENGTH_SHORT).show()
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,65 @@
|
||||
package com.example.hposregistration.ui.fragments
|
||||
|
||||
import android.content.Context
|
||||
import android.content.pm.PackageManager
|
||||
import android.os.Bundle
|
||||
import androidx.preference.Preference
|
||||
import androidx.preference.PreferenceFragmentCompat
|
||||
|
||||
import android.widget.Toast
|
||||
import com.example.hposregistration.data.LanguageManager
|
||||
import `in`.sminnovations.hposregistration.R
|
||||
|
||||
private var isLanguageChanged = false
|
||||
class LanguageSettingsFragment : PreferenceFragmentCompat() {
|
||||
override fun onCreatePreferences(savedInstanceState: Bundle?, rootKey: String?) {
|
||||
val preferenceScreen = preferenceManager.createPreferenceScreen(requireContext())
|
||||
|
||||
val languagePreference = androidx.preference.ListPreference(requireContext())
|
||||
languagePreference.key = "language_preference"
|
||||
languagePreference.title = getString(R.string.app_language)
|
||||
languagePreference.summary = getString(R.string.select_language)
|
||||
languagePreference.entries = arrayOf("English", "Kannada", "Hindi")
|
||||
languagePreference.entryValues = arrayOf("en", "kn", "hi")
|
||||
languagePreference.setDefaultValue("en")
|
||||
|
||||
languagePreference.onPreferenceChangeListener =
|
||||
Preference.OnPreferenceChangeListener { _, newValue ->
|
||||
val languageCode = newValue as String
|
||||
updateLanguage(requireContext(), languageCode)
|
||||
true
|
||||
}
|
||||
|
||||
preferenceScreen.addPreference(languagePreference)
|
||||
setPreferenceScreen(preferenceScreen)
|
||||
|
||||
// App Version Preference
|
||||
val appVersionPreference = Preference(requireContext())
|
||||
appVersionPreference.title = "App Version"
|
||||
appVersionPreference.summary = getAppVersion(requireContext())
|
||||
|
||||
preferenceScreen.addPreference(languagePreference)
|
||||
preferenceScreen.addPreference(appVersionPreference)
|
||||
setPreferenceScreen(preferenceScreen)
|
||||
|
||||
if (isLanguageChanged) {
|
||||
Toast.makeText(requireContext(), R.string.language_update, Toast.LENGTH_SHORT).show()
|
||||
}
|
||||
}
|
||||
|
||||
private fun updateLanguage(context: Context, languageCode: String) {
|
||||
LanguageManager.persistLanguagePreference(context, languageCode)
|
||||
LanguageManager.setLocale(context, languageCode)
|
||||
requireActivity().recreate() // Recreate activity to apply language changes
|
||||
isLanguageChanged = true
|
||||
}
|
||||
|
||||
private fun getAppVersion(context: Context): String {
|
||||
return try {
|
||||
val pInfo = context.packageManager.getPackageInfo(context.packageName, 0)
|
||||
pInfo.versionName
|
||||
} catch (e: PackageManager.NameNotFoundException) {
|
||||
"N/A"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,92 @@
|
||||
package com.example.hposregistration.ui.fragments
|
||||
|
||||
import android.content.Context
|
||||
import android.content.SharedPreferences
|
||||
import android.os.Bundle
|
||||
import android.view.LayoutInflater
|
||||
import android.view.View
|
||||
import android.view.ViewGroup
|
||||
import android.widget.Toast
|
||||
import androidx.fragment.app.Fragment
|
||||
import androidx.navigation.fragment.findNavController
|
||||
import com.example.hposregistration.data.Constant
|
||||
import `in`.sminnovations.hposregistration.R
|
||||
import `in`.sminnovations.hposregistration.databinding.FragmentLoginBinding
|
||||
|
||||
class LoginFragment : Fragment() {
|
||||
|
||||
private var _binding: FragmentLoginBinding? = null
|
||||
private val binding get() = _binding!!
|
||||
private lateinit var sharedPreference: SharedPreferences
|
||||
|
||||
override fun onCreateView(
|
||||
inflater: LayoutInflater, container: ViewGroup?,
|
||||
savedInstanceState: Bundle?
|
||||
): View {
|
||||
_binding = FragmentLoginBinding.inflate(inflater, container, false)
|
||||
sharedPreference = requireContext().getSharedPreferences("PREFERENCE_NAME", Context.MODE_PRIVATE)
|
||||
return binding.root
|
||||
}
|
||||
|
||||
override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
|
||||
super.onViewCreated(view, savedInstanceState)
|
||||
init()
|
||||
}
|
||||
|
||||
private fun init() {
|
||||
if (isUserLoggedIn()) {
|
||||
navigateToUserListFragment()
|
||||
return
|
||||
}
|
||||
|
||||
binding.btnLogin.setOnClickListener {
|
||||
val loginId = binding.loginId.text.toString()
|
||||
val password = binding.password.text.toString()
|
||||
|
||||
if (loginId.isNotBlank() && password.isNotBlank()) {
|
||||
performLogin(loginId, password)
|
||||
} else {
|
||||
if (loginId.isBlank()) {
|
||||
binding.loginId.error = getString(R.string.enter_proper_login_id)
|
||||
}
|
||||
if (password.isBlank()) {
|
||||
binding.password.error = getString(R.string.enter_proper_password)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private fun isUserLoggedIn(): Boolean {
|
||||
return sharedPreference.getString(Constant.USER_ID, "")?.isNotBlank() == true
|
||||
}
|
||||
|
||||
private fun navigateToUserListFragment() {
|
||||
findNavController().navigate(R.id.action_loginFragment_to_userListFragment)
|
||||
}
|
||||
|
||||
private fun performLogin(loginId: String, password: String) {
|
||||
val matchingId = Constant.STATICID.firstOrNull { it == loginId }
|
||||
if (matchingId != null) {
|
||||
if (password == Constant.password) {
|
||||
saveUserId(loginId)
|
||||
navigateToUserListFragment()
|
||||
return
|
||||
} else {
|
||||
Toast.makeText(requireContext(), R.string.wrong_password, Toast.LENGTH_SHORT).show()
|
||||
}
|
||||
}
|
||||
Toast.makeText(requireContext(), R.string.wrong_user_id, Toast.LENGTH_SHORT).show()
|
||||
}
|
||||
|
||||
private fun saveUserId(userId: String) {
|
||||
with(sharedPreference.edit()) {
|
||||
putString(Constant.USER_ID, userId)
|
||||
apply()
|
||||
}
|
||||
}
|
||||
|
||||
override fun onDestroyView() {
|
||||
super.onDestroyView()
|
||||
_binding = null
|
||||
}
|
||||
}
|
||||
@@ -1,25 +1,41 @@
|
||||
package com.example.hposregistration.ui.fragments
|
||||
|
||||
import android.annotation.SuppressLint
|
||||
import android.app.AlertDialog
|
||||
import android.content.Context
|
||||
import android.content.DialogInterface
|
||||
import android.content.Intent
|
||||
import android.content.SharedPreferences
|
||||
import android.media.audiofx.BassBoost
|
||||
import android.net.Uri
|
||||
import android.os.Build
|
||||
import android.os.Bundle
|
||||
import android.os.Environment
|
||||
import android.util.Log
|
||||
import android.view.LayoutInflater
|
||||
import android.view.View
|
||||
import android.view.ViewGroup
|
||||
import android.widget.Button
|
||||
import android.widget.Toast
|
||||
import androidx.fragment.app.activityViewModels
|
||||
import androidx.fragment.app.viewModels
|
||||
import androidx.navigation.fragment.findNavController
|
||||
import com.example.hposregistration.adapters.UserListOfflineAdapter
|
||||
import com.example.hposregistration.adapters.UserListOnlineAdapter
|
||||
import com.example.hposregistration.data.Constant
|
||||
import com.example.hposregistration.data.user.UserData
|
||||
import com.example.hposregistration.ui.viewmodels.RegistrationViewModel
|
||||
import com.firebase.ui.firestore.FirestoreRecyclerOptions
|
||||
import com.google.androidgamesdk.gametextinput.Settings
|
||||
import com.google.firebase.firestore.Query
|
||||
import com.google.firebase.firestore.ktx.firestore
|
||||
import com.google.firebase.ktx.Firebase
|
||||
import dagger.hilt.android.AndroidEntryPoint
|
||||
import dagger.hilt.android.qualifiers.ApplicationContext
|
||||
import `in`.sminnovations.hposregistration.R
|
||||
import `in`.sminnovations.hposregistration.databinding.FragmentUserListBinding
|
||||
import java.text.SimpleDateFormat
|
||||
import java.util.Date
|
||||
|
||||
@AndroidEntryPoint
|
||||
class UserListFragment : BaseFragment() {
|
||||
@@ -27,16 +43,34 @@ class UserListFragment : BaseFragment() {
|
||||
private var _binding: FragmentUserListBinding? = null
|
||||
private val binding get() = _binding!!
|
||||
|
||||
private val viewModel by viewModels<RegistrationViewModel>()
|
||||
private val viewModel:RegistrationViewModel by activityViewModels()
|
||||
|
||||
private var isOnline = false
|
||||
|
||||
private lateinit var sharedPreference: SharedPreferences
|
||||
private val REQUEST_CODE_MANAGE_EXTERNAL_STORAGE = 123
|
||||
|
||||
|
||||
override fun onCreateView(
|
||||
inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle?
|
||||
): View {
|
||||
_binding = FragmentUserListBinding.inflate(inflater, container, false)
|
||||
sharedPreference = requireContext().getSharedPreferences("PREFERENCE_NAME", Context.MODE_PRIVATE)
|
||||
setupViews()
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.R) {
|
||||
if (!Environment.isExternalStorageManager()) {
|
||||
val intent = Intent(android.provider.Settings.ACTION_MANAGE_APP_ALL_FILES_ACCESS_PERMISSION)
|
||||
|
||||
intent.data = Uri.parse("package:" + requireContext().packageName)
|
||||
startActivityForResult(intent, REQUEST_CODE_MANAGE_EXTERNAL_STORAGE)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
return binding.root
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
override fun onResume() {
|
||||
@@ -53,14 +87,18 @@ class UserListFragment : BaseFragment() {
|
||||
binding.btnRegisterUser.setOnClickListener {
|
||||
findNavController().navigate(R.id.action_userListFragment_to_registrationFragment)
|
||||
}
|
||||
binding.btnLogout.setOnClickListener {
|
||||
logoutUser(requireContext())
|
||||
}
|
||||
}
|
||||
|
||||
private fun init() {
|
||||
viewModel.networkStatusLiveData.observe(viewLifecycleOwner) { isNetworkAvailable ->
|
||||
if (isNetworkAvailable) {
|
||||
isOnline = isNetworkAvailable
|
||||
fetchFromServer()
|
||||
checkForLocalDBData()
|
||||
fetchFromLocalDB()
|
||||
// fetchFromServer()
|
||||
// checkForLocalDBData()
|
||||
} else {
|
||||
isOnline = isNetworkAvailable
|
||||
fetchFromLocalDB()
|
||||
@@ -70,20 +108,77 @@ class UserListFragment : BaseFragment() {
|
||||
binding.uploadData.setOnClickListener {
|
||||
showUploadDialog(requireContext())
|
||||
}
|
||||
|
||||
viewModel.allUserData.observe(viewLifecycleOwner) { userData ->
|
||||
|
||||
val btnSaveLocalVisibility =
|
||||
if (userData.isNotEmpty()) View.VISIBLE else View.GONE
|
||||
|
||||
binding.btnSaveLocal.visibility = btnSaveLocalVisibility
|
||||
|
||||
binding.btnSaveLocal.setOnClickListener {
|
||||
if (btnSaveLocalVisibility == View.VISIBLE) {
|
||||
// Execute the action when the button is visible (testStatus is true for at least one user)
|
||||
showDownloadDialog(requireContext())
|
||||
} else {
|
||||
// Handle the case when the button is not visible
|
||||
Toast.makeText(
|
||||
requireContext(),
|
||||
"No test details stored locally",
|
||||
Toast.LENGTH_SHORT
|
||||
).show()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
binding.btnsettings.setOnClickListener{
|
||||
findNavController().navigate(R.id.action_userListFragment_to_languageSettingsFragment)
|
||||
|
||||
}
|
||||
viewModel.allUserData.observe(viewLifecycleOwner) { userDataList ->
|
||||
deteleIncompleteRegistration(userDataList)
|
||||
}
|
||||
}
|
||||
|
||||
private fun showUploadDialog(context: Context) {
|
||||
private fun logoutUser(context: Context) {
|
||||
val builder = AlertDialog.Builder(context)
|
||||
builder.setTitle("Upload DB Registration")
|
||||
builder.setMessage("Do you want to upload the local DB Registration to the cloud?")
|
||||
builder.setTitle(R.string.log_out)
|
||||
builder.setMessage(R.string.do_log_out)
|
||||
|
||||
// Positive button
|
||||
builder.setPositiveButton("Upload") { dialog, _ ->
|
||||
builder.setPositiveButton(R.string.yes) { dialog, _ ->
|
||||
saveUserId()
|
||||
findNavController().navigate(R.id.action_userListFragment_to_loginFragment)
|
||||
dialog.dismiss()
|
||||
}
|
||||
|
||||
// Negative button
|
||||
builder.setNegativeButton(R.string.no) { dialog, _ ->
|
||||
dialog.dismiss()
|
||||
}
|
||||
|
||||
val dialog = builder.create()
|
||||
dialog.show()
|
||||
}
|
||||
|
||||
private fun saveUserId() {
|
||||
with(sharedPreference.edit()) {
|
||||
putString(Constant.USER_ID, "")
|
||||
apply()
|
||||
}
|
||||
}
|
||||
private fun showUploadDialog(context: Context) {
|
||||
val builder = AlertDialog.Builder(context)
|
||||
builder.setTitle(R.string.upload_db_registration)
|
||||
builder.setMessage(R.string.upload_local_db_to_cloud)
|
||||
|
||||
// Positive button
|
||||
builder.setPositiveButton(R.string.upload) { dialog, _ ->
|
||||
uploadLoadDBData(dialog)
|
||||
}
|
||||
|
||||
// Negative button
|
||||
builder.setNegativeButton("Cancel") { dialog, _ ->
|
||||
builder.setNegativeButton(R.string.cancel) { dialog, _ ->
|
||||
dialog.dismiss()
|
||||
}
|
||||
|
||||
@@ -101,7 +196,7 @@ class UserListFragment : BaseFragment() {
|
||||
viewModel.deleteById(userData._id)
|
||||
}
|
||||
dialog.dismiss()
|
||||
Toast.makeText(requireContext(), "Upload done successfully", Toast.LENGTH_SHORT)
|
||||
Toast.makeText(requireContext(), R.string.upload_done_successfully, Toast.LENGTH_SHORT)
|
||||
.show()
|
||||
}
|
||||
}
|
||||
@@ -120,7 +215,17 @@ class UserListFragment : BaseFragment() {
|
||||
private fun fetchFromServer() {
|
||||
binding.noList.visibility = View.GONE
|
||||
binding.rvOrder.visibility = View.VISIBLE
|
||||
val dateFormat = SimpleDateFormat("yyyy-MM-dd")
|
||||
val currentDate = Date()
|
||||
val today = dateFormat.format(currentDate)
|
||||
val query = Firebase.firestore.collection("patientData")
|
||||
.whereGreaterThanOrEqualTo("createdAt", today)
|
||||
.orderBy("createdAt", Query.Direction.DESCENDING)
|
||||
query.get().addOnSuccessListener {
|
||||
// if (it.documents.isEmpty() && isOnline) {
|
||||
// binding.emptyRegistrations.visibility = View.VISIBLE
|
||||
// }
|
||||
}
|
||||
val recyclerViewOptions =
|
||||
FirestoreRecyclerOptions.Builder<UserData>().setQuery(query, UserData::class.java)
|
||||
.build()
|
||||
@@ -129,13 +234,32 @@ class UserListFragment : BaseFragment() {
|
||||
adapter.startListening()
|
||||
}
|
||||
|
||||
|
||||
private fun showDownloadDialog(context: Context) {
|
||||
val builder = AlertDialog.Builder(context)
|
||||
builder.setTitle(R.string.download_db_registration_title)
|
||||
builder.setMessage(R.string.download_db_registration_message)
|
||||
|
||||
builder.setPositiveButton(R.string.downloadcsv) { dialog, _ ->
|
||||
downloadLocalDBData(dialog)
|
||||
}
|
||||
|
||||
builder.setNegativeButton(R.string.cancel) { dialog, _ ->
|
||||
dialog.dismiss()
|
||||
}
|
||||
|
||||
val dialog = builder.create()
|
||||
dialog.show()
|
||||
}
|
||||
|
||||
|
||||
private fun fetchFromLocalDB() {
|
||||
binding.uploadData.visibility = View.GONE
|
||||
viewModel.allUserData.observe(viewLifecycleOwner) { userDataList ->
|
||||
if (isOnline) {
|
||||
binding.noList.visibility = View.GONE
|
||||
binding.rvOrder.visibility = View.VISIBLE
|
||||
} else {
|
||||
// if (isOnline) {
|
||||
// binding.noList.visibility = View.GONE
|
||||
// binding.rvOrder.visibility = View.VISIBLE
|
||||
// } else {
|
||||
if (userDataList.isEmpty()) {
|
||||
binding.noList.visibility = View.VISIBLE
|
||||
binding.rvOrder.visibility = View.GONE
|
||||
@@ -147,15 +271,64 @@ class UserListFragment : BaseFragment() {
|
||||
adapter.differ.submitList(userDataList)
|
||||
binding.rvOrder.adapter = adapter
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@SuppressLint("LogNotTimber")
|
||||
private fun downloadLocalDBData(dialog: DialogInterface) {
|
||||
var csvDownloaded = false
|
||||
viewModel.allUserData.observe(viewLifecycleOwner) { userDataList ->
|
||||
try {
|
||||
if (!csvDownloaded) {
|
||||
|
||||
val downloadList = mutableListOf<UserData>()
|
||||
|
||||
userDataList.forEach { userData ->
|
||||
Log.d(
|
||||
"DownloadDebug",
|
||||
"userData: $userData, isCSVCreated: ${userData.isCSVCreated}"
|
||||
)
|
||||
// if (!userData.isCSVCreated) {
|
||||
// userData.isCSVCreated = false
|
||||
downloadList.add(userData)
|
||||
// }
|
||||
}
|
||||
|
||||
|
||||
// Log the size of downloadList for debugging
|
||||
Log.d("DownloadDebug", "downloadList size: ${downloadList.size}")
|
||||
|
||||
if (downloadList.isNotEmpty()) {
|
||||
// Call ViewModel function to create CSV with filtered data
|
||||
viewModel.createCSV(downloadList, requireContext())
|
||||
csvDownloaded = true
|
||||
Toast.makeText(
|
||||
requireContext(),
|
||||
"CSV file downloaded successfully",
|
||||
Toast.LENGTH_SHORT
|
||||
).show()
|
||||
} else {
|
||||
Toast.makeText(requireContext(), "No data to download", Toast.LENGTH_SHORT)
|
||||
.show()
|
||||
}
|
||||
}
|
||||
} catch (e: Exception) {
|
||||
e.printStackTrace()
|
||||
Toast.makeText(requireContext(), "Error downloading CSV file", Toast.LENGTH_SHORT).show()
|
||||
} finally {
|
||||
dialog.dismiss()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private fun deteleIncompleteRegistration(userDataList: List<UserData>) {
|
||||
userDataList.forEach {
|
||||
if (it._id.isEmpty()) {
|
||||
if (it.userImageURL.isEmpty()) {
|
||||
viewModel.deleteById(it._id)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
package com.example.hposregistration.ui.fragments.registration
|
||||
|
||||
import android.content.Context
|
||||
import android.content.SharedPreferences
|
||||
import android.os.Bundle
|
||||
import android.view.LayoutInflater
|
||||
import android.view.View
|
||||
@@ -17,15 +19,21 @@ import com.example.hposregistration.ui.viewmodels.RegistrationViewModel
|
||||
import com.journeyapps.barcodescanner.ScanContract
|
||||
import com.journeyapps.barcodescanner.ScanIntentResult
|
||||
import dagger.hilt.android.AndroidEntryPoint
|
||||
import `in`.sminnovations.hposregistration.R
|
||||
import `in`.sminnovations.hposregistration.databinding.FragmentAbhaRegistrationBinding
|
||||
import kotlinx.coroutines.Dispatchers
|
||||
import kotlinx.coroutines.withContext
|
||||
import org.json.JSONObject
|
||||
import java.text.SimpleDateFormat
|
||||
import java.util.Calendar
|
||||
import java.util.Locale
|
||||
|
||||
@AndroidEntryPoint
|
||||
class AbhaRegistrationFragment : BaseFragment() {
|
||||
|
||||
private var _binding: FragmentAbhaRegistrationBinding? = null
|
||||
private val binding get() = _binding!!
|
||||
|
||||
private lateinit var sharedPreference: SharedPreferences
|
||||
private val viewModel by viewModels<RegistrationViewModel>()
|
||||
private val args: AbhaRegistrationFragmentArgs by navArgs()
|
||||
private var userData = UserData()
|
||||
@@ -34,7 +42,7 @@ class AbhaRegistrationFragment : BaseFragment() {
|
||||
registerForActivityResult(ScanContract()) { result: ScanIntentResult ->
|
||||
if (result.contents == null) {
|
||||
Toast.makeText(
|
||||
requireContext(), "Cancelled: Unable to scan, Try Again!!", Toast.LENGTH_LONG
|
||||
requireContext(), R.string.cancelled_unable_scan, Toast.LENGTH_LONG
|
||||
).show()
|
||||
} else {
|
||||
processScannedData(result.contents)
|
||||
@@ -45,6 +53,8 @@ class AbhaRegistrationFragment : BaseFragment() {
|
||||
inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle?
|
||||
): View {
|
||||
_binding = FragmentAbhaRegistrationBinding.inflate(inflater, container, false)
|
||||
sharedPreference =
|
||||
requireContext().getSharedPreferences("userAbhaRegistrationLog", Context.MODE_PRIVATE)
|
||||
return binding.root
|
||||
}
|
||||
|
||||
@@ -65,33 +75,42 @@ class AbhaRegistrationFragment : BaseFragment() {
|
||||
viewModel.userData.observe(viewLifecycleOwner) { user ->
|
||||
userData = user
|
||||
with(binding) {
|
||||
aadharID.setText(user.AadharId)
|
||||
etAbhaId.setText(user.AbhaId)
|
||||
aadharID.setText(user.aadharId)
|
||||
etAbhaId.setText(user.abhaId)
|
||||
etName.setText(user.name)
|
||||
centerName.setText(user.CenterName)
|
||||
centerName.setText(user.registrationCenterName)
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
binding.btnProceed.setOnClickListener {
|
||||
val abhaId = binding.etAbhaId.text.toString()
|
||||
val abhaIdInput = binding.etAbhaId.text.toString()
|
||||
val userName = binding.etName.text.toString()
|
||||
val aadharId = binding.aadharID.text.toString()
|
||||
val aadharIdInput = binding.aadharID.text.toString()
|
||||
val centerName = binding.centerName.text.toString()
|
||||
|
||||
if (validateInputs(abhaId, aadharId, userName, centerName)) {
|
||||
if (validateInputs(abhaIdInput, aadharIdInput, userName, centerName)) {
|
||||
userData.apply {
|
||||
name = userName
|
||||
AadharId = aadharId
|
||||
AbhaId = abhaId
|
||||
CenterName = centerName
|
||||
aadharId = aadharIdInput
|
||||
abhaId = abhaIdInput
|
||||
registrationCenterName = centerName
|
||||
_id = aadharId + userName.substring(0, 3).uppercase() + centerName.substring(0, 3).uppercase()
|
||||
userAbhaRegistrationLog = "$abhaIdInput,$userName,$aadharIdInput,$centerName"
|
||||
}
|
||||
|
||||
|
||||
|
||||
viewModel.insert(userData)
|
||||
|
||||
val userDataString = userData.userAbhaRegistrationLog// Make sure this provides a meaningful string representation of userData
|
||||
sharedPreference.edit()
|
||||
.putString("userAbhaRegistrationLog", userDataString)
|
||||
.apply()
|
||||
|
||||
navigateToUserDetailsFragment(userData._id)
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -100,7 +119,7 @@ class AbhaRegistrationFragment : BaseFragment() {
|
||||
val obj = JSONObject(contents)
|
||||
|
||||
userData.apply {
|
||||
AbhaId = obj.getString("hidn").replace("-", "")
|
||||
abhaId = obj.getString("hidn").replace("-", "")
|
||||
name = obj.getString("name")
|
||||
birthYear = obj.getString("dob").fetchYOBFromDOB().toString()
|
||||
gender = obj.getString("gender").mapToGender().toString()
|
||||
@@ -111,7 +130,7 @@ class AbhaRegistrationFragment : BaseFragment() {
|
||||
house = obj.getString("address")
|
||||
}
|
||||
|
||||
if (userData.AbhaId.isNotEmpty()) {
|
||||
if (userData.abhaId.isNotEmpty()) {
|
||||
saveUserDataAsPerAbhaId()
|
||||
} else {
|
||||
saveUserDataAsPerAadharId()
|
||||
@@ -133,7 +152,7 @@ class AbhaRegistrationFragment : BaseFragment() {
|
||||
} catch (e: Exception) {
|
||||
Toast.makeText(
|
||||
requireContext(),
|
||||
"The QR Code you have scanned is not valid, enter the data manually",
|
||||
R.string.invalid_qr_code,
|
||||
Toast.LENGTH_SHORT
|
||||
).show()
|
||||
}
|
||||
@@ -143,23 +162,23 @@ class AbhaRegistrationFragment : BaseFragment() {
|
||||
private fun saveUserDataAsPerAbhaId() {
|
||||
with(binding) {
|
||||
tvScanMessage.visibility = View.VISIBLE
|
||||
tvScanMessage.text = "You have scanned the Abha ID, need to enter Aadhar ID manually"
|
||||
etAbhaId.setText(userData.AbhaId)
|
||||
tvScanMessage.text = getString(R.string.enter_aadhar_manually)
|
||||
etAbhaId.setText(userData.abhaId)
|
||||
etName.setText(userData.name)
|
||||
}
|
||||
Toast.makeText(
|
||||
requireContext(), "You have scanned the Abha ID", Toast.LENGTH_SHORT
|
||||
requireContext(), R.string.scanned_abha_id, Toast.LENGTH_SHORT
|
||||
).show()
|
||||
}
|
||||
|
||||
private fun saveUserDataAsPerAadharId() {
|
||||
with(binding) {
|
||||
tvScanMessage.text =
|
||||
"You have scanned the Aadhar ID, need to enter Aadhar ID number you have scan and Abha ID manually"
|
||||
getString(R.string.scanned_aadhar_id)
|
||||
etName.setText(userData.name)
|
||||
}
|
||||
Toast.makeText(
|
||||
requireContext(), "You have scanned the Aadhar ID", Toast.LENGTH_SHORT
|
||||
requireContext(), R.string.scanned_aadharid, Toast.LENGTH_SHORT
|
||||
).show()
|
||||
}
|
||||
|
||||
@@ -168,19 +187,24 @@ class AbhaRegistrationFragment : BaseFragment() {
|
||||
): Boolean {
|
||||
with(binding) {
|
||||
if (!checkAbhaIDNumber(abhaId)) {
|
||||
etAbhaId.error = "Invalid Abha ID"
|
||||
etAbhaId.error = getString(R.string.invalid_abha_id)
|
||||
return false
|
||||
}
|
||||
if (!checkAadharIDNumber(aadharId)) {
|
||||
aadharID.error = "Invalid Aadhar ID"
|
||||
aadharID.error = getString(R.string.invalid_aadhar_id)
|
||||
return false
|
||||
}
|
||||
|
||||
if (aadharId.length.equals("0") || aadharId.isEmpty() || aadharId.equals(null) || aadharID.equals("")) {
|
||||
aadharID.error = getString(R.string.invalid_aadhar_id)
|
||||
return false
|
||||
}
|
||||
if (!checkUserName(userName)) {
|
||||
etName.error = "Name field can't be empty or less than 3 characters"
|
||||
etName.error = getString(R.string.name_field_error)
|
||||
return false
|
||||
}
|
||||
if (!checkCenterName(centerName)) {
|
||||
etCenterName.error = "Center name can't be empty or less than 3 characters"
|
||||
etCenterName.error = getString(R.string.center_name_error)
|
||||
return false
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,13 +2,13 @@ package com.example.hposregistration.ui.fragments.registration
|
||||
|
||||
import android.Manifest
|
||||
import android.app.Activity
|
||||
import android.app.Activity.RESULT_OK
|
||||
import android.content.Intent
|
||||
import android.content.pm.PackageManager
|
||||
import android.graphics.Bitmap
|
||||
import android.net.Uri
|
||||
import android.os.Bundle
|
||||
import android.provider.MediaStore
|
||||
import androidx.fragment.app.Fragment
|
||||
import android.view.LayoutInflater
|
||||
import android.view.View
|
||||
import android.view.ViewGroup
|
||||
@@ -16,14 +16,12 @@ import android.widget.ImageView
|
||||
import androidx.activity.result.ActivityResultLauncher
|
||||
import androidx.activity.result.contract.ActivityResultContracts
|
||||
import androidx.core.content.ContextCompat
|
||||
import androidx.fragment.app.Fragment
|
||||
import androidx.fragment.app.viewModels
|
||||
import androidx.navigation.fragment.findNavController
|
||||
import androidx.navigation.fragment.navArgs
|
||||
import com.bumptech.glide.Glide
|
||||
import com.example.hposregistration.data.user.UserData
|
||||
import com.example.hposregistration.ui.viewmodels.RegistrationViewModel
|
||||
import com.yalantis.ucrop.UCrop
|
||||
import dagger.hilt.android.AndroidEntryPoint
|
||||
import `in`.sminnovations.hposregistration.databinding.FragmentCaptureUserImageBinding
|
||||
import java.io.File
|
||||
@@ -72,8 +70,8 @@ class CaptureUserImageFragment : Fragment() {
|
||||
viewModel.getUserByID(args.userId)
|
||||
viewModel.userData.observe(viewLifecycleOwner) { user ->
|
||||
userData = user
|
||||
if (userData.userImage.isNotEmpty()) {
|
||||
binding.userImage.loadImageFromUri(Uri.parse(user.userImage))
|
||||
if (userData.userImageURL.isNotEmpty()) {
|
||||
binding.userImage.loadImageFromUri(Uri.parse(user.userImageURL))
|
||||
binding.btnSubmit.isEnabled = true
|
||||
binding.btnSubmit.setOnClickListener {
|
||||
navigate()
|
||||
@@ -84,7 +82,7 @@ class CaptureUserImageFragment : Fragment() {
|
||||
|
||||
private fun setupCameraLauncher() {
|
||||
cameraLauncher = registerForActivityResult(ActivityResultContracts.StartActivityForResult()) { result ->
|
||||
if (result.resultCode == RESULT_OK && result.data != null) {
|
||||
if (result.resultCode == Activity.RESULT_OK && result.data != null) {
|
||||
val thumbnail: Bitmap = result.data!!.extras!!.get("data") as Bitmap
|
||||
val uri: Uri = saveImageToInternalStorage(thumbnail)
|
||||
uri.let {
|
||||
@@ -124,42 +122,9 @@ class CaptureUserImageFragment : Fragment() {
|
||||
}
|
||||
|
||||
private fun submitImage(uri: Uri) {
|
||||
|
||||
val cropLauncher = registerForActivityResult(ActivityResultContracts.StartActivityForResult()) { result ->
|
||||
if (result.resultCode == RESULT_OK && result.data != null) {
|
||||
val resultUri: Uri? = UCrop.getOutput(result.data!!)
|
||||
binding.userImage.loadImageFromUri(Uri.parse(resultUri.toString()))
|
||||
} else if (result.resultCode == UCrop.RESULT_ERROR) {
|
||||
val cropError: Throwable? = UCrop.getError(result.data!!)
|
||||
}
|
||||
}
|
||||
|
||||
// val cropIntent: Intent = // Create your crop intent here
|
||||
// cropLauncher.launch(cropIntent)
|
||||
|
||||
|
||||
// userData.userImage = uri.toString()
|
||||
// viewModel.insert(userData)
|
||||
// navigate()
|
||||
var sourceUri = uri
|
||||
var destinationUri = uri
|
||||
val maxWidth = 160
|
||||
val maxHeight = 90
|
||||
|
||||
// val context = getContext().getA
|
||||
UCrop.of(sourceUri, destinationUri)
|
||||
.withAspectRatio(9F, 16F)
|
||||
.withMaxResultSize(maxWidth, maxHeight)
|
||||
.start(requireActivity())
|
||||
}
|
||||
|
||||
override fun onActivityResult(requestCode: Int, resultCode: Int, data: Intent?) {
|
||||
if (resultCode == RESULT_OK && requestCode == UCrop.REQUEST_CROP) {
|
||||
val resultUri: Uri? = data?.let { UCrop.getOutput(it) }
|
||||
binding.userImage.loadImageFromUri(Uri.parse(resultUri.toString()))
|
||||
} else if (resultCode == UCrop.RESULT_ERROR) {
|
||||
val cropError: Throwable? = data?.let { UCrop.getError(it) }
|
||||
}
|
||||
userData.userImageURL = uri.toString()
|
||||
viewModel.insert(userData)
|
||||
navigate()
|
||||
}
|
||||
|
||||
private fun navigate() {
|
||||
@@ -212,14 +177,14 @@ class CaptureUserImageFragment : Fragment() {
|
||||
requestPermissionLauncher.launch(permissions)
|
||||
}
|
||||
|
||||
private fun ImageView.loadImageFromUri(uri: Uri) {
|
||||
Glide.with(this)
|
||||
.load(uri)
|
||||
.into(this)
|
||||
}
|
||||
|
||||
override fun onDestroyView() {
|
||||
super.onDestroyView()
|
||||
_binding = null
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private fun ImageView.loadImageFromUri(uri: Uri) {
|
||||
Glide.with(this)
|
||||
.load(uri)
|
||||
.into(this)
|
||||
}
|
||||
|
||||
@@ -1,7 +1,11 @@
|
||||
package com.example.hposregistration.ui.fragments.registration
|
||||
|
||||
import android.annotation.SuppressLint
|
||||
import android.content.Context
|
||||
import android.content.SharedPreferences
|
||||
import android.net.Uri
|
||||
import android.os.Bundle
|
||||
import android.util.Log
|
||||
import android.view.LayoutInflater
|
||||
import android.view.View
|
||||
import android.view.ViewGroup
|
||||
@@ -10,28 +14,44 @@ import androidx.fragment.app.viewModels
|
||||
import androidx.navigation.fragment.findNavController
|
||||
import androidx.navigation.fragment.navArgs
|
||||
import com.bumptech.glide.Glide
|
||||
import com.example.hposregistration.data.Constant
|
||||
import com.example.hposregistration.data.user.UserData
|
||||
import com.example.hposregistration.ui.fragments.BaseFragment
|
||||
import com.example.hposregistration.ui.viewmodels.RegistrationViewModel
|
||||
import com.google.firebase.analytics.FirebaseAnalytics
|
||||
import com.google.firebase.analytics.ktx.analytics
|
||||
import com.google.firebase.ktx.Firebase
|
||||
import dagger.hilt.android.AndroidEntryPoint
|
||||
import `in`.sminnovations.hposregistration.R
|
||||
import `in`.sminnovations.hposregistration.databinding.FragmentReviewDetailsRegistrationBinding
|
||||
import java.io.File
|
||||
import java.io.FileOutputStream
|
||||
import java.io.OutputStreamWriter
|
||||
import java.text.SimpleDateFormat
|
||||
import java.util.Calendar
|
||||
import java.util.Locale
|
||||
import java.util.UUID
|
||||
|
||||
@AndroidEntryPoint
|
||||
class ReviewDetailsRegistrationFragment : BaseFragment() {
|
||||
|
||||
private var _binding: FragmentReviewDetailsRegistrationBinding? = null
|
||||
private val binding get() = _binding!!
|
||||
private lateinit var sharedPreference: SharedPreferences
|
||||
|
||||
private val viewModel by viewModels<RegistrationViewModel>()
|
||||
private val args: ReviewDetailsRegistrationFragmentArgs by navArgs()
|
||||
private var userData = UserData()
|
||||
private var isOnline = false
|
||||
|
||||
private lateinit var firebaseAnalytics: FirebaseAnalytics
|
||||
|
||||
override fun onCreateView(
|
||||
inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle?
|
||||
): View {
|
||||
_binding = FragmentReviewDetailsRegistrationBinding.inflate(inflater, container, false)
|
||||
sharedPreference =
|
||||
requireContext().getSharedPreferences("PREFERENCE_NAME", Context.MODE_PRIVATE)
|
||||
return binding.root
|
||||
}
|
||||
|
||||
@@ -44,6 +64,9 @@ class ReviewDetailsRegistrationFragment : BaseFragment() {
|
||||
viewModel.getUserByID(args.userId)
|
||||
viewModel.userData.observe(viewLifecycleOwner) { user ->
|
||||
userData = user
|
||||
userData.userAbhaRegistrationLog =
|
||||
sharedPreference.getString("userAbhaRegistrationLog", "").toString()
|
||||
userData.userDetailsLog = sharedPreference.getString("userDeatilsLOg", "").toString()
|
||||
setUserData(user)
|
||||
}
|
||||
|
||||
@@ -52,13 +75,24 @@ class ReviewDetailsRegistrationFragment : BaseFragment() {
|
||||
}
|
||||
|
||||
binding.btnSubmit.setOnClickListener {
|
||||
logUserData()
|
||||
|
||||
val gaUserId = UUID.randomUUID().toString()
|
||||
logUserRegistrationEvent(gaUserId, gaUserId, "user_email")
|
||||
|
||||
if (isOnline) {
|
||||
showProgressBar(binding.progressBarCL)
|
||||
addDataToFirebase()
|
||||
// showProgressBar(binding.progressBarCL)
|
||||
// addDataToFirebase()
|
||||
Toast.makeText(
|
||||
requireContext(),
|
||||
R.string.local,
|
||||
Toast.LENGTH_SHORT
|
||||
).show()
|
||||
navigateToUserListFragment()
|
||||
} else {
|
||||
Toast.makeText(
|
||||
requireContext(),
|
||||
"Internet not available, Data stored in local DB",
|
||||
R.string.local,
|
||||
Toast.LENGTH_SHORT
|
||||
).show()
|
||||
navigateToUserListFragment()
|
||||
@@ -75,26 +109,45 @@ class ReviewDetailsRegistrationFragment : BaseFragment() {
|
||||
|
||||
viewModel.fireBaseUpload.observe(viewLifecycleOwner) {
|
||||
if (it == "Success") {
|
||||
Toast.makeText(requireContext(), "Registration Done Successfully", Toast.LENGTH_SHORT)
|
||||
.show()
|
||||
Toast.makeText(
|
||||
requireContext(),
|
||||
R.string.registration_success,
|
||||
Toast.LENGTH_SHORT
|
||||
).show()
|
||||
navigateToUserListFragment()
|
||||
}
|
||||
}
|
||||
|
||||
firebaseAnalytics = Firebase.analytics
|
||||
}
|
||||
|
||||
private fun logUserRegistrationEvent(userId: String, userName: String, userEmail: String) {
|
||||
val bundle = Bundle()
|
||||
bundle.putString(FirebaseAnalytics.Param.METHOD, "user_registration_method")
|
||||
bundle.putString(FirebaseAnalytics.Param.ITEM_ID, userId)
|
||||
bundle.putString(FirebaseAnalytics.Param.ITEM_NAME, userName)
|
||||
bundle.putString(FirebaseAnalytics.Param.ITEM_CATEGORY, "user_registration")
|
||||
|
||||
firebaseAnalytics.logEvent(FirebaseAnalytics.Event.SIGN_UP, bundle)
|
||||
}
|
||||
|
||||
private fun addDataToFirebase() {
|
||||
userData.createdAt = SimpleDateFormat(
|
||||
"yyyy-MM-dd HH:mm:ss", Locale.getDefault()
|
||||
).format(Calendar.getInstance().time)
|
||||
userData.registeredBy = sharedPreference.getString(Constant.USER_ID, "")
|
||||
viewModel.addUserToDatabase(userData)
|
||||
viewModel.deleteById(args.userId)
|
||||
}
|
||||
|
||||
private fun setUserData(userData: UserData) {
|
||||
with(binding) {
|
||||
Glide.with(requireActivity()).load(Uri.parse(userData.userImage)).into(userImage)
|
||||
Glide.with(requireActivity()).load(Uri.parse(userData.userImageURL)).into(userImage)
|
||||
binding.tvUserID.text = requireContext().getString(R.string.user_id, userData._id)
|
||||
binding.tvAbhaId.text =
|
||||
requireContext().getString(R.string.abha_number, userData.AbhaId)
|
||||
requireContext().getString(R.string.abha_number, userData.abhaId)
|
||||
binding.tvAadharId.text =
|
||||
requireContext().getString(R.string.aadhar_number_details, userData.AadharId)
|
||||
requireContext().getString(R.string.aadhar_number_details, userData.aadharId)
|
||||
binding.tvUserName.text = requireContext().getString(R.string.user_name, userData.name)
|
||||
binding.tvBirthYear.text =
|
||||
requireContext().getString(R.string.birth_year_details, userData.birthYear)
|
||||
@@ -106,10 +159,14 @@ class ReviewDetailsRegistrationFragment : BaseFragment() {
|
||||
requireContext().getString(R.string.care_of_details, userData.careOf)
|
||||
binding.tvMaritalStatus.text =
|
||||
requireContext().getString(R.string.marital_status_details, userData.maritalStatus)
|
||||
binding.tvCategory.text =
|
||||
requireContext().getString(R.string.category_details, userData.category)
|
||||
binding.tvCaste.text =
|
||||
requireContext().getString(R.string.caste_details, userData.caste)
|
||||
binding.tvSubCaste.text =
|
||||
requireContext().getString(R.string.sub_caste_details, userData.subCaste)
|
||||
if (userData.subCaste != "") {
|
||||
binding.tvSubCaste.text =
|
||||
requireContext().getString(R.string.sub_caste_details, userData.subCaste)
|
||||
}
|
||||
binding.tvHouse.text =
|
||||
requireContext().getString(R.string.house_details, userData.house)
|
||||
binding.tvCity.text =
|
||||
@@ -121,7 +178,7 @@ class ReviewDetailsRegistrationFragment : BaseFragment() {
|
||||
binding.tvPincode.text =
|
||||
requireContext().getString(R.string.pincode_details, userData.pinCode)
|
||||
binding.centerName.text =
|
||||
requireContext().getString(R.string.centre_name, userData.CenterName)
|
||||
requireContext().getString(R.string.centre_name, userData.registrationCenterName)
|
||||
if (userData.isUnderMedication!!) {
|
||||
binding.tvIsUnderMedication.text = requireContext().getString(
|
||||
R.string.is_patient_under_any_medication_details, "Yes"
|
||||
@@ -135,7 +192,7 @@ class ReviewDetailsRegistrationFragment : BaseFragment() {
|
||||
binding.tvIsUnderTransfusion.text = requireContext().getString(
|
||||
R.string.is_patient_undergoing_any_blood_transfusion_details, "Yes"
|
||||
)
|
||||
}else{
|
||||
} else {
|
||||
binding.tvIsUnderTransfusion.text = requireContext().getString(
|
||||
R.string.is_patient_undergoing_any_blood_transfusion_details, "No"
|
||||
)
|
||||
@@ -145,14 +202,140 @@ class ReviewDetailsRegistrationFragment : BaseFragment() {
|
||||
R.string.sickle_cell_family_history, "No"
|
||||
)
|
||||
|
||||
}else{
|
||||
} else {
|
||||
binding.tvSickleCellFamilyHistory.text = requireContext().getString(
|
||||
R.string.sickle_cell_family_history, userData.sickleCellHistory
|
||||
)
|
||||
}
|
||||
|
||||
val pInfo = requireActivity().packageManager.getPackageInfo(
|
||||
requireActivity().packageName, 0
|
||||
)
|
||||
val version = pInfo.versionName
|
||||
userData.appVersion = version
|
||||
|
||||
userData.createdAt = SimpleDateFormat(
|
||||
"yyyy-MM-dd HH:mm:ss", Locale.getDefault()
|
||||
).format(Calendar.getInstance().time)
|
||||
userData.userAbhaRegistrationLog =
|
||||
sharedPreference.getString("userAbhaRegistrationLog", "").toString()
|
||||
userData.userDetailsLog = sharedPreference.getString("userDeatilsLOg", "").toString()
|
||||
|
||||
val useAbhaRegistrationLog = sharedPreference.getString("userAbhaRegistrationLog", "").toString()
|
||||
val userDetailsLog = sharedPreference.getString("userDetailslog", "").toString()
|
||||
userData.userAbhaRegistrationLog= useAbhaRegistrationLog
|
||||
userData.userDetailsLog = userDetailsLog
|
||||
|
||||
}
|
||||
val userDataString = serializeUserData(userData)
|
||||
saveUserDataToSharedPreferences(userDataString)
|
||||
}
|
||||
|
||||
private fun serializeUserData(userData: UserData): String {
|
||||
return listOf(
|
||||
userData._id,
|
||||
userData.abhaId,
|
||||
userData.aadharId,
|
||||
userData.name,
|
||||
userData.birthYear,
|
||||
userData.gender,
|
||||
userData.phoneNumber,
|
||||
userData.careOf,
|
||||
userData.maritalStatus,
|
||||
userData.category,
|
||||
userData.caste,
|
||||
userData.subCaste ?: "",
|
||||
userData.house,
|
||||
userData.city,
|
||||
userData.district,
|
||||
userData.state,
|
||||
userData.pinCode,
|
||||
userData.registrationCenterName ?: "",
|
||||
userData.isUnderMedication?.toString() ?: "",
|
||||
userData.isUnderTransfusion?.toString() ?: "",
|
||||
userData.sickleCellHistory ?: "",
|
||||
userData.userImageURL,
|
||||
userData.appVersion ?: "",
|
||||
userData.createdAt ?: ""
|
||||
).joinToString(",")
|
||||
}
|
||||
private fun saveUserDataToSharedPreferences(userDataString: String) {
|
||||
val editor = sharedPreference.edit()
|
||||
editor.putString("PREFERENCE_NAME", userDataString)
|
||||
editor.apply()
|
||||
}
|
||||
private fun retrieveUserDataFromSharedPreferences(): UserData? {
|
||||
val userDataString = sharedPreference.getString("PREFERENCE_NAME", null)
|
||||
return userDataString?.let {
|
||||
val parts = it.split(",")
|
||||
(if (parts[22].isNotEmpty()) parts[22] else null)?.let { it1 ->
|
||||
UserData(
|
||||
_id = parts[0],
|
||||
abhaId = parts[1],
|
||||
aadharId = parts[2],
|
||||
name = parts[3],
|
||||
birthYear = parts[4],
|
||||
gender = parts[5],
|
||||
phoneNumber = parts[6],
|
||||
careOf = parts[7],
|
||||
maritalStatus = parts[8],
|
||||
category = parts[9],
|
||||
caste = parts[10],
|
||||
subCaste = if (parts[11].isNotEmpty()) parts[11] else null,
|
||||
house = parts[12],
|
||||
city = parts[13],
|
||||
district = parts[14],
|
||||
state = parts[15],
|
||||
pinCode = parts[16],
|
||||
registrationCenterName = if (parts[17].isNotEmpty()) parts[17] else null,
|
||||
isUnderMedication = parts[18].takeIf { it.equals("true", true) || it.equals("false", true) }?.toBoolean(),
|
||||
isUnderTransfusion = parts[19].takeIf { it.equals("true", true) || it.equals("false", true) }?.toBoolean(),
|
||||
sickleCellHistory = if (parts[20].isNotEmpty()) parts[20] else null,
|
||||
userImageURL = parts[21],
|
||||
appVersion = it1,
|
||||
createdAt = if (parts[23].isNotEmpty()) parts[23] else null
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@SuppressLint("LogNotTimber")
|
||||
private fun logUserData() {
|
||||
val userData = retrieveUserDataFromSharedPreferences()
|
||||
if (userData != null) {
|
||||
val userDataString = userDataToString(userData)
|
||||
writeToLogFile(userDataString)
|
||||
} else {
|
||||
Log.e("UserDataLog", "No user data found in SharedPreferences")
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@SuppressLint("LogNotTimber")
|
||||
private fun writeToLogFile(data: String) {
|
||||
try {
|
||||
val logFileName = "RegistrationLog.txt"
|
||||
val file = File(requireContext().filesDir, logFileName)
|
||||
if (!file.exists()) {
|
||||
file.createNewFile()
|
||||
}
|
||||
|
||||
val fileOutputStream = FileOutputStream(file, true) // True for append mode
|
||||
val writer = OutputStreamWriter(fileOutputStream)
|
||||
writer.append(data).append("\n")
|
||||
writer.close()
|
||||
fileOutputStream.close()
|
||||
|
||||
Log.d("UserDataLog", "Log file updated: $logFileName")
|
||||
} catch (e: Exception) {
|
||||
Log.e("UserDataLog", "Error writing to log file", e)
|
||||
}
|
||||
}
|
||||
private fun userDataToString(userData: UserData): String {
|
||||
// Convert your UserData object to a string format
|
||||
// You might want to format this nicely for readability
|
||||
return userData.toString() // Implement a more detailed conversion based on your needs
|
||||
}
|
||||
private fun navigateToUserListFragment() {
|
||||
hideProgressBar(binding.progressBarCL)
|
||||
|
||||
@@ -160,9 +343,9 @@ class ReviewDetailsRegistrationFragment : BaseFragment() {
|
||||
ReviewDetailsRegistrationFragmentDirections.actionReviewDetailsRegistrationFragmentToUserListFragment()
|
||||
findNavController().navigate(action)
|
||||
}
|
||||
|
||||
override fun onDestroyView() {
|
||||
super.onDestroyView()
|
||||
_binding = null
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,5 +1,7 @@
|
||||
package com.example.hposregistration.ui.fragments.registration
|
||||
|
||||
import android.content.Context
|
||||
import android.content.SharedPreferences
|
||||
import android.os.Bundle
|
||||
import android.view.LayoutInflater
|
||||
import android.view.View
|
||||
@@ -13,7 +15,11 @@ import androidx.navigation.fragment.navArgs
|
||||
import com.example.hposregistration.data.user.UserData
|
||||
import com.example.hposregistration.ui.viewmodels.RegistrationViewModel
|
||||
import dagger.hilt.android.AndroidEntryPoint
|
||||
import `in`.sminnovations.hposregistration.R
|
||||
import `in`.sminnovations.hposregistration.databinding.FragmentUserDetailsRegistrationBinding
|
||||
import java.text.SimpleDateFormat
|
||||
import java.util.Calendar
|
||||
import java.util.Locale
|
||||
|
||||
|
||||
@AndroidEntryPoint
|
||||
@@ -25,13 +31,15 @@ class UserDetailsRegistrationFragment : Fragment() {
|
||||
private val viewModel by viewModels<RegistrationViewModel>()
|
||||
|
||||
private lateinit var userData: UserData
|
||||
|
||||
private lateinit var sharedPreference: SharedPreferences
|
||||
private val args: UserDetailsRegistrationFragmentArgs by navArgs()
|
||||
|
||||
override fun onCreateView(
|
||||
inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle?
|
||||
): View {
|
||||
_binding = FragmentUserDetailsRegistrationBinding.inflate(inflater, container, false)
|
||||
sharedPreference =
|
||||
requireContext().getSharedPreferences("userDeatilsLOg", Context.MODE_PRIVATE)
|
||||
return binding.root
|
||||
}
|
||||
|
||||
@@ -43,6 +51,23 @@ class UserDetailsRegistrationFragment : Fragment() {
|
||||
private fun init() {
|
||||
setupViewModel()
|
||||
setupSubmitButton()
|
||||
|
||||
|
||||
binding.etCategory.setOnItemClickListener { parent, view, position, id ->
|
||||
if (parent.getItemAtPosition(position).toString().equals("OTHER", ignoreCase = true)) {
|
||||
binding.tilOther.visibility = View.VISIBLE
|
||||
} else {
|
||||
binding.tilOther.visibility = View.GONE
|
||||
}
|
||||
}
|
||||
|
||||
binding.etCaste.setOnItemClickListener { parent, view, position, id ->
|
||||
if (parent.getItemAtPosition(position).toString().equals("OTHER", ignoreCase = true)) {
|
||||
binding.tilOthercaste.visibility = View.VISIBLE
|
||||
} else {
|
||||
binding.tilOthercaste.visibility = View.GONE
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private fun setupViewModel() {
|
||||
@@ -56,18 +81,31 @@ class UserDetailsRegistrationFragment : Fragment() {
|
||||
private fun autoFillUserData(user: UserData) {
|
||||
with(binding) {
|
||||
user.birthYear.let { etYob.setText(it) }
|
||||
user.gender.let { etGenderBlock.setText(it, false) }
|
||||
user.gender.let {
|
||||
when (it) {
|
||||
"Male" -> {
|
||||
male.isChecked = true
|
||||
binding.tilOthergender.visibility = View.GONE
|
||||
}
|
||||
"Female" -> {
|
||||
female.isChecked = true
|
||||
binding.tilOthergender.visibility = View.GONE
|
||||
}
|
||||
else -> {
|
||||
other.isChecked = true
|
||||
binding.tilOthergender.visibility = View.VISIBLE
|
||||
}
|
||||
}
|
||||
}
|
||||
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.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
|
||||
@@ -78,64 +116,65 @@ class UserDetailsRegistrationFragment : Fragment() {
|
||||
yes1.isChecked = it
|
||||
}
|
||||
}
|
||||
// user.sickleCellHistory.let{
|
||||
// if (it != null) {
|
||||
// if (binding.etFamilyHistory.isVisible) {
|
||||
// binding.etFamilyHistory.setText(it)
|
||||
// yes1history.isChecked = true
|
||||
// }else{
|
||||
// no1history.isChecked = true
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// user.isUnderMedication.let {
|
||||
// if (it != null) {
|
||||
// yes.isChecked = it
|
||||
// }
|
||||
// }
|
||||
user.sickleCellHistory.let {
|
||||
if (it != null) {
|
||||
yes1history.isChecked = true
|
||||
}
|
||||
}
|
||||
|
||||
// user.sickleCellHistory.let{
|
||||
// if (it != null) {
|
||||
// if(yes1history.isChecked){
|
||||
// yes1history.isChecked = true
|
||||
// }else if(no1history.isChecked){
|
||||
// no1history.isChecked
|
||||
// }
|
||||
//
|
||||
//
|
||||
// }
|
||||
// }
|
||||
|
||||
user.category.let {
|
||||
etCategory.setText(it, false)
|
||||
}
|
||||
user.caste.let {
|
||||
etCaste.setText(it, false)
|
||||
}
|
||||
|
||||
if (yes1history.isChecked) {
|
||||
if (binding.yes1history.isChecked) View.VISIBLE else View.GONE
|
||||
|
||||
user.sickleCellHistory.let { etFamilyHistory.setText(it) }
|
||||
|
||||
|
||||
|
||||
|
||||
} else {
|
||||
binding.tilFamilyHistory.visibility = View.GONE
|
||||
}
|
||||
|
||||
binding.yes1history.setOnClickListener {
|
||||
binding.tilFamilyHistory.visibility =
|
||||
if (binding.yes1history.isChecked) View.VISIBLE else View.GONE
|
||||
user.sickleCellHistory.let { etFamilyHistory.setText(it) }
|
||||
|
||||
}
|
||||
//
|
||||
binding.no1history.setOnClickListener {
|
||||
binding.tilFamilyHistory.visibility =
|
||||
if (binding.no1history.isChecked) View.GONE else View.VISIBLE
|
||||
}
|
||||
|
||||
if(other.isChecked){
|
||||
user.gender.let { etOthergender.setText(it) }
|
||||
}
|
||||
|
||||
binding.male.setOnClickListener {
|
||||
binding.tilOthergender.visibility = View.GONE
|
||||
}
|
||||
|
||||
binding.female.setOnClickListener {
|
||||
binding.tilOthergender.visibility = View.GONE
|
||||
}
|
||||
|
||||
binding.other.setOnClickListener {
|
||||
binding.tilOthergender.visibility = View.VISIBLE
|
||||
}
|
||||
|
||||
if (binding.etCategory.text.toString().equals("OTHER", ignoreCase = true)) {
|
||||
binding.tilOther.visibility = View.VISIBLE
|
||||
binding.etOther.visibility = View.VISIBLE
|
||||
} else {
|
||||
binding.tilOther.visibility = View.GONE
|
||||
}
|
||||
|
||||
if (binding.etCaste.text.toString().equals("OTHER", ignoreCase = true)) {
|
||||
binding.tilOthercaste.visibility = View.VISIBLE
|
||||
binding.etOthercaste.visibility = View.VISIBLE
|
||||
} else {
|
||||
binding.tilOthercaste.visibility = View.GONE
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -145,9 +184,39 @@ class UserDetailsRegistrationFragment : Fragment() {
|
||||
if (verifyUserDetails()) {
|
||||
userData._id = args.userId
|
||||
viewModel.insert(userData)
|
||||
userData.userDetailsLog = "${userData.birthYear}," +
|
||||
"${userData.gender}," +
|
||||
"${userData.phoneNumber}," +
|
||||
"${userData.careOf}," +
|
||||
"${userData.maritalStatus}," +
|
||||
"${userData.category}," +
|
||||
"${userData.caste}," +
|
||||
"${userData.subCaste ?: ""}," + // Using Elvis operator for nullable fields
|
||||
"${userData.appVersion}," +
|
||||
"${userData.house}," +
|
||||
"${userData.city}," +
|
||||
"${userData.district}," +
|
||||
"${userData.state}," +
|
||||
"${userData.pinCode}," +
|
||||
"${userData.bloodGroup}," +
|
||||
"${userData.isUnderMedication ?: false}," + // Converting null to false
|
||||
"${userData.isUnderTransfusion ?: false}," +
|
||||
"${userData.sickleCellHistory ?: ""}," +
|
||||
"${userData.userImageURL}," +
|
||||
"${userData.registeredBy ?: ""}," +
|
||||
"${userData.createdAt ?: ""}," +
|
||||
"${userData.registrationCenterName ?: ""}," +
|
||||
"${userData.testStatus}," +
|
||||
"${userData.isCSVCreated}," +
|
||||
"${userData.localFlag}"
|
||||
|
||||
val userDataString = userData.userDetailsLog// Make sure this provides a meaningful string representation of userData
|
||||
sharedPreference.edit()
|
||||
.putString("userDetailslog", userDataString)
|
||||
.apply()
|
||||
navigateToCaptureUserImageFragment()
|
||||
} else {
|
||||
showToast("Please enter all the details properly")
|
||||
showToast(getString(R.string.enter_details_properly))
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -162,23 +231,38 @@ class UserDetailsRegistrationFragment : Fragment() {
|
||||
with(binding) {
|
||||
val yob = etYob.text.toString()
|
||||
if (yob.isEmpty() || yob.toInt() <= 1900 || yob.toInt() > 2023) {
|
||||
etYob.error = "Please enter a valid birth year between 1900 and 2023"
|
||||
etYob.error = getString(R.string.enter_valid_birth_year)
|
||||
return false
|
||||
} else {
|
||||
userData.birthYear = yob
|
||||
}
|
||||
|
||||
val gender = etGenderBlock.text.toString()
|
||||
if (gender.isEmpty()) {
|
||||
etGenderBlock.error = "Please enter your gender"
|
||||
return false
|
||||
} else {
|
||||
userData.gender = gender
|
||||
if (male.isChecked) {
|
||||
binding.tilOthergender.visibility = View.GONE
|
||||
userData.gender = "Male"
|
||||
} else if (female.isChecked) {
|
||||
binding.tilOthergender.visibility = View.GONE
|
||||
userData.gender = "Female"
|
||||
} else if(other.isChecked) {
|
||||
binding.tilOthergender.visibility = View.VISIBLE
|
||||
val genderother= binding.etOthergender.text.toString()
|
||||
userData.gender = genderother
|
||||
if (genderother.isEmpty()) {
|
||||
etOthergender.error = getString(R.string.fill_field)
|
||||
return false
|
||||
}
|
||||
}
|
||||
|
||||
val pInfo = requireActivity().packageManager.getPackageInfo(
|
||||
requireActivity().packageName, 0
|
||||
)
|
||||
val version = pInfo.versionName
|
||||
userData.appVersion = version
|
||||
|
||||
|
||||
val mobile = etMobile.text.toString()
|
||||
if (mobile.isEmpty() || mobile.length != 10) {
|
||||
etMobile.error = "Please enter a valid 10-digit mobile number"
|
||||
etMobile.error = getString(R.string.valid_mobile_number)
|
||||
return false
|
||||
} else {
|
||||
userData.phoneNumber = mobile
|
||||
@@ -186,7 +270,7 @@ class UserDetailsRegistrationFragment : Fragment() {
|
||||
|
||||
val careOf = etCareof.text.toString()
|
||||
if (careOf.isEmpty()) {
|
||||
etCareof.error = "Please enter your name"
|
||||
etCareof.error = getString(R.string.enter_father_husband_name)
|
||||
return false
|
||||
} else {
|
||||
userData.careOf = careOf
|
||||
@@ -194,31 +278,43 @@ class UserDetailsRegistrationFragment : Fragment() {
|
||||
|
||||
val maritalStatus = etIsMarried.text.toString()
|
||||
if (maritalStatus.isEmpty()) {
|
||||
etIsMarried.error = "Please enter your marital status"
|
||||
etIsMarried.error = getString(R.string.enter_marital_status)
|
||||
return false
|
||||
} else {
|
||||
userData.maritalStatus = maritalStatus
|
||||
}
|
||||
|
||||
val category = etCategory.text.toString()
|
||||
val other = etOther.text.toString()
|
||||
if (category.isEmpty()) {
|
||||
etCategory.error = "Please enter your caste"
|
||||
etCategory.error = getString(R.string.enter_category)
|
||||
return false
|
||||
} else if (category == "OTHER" && tilOther.isVisible) {
|
||||
userData.category = other
|
||||
} else {
|
||||
userData.caste = category
|
||||
userData.category = category
|
||||
}
|
||||
|
||||
val subCaste = etSubCaste.text.toString()
|
||||
if (subCaste.isEmpty()) {
|
||||
etSubCaste.error = "Please enter your sub caste"
|
||||
val caste = etCaste.text.toString()
|
||||
val othercaste = etOthercaste.text.toString()
|
||||
if (caste.isEmpty()) {
|
||||
etCaste.error = getString(R.string.enter_caste)
|
||||
return false
|
||||
} else if (caste == "OTHER" && tilOthercaste.isVisible) {
|
||||
userData.caste = othercaste
|
||||
} else {
|
||||
userData.caste = caste
|
||||
}
|
||||
|
||||
|
||||
val subCaste = etSubCaste.text.toString()
|
||||
if (subCaste.isNotEmpty()) {
|
||||
userData.subCaste = subCaste
|
||||
}
|
||||
|
||||
val house = etHouse.text.toString()
|
||||
if (house.isEmpty()) {
|
||||
etHouse.error = "Please enter your house address"
|
||||
etHouse.error = getString(R.string.enter_house_address)
|
||||
return false
|
||||
} else {
|
||||
userData.house = house
|
||||
@@ -226,7 +322,7 @@ class UserDetailsRegistrationFragment : Fragment() {
|
||||
|
||||
val city = etCity.text.toString()
|
||||
if (city.isEmpty()) {
|
||||
etCity.error = "Please enter your city"
|
||||
etCity.error = getString(R.string.enter_city)
|
||||
return false
|
||||
} else {
|
||||
userData.city = city
|
||||
@@ -234,7 +330,7 @@ class UserDetailsRegistrationFragment : Fragment() {
|
||||
|
||||
val district = etDistrict.text.toString()
|
||||
if (district.isEmpty()) {
|
||||
etDistrict.error = "Please enter your district"
|
||||
etDistrict.error = getString(R.string.enter_district)
|
||||
return false
|
||||
} else {
|
||||
userData.district = district
|
||||
@@ -242,7 +338,7 @@ class UserDetailsRegistrationFragment : Fragment() {
|
||||
|
||||
val state = etState.text.toString()
|
||||
if (state.isEmpty()) {
|
||||
etState.error = "Please enter your state"
|
||||
etState.error = getString(R.string.enter_state)
|
||||
return false
|
||||
} else {
|
||||
userData.state = state
|
||||
@@ -250,19 +346,12 @@ class UserDetailsRegistrationFragment : Fragment() {
|
||||
|
||||
val pincode = etPincode.text.toString()
|
||||
if (pincode.isEmpty() || pincode.length != 6) {
|
||||
etPincode.error = "Please enter a valid 6-digit pin code"
|
||||
etPincode.error = getString(R.string.enter_pincode)
|
||||
return false
|
||||
} else {
|
||||
userData.pinCode = pincode
|
||||
}
|
||||
|
||||
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()
|
||||
@@ -270,7 +359,7 @@ class UserDetailsRegistrationFragment : Fragment() {
|
||||
if (yes1history.isChecked) {
|
||||
val familyHistory = etFamilyHistory.text.toString()
|
||||
if (familyHistory.isEmpty()) {
|
||||
etFamilyHistory.error = "Please enter your family history"
|
||||
etFamilyHistory.error = getString(R.string.enter_family_history)
|
||||
return false
|
||||
}
|
||||
|
||||
@@ -281,6 +370,10 @@ class UserDetailsRegistrationFragment : Fragment() {
|
||||
|
||||
}
|
||||
|
||||
userData.createdAt = SimpleDateFormat(
|
||||
"yyyy-MM-dd HH:mm:ss", Locale.getDefault()
|
||||
).format(Calendar.getInstance().time)
|
||||
|
||||
return true
|
||||
|
||||
}
|
||||
|
||||
@@ -2,6 +2,7 @@ package com.example.hposregistration.ui.viewmodels
|
||||
|
||||
import android.content.Context
|
||||
import android.net.Uri
|
||||
import android.util.Log
|
||||
import androidx.lifecycle.LiveData
|
||||
import androidx.lifecycle.MutableLiveData
|
||||
import androidx.lifecycle.ViewModel
|
||||
@@ -10,25 +11,32 @@ import com.example.hposregistration.data.MainRepository
|
||||
import com.example.hposregistration.data.NetworkStatusLiveData
|
||||
import com.example.hposregistration.data.Response
|
||||
import com.example.hposregistration.data.user.UserData
|
||||
import com.example.hposregistration.dao.UserDao
|
||||
import com.example.hposregistration.data.datasource.LocalFileDataSource
|
||||
import com.google.firebase.storage.FirebaseStorage
|
||||
import dagger.hilt.android.lifecycle.HiltViewModel
|
||||
import kotlinx.coroutines.launch
|
||||
import java.text.SimpleDateFormat
|
||||
import java.util.Date
|
||||
import java.util.Locale
|
||||
import javax.inject.Inject
|
||||
|
||||
@HiltViewModel
|
||||
class RegistrationViewModel @Inject constructor(
|
||||
private val mainRepository: MainRepository,
|
||||
private val userdao: UserDao,
|
||||
private val localFileDataSource: LocalFileDataSource,
|
||||
context: Context
|
||||
) : ViewModel() {
|
||||
|
||||
val userData = MutableLiveData<UserData>()
|
||||
|
||||
val allUserData = mainRepository.allUsers
|
||||
val allUserData = userdao.getAll()
|
||||
|
||||
val fireBaseUpload = MutableLiveData<String>()
|
||||
|
||||
fun addUserToDatabase(userData: UserData) = viewModelScope.launch {
|
||||
val file = Uri.parse(userData.userImage)
|
||||
val file = Uri.parse(userData.userImageURL)
|
||||
val storageRef = FirebaseStorage.getInstance().reference
|
||||
val imageRef = storageRef.child("${userData._id}/${file.lastPathSegment}")
|
||||
|
||||
@@ -39,7 +47,7 @@ class RegistrationViewModel @Inject constructor(
|
||||
}
|
||||
imageRef.downloadUrl
|
||||
}.addOnSuccessListener { uri ->
|
||||
userData.userImage = uri.toString()
|
||||
userData.userImageURL = uri.toString()
|
||||
addDataToFirebase(userData)
|
||||
}.addOnFailureListener { exception ->
|
||||
|
||||
@@ -73,4 +81,25 @@ class RegistrationViewModel @Inject constructor(
|
||||
fun deleteById(userId: String) = viewModelScope.launch {
|
||||
mainRepository.deleteById(id = userId)
|
||||
}
|
||||
|
||||
fun createCSV(userData: List<UserData>, context: Context) =
|
||||
viewModelScope.launch {
|
||||
val fileName = "hpos${getCurrentDate()}.csv"
|
||||
if (localFileDataSource.exportDataToCSV(fileName, userData)) {
|
||||
userData.forEach { data ->
|
||||
data.localFlag = true
|
||||
mainRepository.updateCSVFieldById(
|
||||
data._id,
|
||||
true)
|
||||
// data.isCSVCreated = false
|
||||
Log.d("DownloadDebugcsv", "Setting isCSVCreated to false for ${data._id}")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private fun getCurrentDate(): String {
|
||||
val dateFormat = SimpleDateFormat("dd_MM_yy", Locale.getDefault())
|
||||
val currentDate = Date()
|
||||
return dateFormat.format(currentDate)
|
||||
}
|
||||
}
|
||||
@@ -1,30 +0,0 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:aapt="http://schemas.android.com/aapt"
|
||||
android:width="108dp"
|
||||
android:height="108dp"
|
||||
android:viewportWidth="108"
|
||||
android:viewportHeight="108">
|
||||
<path android:pathData="M31,63.928c0,0 6.4,-11 12.1,-13.1c7.2,-2.6 26,-1.4 26,-1.4l38.1,38.1L107,108.928l-32,-1L31,63.928z">
|
||||
<aapt:attr name="android:fillColor">
|
||||
<gradient
|
||||
android:endX="85.84757"
|
||||
android:endY="92.4963"
|
||||
android:startX="42.9492"
|
||||
android:startY="49.59793"
|
||||
android:type="linear">
|
||||
<item
|
||||
android:color="#44000000"
|
||||
android:offset="0.0" />
|
||||
<item
|
||||
android:color="#00000000"
|
||||
android:offset="1.0" />
|
||||
</gradient>
|
||||
</aapt:attr>
|
||||
</path>
|
||||
<path
|
||||
android:fillColor="#FFFFFF"
|
||||
android:fillType="nonZero"
|
||||
android:pathData="M65.3,45.828l3.8,-6.6c0.2,-0.4 0.1,-0.9 -0.3,-1.1c-0.4,-0.2 -0.9,-0.1 -1.1,0.3l-3.9,6.7c-6.3,-2.8 -13.4,-2.8 -19.7,0l-3.9,-6.7c-0.2,-0.4 -0.7,-0.5 -1.1,-0.3C38.8,38.328 38.7,38.828 38.9,39.228l3.8,6.6C36.2,49.428 31.7,56.028 31,63.928h46C76.3,56.028 71.8,49.428 65.3,45.828zM43.4,57.328c-0.8,0 -1.5,-0.5 -1.8,-1.2c-0.3,-0.7 -0.1,-1.5 0.4,-2.1c0.5,-0.5 1.4,-0.7 2.1,-0.4c0.7,0.3 1.2,1 1.2,1.8C45.3,56.528 44.5,57.328 43.4,57.328L43.4,57.328zM64.6,57.328c-0.8,0 -1.5,-0.5 -1.8,-1.2s-0.1,-1.5 0.4,-2.1c0.5,-0.5 1.4,-0.7 2.1,-0.4c0.7,0.3 1.2,1 1.2,1.8C66.5,56.528 65.6,57.328 64.6,57.328L64.6,57.328z"
|
||||
android:strokeWidth="1"
|
||||
android:strokeColor="#00000000" />
|
||||
</vector>
|
||||
5
app/src/main/res/drawable/baseline_settings_24.xml
Normal file
@@ -0,0 +1,5 @@
|
||||
<vector android:height="24dp" android:tint="#000000"
|
||||
android:viewportHeight="24" android:viewportWidth="24"
|
||||
android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<path android:fillColor="@android:color/white" android:pathData="M19.14,12.94c0.04,-0.3 0.06,-0.61 0.06,-0.94c0,-0.32 -0.02,-0.64 -0.07,-0.94l2.03,-1.58c0.18,-0.14 0.23,-0.41 0.12,-0.61l-1.92,-3.32c-0.12,-0.22 -0.37,-0.29 -0.59,-0.22l-2.39,0.96c-0.5,-0.38 -1.03,-0.7 -1.62,-0.94L14.4,2.81c-0.04,-0.24 -0.24,-0.41 -0.48,-0.41h-3.84c-0.24,0 -0.43,0.17 -0.47,0.41L9.25,5.35C8.66,5.59 8.12,5.92 7.63,6.29L5.24,5.33c-0.22,-0.08 -0.47,0 -0.59,0.22L2.74,8.87C2.62,9.08 2.66,9.34 2.86,9.48l2.03,1.58C4.84,11.36 4.8,11.69 4.8,12s0.02,0.64 0.07,0.94l-2.03,1.58c-0.18,0.14 -0.23,0.41 -0.12,0.61l1.92,3.32c0.12,0.22 0.37,0.29 0.59,0.22l2.39,-0.96c0.5,0.38 1.03,0.7 1.62,0.94l0.36,2.54c0.05,0.24 0.24,0.41 0.48,0.41h3.84c0.24,0 0.44,-0.17 0.47,-0.41l0.36,-2.54c0.59,-0.24 1.13,-0.56 1.62,-0.94l2.39,0.96c0.22,0.08 0.47,0 0.59,-0.22l1.92,-3.32c0.12,-0.22 0.07,-0.47 -0.12,-0.61L19.14,12.94zM12,15.6c-1.98,0 -3.6,-1.62 -3.6,-3.6s1.62,-3.6 3.6,-3.6s3.6,1.62 3.6,3.6S13.98,15.6 12,15.6z"/>
|
||||
</vector>
|
||||
5
app/src/main/res/drawable/downloads.xml
Normal file
@@ -0,0 +1,5 @@
|
||||
<vector android:height="24dp" android:tint="@color/primary"
|
||||
android:viewportHeight="24" android:viewportWidth="24"
|
||||
android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<path android:fillColor="@color/primary" android:pathData="M19,9h-4V3H9v6H5l7,7 7,-7zM5,18v2h14v-2H5z"/>
|
||||
</vector>
|
||||
@@ -1,170 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="108dp"
|
||||
android:height="108dp"
|
||||
android:viewportWidth="108"
|
||||
android:viewportHeight="108">
|
||||
<path
|
||||
android:fillColor="#3DDC84"
|
||||
android:pathData="M0,0h108v108h-108z" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M9,0L9,108"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M19,0L19,108"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M29,0L29,108"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M39,0L39,108"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M49,0L49,108"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M59,0L59,108"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M69,0L69,108"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M79,0L79,108"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M89,0L89,108"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M99,0L99,108"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M0,9L108,9"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M0,19L108,19"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M0,29L108,29"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M0,39L108,39"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M0,49L108,49"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M0,59L108,59"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M0,69L108,69"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M0,79L108,79"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M0,89L108,89"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M0,99L108,99"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M19,29L89,29"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M19,39L89,39"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M19,49L89,49"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M19,59L89,59"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M19,69L89,69"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M19,79L89,79"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M29,19L29,89"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M39,19L39,89"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M49,19L49,89"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M59,19L59,89"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M69,19L69,89"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M79,19L79,89"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
</vector>
|
||||
5
app/src/main/res/drawable/ic_logout.xml
Normal file
@@ -0,0 +1,5 @@
|
||||
<vector android:autoMirrored="true" android:height="24dp"
|
||||
android:tint="@color/red" android:viewportHeight="24"
|
||||
android:viewportWidth="24" android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<path android:fillColor="@color/red" android:pathData="M17,7l-1.41,1.41L18.17,11H8v2h10.17l-2.58,2.58L17,17l5,-5zM4,5h8V3H4c-1.1,0 -2,0.9 -2,2v14c0,1.1 0.9,2 2,2h8v-2H4V5z"/>
|
||||
</vector>
|
||||
BIN
app/src/main/res/drawable/sickle_cell_gov_logo.png
Normal file
|
After Width: | Height: | Size: 12 KiB |
BIN
app/src/main/res/drawable/smi_logo.png
Normal file
|
After Width: | Height: | Size: 25 KiB |
@@ -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.AbhaRegistrationFragment">
|
||||
tools:context="com.example.hposregistration.ui.fragments.registration.AbhaRegistrationFragment">
|
||||
|
||||
<ScrollView
|
||||
android:layout_width="match_parent"
|
||||
@@ -169,8 +169,7 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:hint="@string/center_name"
|
||||
android:inputType="text"
|
||||
android:maxLength="12" />
|
||||
android:inputType="text" />
|
||||
</com.google.android.material.textfield.TextInputLayout>
|
||||
|
||||
<TextView
|
||||
|
||||
13
app/src/main/res/layout/fragment_language_settings.xml
Normal file
@@ -0,0 +1,13 @@
|
||||
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
tools:context="com.example.hposregistration.ui.fragments.LanguageSettingsFragment">
|
||||
|
||||
<!-- TODO: Update blank fragment layout -->
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:text="@string/hello_blank_fragment" />
|
||||
|
||||
</FrameLayout>
|
||||
145
app/src/main/res/layout/fragment_login.xml
Normal file
@@ -0,0 +1,145 @@
|
||||
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
tools:context="com.example.hposregistration.ui.fragments.LoginFragment">
|
||||
|
||||
|
||||
<ScrollView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:padding="16dp">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_title"
|
||||
style="@style/title1"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="16dp"
|
||||
android:text="@string/login"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/imageView"
|
||||
android:layout_width="100dp"
|
||||
android:layout_height="100dp"
|
||||
android:src="@drawable/smi_logo"
|
||||
android:layout_marginTop="24dp"
|
||||
app:layout_constraintEnd_toStartOf="@id/imageView2"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/tv_title" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/imageView2"
|
||||
android:layout_width="100dp"
|
||||
android:layout_height="100dp"
|
||||
android:layout_marginTop="24dp"
|
||||
android:src="@drawable/sickle_cell_gov_logo"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toEndOf="@+id/imageView"
|
||||
app:layout_constraintTop_toBottomOf="@+id/tv_title" />
|
||||
|
||||
<com.google.android.material.textfield.TextInputLayout
|
||||
android:id="@+id/et_aadharID"
|
||||
style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="24dp"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/imageView">
|
||||
|
||||
<com.google.android.material.textfield.TextInputEditText
|
||||
android:id="@+id/loginId"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:hint="@string/login_id"
|
||||
android:inputType="textCapCharacters"
|
||||
android:maxLength="12" />
|
||||
</com.google.android.material.textfield.TextInputLayout>
|
||||
|
||||
<com.google.android.material.textfield.TextInputLayout
|
||||
android:id="@+id/et_centerName"
|
||||
style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="16dp"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/et_aadharID">
|
||||
|
||||
<com.google.android.material.textfield.TextInputEditText
|
||||
android:id="@+id/password"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:hint="@string/password"
|
||||
android:inputType="text"
|
||||
android:maxLength="12" />
|
||||
</com.google.android.material.textfield.TextInputLayout>
|
||||
|
||||
<com.google.android.material.button.MaterialButton
|
||||
android:id="@+id/btnLogin"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="16dp"
|
||||
android:text="@string/login"
|
||||
app:cornerRadius="16dp"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/et_centerName" />
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
|
||||
</ScrollView>
|
||||
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:id="@+id/errorMessageCL"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="#80000000"
|
||||
android:visibility="gone"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent">
|
||||
|
||||
<include
|
||||
android:id="@+id/itemErrorMessage"
|
||||
layout="@layout/item_error_message"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_margin="16dp"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:id="@+id/progressBarCL"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="#80000000"
|
||||
android:visibility="gone">
|
||||
|
||||
<ProgressBar
|
||||
android:id="@+id/progressBar"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:indeterminateDrawable="@drawable/progressbar_costume_view"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="parent" />
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
@@ -4,7 +4,7 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
tools:context=".ui.fragments.registration.ReviewDetailsRegistrationFragment">
|
||||
tools:context="com.example.hposregistration.ui.fragments.registration.ReviewDetailsRegistrationFragment">
|
||||
|
||||
<ScrollView
|
||||
android:layout_width="match_parent"
|
||||
@@ -126,7 +126,7 @@
|
||||
app:layout_constraintTop_toBottomOf="@id/tvCareOf" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tvCaste"
|
||||
android:id="@+id/tvCategory"
|
||||
style="@style/title1_1"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
@@ -135,6 +135,16 @@
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/tvMaritalStatus" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tvCaste"
|
||||
style="@style/title1_1"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:textSize="16sp"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/tvCategory" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tvSubCaste"
|
||||
style="@style/title1_1"
|
||||
|
||||
@@ -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">
|
||||
|
||||
<ScrollView
|
||||
android:layout_width="match_parent"
|
||||
@@ -48,28 +48,62 @@
|
||||
|
||||
</com.google.android.material.textfield.TextInputLayout>
|
||||
|
||||
<com.google.android.material.textfield.TextInputLayout
|
||||
android:id="@+id/til_gender"
|
||||
style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox.ExposedDropdownMenu"
|
||||
<RadioGroup
|
||||
android:id="@+id/gender"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="16dp"
|
||||
android:layout_marginHorizontal="24dp"
|
||||
android:orientation="horizontal"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/til_yob">
|
||||
|
||||
<RadioButton
|
||||
android:id="@+id/male"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="10dp"
|
||||
android:text="@string/male"
|
||||
android:textSize="16sp" />
|
||||
|
||||
<RadioButton
|
||||
android:id="@+id/female"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/female"
|
||||
android:textSize="16sp" />
|
||||
|
||||
<RadioButton
|
||||
android:id="@+id/other"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/other"
|
||||
android:textSize="16sp" />
|
||||
</RadioGroup>
|
||||
|
||||
<com.google.android.material.textfield.TextInputLayout
|
||||
android:visibility="gone"
|
||||
android:id="@+id/til_othergender"
|
||||
style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginHorizontal="24dp"
|
||||
android:layout_marginTop="20dp"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/til_yob">
|
||||
app:layout_constraintTop_toBottomOf="@id/gender">
|
||||
|
||||
<AutoCompleteTextView
|
||||
android:id="@+id/et_gender_block"
|
||||
<com.google.android.material.textfield.TextInputEditText
|
||||
android:id="@+id/et_othergender"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:hint="@string/gender"
|
||||
android:inputType="none"
|
||||
android:labelFor="@id/til_gender"
|
||||
app:simpleItems="@array/gender" />
|
||||
android:hint="@string/other"
|
||||
android:inputType="text"
|
||||
android:maxLength="10" />
|
||||
|
||||
</com.google.android.material.textfield.TextInputLayout>
|
||||
|
||||
|
||||
<com.google.android.material.textfield.TextInputLayout
|
||||
android:id="@+id/til_mobile"
|
||||
style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
|
||||
@@ -79,7 +113,7 @@
|
||||
android:layout_marginTop="20dp"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/til_gender">
|
||||
app:layout_constraintTop_toBottomOf="@id/til_othergender">
|
||||
|
||||
<com.google.android.material.textfield.TextInputEditText
|
||||
android:id="@+id/et_mobile"
|
||||
@@ -147,13 +181,75 @@
|
||||
android:id="@+id/et_category"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:hint="@string/caste"
|
||||
android:inputType="none"
|
||||
android:labelFor="@id/til_category"
|
||||
android:hint="@string/category"
|
||||
android:inputType="text"
|
||||
android:labelFor="@id/til_is_married"
|
||||
app:simpleItems="@array/category" />
|
||||
|
||||
</com.google.android.material.textfield.TextInputLayout>
|
||||
<com.google.android.material.textfield.TextInputLayout
|
||||
android:visibility="gone"
|
||||
android:id="@+id/til_other"
|
||||
style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginHorizontal="24dp"
|
||||
android:layout_marginTop="20dp"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/til_category">
|
||||
|
||||
<com.google.android.material.textfield.TextInputEditText
|
||||
android:id="@+id/et_other"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:hint="@string/other"
|
||||
android:inputType="text"
|
||||
android:maxLength="10" />
|
||||
|
||||
</com.google.android.material.textfield.TextInputLayout>
|
||||
<com.google.android.material.textfield.TextInputLayout
|
||||
android:id="@+id/til_caste"
|
||||
style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox.ExposedDropdownMenu"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginHorizontal="24dp"
|
||||
android:layout_marginTop="20dp"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/til_other">
|
||||
|
||||
<AutoCompleteTextView
|
||||
android:id="@+id/et_Caste"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:hint="@string/caste"
|
||||
android:inputType="text"
|
||||
android:labelFor="@id/til_is_married"
|
||||
app:simpleItems="@array/caste" />
|
||||
|
||||
</com.google.android.material.textfield.TextInputLayout>
|
||||
<com.google.android.material.textfield.TextInputLayout
|
||||
android:visibility="gone"
|
||||
android:id="@+id/til_othercaste"
|
||||
style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginHorizontal="24dp"
|
||||
android:layout_marginTop="20dp"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/til_caste">
|
||||
|
||||
<com.google.android.material.textfield.TextInputEditText
|
||||
android:id="@+id/et_othercaste"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:hint="@string/other"
|
||||
android:inputType="text"
|
||||
android:maxLength="10" />
|
||||
|
||||
</com.google.android.material.textfield.TextInputLayout>
|
||||
<com.google.android.material.textfield.TextInputLayout
|
||||
android:id="@+id/til_subCaste"
|
||||
style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
|
||||
@@ -163,7 +259,7 @@
|
||||
android:layout_marginTop="16dp"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/til_category">
|
||||
app:layout_constraintTop_toBottomOf="@id/til_othercaste">
|
||||
|
||||
<com.google.android.material.textfield.TextInputEditText
|
||||
android:id="@+id/et_subCaste"
|
||||
@@ -294,37 +390,38 @@
|
||||
app:layout_constraintTop_toBottomOf="@id/til_pincode" />
|
||||
|
||||
|
||||
<com.google.android.material.textfield.TextInputLayout
|
||||
android:id="@+id/til_blood_group"
|
||||
style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox.ExposedDropdownMenu"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginHorizontal="24dp"
|
||||
android:layout_marginTop="16dp"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/tv_title3">
|
||||
<!-- <com.google.android.material.textfield.TextInputLayout-->
|
||||
<!-- android:id="@+id/til_blood_group"-->
|
||||
<!-- style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox.ExposedDropdownMenu"-->
|
||||
<!-- android:layout_width="match_parent"-->
|
||||
<!-- android:layout_height="wrap_content"-->
|
||||
<!-- android:layout_marginHorizontal="24dp"-->
|
||||
<!-- android:layout_marginTop="16dp"-->
|
||||
<!-- app:layout_constraintEnd_toEndOf="parent"-->
|
||||
<!-- app:layout_constraintStart_toStartOf="parent"-->
|
||||
<!-- app:layout_constraintTop_toBottomOf="@id/tv_title3">-->
|
||||
|
||||
<AutoCompleteTextView
|
||||
android:id="@+id/et_blood_group"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:hint="@string/blood_group"
|
||||
android:inputType="none"
|
||||
android:labelFor="@id/til_blood_group"
|
||||
app:simpleItems="@array/blood_group" />
|
||||
<!-- <AutoCompleteTextView-->
|
||||
<!-- android:id="@+id/et_blood_group"-->
|
||||
<!-- android:layout_width="match_parent"-->
|
||||
<!-- android:layout_height="wrap_content"-->
|
||||
<!-- android:hint="@string/blood_group"-->
|
||||
<!-- android:inputType="none"-->
|
||||
<!-- android:labelFor="@id/til_blood_group"-->
|
||||
<!-- app:simpleItems="@array/blood_group" />-->
|
||||
|
||||
</com.google.android.material.textfield.TextInputLayout>
|
||||
<!-- </com.google.android.material.textfield.TextInputLayout>-->
|
||||
|
||||
<TextView
|
||||
android:id="@+id/cb_item1"
|
||||
style="@style/title1_2"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginHorizontal="24dp"
|
||||
android:layout_marginTop="16dp"
|
||||
android:text="@string/is_patient_under_any_medication"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/til_blood_group" />
|
||||
app:layout_constraintTop_toBottomOf="@id/tv_title3" />
|
||||
|
||||
<RadioGroup
|
||||
android:id="@+id/radioGroup"
|
||||
@@ -354,6 +451,7 @@
|
||||
|
||||
<TextView
|
||||
android:id="@+id/cb_item2"
|
||||
style="@style/title1_2"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginHorizontal="24dp"
|
||||
@@ -388,6 +486,7 @@
|
||||
</RadioGroup>
|
||||
<TextView
|
||||
android:id="@+id/cb_item3"
|
||||
style="@style/title1_2"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginHorizontal="24dp"
|
||||
|
||||
@@ -1,12 +1,29 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
|
||||
|
||||
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
tools:context=".ui.fragments.UserListFragment"
|
||||
android:padding="24dp">
|
||||
|
||||
android:padding="24dp"
|
||||
tools:context="com.example.hposregistration.ui.fragments.UserListFragment">
|
||||
<LinearLayout
|
||||
android:visibility="gone"
|
||||
android:id="@+id/fragment_layout"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical">
|
||||
</LinearLayout>
|
||||
<ImageView
|
||||
android:id="@+id/btnsettings"
|
||||
android:layout_width="30dp"
|
||||
android:layout_height="30dp"
|
||||
android:layout_marginEnd="10dp"
|
||||
android:src="@drawable/baseline_settings_24"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="@+id/tv_title" />
|
||||
<TextView
|
||||
android:id="@+id/tv_title"
|
||||
style="@style/title1"
|
||||
@@ -17,15 +34,17 @@
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
|
||||
|
||||
<TextView
|
||||
android:id="@+id/noList"
|
||||
style="@style/title1"
|
||||
android:visibility="gone"
|
||||
android:gravity="center"
|
||||
android:text="@string/internet_is_not_available_and_there_is_no_data_available_in_local_db"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center"
|
||||
android:text="@string/internet_is_not_available_and_there_is_no_data_available_in_local_db"
|
||||
android:textColor="@color/red"
|
||||
android:visibility="gone"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
@@ -33,14 +52,25 @@
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/uploadData"
|
||||
android:layout_width="50dp"
|
||||
android:layout_height="50dp"
|
||||
android:layout_width="30dp"
|
||||
android:layout_height="30dp"
|
||||
android:layout_margin="5dp"
|
||||
android:src="@drawable/upload_data"
|
||||
android:visibility="gone"
|
||||
app:layout_constraintBottom_toBottomOf="@+id/tv_title"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintTop_toTopOf="@+id/tv_title" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/btnLogout"
|
||||
android:layout_width="30dp"
|
||||
android:layout_height="30dp"
|
||||
android:layout_marginEnd="10dp"
|
||||
android:src="@drawable/ic_logout"
|
||||
app:layout_constraintBottom_toBottomOf="@+id/tv_title"
|
||||
app:layout_constraintEnd_toStartOf="@+id/uploadData"
|
||||
app:layout_constraintTop_toTopOf="@+id/tv_title" />
|
||||
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:id="@+id/rv_order"
|
||||
android:layout_width="0dp"
|
||||
@@ -50,18 +80,30 @@
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/tv_title"
|
||||
tools:listitem="@layout/user_item_view"/>
|
||||
tools:listitem="@layout/user_item_view" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/btnSaveLocal"
|
||||
android:layout_width="30dp"
|
||||
android:layout_height="30dp"
|
||||
android:layout_marginEnd="10dp"
|
||||
android:src="@drawable/downloads"
|
||||
android:visibility="gone"
|
||||
app:layout_constraintBottom_toBottomOf="@+id/rv_order"
|
||||
app:layout_constraintStart_toStartOf="parent" />
|
||||
|
||||
<com.google.android.material.floatingactionbutton.FloatingActionButton
|
||||
android:id="@+id/btnRegisterUser"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
app:elevation="1dp"
|
||||
android:layout_margin="8dp"
|
||||
android:src="@drawable/ic_add"
|
||||
android:backgroundTint="@color/primary"
|
||||
android:contentDescription="@string/register_user"
|
||||
android:src="@drawable/ic_add"
|
||||
app:elevation="1dp"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
android:contentDescription="@string/register_user" />
|
||||
app:layout_constraintEnd_toEndOf="parent" />
|
||||
|
||||
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
@@ -1,60 +1,80 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<androidx.cardview.widget.CardView
|
||||
android:id="@+id/newPaperCard"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="24dp"
|
||||
app:cardBackgroundColor="@color/primary_light"
|
||||
app:cardCornerRadius="25dp"
|
||||
app:cardElevation="0dp"
|
||||
app:layout_constraintTop_toTopOf="parent">
|
||||
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:id="@+id/userCard"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:padding="12dp">
|
||||
android:layout_marginTop="24dp"
|
||||
app:cardBackgroundColor="@color/primary_light"
|
||||
app:cardCornerRadius="25dp"
|
||||
app:cardElevation="0dp"
|
||||
app:layout_constraintTop_toTopOf="parent">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/userImage"
|
||||
android:layout_width="100dp"
|
||||
android:layout_height="100dp"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/userName"
|
||||
android:layout_width="0dp"
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:fontFamily="@font/poppins_bold"
|
||||
android:layout_marginTop="16dp"
|
||||
android:gravity="center"
|
||||
android:textColor="@color/black"
|
||||
android:textSize="16sp"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/userImage" />
|
||||
android:padding="12dp">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/userId"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:fontFamily="@font/poppins_bold"
|
||||
android:layout_marginTop="16dp"
|
||||
android:gravity="center"
|
||||
android:textColor="@color/black"
|
||||
android:textSize="16sp"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/userName" />
|
||||
<ImageView
|
||||
android:id="@+id/userImage"
|
||||
android:layout_width="100dp"
|
||||
android:layout_height="100dp"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
tools:src="@drawable/ic_qr_code_scanner" />
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
<TextView
|
||||
android:id="@+id/userName"
|
||||
style="@style/title1_1"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="16dp"
|
||||
android:gravity="start"
|
||||
android:textColor="@color/black"
|
||||
android:textSize="14sp"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toEndOf="@+id/userImage"
|
||||
app:layout_constraintTop_toTopOf="@+id/userImage"
|
||||
tools:text="Name: MohamedKaif" />
|
||||
|
||||
</androidx.cardview.widget.CardView>
|
||||
<TextView
|
||||
android:id="@+id/userId"
|
||||
style="@style/title1_1"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="16dp"
|
||||
android:layout_marginTop="4dp"
|
||||
android:gravity="start"
|
||||
android:textColor="@color/black"
|
||||
android:textSize="14sp"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toEndOf="@+id/userImage"
|
||||
app:layout_constraintTop_toBottomOf="@id/userName"
|
||||
tools:text="UserID: MohamedKaif" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/teststatus"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
style="@style/title1_1"
|
||||
android:layout_marginTop="4dp"
|
||||
android:layout_marginStart="16dp"
|
||||
android:gravity="start"
|
||||
android:textColor="@color/black"
|
||||
android:textSize="14sp"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toEndOf="@+id/userImage"
|
||||
app:layout_constraintTop_toBottomOf="@id/userId"
|
||||
tools:text="Test Status: Completed"/>
|
||||
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
|
||||
</androidx.cardview.widget.CardView>
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
5
app/src/main/res/mipmap-anydpi-v26/hpos_icon.xml
Normal file
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<background android:drawable="@color/hpos_icon_background"/>
|
||||
<foreground android:drawable="@mipmap/hpos_icon_foreground"/>
|
||||
</adaptive-icon>
|
||||
5
app/src/main/res/mipmap-anydpi-v26/hpos_icon_round.xml
Normal file
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<background android:drawable="@color/hpos_icon_background"/>
|
||||
<foreground android:drawable="@mipmap/hpos_icon_foreground"/>
|
||||
</adaptive-icon>
|
||||
@@ -1,6 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<background android:drawable="@drawable/ic_launcher_background" />
|
||||
<foreground android:drawable="@drawable/ic_launcher_foreground" />
|
||||
<monochrome android:drawable="@drawable/ic_launcher_foreground" />
|
||||
</adaptive-icon>
|
||||
@@ -1,6 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<background android:drawable="@drawable/ic_launcher_background" />
|
||||
<foreground android:drawable="@drawable/ic_launcher_foreground" />
|
||||
<monochrome android:drawable="@drawable/ic_launcher_foreground" />
|
||||
</adaptive-icon>
|
||||
BIN
app/src/main/res/mipmap-hdpi/hpos_icon.png
Normal file
|
After Width: | Height: | Size: 1.8 KiB |
BIN
app/src/main/res/mipmap-hdpi/hpos_icon_foreground.png
Normal file
|
After Width: | Height: | Size: 2.6 KiB |
BIN
app/src/main/res/mipmap-hdpi/hpos_icon_round.png
Normal file
|
After Width: | Height: | Size: 3.7 KiB |
|
Before Width: | Height: | Size: 1.4 KiB |
|
Before Width: | Height: | Size: 2.8 KiB |
BIN
app/src/main/res/mipmap-mdpi/hpos_icon.png
Normal file
|
After Width: | Height: | Size: 1.2 KiB |
BIN
app/src/main/res/mipmap-mdpi/hpos_icon_foreground.png
Normal file
|
After Width: | Height: | Size: 1.6 KiB |
BIN
app/src/main/res/mipmap-mdpi/hpos_icon_round.png
Normal file
|
After Width: | Height: | Size: 2.3 KiB |
|
Before Width: | Height: | Size: 982 B |
|
Before Width: | Height: | Size: 1.7 KiB |
BIN
app/src/main/res/mipmap-xhdpi/hpos_icon.png
Normal file
|
After Width: | Height: | Size: 2.5 KiB |
BIN
app/src/main/res/mipmap-xhdpi/hpos_icon_foreground.png
Normal file
|
After Width: | Height: | Size: 3.8 KiB |
BIN
app/src/main/res/mipmap-xhdpi/hpos_icon_round.png
Normal file
|
After Width: | Height: | Size: 5.3 KiB |
|
Before Width: | Height: | Size: 1.9 KiB |
|
Before Width: | Height: | Size: 3.8 KiB |
BIN
app/src/main/res/mipmap-xxhdpi/hpos_icon.png
Normal file
|
After Width: | Height: | Size: 4.0 KiB |
BIN
app/src/main/res/mipmap-xxhdpi/hpos_icon_foreground.png
Normal file
|
After Width: | Height: | Size: 6.4 KiB |
BIN
app/src/main/res/mipmap-xxhdpi/hpos_icon_round.png
Normal file
|
After Width: | Height: | Size: 8.6 KiB |
|
Before Width: | Height: | Size: 2.8 KiB |
|
Before Width: | Height: | Size: 5.8 KiB |
BIN
app/src/main/res/mipmap-xxxhdpi/hpos_icon.png
Normal file
|
After Width: | Height: | Size: 5.7 KiB |
BIN
app/src/main/res/mipmap-xxxhdpi/hpos_icon_foreground.png
Normal file
|
After Width: | Height: | Size: 9.9 KiB |
BIN
app/src/main/res/mipmap-xxxhdpi/hpos_icon_round.png
Normal file
|
After Width: | Height: | Size: 13 KiB |
|
Before Width: | Height: | Size: 3.8 KiB |
|
Before Width: | Height: | Size: 7.6 KiB |
@@ -3,7 +3,7 @@
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:id="@+id/main_nav_graph"
|
||||
app:startDestination="@id/userListFragment">
|
||||
app:startDestination="@id/loginFragment">
|
||||
|
||||
<fragment
|
||||
android:id="@+id/registrationFragment"
|
||||
@@ -26,6 +26,14 @@
|
||||
<action
|
||||
android:id="@+id/action_userListFragment_to_registrationFragment"
|
||||
app:destination="@id/registrationFragment" />
|
||||
<action
|
||||
android:id="@+id/action_userListFragment_to_loginFragment"
|
||||
app:destination="@id/loginFragment"
|
||||
app:popUpTo="@id/main_nav_graph"
|
||||
app:popUpToInclusive="true"/>
|
||||
<action
|
||||
android:id="@+id/action_userListFragment_to_languageSettingsFragment"
|
||||
app:destination="@id/languageSettingsFragment" />
|
||||
</fragment>
|
||||
<fragment
|
||||
android:id="@+id/profileFragment"
|
||||
@@ -76,4 +84,28 @@
|
||||
app:argType="string"
|
||||
android:defaultValue="null" />
|
||||
</fragment>
|
||||
|
||||
<fragment
|
||||
android:id="@+id/loginFragment"
|
||||
android:name="com.example.hposregistration.ui.fragments.LoginFragment"
|
||||
android:label="fragment_login"
|
||||
tools:layout="@layout/fragment_login" >
|
||||
<action
|
||||
android:id="@+id/action_loginFragment_to_userListFragment"
|
||||
app:destination="@id/userListFragment"
|
||||
app:popUpTo="@id/main_nav_graph"
|
||||
app:popUpToInclusive="true"/>
|
||||
</fragment>
|
||||
<fragment
|
||||
android:id="@+id/languageSettingsFragment"
|
||||
android:name="com.example.hposregistration.ui.fragments.LanguageSettingsFragment"
|
||||
android:label="fragment_language_settings"
|
||||
tools:layout="@layout/fragment_language_settings">
|
||||
|
||||
<action
|
||||
android:id="@+id/action_userListFragment_to_languageSettingsFragment"
|
||||
app:destination="@id/languageSettingsFragment"
|
||||
app:popUpTo="@id/main_nav_graph"
|
||||
app:popUpToInclusive="true"/>
|
||||
</fragment>
|
||||
</navigation>
|
||||
217
app/src/main/res/values-hi/strings.xml
Normal file
@@ -0,0 +1,217 @@
|
||||
<resources>
|
||||
<string name="app_name">HPOS रजिस्ट्रेशन</string>
|
||||
<!-- TODO: Remove or change this placeholder text -->
|
||||
<string name="hello_blank_fragment">नमस्ते खाली फ़्रेग्मेंट</string>
|
||||
|
||||
<!-- त्रुटि संदेश -->
|
||||
<string name="retry">पुनः प्रयास करें</string>
|
||||
<string name="failed_to_connect">कनेक्ट करने में विफल</string>
|
||||
<string name="cancel">रद्द करें</string>
|
||||
|
||||
<!-- पंजीकरण स्क्रीनें -->
|
||||
<string name="scan_person_abha_id_card">व्यक्ति का ABHA ID/Aadhar ID कार्ड स्कैन करें</string>
|
||||
<string name="scan_now">अब स्कैन करें</string>
|
||||
<string name="or">या</string>
|
||||
<string name="enter_abha_number_manualy">ABHA और Aadhar नंबर दर्ज करें</string>
|
||||
<string name="abha_id">ABHA नंबर</string>
|
||||
<string name="create_abha_id_card">ABHA ID कार्ड बनाएं</string>
|
||||
<string name="click_here">यहां क्लिक करें</string>
|
||||
<string name="scan_person_s_aadhaar_card">व्यक्ति का Aadhaar कार्ड स्कैन करें</string>
|
||||
<string name="proceed">आगे बढ़ें</string>
|
||||
<string name="enter_aadhaar_number_manualy">Aadhaar नंबर मैन्युअली दर्ज करें</string>
|
||||
<string name="aadhaar_number">Aadhaar नंबर</string>
|
||||
<string name="enter_person_s_details">व्यक्ति का विवरण दर्ज करें</string>
|
||||
<string name="person_s_name">व्यक्ति का नाम</string>
|
||||
<string name="age">आयु (वर्षों में)</string>
|
||||
<string name="gender">लिंग चयन करें</string>
|
||||
<string name="name_error">नाम खाली नहीं हो सकता</string>
|
||||
<string name="age_error">आयु खाली नहीं हो सकती</string>
|
||||
<string name="gender_error">लिंग खाली नहीं हो सकता</string>
|
||||
<string name="age_error_out_of_bound">आयु मान्य होनी चाहिए</string>
|
||||
<string name="birth_year">जन्म साल</string>
|
||||
<string name="marital_status">वैवाहिक स्थिति चयन करें</string>
|
||||
<string name="father_s_husband_s_name">पिता/पति का नाम</string>
|
||||
<string name="caste">जाति</string>
|
||||
<string name="person_s_address_details">व्यक्ति का पता विवरण</string>
|
||||
<string name="district">जिला</string>
|
||||
<string name="city_town">शहर / गाँव</string>
|
||||
<string name="state">राज्य</string>
|
||||
<string name="pincode">पिनकोड</string>
|
||||
<string name="patient_medical_records">रोगी का चिकित्सा रेकॉर्ड</string>
|
||||
<string name="review">समीक्षा</string>
|
||||
<string name="blood_group">रक्त समूह चयन करें</string>
|
||||
<string name="house">घर</string>
|
||||
<string name="is_patient_under_any_medication">क्या आप पिछले तीन महीनों से सिक्ल सेल के लिए दवा ले रहे हैं?</string>
|
||||
<string name="is_patient_undergoing_any_blood_transfusion">क्या आपने पिछले तीन महीनों में कोई रक्त प्रवाहन किया है?</string>
|
||||
|
||||
<string name="user_list">उपयोगकर्ता सूची</string>
|
||||
<string name="register_user">उपयोगकर्ता पंजीकृत करें</string>
|
||||
<string name="is_user_having_any_family_history_for_sickle_cell">क्या उपयोगकर्ता के पास सिक्ल सेल के लिए कोई परिवार का इतिहास है?</string>
|
||||
<string name="family_history_of_sickle_cell">सिक्ल सेल का परिवारिक इतिहास</string>
|
||||
<string name="mobile_number_10_digits">मोबाइल नंबर (10 अंक)</string>
|
||||
<string name="sub_caste">उपजाति</string>
|
||||
<string name="capture_user_image">उपयोगकर्ता की छवि कैद करें</string>
|
||||
<string name="mobile_number">मोबाइल नंबर</string>
|
||||
<string name="edit">संपादित करें</string>
|
||||
<string name="user_details">उपयोगकर्ता विवरण</string>
|
||||
<string name="internet_is_not_available_and_there_is_no_data_available_in_local_db">इंटरनेट उपलब्ध नहीं है और स्थानीय डेटाबेस में कोई डेटा उपलब्ध नहीं है</string>
|
||||
<string name="user_id">उपयोगकर्ता आईडी: %1$s</string>
|
||||
<string name="abha_number">ABHA नंबर: %1$s</string>
|
||||
<string name="aadhar_number_details">Aadhar नंबर: %1$s</string>
|
||||
<string name="user_name">व्यक्ति का नाम: %1$s</string>
|
||||
<string name="birth_year_details">जन्म साल: %1$s</string>
|
||||
<string name="gender_details">लिंग: %1$s</string>
|
||||
<string name="phone_number_details">मोबाइल नंबर: %1$s</string>
|
||||
<string name="care_of_details">पिता/पति का नाम: %1$s</string>
|
||||
<string name="marital_status_details">वैवाहिक स्थिति: %1$s</string>
|
||||
<string name="category_details">श्रेणी: %1$s</string>
|
||||
<string name="caste_details">जाति: %1$s</string>
|
||||
<string name="sub_caste_details">उपजाति: %1$s</string>
|
||||
<string name="house_details">घर: %1$s</string>
|
||||
<string name="city_town_details">शहर/गाँव: %1$s</string>
|
||||
<string name="district_details">जिला: %1$s</string>
|
||||
<string name="state_details">राज्य: %1$s</string>
|
||||
<string name="centre_name">केंद्र का नाम: %1$s</string>
|
||||
|
||||
<string name="pincode_details">पिनकोड: %1$s</string>
|
||||
<string name="is_patient_under_any_medication_details">क्या दवा ले रहे हैं: %1$s</string>
|
||||
<string name="is_patient_undergoing_any_blood_transfusion_details">क्या रक्त प्रवाहन हो रहा है: %1$s</string>
|
||||
<string name="is_any_sickle">क्या कोई सिक्ल सेल इतिहास है: %1$s</string>
|
||||
<string name="sickle_cell_family_history">सिक्ल सेल परिवारिक इतिहास: %1$s</string>
|
||||
<string name="center_name">केंद्र का नाम</string>
|
||||
<string name="login_id">लॉगिन आईडी</string>
|
||||
<string name="password">पासवर्ड</string>
|
||||
<string name="login">लॉगिन</string>
|
||||
<string name="_2">श्रेणी</string>
|
||||
<string name="category">श्रेणी</string>
|
||||
<string name="male">पुरुष</string>
|
||||
<string name="female">महिला</string>
|
||||
<string name="other">अन्य</string>
|
||||
<string name="cancelled_unable_scan">रद्द किया गया: स्कैन करने में असमर्थ, पुनः प्रयास करें!!</string>
|
||||
<string name="scan_abha_card">कृपया एबीए आईडी / आधार आईडी स्कैन करें</string>
|
||||
<string name="invalid_qr_code">आपने स्कैन किया हुआ QR कोड अमान्य है, कृपया डेटा मैन्युअली दर्ज करें</string>
|
||||
<string name="enter_aadhar_manually">आपने एबीए आईडी स्कैन किया है, आधार आईडी को मैन्युअली दर्ज करने की आवश्यकता है</string>
|
||||
<string name="invalid_abha_id">अमान्य एबीए आईडी</string>
|
||||
<string name="invalid_aadhar_id">अमान्य आधार आईडी</string>
|
||||
<string name="name_field_error">नाम फील्ड खाली नहीं हो सकती या 3 अक्षरों से कम होनी चाहिए</string>
|
||||
<string name="center_name_error">केंद्र का नाम खाली नहीं हो सकता या 3 अक्षरों से कम होना चाहिए</string>
|
||||
<string name="registration_success">पंजीकरण सफलतापूर्वक हुआ</string>
|
||||
<string name="internt_not_local">इंटरनेट उपलब्ध नहीं है, परीक्षण विवरण स्थानीय रूप से संग्रहित किए गए हैं</string>
|
||||
<string name="enter_details_properly">कृपया सभी विवरणों को ठीक से दर्ज करें</string>
|
||||
<string name="enter_valid_birth_year">कृपया 1900 से 2023 के बीच एक मान्य जन्म वर्ष दर्ज करें</string>
|
||||
<string name="fill_field">कृपया फ़ील्ड भरें</string>
|
||||
<string name="valid_mobile_number">कृपया एक मान्य 10-अंकों का मोबाइल नंबर दर्ज करें</string>
|
||||
<string name="enter_name">कृपया अपना नाम दर्ज करें</string>
|
||||
<string name="enter_marital_status">कृपया अपनी वैवाहिक स्थिति दर्ज करें</string>
|
||||
<string name="enter_category">कृपया अपनी श्रेणी दर्ज करें</string>
|
||||
<string name="enter_caste">कृपया अपनी जाति दर्ज करें</string>
|
||||
<string name="enter_house_address">कृपया अपना घर का पता दर्ज करें</string>
|
||||
<string name="enter_city">कृपया अपने शहर को दर्ज करें</string>
|
||||
<string name="enter_district">कृपया अपने जिले को दर्ज करें</string>
|
||||
<string name="enter_state">कृपया अपने राज्य को दर्ज करें</string>
|
||||
<string name="enter_pincode">कृपया एक मान्य 6-अंकों कोड दर्ज करें</string>
|
||||
<string name="enter_family_history">कृपया अपना परिवार का इतिहास दर्ज करें</string>
|
||||
<string name="enter_guardian_name">कृपया अपने पालक का नाम दर्ज करें</string>
|
||||
<string name="enter_father_husband_name">पिता / पति का नाम दर्ज करें</string>
|
||||
<string name="do_log_out">क्या आप ऐप्लिकेशन से लॉग आउट करना चाहते हैं?</string>
|
||||
<string name="log_out">लॉग आउट</string>
|
||||
<string name="local">साक्षात्कार विवरण स्थानीय रूप से सहेजे गए हैं</string>
|
||||
|
||||
<string name="no_data_available">स्थानीय डेटाबेस में कोई डेटा उपलब्ध नहीं है</string>
|
||||
<string name="upload_db_registration">डीबी पंजीकरण अपलोड करें</string>
|
||||
<string name="upload_local_db_to_cloud">क्या आप स्थानीय डीबी को क्लाउड पर अपलोड करना चाहते हैं?</string>
|
||||
<string name="upload">अपलोड</string>
|
||||
<string name="upload_done_successfully">अपलोड सफलतापूर्वक हुआ</string>
|
||||
<string name="empty_registrations">प्रदर्शन के लिए कोई पंजीकरण उपलब्ध नहीं है</string>
|
||||
<string name="enter_proper_login_id">कृपया सही लॉगिन आईडी दर्ज करें</string>
|
||||
<string name="enter_proper_password">कृपया सही पासवर्ड दर्ज करें</string>
|
||||
<string name="wrong_password">गलत पासवर्ड</string>
|
||||
<string name="wrong_user_id">गलत उपयोगकर्ता आईडी</string>
|
||||
<string name="scanned_aadhar_id">आपने आधार आईडी स्कैन की है, कृपया आधार आईडी नंबर और अभा आईडी को मैन्युअली दर्ज करें</string>
|
||||
<string name="scanned_abha_id">आपने आभा आईडी स्कैन की है</string>
|
||||
<string name="scanned_aadharid">आपने आधार आईडी स्कैन की है</string>
|
||||
<string name="language_update">भाषा सफलतापूर्वक अपडेट की गई है</string>
|
||||
<string name="select_language">अपनी पसंदीदा भाषा का चयन करें</string>
|
||||
<string name="app_language">ऐप भाषा</string>
|
||||
<string name="add_blood_group">रक्त समूह जोड़ें</string>
|
||||
<string name="ok">ठीक है</string>
|
||||
<string name="userid">उपयोगकर्ता आईडी</string>
|
||||
|
||||
<string name="yes">हाँ</string>
|
||||
<string name="no">नहीं</string>
|
||||
<string name="name">नाम</string>
|
||||
<string-array name="category">
|
||||
<item>NT-A</item>
|
||||
<item>NT-B</item>
|
||||
<item>NT-C</item>
|
||||
<item>NT-D</item>
|
||||
<item>OBC</item>
|
||||
<item>OPEN</item>
|
||||
<item>OTHER</item>
|
||||
<item>SBC</item>
|
||||
<item>SC</item>
|
||||
<item>ST</item>
|
||||
</string-array>
|
||||
|
||||
<string-array name="caste">
|
||||
<item>अहीर</item>
|
||||
<item>बराई</item>
|
||||
<item>ब्राह्मण</item>
|
||||
<item>बौद्ध</item>
|
||||
<item>चांब़चार</item>
|
||||
<item>चामार</item>
|
||||
<item>देवांगन</item>
|
||||
<item>धीवर</item>
|
||||
<item>फुलमाली</item>
|
||||
<item>गोंड</item>
|
||||
<item>जैन</item>
|
||||
<item>कोली</item>
|
||||
<item>कोष्टी</item>
|
||||
<item>कुंभार</item>
|
||||
<item>कुंबी</item>
|
||||
<item>लोहार</item>
|
||||
<item>माळी</item>
|
||||
<item>माणा</item>
|
||||
<item>महार</item>
|
||||
<item>मौर्या</item>
|
||||
<item>मुसलमान</item>
|
||||
<item>नवी</item>
|
||||
<item>अन्य</item>
|
||||
<item>पवार</item>
|
||||
<item>परदेसी</item>
|
||||
<item>शाहू</item>
|
||||
<item>सोनार</item>
|
||||
<item>तेली</item>
|
||||
</string-array>
|
||||
|
||||
|
||||
<string-array name="marital_status">
|
||||
<item>विवाहित</item>
|
||||
<item>एकत्र</item>
|
||||
<item>तलाकशुदा</item>
|
||||
</string-array>
|
||||
|
||||
|
||||
<string-array name="blood_group">
|
||||
<item>O+ve</item>
|
||||
<item>O-ve</item>
|
||||
<item>A+ve</item>
|
||||
<item>A-ve</item>
|
||||
<item>B+ve</item>
|
||||
<item>B-ve</item>
|
||||
<item>AB+ve</item>
|
||||
<item>AB-ve</item>
|
||||
</string-array>
|
||||
|
||||
<string-array name="gender">
|
||||
<item>पुरुष</item>
|
||||
<item>महिला</item>
|
||||
<item>अन्य</item>
|
||||
</string-array>
|
||||
|
||||
<string-array name="yes_no">
|
||||
<item>हाँ</item>
|
||||
<item>नहीं</item>
|
||||
</string-array>
|
||||
|
||||
</resources>
|
||||
221
app/src/main/res/values-kn/strings.xml
Normal file
@@ -0,0 +1,221 @@
|
||||
<resources>
|
||||
<string name="app_name">HPOS ನೋಂದಾಯಿಸಲು</string>
|
||||
<string name="hello_blank_fragment">ಹಲೋ ಖಾಲಿ ಫ್ರ್ಯಾಗ್ಮೆಂಟ್</string>
|
||||
|
||||
// ದೋಷ ಸಂದೇಶಗಳು
|
||||
<string name="retry">ಮರುಪ್ರಯಾಸ</string>
|
||||
<string name="failed_to_connect">ಸಂಪರ್ಕ ಸಾಧಿಸಲಾಗಿಲ್ಲ</string>
|
||||
<string name="cancel">ರದ್ದು ಮಾಡಿ</string>
|
||||
<string name="local">ಟೆಸ್ಟ್ ವಿವರಗಳನ್ನು ಸ್ಥಳೀಯವಾಗಿ ಉಳಿಸಲಾಗಿದೆ</string>
|
||||
|
||||
|
||||
//Registration Screens
|
||||
<string name="scan_person_abha_id_card">ವ್ಯಕ್ತಿಯ ಏಬಿಎ ಐಡಿ / ಆಧಾರ್ ಐಡಿ ಕಾರ್ಡ್ ಸ್ಕ್ಯಾನ್ ಮಾಡಿ</string>
|
||||
<string name="scan_now">ಈಗ ಸ್ಕ್ಯಾನ್ ಮಾಡಿ</string>
|
||||
<string name="or">ಅಥವಾ</string>
|
||||
<string name="enter_abha_number_manualy">ಅಭಾ ಮತ್ತು ಆಧಾರ್ ಸಂಖ್ಯೆಯನ್ನು ನಮೂದಿಸಿ</string>
|
||||
<string name="abha_id">ಅಭಾ ಸಂಖ್ಯೆ</string>
|
||||
<string name="create_abha_id_card">ಅಭಾ ಐಡಿ ಕಾರ್ಡ್ ರಚಿಸಿ</string>
|
||||
<string name="click_here">ಇಲ್ಲಿ ಕ್ಲಿಕ್ ಮಾಡಿ</string>
|
||||
<string name="scan_person_s_aadhaar_card">ವ್ಯಕ್ತಿಯ ಆಧಾರ್ ಕಾರ್ಡ್ ಸ್ಕ್ಯಾನ್ ಮಾಡಿ</string>
|
||||
<string name="proceed">ಮುಂದುವರಿಸಿ</string>
|
||||
<string name="enter_aadhaar_number_manualy">ಆಧಾರ್ ಸಂಖ್ಯೆಯನ್ನು ಕೈಮಾಡಿ</string>
|
||||
<string name="aadhaar_number">ಆಧಾರ್ ಸಂಖ್ಯೆ</string>
|
||||
<string name="enter_person_s_details">ವ್ಯಕ್ತಿಯ ವಿವರಗಳನ್ನು ನಮೂದಿಸಿ</string>
|
||||
<string name="person_s_name">ವ್ಯಕ್ತಿಯ ಹೆಸರು</string>
|
||||
<string name="age">ವಯಸ್ಸು ವರ್ಷಗಳಲ್ಲಿ</string>
|
||||
<string name="gender">ಲಿಂಗ ಆಯ್ಕೆ ಮಾಡಿ</string>
|
||||
<string name="name_error">ಹೆಸರು ಖಾಲಿ ಇರಬಾರದು</string>
|
||||
<string name="age_error">ವಯಸ್ಸು ಖಾಲಿ ಇರಬಾರದು</string>
|
||||
<string name="gender_error">ಲಿಂಗ ಖಾಲಿ ಇರಬಾರದು</string>
|
||||
<string name="age_error_out_of_bound">ವಯಸ್ಸು ಯೋಗ್ಯವಾಗಿರಬೇಕು</string>
|
||||
<string name="birth_year">ಹುಟ್ಟಿದ ವರ್ಷ</string>
|
||||
<string name="marital_status">ವೈವಾಹಿಕ ಸ್ಥಿತಿ ಆಯ್ಕೆ ಮಾಡಿ</string>
|
||||
<string name="father_s_husband_s_name">ತಂದೆಯ / ಗಂಡನ ಹೆಸರು</string>
|
||||
<string name="caste">ಜಾತಿ</string>
|
||||
<string name="person_s_address_details">ವ್ಯಕ್ತಿಯ ವಿಳಾಸ ವಿವರಗಳು</string>
|
||||
<string name="district">ಜಿಲ್ಲೆ</string>
|
||||
<string name="city_town">ನಗರ / ಹಳ್ಳಿ</string>
|
||||
<string name="state">ರಾಜ್ಯ</string>
|
||||
<string name="pincode">ಪಿನ್ಕೋಡ್</string>
|
||||
<string name="patient_medical_records">ರೋಗಿಯ ವೈದ್ಯಕೀಯ ದಾಖಲೆಗಳು</string>
|
||||
<string name="review">ಸಮೀಕ್ಷಿಸಿ</string>
|
||||
<string name="blood_group">ರಕ್ತ ಗುಂಪು ಆಯ್ಕೆ ಮಾಡಿ</string>
|
||||
<string name="house">ಮನೆ</string>
|
||||
<string name="is_patient_under_any_medication">ಹಳೆಯ ಮೂಲಕ ಸಿಕ್ಕಲ್ ಸೆಲ್ ಗೆ ನೀವು ಔಷಧಿಗೆ ಒಳಪಟ್ಟಿದ್ದೀರಾ?</string>
|
||||
<string name="is_patient_undergoing_any_blood_transfusion">ಹಳೆಯ ಮೂಲಕ ರಕ್ತ ಸಂಚಾರ ನಡೆಸಲಾಗಿದೆಯೇ?</string>
|
||||
|
||||
|
||||
<string name="user_list">ಬಳಕೆದಾರ ಪಟ್ಟಿ</string>
|
||||
<string name="register_user">ಬಳಕೆದಾರ ನೋಂದಣಿ</string>
|
||||
<string name="is_user_having_any_family_history_for_sickle_cell">ಬಳಕೆದಾರನಿಗೆ ಸಿಕ್ಕಲ್ ಸೆಲ್ ಕುಟುಂಬ ಇತಿಹಾಸವಿದೆಯೇ</string>
|
||||
<string name="family_history_of_sickle_cell">ಸಿಕ್ಕಲ್ ಸೆಲ್ ಕುಟುಂಬ ಇತಿಹಾಸ</string>
|
||||
<string name="mobile_number_10_digits">ಮೊಬೈಲ್ ಸಂಖ್ಯೆ (10 ಅಂಕಗಳು)</string>
|
||||
<string name="sub_caste">ಉಪ ಜಾತಿ</string>
|
||||
<string name="capture_user_image">ಬಳಕೆದಾರ ಚಿತ್ರ ಹಿಡಿಯಿರಿ</string>
|
||||
<string name="mobile_number">ಮೊಬೈಲ್ ಸಂಖ್ಯೆ</string>
|
||||
<string name="edit">ಸಂಪಾದಿಸಿ</string>
|
||||
<string name="user_details">ಬಳಕೆದಾರ ವಿವರಗಳು</string>
|
||||
<string name="internet_is_not_available_and_there_is_no_data_available_in_local_db">ಇಂಟರ್ನೆಟ್ ಲಭ್ಯವಿಲ್ಲ ಮತ್ತು ಸ್ಥಳಿಯ ಡಿಬಿಯಲ್ಲಿ ಯಾವುದೇ ಡೇಟಾ ಲಭ್ಯವಿಲ್ಲ</string>
|
||||
<string name="user_id">ಬಳಕೆದಾರ ಐಡಿ: %1$s</string>
|
||||
<string name="abha_number">ಅಭಾ ಸಂಖ್ಯೆ: %1$s</string>
|
||||
<string name="aadhar_number_details">ಆಧಾರ ಸಂಖ್ಯೆ: %1$s</string>
|
||||
<string name="user_name">ವ್ಯಕ್ತಿಯ ಹೆಸರು: %1$s</string>
|
||||
<string name="birth_year_details">ಹುಟ್ಟಿದ ವರ್ಷ: %1$s</string>
|
||||
<string name="gender_details">ಲಿಂಗ: %1$s</string>
|
||||
<string name="phone_number_details">ಮೊಬೈಲ್ ಸಂಖ್ಯೆ: %1$s</string>
|
||||
<string name="care_of_details">ತಂದೆಯ / ಗಂಡನ ಹೆಸರು: %1$s</string>
|
||||
<string name="marital_status_details">ವೈವಾಹಿಕ ಸ್ಥಿತಿ: %1$s</string>
|
||||
<string name="category_details">ವರ್ಗ: %1$s</string>
|
||||
<string name="caste_details">ಜಾತಿ: %1$s</string>
|
||||
<string name="sub_caste_details">ಉಪ ಜಾತಿ: %1$s</string>
|
||||
<string name="house_details">ಮನೆ: %1$s</string>
|
||||
<string name="city_town_details">ನಗರ / ಹಳ್ಳಿ: %1$s</string>
|
||||
<string name="district_details">ಜಿಲ್ಲೆ: %1$s</string>
|
||||
<string name="state_details">ರಾಜ್ಯ: %1$s</string>
|
||||
<string name="centre_name">ಕೇಂದ್ರ ಹೆಸರು: %1$s</string>
|
||||
|
||||
|
||||
<string name="pincode_details">ಪಿನ್ಕೋಡ್: %1$s</string>
|
||||
<string name="is_patient_under_any_medication_details">ಔಷಧಿಗಳ ಕೆಳಗೆ ಇದ್ದಾರೆ: %1$s</string>
|
||||
<string name="is_patient_undergoing_any_blood_transfusion_details">ರಕ್ತ ಸಂರಚನೆಯಲ್ಲಿ ಇದ್ದಾರೆ: %1$s</string>
|
||||
<string name="is_any_sickle">ಯಾವುದೇ ಸಿಕ್ಕಲ್ ಸೆಲ್ ಇತಿಹಾಸವಿದೆಯೇ: %1$s</string>
|
||||
<string name="sickle_cell_family_history">ಸಿಕ್ಕಲ್ ಸೆಲ್ ಕುಟುಂಬ ಇತಿಹಾಸ: %1$s</string>
|
||||
<string name="center_name">ಕೇಂದ್ರ ಹೆಸರು</string>
|
||||
<string name="login_id">ಲಾಗಿನ್ ಐಡಿ</string>
|
||||
<string name="password">ಪಾಸ್ವರ್ಡ್</string>
|
||||
<string name="login">ಲಾಗಿನ್</string>
|
||||
<string name="_2">ವರ್ಗ</string>
|
||||
<string name="category">ವರ್ಗ</string>
|
||||
<string name="male">ಗಂಡು</string>
|
||||
<string name="female">ಹೆಣ್ಣು</string>
|
||||
<string name="other">ಇತರ</string>
|
||||
|
||||
|
||||
<string name="cancelled_unable_scan">ರದ್ದು ಮಾಡಲಾಗಿದೆ: ಸ್ಕ್ಯಾನ್ ಮಾಡಲು ಸಾಧ್ಯವಿಲ್ಲ, ಮತ್ತೊಮ್ಮೆ ಪ್ರಯಾಸಿಸಿ!!</string>
|
||||
<string name="scan_abha_card">ದಯವಿಟ್ಟು ಅಭಾ ಐಡಿ/ಆಧಾರ್ ಐಡಿಯನ್ನು ಸ್ಕ್ಯಾನ್ ಮಾಡಿ</string>
|
||||
<string name="invalid_qr_code">ನೀವು ಸ್ಕ್ಯಾನ್ ಮಾಡಿದ QR ಕೋಡ್ ಮಾನ್ಯವಿಲ್ಲ, ದಯವಿಟ್ಟು ಮಾಹಿತಿಯನ್ನು ಕೈಮಾಡಿ ನಮೂದಿಸಿ</string>
|
||||
<string name="enter_aadhar_manually">ನೀವು ಅಬ ಹಾ ಐಡಿ ಸ್ಕ್ಯಾನ್ ಮಾಡಿದ್ದೀರಿ, ಆಧಾರ್ ಐಡಿ ಅನ್ನು ಕೈಮಾತ್ರ ನಮೂದಿಸಿ</string>
|
||||
<string name="invalid_abha_id">ಅಮಾನ್ಯ ಅಭಾ ಐಡಿ</string>
|
||||
<string name="invalid_aadhar_id">ಅಮಾನ್ಯವಾದ ಆಧಾರ್ ಐಡಿ</string>
|
||||
<string name="name_field_error">ಹೆಸರು ಕ್ಷೇತ್ರವು ಖಾಲಿ ಇರಲಾರದು ಅಥವಾ 3 ಅಕ್ಷರಗಳಿಂದ ಕಡಿಮೆ ಇರಲಾರದು</string>
|
||||
<string name="center_name_error">ಕೇಂದ್ರದ ಹೆಸರು ಖಾಲಿ ಇರಲಾರದು ಅಥವಾ 3 ಅಕ್ಷರಗಳಿಂದ ಕಡಿಮೆ ಇರಲಾರದು</string>
|
||||
<string name="registration_success">ಯಶಸ್ವಿಯಾಗಿ ನೋಂದಾಯಿಸಲಾಗಿದೆ</string>
|
||||
<string name="internt_not_local">ಇಂಟರ್ನೆಟ್ ಲಭ್ಯವಿಲ್ಲ, ಪರೀಕ್ಷೆ ವಿವರಗಳನ್ನು ಸ್ಥಾನಿಕವಾಗಿ ಉಳಿಸಲಾಗಿದೆ</string>
|
||||
<string name="enter_details_properly">ದಯವಿಟ್ಟು ಎಲ್ಲಾ ವಿವರಗಳನ್ನು ಸರಿಯಾಗಿ ನಮೂದಿಸಿ</string>
|
||||
<string name="enter_valid_birth_year">ದಯವಿಟ್ಟು 1900 ಮತ್ತು 2023 ನ ನಡುವೆ ಒಂದು ವಾಸಿಸುವ ತಾರೀಖು ನಮೂದಿಸಿ</string>
|
||||
<string name="fill_field">ದಯವಿಟ್ಟು ಕ್ಷೇತ್ರವನ್ನು ನಿರೂಪಿಸಿ</string>
|
||||
<string name="valid_mobile_number">ದಯವಿಟ್ಟು ಒಂದು ಮಾನ್ಯವಾದ 10 ಅಂಕದ ಮೊಬೈಲ್ ಸಂಖ್ಯೆಯನ್ನು ನಮೂದಿಸಿ</string>
|
||||
<string name="enter_name">ದಯವಿಟ್ಟು ನಿಮ್ಮ ಹೆಸರನ್ನು ನಮೂದಿಸಿ</string>
|
||||
<string name="enter_marital_status">ದಯವಿಟ್ಟು ನಿಮ್ಮ ವೈವಾಹಿಕ ಸ್ಥಿತಿಯನ್ನು ನಮೂದಿಸಿ</string>
|
||||
<string name="enter_category">ದಯವಿಟ್ಟು ನಿಮ್ಮ ವರ್ಗವನ್ನು ನಮೂದಿಸಿ</string>
|
||||
<string name="enter_caste">ದಯವಿಟ್ಟು ನಿಮ್ಮ ಜಾತಿಯನ್ನು ನಮೂದಿಸಿ</string>
|
||||
<string name="enter_house_address">ದಯವಿಟ್ಟು ನಿಮ್ಮ ಮನೆಯ ವಿಳಾಸವನ್ನು ನಮೂದಿಸಿ</string>
|
||||
<string name="enter_city">ದಯವಿಟ್ಟು ನಿಮ್ಮ ನಗರವನ್ನು ನಮೂದಿಸಿ</string>
|
||||
<string name="enter_district">ದಯವಿಟ್ಟು ನಿಮ್ಮ ಜಿಲ್ಲೆಯನ್ನು ನಮೂದಿಸಿ</string>
|
||||
<string name="enter_state">ದಯವಿಟ್ಟು ನಿಮ್ಮ ರಾಜ್ಯವನ್ನು ನಮೂದಿಸಿ</string>
|
||||
<string name="enter_pincode">ದಯವಿಟ್ಟು ಒಂದು ಮಾನ್ಯ ಆರು-ಅಂಕ ಪಿನ್ಕೋಡ್ ನಮೂದಿಸಿ</string>
|
||||
<string name="enter_family_history">ದಯವಿಟ್ಟು ನಿಮ್ಮ ಕುಟುಂಬದ ಇತಿಹಾಸವನ್ನು ನಮೂದಿಸಿ</string>
|
||||
<string name="enter_guardian_name">ದಯವಿಟ್ಟು ನಿಮ್ಮ ಅಭಿಭಾವಕರ ಹೆಸರನ್ನು ನಮೂದಿಸಿ</string>
|
||||
<string name="enter_father_husband_name">ದಯವಿಟ್ಟು ನಿಮ್ಮ ತಂದೆ / ಗಂಡನ ಹೆಸರನ್ನು ನಮೂದಿಸಿ</string>
|
||||
<string name="do_log_out">ನೀವು ಅಪ್ಲಿಕೇಶನ್ ನಿಂದ ಲಾಗೌಟ್ ಮಾಡಲು ಇಚ್ಛಿಸುತ್ತೀರಾ?</string>
|
||||
<string name="log_out">ಲಾಗೌಟ್</string>
|
||||
<string name="no_data_available">ಸ್ಥಾನಿಕ ಡೇಟಾಬೇಸ್ನಲ್ಲಿ ಯಾವುದೇ ಡೇಟಾ ಲಭ್ಯವಿಲ್ಲ</string>
|
||||
|
||||
<string name="upload_db_registration">ಡಿಬಿ ನೋಂದಾಯಿಸುವ ಕೊರಕು</string>
|
||||
<string name="upload_local_db_to_cloud">ನೀವು ಲೋಕಲ್ ಡಿಬಿ ನೋಂದಾಯಿಸನ್ನು ಮೇಘಮಾರ್ಗಕ್ಕೆ ಅಪ್ಲೋಡ್ ಮಾಡಲು ಇಚ್ಛಿಸುವಿರಾ?</string>
|
||||
<string name="upload">ಅಪ್ಲೋಡ್</string>
|
||||
<string name="upload_done_successfully">ಅಪ್ಲೋಡ್ ಯಶಸ್ವಿಯಾಗಿ ನಡೆಯಿತು</string>
|
||||
<string name="enter_proper_login_id">ದಯವಿಟ್ಟು ಸರಿಯಾದ ಲಾಗಿನ್ ಐಡಿ ನಮೂದಿಸಿ</string>
|
||||
<string name="enter_proper_password">ದಯವಿಟ್ಟು ಸರಿಯಾದ ಪಾಸ್ವರ್ಡ್ ನಮೂದಿಸಿ</string>
|
||||
<string name="wrong_password">ತಪ್ಪಾದ ಪಾಸ್ವರ್ಡ್</string>
|
||||
<string name="wrong_user_id">ತಪ್ಪಾದ ಬಳಕೆದಾರ ಐಡಿ</string>
|
||||
<string name="scanned_aadhar_id">ನೀವು ಆಧಾರ್ ಐಡನ್ನು ಸ್ಕ್ಯಾನ್ ಮಾಡಿದ್ದೀರಿ, ದಯವಿಟ್ಟು ಆಧಾರ್ ಐಡನ್ನು ನೀವು ಸ್ಕ್ಯಾನ್ ಮಾಡಿದ ಮತ್ತು ಅಭಾ ಐಡನ್ನು ಕೈಯಾರೆ ನಮೂದಿಸಿ</string>
|
||||
<string name="empty_registrations">ಪ್ರದರ್ಶಿಸಲಿರುವ ಯಾವ ನೋಂದಾಯಿಗಳೂ ಲಭ್ಯವಿಲ್ಲ</string>
|
||||
|
||||
<string name="scanned_abha_id">ನೀವು ಅಭಾ ಐಡಿಯನ್ನು ಸ್ಕ್ಯಾನ್ ಮಾಡಿದ್ದೀರಿ</string>
|
||||
<string name="scanned_aadharid">ನೀವು ಆಧಾರ್ ಐಡನ್ನು ಸ್ಕ್ಯಾನ್ ಮಾಡಿದಿರಿ</string>
|
||||
<string name="language_update">ಭಾಷೆ ಯಶಸ್ವಿಯಾಗಿ ನವೀಕರಿಸಲಾಗಿದೆ</string>
|
||||
<string name="select_language">ನಿಮ್ಮ ಆದರಿತ ಭಾಷೆಯನ್ನು ಆಯ್ಕೆ ಮಾಡಿ</string>
|
||||
<string name="app_language">ಅಪ್ಲಿಕೇಶನ್ ಭಾಷೆ</string>
|
||||
<string name="add_blood_group">ರಕ್ತ ಗುಂಡನ್ನು ಸೇರಿಸಿ</string>
|
||||
<string name="userid">ಬಳಕೆದಾರ ಐಡಿ</string>
|
||||
<string name="ok">ಸರಿ</string>
|
||||
<string name="yes">ಹೌದು</string>
|
||||
<string name="no">ಇಲ್ಲ</string>
|
||||
<string name="name">ಹೆಸರು</string>
|
||||
<string-array name="yes_no">
|
||||
<item>ಹೌದು</item>
|
||||
<item>ಇಲ್ಲ</item>
|
||||
</string-array>
|
||||
|
||||
<string-array name="category">
|
||||
<item>NT-A</item>
|
||||
<item>NT-B</item>
|
||||
<item>NT-C</item>
|
||||
<item>NT-D</item>
|
||||
<item>OBC</item>
|
||||
<item>OPEN</item>
|
||||
<item>OTHER</item>
|
||||
<item>SBC</item>
|
||||
<item>SC</item>
|
||||
<item>ST</item>
|
||||
</string-array>
|
||||
|
||||
<string-array name="caste">
|
||||
<item>ಅಹೀರ್</item>
|
||||
<item>ಬರಾಯಿ</item>
|
||||
<item>ಬ್ರಾಹ್ಮಣ</item>
|
||||
<item>ಬೌದ್ಧ</item>
|
||||
<item>ಚಾಂಭಾರ್</item>
|
||||
<item>ಚಾಮಾರ್</item>
|
||||
<item>ದೇವಾಂಗನ್</item>
|
||||
<item>ಧಿವರ್</item>
|
||||
<item>ಫುಲ್ಮಾಲಿ</item>
|
||||
<item>ಗೊಂಡ್</item>
|
||||
<item>ಜೈನ್</item>
|
||||
<item>ಕೊಲಿ</item>
|
||||
<item>ಕೊಶ್ತಿ</item>
|
||||
<item>ಕುಂಭಾರ</item>
|
||||
<item>ಕುಂಬಿ</item>
|
||||
<item>ಲೊಹರ್</item>
|
||||
<item>ಮಾಳಿ</item>
|
||||
<item>ಮಣ್ಣ</item>
|
||||
<item>ಮಹಾರ್</item>
|
||||
<item>ಮೌರ್ಯ</item>
|
||||
<item>ಮಸ್ಲಿಮ್</item>
|
||||
<item>ನಾವಿ</item>
|
||||
<item>ಇತರ</item>
|
||||
<item>ಪವಾರ್</item>
|
||||
<item>ಪರ್ದೇಶಿ</item>
|
||||
<item>ಶಾಹು</item>
|
||||
<item>ಸೋನಾರ್</item>
|
||||
<item>ತೆಲಿ</item>
|
||||
</string-array>
|
||||
|
||||
<string-array name="marital_status">
|
||||
<item>ವಿವಾಹಿತ</item>
|
||||
<item>ಅವಿವಾಹಿತ</item>
|
||||
<item>ವಿವಾಹ ವಿಚ್ಛೇದ</item>
|
||||
</string-array>
|
||||
|
||||
|
||||
<string-array name="blood_group">
|
||||
<item>O+ve</item>
|
||||
<item>O-ve</item>
|
||||
<item>A+ve</item>
|
||||
<item>A-ve</item>
|
||||
<item>B+ve</item>
|
||||
<item>B-ve</item>
|
||||
<item>AB+ve</item>
|
||||
<item>AB-ve</item>
|
||||
</string-array>
|
||||
|
||||
<string-array name="gender">
|
||||
<item>ಗಂಡು</item>
|
||||
<item>ಹೆಣ್ಣು</item>
|
||||
<item>ಇತರ</item>
|
||||
</string-array>
|
||||
|
||||
|
||||
</resources>
|
||||
4
app/src/main/res/values/hpos_icon_background.xml
Normal file
@@ -0,0 +1,4 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<color name="hpos_icon_background">#FFFFFF</color>
|
||||
</resources>
|
||||
@@ -7,6 +7,12 @@
|
||||
<string name="retry">Retry</string>
|
||||
<string name="failed_to_connect">Failed to connect</string>
|
||||
<string name="cancel">Cancel</string>
|
||||
<string name="yes">Yes</string>
|
||||
<string name="no">No</string>
|
||||
<string-array name="yes_no">
|
||||
<item>Yes</item>
|
||||
<item>No</item>
|
||||
</string-array>
|
||||
|
||||
//Registration Screens
|
||||
<string name="scan_person_abha_id_card">Scan Person ABHA ID/Aadhar ID Card</string>
|
||||
@@ -31,7 +37,7 @@
|
||||
<string name="birth_year">Birth Year</string>
|
||||
<string name="marital_status">Select Marital status</string>
|
||||
<string name="father_s_husband_s_name">Father\'s/Husband\'s Name</string>
|
||||
<string name="caste">Select Caste</string>
|
||||
<string name="caste">Caste</string>
|
||||
<string name="person_s_address_details">Person\'s Address Details</string>
|
||||
<string name="district">District</string>
|
||||
<string name="city_town">City / Town</string>
|
||||
@@ -41,8 +47,8 @@
|
||||
<string name="review">Review</string>
|
||||
<string name="blood_group">Select Blood Group</string>
|
||||
<string name="house">House</string>
|
||||
<string name="is_patient_under_any_medication">Is user under any medication or treatment?</string>
|
||||
<string name="is_patient_undergoing_any_blood_transfusion">Is user undergoing any blood transfusion?</string>
|
||||
<string name="is_patient_under_any_medication">Have you been under medication for Sickle Cell in the past three months?</string>
|
||||
<string name="is_patient_undergoing_any_blood_transfusion">Have you undergone any Blood transfusions in the Past three months ?</string>
|
||||
|
||||
<string name="user_list">User List</string>
|
||||
<string name="register_user">Register User</string>
|
||||
@@ -54,7 +60,7 @@
|
||||
<string name="mobile_number">Mobile Number</string>
|
||||
<string name="edit">Edit</string>
|
||||
<string name="user_details">User Details</string>
|
||||
<string name="internet_is_not_available_and_there_is_no_data_available_in_local_db">Internet is not available and there is no Data available in Local DB</string>
|
||||
<string name="internet_is_not_available_and_there_is_no_data_available_in_local_db">there is no Data available in Local DB</string>
|
||||
<string name="user_id">User ID: %1$s</string>
|
||||
<string name="abha_number">Abha Number: %1$s</string>
|
||||
<string name="aadhar_number_details">Aadhar Number: %1$s</string>
|
||||
@@ -64,6 +70,7 @@
|
||||
<string name="phone_number_details">Mobile Number: %1$s</string>
|
||||
<string name="care_of_details">Father\'s/Husband\'s Name: %1$s</string>
|
||||
<string name="marital_status_details">Marital Status: %1$s</string>
|
||||
<string name="category_details">Category: %1$s</string>
|
||||
<string name="caste_details">Caste: %1$s</string>
|
||||
<string name="sub_caste_details">Sub Caste: %1$s</string>
|
||||
<string name="house_details">House: %1$s</string>
|
||||
@@ -78,15 +85,116 @@
|
||||
<string name="is_any_sickle">Is Any Sickle cell History: %1$s</string>
|
||||
<string name="sickle_cell_family_history">Sickle cell Family History: %1$s</string>
|
||||
<string name="center_name">Center Name</string>
|
||||
<string name="login_id">Login ID</string>
|
||||
<string name="password">Password</string>
|
||||
<string name="login">Login</string>
|
||||
<string name="_2">Category</string>
|
||||
<string name="category">Category</string>
|
||||
<string name="male">Male</string>
|
||||
<string name="female">Female</string>
|
||||
<string name="other">Other</string>
|
||||
|
||||
<string name="cancelled_unable_scan">Cancelled: Unable to scan, Try Again!!</string>
|
||||
<string name="scan_abha_card">Please Scan the Abha ID/Aadhar ID</string>
|
||||
<string name="invalid_qr_code">The QR Code you have scanned is not valid, enter the data manually</string>
|
||||
<string name="enter_aadhar_manually">You have scanned the Abha ID, need to enter Aadhar ID manually</string>
|
||||
<string name="invalid_abha_id">Invalid Abha ID</string>
|
||||
<string name="invalid_aadhar_id">Invalid Aadhar ID</string>
|
||||
<string name="name_field_error">Name field can\'t be empty or less than 3 characters</string>
|
||||
<string name="center_name_error">Center name can\'t be empty or less than 3 characters</string>
|
||||
<string name="registration_success">Registration Done Successfully</string>
|
||||
<string name="internt_not_local">Internet not available, test details stored locally</string>
|
||||
<string name="local">details stored locally</string>
|
||||
<string name="no_data_available">No data available in the local database</string>
|
||||
|
||||
<string name="enter_details_properly">Please enter all the details properly</string>
|
||||
<string name="enter_valid_birth_year">Please enter a valid birth year between 1900 and 2023</string>
|
||||
<string name="fill_field">Please fill the field</string>
|
||||
<string name="valid_mobile_number">Please enter a valid 10-digit mobile number</string>
|
||||
<string name="enter_name">Please enter your name</string>
|
||||
<string name="enter_marital_status">Please enter your marital status</string>
|
||||
<string name="enter_category">Please enter your category</string>
|
||||
<string name="enter_caste">Please enter your caste</string>
|
||||
<string name="enter_house_address">Please enter your house address</string>
|
||||
<string name="enter_city">Please enter your city</string>
|
||||
<string name="enter_district">Please enter your district</string>
|
||||
<string name="enter_state">Please enter your state</string>
|
||||
<string name="enter_pincode">Please enter a valid 6-digit pin code</string>
|
||||
<string name="enter_family_history">Please enter your family history</string>
|
||||
<string name="enter_guardian_name">Please enter your guardian name</string>
|
||||
<string name="enter_father_husband_name">enter father/husband name</string>
|
||||
<string name="do_log_out">Do you want to LogOut the Application?</string>
|
||||
<string name="log_out">Log Out</string>
|
||||
<string name="upload_db_registration">Upload DB Registration</string>
|
||||
<string name="upload_local_db_to_cloud">Do you want to upload the local DB Registration to the cloud?</string>
|
||||
<string name="upload">Upload</string>
|
||||
<string name="upload_done_successfully">Upload done successfully</string>
|
||||
<string name="language_update">Language updated successfully</string>
|
||||
<string name="select_language">Select your preferred language</string>
|
||||
<string name="app_language">App Language</string>
|
||||
<string name="enter_proper_login_id">Please enter a proper Login ID</string>
|
||||
<string name="enter_proper_password">Please enter a proper password</string>
|
||||
<string name="wrong_password">Wrong Password</string>
|
||||
<string name="wrong_user_id">Wrong UserID</string>
|
||||
<string name="userid">User Id</string>
|
||||
<string name="name">Name</string>
|
||||
<string name="ok">OK</string>
|
||||
|
||||
<string name="empty_registrations">No registrations available for display</string>
|
||||
|
||||
|
||||
<string name="add_blood_group">Add Blood Group</string>
|
||||
<string name="scanned_aadhar_id">You have scanned the Aadhar ID, need to enter Aadhar ID number you have scanned and Abha ID manually</string>
|
||||
<string name="scanned_abha_id">You have scanned the Abha ID</string>
|
||||
<string name="scanned_aadharid">You have scanned the Aadhar ID</string>
|
||||
<string name="downloadcsv">Download CSV</string>
|
||||
<string name="download_db_registration_title">Download DB Registartion Data</string>
|
||||
<string name="download_db_registration_message">Do you want to download the local DB Registrations in CSV format?</string>
|
||||
<string name="upload_success_message">Upload done successfully</string>
|
||||
<string-array name="category">
|
||||
<item>GEN</item>
|
||||
<item>NT-A</item>
|
||||
<item>NT-B</item>
|
||||
<item>NT-C</item>
|
||||
<item>NT-D</item>
|
||||
<item>OBC</item>
|
||||
<item>OPEN</item>
|
||||
<item>OTHER</item>
|
||||
<item>SBC</item>
|
||||
<item>SC</item>
|
||||
<item>ST</item>
|
||||
</string-array>
|
||||
|
||||
<string-array name="caste">
|
||||
<item>AHIR</item>
|
||||
<item>BARAI</item>
|
||||
<item>BRAHMAN</item>
|
||||
<item>BUDDHIST</item>
|
||||
<item>CHAMBHAR</item>
|
||||
<item>CHAMAR</item>
|
||||
<item>DEWANGAN</item>
|
||||
<item>DHIWAR</item>
|
||||
<item>FULMALI</item>
|
||||
<item>GOND</item>
|
||||
<item>JAIN</item>
|
||||
<item>KOLI</item>
|
||||
<item>KOSHTI</item>
|
||||
<item>KUMBHAR</item>
|
||||
<item>KUNBI</item>
|
||||
<item>LOHAR</item>
|
||||
<item>MALI</item>
|
||||
<item>MANNA</item>
|
||||
<item>MAHAR</item>
|
||||
<item>MOURYA</item>
|
||||
<item>MUSLIM</item>
|
||||
<item>NAVI</item>
|
||||
<item>OTHER</item>
|
||||
<item>PAWAR</item>
|
||||
<item>PARDESI</item>
|
||||
<item>SHAHU</item>
|
||||
<item>SONAR</item>
|
||||
<item>TELI</item>
|
||||
</string-array>
|
||||
|
||||
<string-array name="marital_status">
|
||||
<item>Married</item>
|
||||
<item>Single</item>
|
||||
|
||||
@@ -3,7 +3,8 @@ 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
|
||||
id 'com.google.firebase.crashlytics' version "2.9.8" apply false
|
||||
}
|
||||
4
gradle/wrapper/gradle-wrapper.properties
vendored
@@ -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
|
||||
|
||||
@@ -10,7 +10,6 @@ dependencyResolutionManagement {
|
||||
repositories {
|
||||
google()
|
||||
mavenCentral()
|
||||
maven {url "https://jitpack.io"}
|
||||
}
|
||||
}
|
||||
rootProject.name = "HPOS Registration"
|
||||
|
||||