From 7e7974edbd766f370c684541f8f59c2f587617c2 Mon Sep 17 00:00:00 2001 From: pratik2315 Date: Fri, 1 Oct 2021 15:09:02 +0530 Subject: [PATCH] another one --- .gitignore | 15 ++ .idea/.gitignore | 3 + .idea/.name | 1 + .idea/compiler.xml | 6 + .idea/gradle.xml | 21 +++ .idea/jarRepositories.xml | 25 +++ .idea/misc.xml | 9 + README.md | 3 + app/.gitignore | 1 + app/build.gradle | 54 ++++++ app/google-services.json | 39 ++++ app/proguard-rules.pro | 21 +++ .../coviresource/ExampleInstrumentedTest.kt | 24 +++ app/src/debug/res/values/google_maps_api.xml | 24 +++ app/src/main/AndroidManifest.xml | 52 ++++++ .../com/example/coviresource/LoginActivity.kt | 62 +++++++ .../com/example/coviresource/MapsActivity.kt | 26 +++ .../com/example/coviresource/MapsFragment.kt | 142 +++++++++++++++ .../example/coviresource/RegisterActivity.kt | 43 +++++ .../coviresource/SelectItemActivity.kt | 95 ++++++++++ .../coviresource/SelectOptionActivity.kt | 20 ++ app/src/main/res/drawable-v24/ambulance.bmp | Bin 0 -> 1146 bytes app/src/main/res/drawable-v24/bitmap1.bmp | Bin 0 -> 1866 bytes app/src/main/res/drawable-v24/bitmap2.bmp | Bin 0 -> 541 bytes app/src/main/res/drawable-v24/food.bmp | Bin 0 -> 2047 bytes .../drawable-v24/ic_launcher_foreground.xml | 30 +++ app/src/main/res/drawable-v24/oxy.bmp | Bin 0 -> 982 bytes app/src/main/res/drawable-v24/vent.bmp | Bin 0 -> 1626 bytes .../ic_baseline_accessibility_new_24.xml | 10 + .../main/res/drawable/ic_covi_resource.xml | 9 + .../res/drawable/ic_launcher_background.xml | 170 +++++++++++++++++ app/src/main/res/drawable/ic_logo.xml | 23 +++ app/src/main/res/drawable/ic_man_covid.xml | 9 + app/src/main/res/drawable/splash_screen.xml | 6 + app/src/main/res/font/poppins.xml | 7 + app/src/main/res/layout/activity_login.xml | 84 +++++++++ app/src/main/res/layout/activity_maps.xml | 18 ++ app/src/main/res/layout/activity_register.xml | 58 ++++++ .../main/res/layout/activity_select_item.xml | 76 ++++++++ .../res/layout/activity_select_option.xml | 46 +++++ app/src/main/res/layout/fragment_maps.xml | 8 + .../res/mipmap-anydpi-v26/ic_launcher.xml | 5 + .../mipmap-anydpi-v26/ic_launcher_round.xml | 5 + app/src/main/res/mipmap-hdpi/ic_launcher.png | Bin 0 -> 3593 bytes .../res/mipmap-hdpi/ic_launcher_round.png | Bin 0 -> 5339 bytes app/src/main/res/mipmap-mdpi/ic_launcher.png | Bin 0 -> 2636 bytes .../res/mipmap-mdpi/ic_launcher_round.png | Bin 0 -> 3388 bytes app/src/main/res/mipmap-xhdpi/ic_launcher.png | Bin 0 -> 4926 bytes .../res/mipmap-xhdpi/ic_launcher_round.png | Bin 0 -> 7472 bytes .../main/res/mipmap-xxhdpi/ic_launcher.png | Bin 0 -> 7909 bytes .../res/mipmap-xxhdpi/ic_launcher_round.png | Bin 0 -> 11873 bytes .../main/res/mipmap-xxxhdpi/ic_launcher.png | Bin 0 -> 10652 bytes .../res/mipmap-xxxhdpi/ic_launcher_round.png | Bin 0 -> 16570 bytes app/src/main/res/values-night/themes.xml | 16 ++ app/src/main/res/values/colors.xml | 11 ++ app/src/main/res/values/font_certs.xml | 17 ++ app/src/main/res/values/preloaded_fonts.xml | 6 + app/src/main/res/values/strings.xml | 10 + app/src/main/res/values/themes.xml | 21 +++ .../release/res/values/google_maps_api.xml | 20 ++ .../example/coviresource/ExampleUnitTest.kt | 17 ++ build.gradle | 27 +++ gradle.properties | 21 +++ gradle/wrapper/gradle-wrapper.jar | Bin 0 -> 54329 bytes gradle/wrapper/gradle-wrapper.properties | 6 + gradlew | 172 ++++++++++++++++++ gradlew.bat | 84 +++++++++ settings.gradle | 2 + 68 files changed, 1680 insertions(+) create mode 100644 .gitignore create mode 100644 .idea/.gitignore create mode 100644 .idea/.name create mode 100644 .idea/compiler.xml create mode 100644 .idea/gradle.xml create mode 100644 .idea/jarRepositories.xml create mode 100644 .idea/misc.xml create mode 100644 README.md create mode 100644 app/.gitignore create mode 100644 app/build.gradle create mode 100644 app/google-services.json create mode 100644 app/proguard-rules.pro create mode 100644 app/src/androidTest/java/com/example/coviresource/ExampleInstrumentedTest.kt create mode 100644 app/src/debug/res/values/google_maps_api.xml create mode 100644 app/src/main/AndroidManifest.xml create mode 100644 app/src/main/java/com/example/coviresource/LoginActivity.kt create mode 100644 app/src/main/java/com/example/coviresource/MapsActivity.kt create mode 100644 app/src/main/java/com/example/coviresource/MapsFragment.kt create mode 100644 app/src/main/java/com/example/coviresource/RegisterActivity.kt create mode 100644 app/src/main/java/com/example/coviresource/SelectItemActivity.kt create mode 100644 app/src/main/java/com/example/coviresource/SelectOptionActivity.kt create mode 100644 app/src/main/res/drawable-v24/ambulance.bmp create mode 100644 app/src/main/res/drawable-v24/bitmap1.bmp create mode 100644 app/src/main/res/drawable-v24/bitmap2.bmp create mode 100644 app/src/main/res/drawable-v24/food.bmp create mode 100644 app/src/main/res/drawable-v24/ic_launcher_foreground.xml create mode 100644 app/src/main/res/drawable-v24/oxy.bmp create mode 100644 app/src/main/res/drawable-v24/vent.bmp create mode 100644 app/src/main/res/drawable/ic_baseline_accessibility_new_24.xml create mode 100644 app/src/main/res/drawable/ic_covi_resource.xml create mode 100644 app/src/main/res/drawable/ic_launcher_background.xml create mode 100644 app/src/main/res/drawable/ic_logo.xml create mode 100644 app/src/main/res/drawable/ic_man_covid.xml create mode 100644 app/src/main/res/drawable/splash_screen.xml create mode 100644 app/src/main/res/font/poppins.xml create mode 100644 app/src/main/res/layout/activity_login.xml create mode 100644 app/src/main/res/layout/activity_maps.xml create mode 100644 app/src/main/res/layout/activity_register.xml create mode 100644 app/src/main/res/layout/activity_select_item.xml create mode 100644 app/src/main/res/layout/activity_select_option.xml create mode 100644 app/src/main/res/layout/fragment_maps.xml create mode 100644 app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml create mode 100644 app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml create mode 100644 app/src/main/res/mipmap-hdpi/ic_launcher.png create mode 100644 app/src/main/res/mipmap-hdpi/ic_launcher_round.png create mode 100644 app/src/main/res/mipmap-mdpi/ic_launcher.png create mode 100644 app/src/main/res/mipmap-mdpi/ic_launcher_round.png create mode 100644 app/src/main/res/mipmap-xhdpi/ic_launcher.png create mode 100644 app/src/main/res/mipmap-xhdpi/ic_launcher_round.png create mode 100644 app/src/main/res/mipmap-xxhdpi/ic_launcher.png create mode 100644 app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png create mode 100644 app/src/main/res/mipmap-xxxhdpi/ic_launcher.png create mode 100644 app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png create mode 100644 app/src/main/res/values-night/themes.xml create mode 100644 app/src/main/res/values/colors.xml create mode 100644 app/src/main/res/values/font_certs.xml create mode 100644 app/src/main/res/values/preloaded_fonts.xml create mode 100644 app/src/main/res/values/strings.xml create mode 100644 app/src/main/res/values/themes.xml create mode 100644 app/src/release/res/values/google_maps_api.xml create mode 100644 app/src/test/java/com/example/coviresource/ExampleUnitTest.kt create mode 100644 build.gradle create mode 100644 gradle.properties create mode 100644 gradle/wrapper/gradle-wrapper.jar create mode 100644 gradle/wrapper/gradle-wrapper.properties create mode 100644 gradlew create mode 100644 gradlew.bat create mode 100644 settings.gradle diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..aa724b7 --- /dev/null +++ b/.gitignore @@ -0,0 +1,15 @@ +*.iml +.gradle +/local.properties +/.idea/caches +/.idea/libraries +/.idea/modules.xml +/.idea/workspace.xml +/.idea/navEditor.xml +/.idea/assetWizardSettings.xml +.DS_Store +/build +/captures +.externalNativeBuild +.cxx +local.properties diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..26d3352 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,3 @@ +# Default ignored files +/shelf/ +/workspace.xml diff --git a/.idea/.name b/.idea/.name new file mode 100644 index 0000000..b561058 --- /dev/null +++ b/.idea/.name @@ -0,0 +1 @@ +CoviResource \ No newline at end of file diff --git a/.idea/compiler.xml b/.idea/compiler.xml new file mode 100644 index 0000000..fb7f4a8 --- /dev/null +++ b/.idea/compiler.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/.idea/gradle.xml b/.idea/gradle.xml new file mode 100644 index 0000000..2c7e034 --- /dev/null +++ b/.idea/gradle.xml @@ -0,0 +1,21 @@ + + + + + + + \ No newline at end of file diff --git a/.idea/jarRepositories.xml b/.idea/jarRepositories.xml new file mode 100644 index 0000000..a5f05cd --- /dev/null +++ b/.idea/jarRepositories.xml @@ -0,0 +1,25 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000..860da66 --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,9 @@ + + + + + + + + \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..5a9bc64 --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# Covi_resources + +Android app which connects covid patients to the volunteers diff --git a/app/.gitignore b/app/.gitignore new file mode 100644 index 0000000..42afabf --- /dev/null +++ b/app/.gitignore @@ -0,0 +1 @@ +/build \ No newline at end of file diff --git a/app/build.gradle b/app/build.gradle new file mode 100644 index 0000000..66e97f3 --- /dev/null +++ b/app/build.gradle @@ -0,0 +1,54 @@ +plugins { + id 'com.android.application' + id 'kotlin-android' + id 'com.google.gms.google-services' +} + +android { + compileSdkVersion 30 + buildToolsVersion "30.0.3" + + defaultConfig { + applicationId "com.example.coviresource" + minSdkVersion 23 + targetSdkVersion 30 + versionCode 1 + versionName "1.0" + + testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" + } + buildFeatures { + viewBinding = true + } + + buildTypes { + release { + minifyEnabled false + proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' + } + } + compileOptions { + sourceCompatibility JavaVersion.VERSION_1_8 + targetCompatibility JavaVersion.VERSION_1_8 + } + kotlinOptions { + jvmTarget = '1.8' + } +} + +dependencies { + + implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version" + implementation 'androidx.core:core-ktx:1.6.0' + implementation 'androidx.appcompat:appcompat:1.3.1' + implementation 'com.google.android.material:material:1.4.0' + implementation 'androidx.constraintlayout:constraintlayout:2.1.0' + implementation 'com.google.firebase:firebase-auth:21.0.1' + testImplementation 'junit:junit:4.+' + androidTestImplementation 'androidx.test.ext:junit:1.1.3' + androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0' + + implementation 'com.google.android.gms:play-services-location:18.0.0' + implementation 'com.google.android.gms:play-services-maps:17.0.0' + +} \ No newline at end of file diff --git a/app/google-services.json b/app/google-services.json new file mode 100644 index 0000000..7be9a09 --- /dev/null +++ b/app/google-services.json @@ -0,0 +1,39 @@ +{ + "project_info": { + "project_number": "352578301512", + "project_id": "coviresource-e90e2", + "storage_bucket": "coviresource-e90e2.appspot.com" + }, + "client": [ + { + "client_info": { + "mobilesdk_app_id": "1:352578301512:android:c5c8f287d576e4052c727d", + "android_client_info": { + "package_name": "com.example.coviresource" + } + }, + "oauth_client": [ + { + "client_id": "352578301512-bbpvbno5eeq3camjuf5i1jc78ndcle70.apps.googleusercontent.com", + "client_type": 3 + } + ], + "api_key": [ + { + "current_key": "AIzaSyAQbWBelrms2Ae2a2l7TxwL7W1htzMjQIE" + } + ], + "services": { + "appinvite_service": { + "other_platform_oauth_client": [ + { + "client_id": "352578301512-bbpvbno5eeq3camjuf5i1jc78ndcle70.apps.googleusercontent.com", + "client_type": 3 + } + ] + } + } + } + ], + "configuration_version": "1" +} \ No newline at end of file diff --git a/app/proguard-rules.pro b/app/proguard-rules.pro new file mode 100644 index 0000000..481bb43 --- /dev/null +++ b/app/proguard-rules.pro @@ -0,0 +1,21 @@ +# Add project specific ProGuard rules here. +# You can control the set of applied configuration files using the +# proguardFiles setting in build.gradle. +# +# For more details, see +# http://developer.android.com/guide/developing/tools/proguard.html + +# If your project uses WebView with JS, uncomment the following +# and specify the fully qualified class name to the JavaScript interface +# class: +#-keepclassmembers class fqcn.of.javascript.interface.for.webview { +# public *; +#} + +# Uncomment this to preserve the line number information for +# debugging stack traces. +#-keepattributes SourceFile,LineNumberTable + +# If you keep the line number information, uncomment this to +# hide the original source file name. +#-renamesourcefileattribute SourceFile \ No newline at end of file diff --git a/app/src/androidTest/java/com/example/coviresource/ExampleInstrumentedTest.kt b/app/src/androidTest/java/com/example/coviresource/ExampleInstrumentedTest.kt new file mode 100644 index 0000000..1346e69 --- /dev/null +++ b/app/src/androidTest/java/com/example/coviresource/ExampleInstrumentedTest.kt @@ -0,0 +1,24 @@ +package com.example.coviresource + +import androidx.test.platform.app.InstrumentationRegistry +import androidx.test.ext.junit.runners.AndroidJUnit4 + +import org.junit.Test +import org.junit.runner.RunWith + +import org.junit.Assert.* + +/** + * Instrumented test, which will execute on an Android device. + * + * See [testing documentation](http://d.android.com/tools/testing). + */ +@RunWith(AndroidJUnit4::class) +class ExampleInstrumentedTest { + @Test + fun useAppContext() { + // Context of the app under test. + val appContext = InstrumentationRegistry.getInstrumentation().targetContext + assertEquals("com.example.coviresource", appContext.packageName) + } +} \ No newline at end of file diff --git a/app/src/debug/res/values/google_maps_api.xml b/app/src/debug/res/values/google_maps_api.xml new file mode 100644 index 0000000..4e5d004 --- /dev/null +++ b/app/src/debug/res/values/google_maps_api.xml @@ -0,0 +1,24 @@ + + + AIzaSyCoBApGHSoM96yXhgci02-uHhOgWoGAOmk + \ No newline at end of file diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml new file mode 100644 index 0000000..c9f8b54 --- /dev/null +++ b/app/src/main/AndroidManifest.xml @@ -0,0 +1,52 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/java/com/example/coviresource/LoginActivity.kt b/app/src/main/java/com/example/coviresource/LoginActivity.kt new file mode 100644 index 0000000..469bdc2 --- /dev/null +++ b/app/src/main/java/com/example/coviresource/LoginActivity.kt @@ -0,0 +1,62 @@ +package com.example.coviresource + +import android.content.Intent +import androidx.appcompat.app.AppCompatActivity +import android.os.Bundle +import android.widget.Toast +import com.example.coviresource.databinding.ActivityLoginBinding +import com.google.firebase.auth.FirebaseAuth + +class LoginActivity : AppCompatActivity() { + private lateinit var binding: ActivityLoginBinding + + override fun onCreate(savedInstanceState: Bundle?) { + super.onCreate(savedInstanceState) + setTheme(R.style.Theme_CoviResource) + binding = ActivityLoginBinding.inflate(layoutInflater) + setContentView(binding.root) + + val auth = FirebaseAuth.getInstance() + + binding.btnLogin.setOnClickListener { + binding.btnLogin.isEnabled = false + val userEmail = binding.userNameLogin.text.toString() + val userPass = binding.userPassLogin.text.toString() + if (userEmail.isBlank()) { + binding.userNameLogin.error = "please enter email" + binding.btnLogin.isEnabled = true + return@setOnClickListener + } + if (userPass.isBlank()) { + binding.userPassLogin.error = "please enter password" + binding.btnLogin.isEnabled = true + return@setOnClickListener + } + if (userPass.length < 6) { + binding.userPassLogin.error = "password length too short!" + binding.btnLogin.isEnabled = true + return@setOnClickListener + } + + auth.signInWithEmailAndPassword(userEmail, userPass).addOnCompleteListener { task -> + binding.btnLogin.isEnabled = true + if (task.isSuccessful) { + startActivity(Intent(this, SelectOptionActivity::class.java)) + finish() + } else { + Toast.makeText(this, "Something went wrong", Toast.LENGTH_SHORT).show() + } + } + } + binding.admin.setOnClickListener { + startActivity(Intent(this, SelectItemActivity::class.java)) + } + startRegisterActivity() + } + + private fun startRegisterActivity(){ + binding.loginHere.setOnClickListener { + startActivity(Intent(this, RegisterActivity::class.java)) + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/example/coviresource/MapsActivity.kt b/app/src/main/java/com/example/coviresource/MapsActivity.kt new file mode 100644 index 0000000..6b45967 --- /dev/null +++ b/app/src/main/java/com/example/coviresource/MapsActivity.kt @@ -0,0 +1,26 @@ +package com.example.coviresource + +import androidx.appcompat.app.AppCompatActivity +import android.os.Bundle +import com.example.coviresource.databinding.ActivityMapsBinding + +class MapsActivity : AppCompatActivity() { + + private lateinit var binding: ActivityMapsBinding + override fun onCreate(savedInstanceState: Bundle?) { + super.onCreate(savedInstanceState) + binding = ActivityMapsBinding.inflate(layoutInflater) + setContentView(binding.root) + + + + val fragment = MapsFragment() + val transaction = supportFragmentManager.beginTransaction() + transaction.replace(R.id.container, fragment) + transaction.commit() + + + + + } +} \ No newline at end of file diff --git a/app/src/main/java/com/example/coviresource/MapsFragment.kt b/app/src/main/java/com/example/coviresource/MapsFragment.kt new file mode 100644 index 0000000..00ca95a --- /dev/null +++ b/app/src/main/java/com/example/coviresource/MapsFragment.kt @@ -0,0 +1,142 @@ +package com.example.coviresource + +import android.Manifest +import android.content.Intent +import android.content.Intent.getIntent +import android.content.pm.PackageManager +import android.location.Location +import androidx.fragment.app.Fragment + +import android.os.Bundle +import android.view.LayoutInflater +import android.view.View +import android.view.ViewGroup +import android.widget.Toast +import androidx.core.app.ActivityCompat +import androidx.core.content.ContextCompat +import com.example.coviresource.databinding.FragmentMapsBinding +import com.google.android.gms.location.FusedLocationProviderClient +import com.google.android.gms.location.LocationServices + +import com.google.android.gms.maps.CameraUpdateFactory +import com.google.android.gms.maps.GoogleMap +import com.google.android.gms.maps.OnMapReadyCallback +import com.google.android.gms.maps.SupportMapFragment +import com.google.android.gms.maps.model.BitmapDescriptorFactory +import com.google.android.gms.maps.model.LatLng +import com.google.android.gms.maps.model.MarkerOptions + +class MapsFragment : Fragment() { + + var currentLocation:Location ?= null + var fusedLocationProviderClient:FusedLocationProviderClient?= null + val REQUEST_CODE = 1 + + private val callback = OnMapReadyCallback { googleMap -> + + try { + val latlng = LatLng(currentLocation!!.latitude, currentLocation!!.longitude) + if (latlng == null) { + Toast.makeText(requireContext(), "location access not allowed!", Toast.LENGTH_SHORT) + .show() + } + + val intent = activity?.intent + val OXY_VALUE = "Oxygen" + val VENT_VALUE = "Vent" + val FOOD_VALUE = "Food" + val AMB_VALUE = "Amb" + + if (intent?.getStringExtra("Oxygen") == OXY_VALUE) { + val markerOptions = MarkerOptions().position(latlng).title("I have the oxygen") + .icon(BitmapDescriptorFactory.fromResource(R.drawable.oxy)) + + googleMap.animateCamera(CameraUpdateFactory.newLatLng(latlng)) + googleMap.animateCamera(CameraUpdateFactory.newLatLngZoom(latlng, 15f)) + googleMap.addMarker(markerOptions) + } + + if (intent?.getStringExtra("Vent") == VENT_VALUE) { + val markerOptions = MarkerOptions().position(latlng).title("I have the ventilator") + .icon(BitmapDescriptorFactory.fromResource(R.drawable.vent)) + + googleMap.animateCamera(CameraUpdateFactory.newLatLng(latlng)) + googleMap.animateCamera(CameraUpdateFactory.newLatLngZoom(latlng, 15f)) + googleMap.addMarker(markerOptions) + } + + if (intent?.getStringExtra("Food") == FOOD_VALUE) { + val markerOptions = MarkerOptions().position(latlng).title("I have the food") + .icon(BitmapDescriptorFactory.fromResource(R.drawable.food)) + + googleMap.animateCamera(CameraUpdateFactory.newLatLng(latlng)) + googleMap.animateCamera(CameraUpdateFactory.newLatLngZoom(latlng, 15f)) + googleMap.addMarker(markerOptions) + } + + if (intent?.getStringExtra("Amb") == AMB_VALUE) { + val markerOptions = + MarkerOptions().position(latlng).title("I have the ambulance services") + .icon(BitmapDescriptorFactory.fromResource(R.drawable.ambulance)) + + googleMap.animateCamera(CameraUpdateFactory.newLatLng(latlng)) + googleMap.animateCamera(CameraUpdateFactory.newLatLngZoom(latlng, 15f)) + googleMap.addMarker(markerOptions) + } + } catch (e:Exception){ + e.stackTrace + } + } + + private fun bitmapDesc(){ + + } + + override fun onCreateView(inflater: LayoutInflater, + container: ViewGroup?, + savedInstanceState: Bundle?): View? { + return inflater.inflate(R.layout.fragment_maps, container, false) + } + + override fun onViewCreated(view: View, savedInstanceState: Bundle?) { + super.onViewCreated(view, savedInstanceState) + + fusedLocationProviderClient = LocationServices.getFusedLocationProviderClient(context) + fetchLocation() + + } + + private fun fetchLocation() { + if (ContextCompat.checkSelfPermission(this.requireContext(), + Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED) { + ActivityCompat.requestPermissions(requireActivity(), arrayOf(Manifest.permission.ACCESS_FINE_LOCATION), REQUEST_CODE) + return + } + + val task = fusedLocationProviderClient!!.lastLocation + task.addOnSuccessListener { location -> + currentLocation = location + + val mapFragment = childFragmentManager.findFragmentById(R.id.map) as SupportMapFragment? + mapFragment?.getMapAsync(callback) + + } + } + + override fun onRequestPermissionsResult( + requestCode: Int, + permissions: Array, + grantResults: IntArray + ) { + + when(requestCode){ + REQUEST_CODE -> { + if (grantResults.isNotEmpty() && grantResults[0] == PackageManager.PERMISSION_GRANTED){ + fetchLocation() + } + } + } + super.onRequestPermissionsResult(requestCode, permissions, grantResults) + } + +} \ No newline at end of file diff --git a/app/src/main/java/com/example/coviresource/RegisterActivity.kt b/app/src/main/java/com/example/coviresource/RegisterActivity.kt new file mode 100644 index 0000000..cf69fb3 --- /dev/null +++ b/app/src/main/java/com/example/coviresource/RegisterActivity.kt @@ -0,0 +1,43 @@ +package com.example.coviresource + +import androidx.appcompat.app.AppCompatActivity +import android.os.Bundle +import android.widget.Toast +import com.example.coviresource.databinding.ActivityRegisterBinding +import com.google.firebase.auth.FirebaseAuth + +class RegisterActivity : AppCompatActivity() { + private lateinit var binding: ActivityRegisterBinding + + override fun onCreate(savedInstanceState: Bundle?) { + super.onCreate(savedInstanceState) + binding = ActivityRegisterBinding.inflate(layoutInflater) + setContentView(binding.root) + + val auth = FirebaseAuth.getInstance() + + binding.btnSignUp.setOnClickListener { + binding.btnSignUp.isEnabled = false + val userEmail = binding.etRegEmail.text.toString() + val userPassword = binding.etRegPassword.text.toString() + + if (userEmail.isBlank() || userPassword.isBlank()) { + Toast.makeText(this, "Input fields Cannot be Empty!", Toast.LENGTH_SHORT).show() + binding.btnSignUp.isEnabled = true + return@setOnClickListener + } + if (userPassword.length < 6){ + Toast.makeText(this, "password cannot be shorter than 6 characters", Toast.LENGTH_SHORT).show() + binding.btnSignUp.isEnabled = true + return@setOnClickListener + } + auth.createUserWithEmailAndPassword(userEmail, userPassword).addOnCompleteListener { task -> + binding.btnSignUp.isEnabled = true + if (task.isSuccessful) { + Toast.makeText(this, "Register success", Toast.LENGTH_SHORT).show() + } + } + + } + } +} \ No newline at end of file diff --git a/app/src/main/java/com/example/coviresource/SelectItemActivity.kt b/app/src/main/java/com/example/coviresource/SelectItemActivity.kt new file mode 100644 index 0000000..52406ba --- /dev/null +++ b/app/src/main/java/com/example/coviresource/SelectItemActivity.kt @@ -0,0 +1,95 @@ +package com.example.coviresource + +import android.content.Intent +import android.os.Bundle +import android.view.View +import android.widget.AdapterView +import android.widget.ArrayAdapter +import android.widget.Toast +import androidx.appcompat.app.AppCompatActivity +import com.example.coviresource.databinding.ActivitySelectItemBinding + +class SelectItemActivity : AppCompatActivity() { + private lateinit var binding:ActivitySelectItemBinding + private val OXYGEN_KEY = "Oxygen" + private val VENTILATOR_KEY= "Vent" + private val FOOD_KEY = "Food" + private val AMBULANCE_KEY = "Amb" + + override fun onCreate(savedInstanceState: Bundle?) { + super.onCreate(savedInstanceState) + setTheme(R.style.Theme_CoviResource) + binding = ActivitySelectItemBinding.inflate(layoutInflater) + setContentView(binding.root) + + + ArrayAdapter.createFromResource( + this, + R.array.resources, + android.R.layout.simple_spinner_item + ).also { adapter -> + adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item) + binding.spinnerResources.adapter = adapter + } + + + + var initialSelectedPosition : Int = binding.spinnerResources.selectedItemPosition + binding.spinnerResources.setSelection(initialSelectedPosition, false) + + binding.spinnerResources.onItemSelectedListener = object : AdapterView.OnItemSelectedListener{ + override fun onItemSelected( + parent: AdapterView<*>?, + view: View?, + position: Int, + id: Long + ) { + //Toast.makeText(this@SelectItemActivity, "you selected ${parent?.getItemAtPosition(position).toString()}", Toast.LENGTH_SHORT ).show() + + if (parent?.getItemAtPosition(position) == "Oxygen 🏥"){ + binding.btnPost.setOnClickListener { + var userValue = binding.resourceQty.text.toString() + if (userValue.isBlank()){ + binding.resourceQty.setError("Please enter a number") + } + var intent = Intent(this@SelectItemActivity, MapsActivity::class.java) + intent.putExtra("Oxygen", OXYGEN_KEY) + startActivity(intent) + } + } + + if (parent?.getItemAtPosition(position) == "Ambulance Services 🚑"){ + binding.btnPost.setOnClickListener { + var intent = Intent(this@SelectItemActivity, MapsActivity::class.java) + intent.putExtra("Amb", AMBULANCE_KEY) + startActivity(intent) + } + } + + if (parent?.getItemAtPosition(position) == "Ventilator ⛽"){ + binding.btnPost.setOnClickListener { + var intent = Intent(this@SelectItemActivity, MapsActivity::class.java) + intent.putExtra("Vent", VENTILATOR_KEY) + startActivity(intent) + } + } + + if (parent?.getItemAtPosition(position) == "Food 🍞"){ + binding.btnPost.setOnClickListener { + var intent = Intent(this@SelectItemActivity, MapsActivity::class.java) + intent.putExtra("Food", FOOD_KEY) + startActivity(intent) + } + } + } + + override fun onNothingSelected(parent: AdapterView<*>?) { + + + } + + } + + + } +} \ No newline at end of file diff --git a/app/src/main/java/com/example/coviresource/SelectOptionActivity.kt b/app/src/main/java/com/example/coviresource/SelectOptionActivity.kt new file mode 100644 index 0000000..f922542 --- /dev/null +++ b/app/src/main/java/com/example/coviresource/SelectOptionActivity.kt @@ -0,0 +1,20 @@ +package com.example.coviresource + +import android.content.Intent +import androidx.appcompat.app.AppCompatActivity +import android.os.Bundle +import com.example.coviresource.databinding.ActivitySelectOptionBinding + +class SelectOptionActivity : AppCompatActivity() { + private lateinit var binding: ActivitySelectOptionBinding + override fun onCreate(savedInstanceState: Bundle?) { + super.onCreate(savedInstanceState) + setTheme(R.style.Theme_CoviResource) + binding = ActivitySelectOptionBinding.inflate(layoutInflater) + setContentView(binding.root) + + binding.btnDonate.setOnClickListener { + startActivity(Intent(this, SelectItemActivity::class.java)) + } + } +} \ No newline at end of file diff --git a/app/src/main/res/drawable-v24/ambulance.bmp b/app/src/main/res/drawable-v24/ambulance.bmp new file mode 100644 index 0000000000000000000000000000000000000000..8d2ef4fd44d52bc080bdafb9e37720776003b3c0 GIT binary patch literal 1146 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3VyxrOxZ1BJ2F9u)qREmPFA^-pY M07*qoM6N<$f})NnFaQ7m literal 0 HcmV?d00001 diff --git a/app/src/main/res/drawable-v24/bitmap1.bmp b/app/src/main/res/drawable-v24/bitmap1.bmp new file mode 100644 index 0000000000000000000000000000000000000000..fea9ea5a7f0f13e26acd11ae315e8ef85f84f44f GIT binary patch literal 1866 zcmZ8fc`zG@8rN=zByz|liMZkpx-3fT7UBvLN00<@L_!cjTtSi|%Q{C1H1iEhjvU zuOgvneJnx`0S1GCP(2_L2S6Eu^i4n*Q?RkM#zCe;>~)g9qYKK>!61-qUm!G%i!z{u zz`Q-dSc7>7V7(P|k9ngn(3xaKG|+|U>w-}b7z}NwYhVt-nCN27ASOhpr6ZW=hVu!= zyStk+Vyu&xxB#+QIMpuDKgjh{slD+ui&p1s*6nKifo--HXu=~PgAlq-a6JN2AER#! zLE?2acNyF0x%k@T-!ux2LEZ4dr=%joseU(H>jOO>gk0UDST6mXYlUEMy(|U zo{ORm;;!w)yR|!D0#N9y`i6#hOPDbcZ0U##jxgs7(aa>*(2#f^XAvXxdGhsBme*L2 zZ{ue+x%M_rD4f`eFyrUcN(mVZCy)9$&n8m;CeK`BcrcA{1S|n#;iz}b8_G_;p2us? zXU-*&HWU4RPWPN8Ia4SRQ8c>8H9s~r#s>|vgTtg2kh`D4rS?V&C!7h=x7 zIGOI`YUJSKSXx@$QvOXvYG*d9t5h(WnLH{?8{o5sq=LTEtPT->S;UEPbLnQ1#~I$k zne-JQbCgS0@t94qVIp!s9WA1i!7}q8r^hF;tzn>khOU$icNXqkGWoO#_j`J#LFFM|uO##i3VZ@m3x?e*H$ zPdf+i_fOs*Kl|nU9~WZ_n|AKOS^%&%8li(S02^6?Ev(1Czff`E;d$TutDdnJ%Fcrh#gmSt;&^V$wHHOuD)=zsc7t$ zXt56vV=-$YIS2yyCO@~ zmR#MF(KM0YJzv~=Uplg0Gxgn<_n&lae!u+Z)5#-s!)i<6h+L>D=iU~x8w*+Te5O>y zk`=LT=0}$cBSnQVqKf#E&l#2V%!>AuT6LykOwc`(*EL_zu`C^Wq}=?je}8xMu&Zvl zE?ZTe(jZEx6vmZhMHTRW@ajv7V6i&u3c&=9;)Sc6tSc{njkGAgH7Qig`_gc zi7awrVh}r#oRs9BkQ$iC3rXRJafH-tadb%)UGfF9s*T&O%I@he933f}>z6GwiTW$p z4cXBJ=~R9SC5_?FWcV}U{o^$x-k%xg7sv3WGkxg^q}b#D20tu~ADSi%;}%EdNEpR6 ziIUr?wO{gXw`6w81$Xn~B$?5IjAd}3D@r{o3qDFbqXdV&KUesuBYLt6;j3+hT fJ2KIa&L+ijG=f1%xfG5#GDi|qAc-%PGOGU#-O}1F literal 0 HcmV?d00001 diff --git a/app/src/main/res/drawable-v24/bitmap2.bmp b/app/src/main/res/drawable-v24/bitmap2.bmp new file mode 100644 index 0000000000000000000000000000000000000000..cfe0cd7a8ea2b8e7d4566c28b42ad01477c6cfb7 GIT binary patch literal 541 zcmV+&0^I>kp(MBSYRn^6bn`&$;us(pNTAHFc#;$=FEHVygz30t*6`jeZS}XJm;S0 zJTLzliz@1NVjI?CF+Slb9%E`D1sudnOwSP?FcOp2#<>FHeB8ydI_9Tqm}haNs`)zn zm`8$X?9Q7tx+FNRbGz46JIoV#qFWcez+m$HQP@=z!|``%T)PQd6YYDfDXO3kf6U(Y zNQJ6X{qiDlGbg^U``?(Nf!E2JW|4R>5k4rZCc&X(-IgNZ9(=mMdHohCD_T1}>QTAQ?v(~ML5&^BsK)MymyTNzYzfn8vC1@^^q z?>+b2{z2G4cqj;&eE-@#zwbT2&z}AL&bjvjUvrVMUbuSWJ5Snd=AS4EuaX$^#gy*q zy>I-~GoEn37y#F9{&k7TWca{hGUhK|y3jhSFc0T0)@z53p7ATHT(RekAA12{<;nw6 zMxlR`fOrjrf=Oh*5+@sWZ~uPhgaLl<^&M-OMBjd9X{BY+!r4TUXd?E}sXG4mqi5Sx zRa?d>joA$JgG_g7>B}!x+e}6yj-INMPu5=T=A6H>d)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&p?({*sNxxxty3&l7|fUB#`0AJ{JK2bPPBV`mLZYbTRZc zFj~E^ta41($*Kw>kpX9CqDhz}oo#6iJ|x=1smT`vG=0DdCIDqc`RCaSH#H%|S5F2Y z5{u({Lo+C&(#}mwrVj#S60@0126C#l9$z(NtG^RRPFz4)aV~PR(}^U}<%0kXOj@y^ zET0NZ;2+28(But3<=TXTb%tX&`Pns`uC2#o6-6k>%|u4J(`01q$v#h_NmL>7Q5&ykREj3J`aTds_g}bnr+Wg}Mx~3_?sOA^{e9mPfRyT+ zJzjt0#;ul#?Tit0{bsY~@dm@H!nX8{4Jd$}TNY0-QNyvRIcb>{Wd&9P8^7m}k))~| z=Pupq@w5bdLgr7bdFyD?kbpq%U9~XVcL4f}b4v0|`BO95M1gXZqrub0FJ5hwL2*EV zy#5DUPel8BhCRLaY+6!GjqEMxSe%oY%BM}qaHP2=;bCD_uE8Jd!fj7mxViNn1Ho~j z@C|E!aqRj~{`tJ`PE)eeW_2W4V7FO7B?=>BV63;K zITuhkho%Wcqj7|yadd^F-Tq)mj>O^?#-xjiqP=f4(!YFn>%Tij%0H@C!0)b}Yv68Y z1<|EBOd`dMu~|YFQ*|8{A%s;3-2?!X5}8ukO$g$Y(7TGluLxbgt`qG73xv+Ed9O|# dP2R7y{tpjE3*9+Bbe{kK002ovPDHLkV1iZB--G}F literal 0 HcmV?d00001 diff --git a/app/src/main/res/drawable-v24/ic_launcher_foreground.xml b/app/src/main/res/drawable-v24/ic_launcher_foreground.xml new file mode 100644 index 0000000..2b068d1 --- /dev/null +++ b/app/src/main/res/drawable-v24/ic_launcher_foreground.xml @@ -0,0 +1,30 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/drawable-v24/oxy.bmp b/app/src/main/res/drawable-v24/oxy.bmp new file mode 100644 index 0000000000000000000000000000000000000000..20ac31a41a8d05996612f97392bdf4a2056fa3a6 GIT binary patch literal 982 zcmV;{11bE8P)%A#r1LN~W&$+CR|Q9ooH9 zI(lvYL^JmfbPYUoC<3%83Zz0DpqIE!B1IAvR8=8K5_|An zyeRlO=-mgDM1g~QdkBJXdGHci8L((*Xo^f;$z2}2gjNPDnHm6^Dz6MPODhA~rbe8k z=&G^~o++&kXlT4_cF>e-SiwPC8=da;Y_V->v^*a_2;T@Oi6RI0_K?KoQmq77GBuj6 zj~_&DZ1HwcM^j|Biu%<8s&bBlyL*V@$nR`ZqviVeVT`KeW_n@SGU$ad<)U%5fVXaJ zqp30lEf4e!+SF9qo==u#1YtbW3(Jk0u?ImgYiMa^-sj6Pt|&~W{LB+UTu z!)R&_HB}}jiJaD3C~}Vc5+{8wz*{%Ad0uyT)f@qqOpRv8AI8j@!-{26cRaETUOV1W zRUGTdCm(${Gbm0{j(>SZUXj_|=|2hCrp7;w_88!#S(hz?7iTf`wnw>W@VwSS&PjZH z_cpR5&CGXv{KIU(?|*!9;lGKJ1S78?i2}Bv@#K$}Bfv0Xt1vpLf*`O}(E0WE7kxm- zWq)@E0s7<8a(Vph?+f$6f;N+;8D1}B$1V(^hJX_-woQ$05D`W(0KG6KjA9B#p52Pg zpRZbTuGBC}nbZtt>M>r2zX z3(Jxl!htkw${M(mVK;v}UTM3?_y4z0a{MLj=dFRN(HfFZ!z<`351;ut@SXtd`u z;d!*ym)R`K7PgVg^!8kRNRreFf?$&@00cqUzsNk(sDc6ys@0Qja5m_hP!NRtR(;wP zMB&@P+HeMC$GG3Y<YGwc>n+a07*qoM6N<$ Ef)a_?&;S4c literal 0 HcmV?d00001 diff --git a/app/src/main/res/drawable-v24/vent.bmp b/app/src/main/res/drawable-v24/vent.bmp new file mode 100644 index 0000000000000000000000000000000000000000..1665de8019a1264b3fc4fea11b9e2c03135ab5f4 GIT binary patch literal 1626 zcmV-g2BrClP) zOBZ^O7(dDUG4J<|Pv*Uu_j?2U&wm_}a?RyOO^6%EAwA(nr7JOlPQBn#s`YHsGRVdj za5w^=P><&ui$>V1n?6r)fBl6SgpsuXN&t{rcVhpV!|^f@Fy}1W$+TN6P6y8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BL8C~ z7Xs)OG#i8yiFnL-wx!7!k3_F%?dpsMB`?1?BIxu3rdP=j0JwhPD@)FYH19<;HU%1E z=btM=WAn3HrdEHrs?FuP`5~Uy)>v(6h{j`QwSp!O0Q5#9xIuD6N>#)n5fB0-V(K}A zUY8s2`=BW5qK1ZpHG>Myp7+QT0dLzTv(1joYx0xB9-}Jc|M=ss6~z-=75B_ph_x%; zL|TS}iFOCEXAQXadf{z7kC4y9eC;0c)XQ&R&yHF&9d}o`-G?d$6`VO|(Z-O^vsfbt zusO0odSqafsvxR*>zT$A9Ak7Z03(1}xBF0eN@huvmQLHs7%K-5VT|0>&~R|j|2t&% zf=4D(RlR$_8e09vJ=->QOqz6CrmD(LxBKu>09U$ikdl%cU3$IYVqM+$?N`{x|NOW3 Y8-7`Gi+2JD@&Et;07*qoM6N<$f+t4=!2kdN literal 0 HcmV?d00001 diff --git a/app/src/main/res/drawable/ic_baseline_accessibility_new_24.xml b/app/src/main/res/drawable/ic_baseline_accessibility_new_24.xml new file mode 100644 index 0000000..e25d6f3 --- /dev/null +++ b/app/src/main/res/drawable/ic_baseline_accessibility_new_24.xml @@ -0,0 +1,10 @@ + + + diff --git a/app/src/main/res/drawable/ic_covi_resource.xml b/app/src/main/res/drawable/ic_covi_resource.xml new file mode 100644 index 0000000..4dde00e --- /dev/null +++ b/app/src/main/res/drawable/ic_covi_resource.xml @@ -0,0 +1,9 @@ + + + diff --git a/app/src/main/res/drawable/ic_launcher_background.xml b/app/src/main/res/drawable/ic_launcher_background.xml new file mode 100644 index 0000000..07d5da9 --- /dev/null +++ b/app/src/main/res/drawable/ic_launcher_background.xml @@ -0,0 +1,170 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/app/src/main/res/drawable/ic_logo.xml b/app/src/main/res/drawable/ic_logo.xml new file mode 100644 index 0000000..4814978 --- /dev/null +++ b/app/src/main/res/drawable/ic_logo.xml @@ -0,0 +1,23 @@ + + + + + + + + + + + + + + + + + + + + + + diff --git a/app/src/main/res/drawable/ic_man_covid.xml b/app/src/main/res/drawable/ic_man_covid.xml new file mode 100644 index 0000000..79ee62d --- /dev/null +++ b/app/src/main/res/drawable/ic_man_covid.xml @@ -0,0 +1,9 @@ + + + + + diff --git a/app/src/main/res/drawable/splash_screen.xml b/app/src/main/res/drawable/splash_screen.xml new file mode 100644 index 0000000..f37666d --- /dev/null +++ b/app/src/main/res/drawable/splash_screen.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/app/src/main/res/font/poppins.xml b/app/src/main/res/font/poppins.xml new file mode 100644 index 0000000..4eec978 --- /dev/null +++ b/app/src/main/res/font/poppins.xml @@ -0,0 +1,7 @@ + + + diff --git a/app/src/main/res/layout/activity_login.xml b/app/src/main/res/layout/activity_login.xml new file mode 100644 index 0000000..43e3731 --- /dev/null +++ b/app/src/main/res/layout/activity_login.xml @@ -0,0 +1,84 @@ + + + + + + + +