├── .firebaserc ├── .gitattributes ├── app ├── src │ ├── main │ │ ├── res │ │ │ ├── drawable │ │ │ │ ├── cafe.png │ │ │ │ ├── cloth.png │ │ │ │ ├── diet.png │ │ │ │ ├── house.png │ │ │ │ ├── clothes.png │ │ │ │ ├── donate.png │ │ │ │ ├── log_out.png │ │ │ │ ├── shelter.png │ │ │ │ ├── received.png │ │ │ │ ├── contribution.png │ │ │ │ ├── mail_sent_amico.png │ │ │ │ ├── messages_rafiki.png │ │ │ │ ├── reset_password_pana.png │ │ │ │ ├── personal_settings_rafiki.png │ │ │ │ ├── push_notifications_pana.png │ │ │ │ ├── bg_round.xml │ │ │ │ ├── drawer_bdr.xml │ │ │ │ ├── background_button_purple.xml │ │ │ │ ├── background_box_blue.xml │ │ │ │ ├── background_box_purple.xml │ │ │ │ ├── baseline_add_24.xml │ │ │ │ ├── baseline_close_24.xml │ │ │ │ ├── baseline_delete_sweep_24.xml │ │ │ │ ├── baseline_email_24.xml │ │ │ │ ├── baseline_person_24.xml │ │ │ │ ├── baseline_save_alt_24.xml │ │ │ │ ├── baseline_logout_24.xml │ │ │ │ ├── baseline_menu_open_24.xml │ │ │ │ ├── header_bkg.xml │ │ │ │ ├── baseline_message_24.xml │ │ │ │ ├── baseline_map_24.xml │ │ │ │ ├── baseline_archive_24.xml │ │ │ │ ├── baseline_autorenew_24.xml │ │ │ │ ├── baseline_verified_24.xml │ │ │ │ ├── black_verified_mark.xml │ │ │ │ ├── baseline_local_phone_24.xml │ │ │ │ ├── baseline_call_24.xml │ │ │ │ ├── baseline_password_24.xml │ │ │ │ └── ic_launcher_background.xml │ │ │ ├── drawable-v24 │ │ │ │ ├── mainbg.png │ │ │ │ ├── peep.png │ │ │ │ ├── peep2.png │ │ │ │ └── ic_launcher_foreground.xml │ │ │ ├── mipmap-hdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ ├── ic_launcher_round.png │ │ │ │ └── ic_launcher_foreground.png │ │ │ ├── mipmap-mdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ ├── ic_launcher_round.png │ │ │ │ └── ic_launcher_foreground.png │ │ │ ├── mipmap-xhdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ ├── ic_launcher_round.png │ │ │ │ └── ic_launcher_foreground.png │ │ │ ├── mipmap-xxhdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ ├── ic_launcher_round.png │ │ │ │ └── ic_launcher_foreground.png │ │ │ ├── mipmap-xxxhdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ ├── ic_launcher_round.png │ │ │ │ └── ic_launcher_foreground.png │ │ │ ├── menu │ │ │ │ ├── new_donation_menu.xml │ │ │ │ ├── view_cloth_menu.xml │ │ │ │ ├── view_food_menu.xml │ │ │ │ ├── view_shelter_menu.xml │ │ │ │ └── view_contribution_menu.xml │ │ │ ├── values │ │ │ │ ├── ic_launcher_background.xml │ │ │ │ ├── headings_array.xml │ │ │ │ ├── colors.xml │ │ │ │ ├── strings.xml │ │ │ │ └── themes.xml │ │ │ ├── mipmap-anydpi-v26 │ │ │ │ ├── ic_launcher.xml │ │ │ │ └── ic_launcher_round.xml │ │ │ ├── layout │ │ │ │ ├── userclass.xml │ │ │ │ ├── activity_donate_item.xml │ │ │ │ ├── toolbar.xml │ │ │ │ ├── activity_view_food.xml │ │ │ │ ├── activity_view_clothes.xml │ │ │ │ ├── activity_view_shelters.xml │ │ │ │ ├── progress_dialog.xml │ │ │ │ ├── activity_spinner.xml │ │ │ │ ├── activity_change_user_email.xml │ │ │ │ ├── activity_send_food.xml │ │ │ │ ├── activity_donation_cloth.xml │ │ │ │ ├── activity_donation_shelter.xml │ │ │ │ ├── activity_main.xml │ │ │ │ ├── activity_change_user_details.xml │ │ │ │ ├── contributionscard_item.xml │ │ │ │ ├── activity_login.xml │ │ │ │ ├── activity_change_user_password.xml │ │ │ │ ├── activity_view_contributions.xml │ │ │ │ ├── activity_user_details_register.xml │ │ │ │ ├── activity_change_user_phone.xml │ │ │ │ ├── foodcard_item.xml │ │ │ │ ├── clothcard_item.xml │ │ │ │ ├── sheltercard_item.xml │ │ │ │ ├── activity_register.xml │ │ │ │ ├── nav_drawer.xml │ │ │ │ └── activity_donor_side.xml │ │ │ ├── xml │ │ │ │ ├── backup_rules.xml │ │ │ │ └── data_extraction_rules.xml │ │ │ └── values-night │ │ │ │ └── themes.xml │ │ ├── ic_launcher-playstore.png │ │ ├── java │ │ │ └── com │ │ │ │ └── example │ │ │ │ └── shareit │ │ │ │ ├── DonateItem.java │ │ │ │ ├── WrapContentLinearLayoutManager.java │ │ │ │ ├── User.java │ │ │ │ ├── Spinner.java │ │ │ │ ├── ClothItem.java │ │ │ │ ├── ShelterItem.java │ │ │ │ ├── FoodItem.java │ │ │ │ ├── ContributionsClothAdapter.java │ │ │ │ ├── ContributionsShelterAdapter.java │ │ │ │ ├── ContributionsFoodAdapter.java │ │ │ │ ├── change_user_email.java │ │ │ │ ├── MainActivity.java │ │ │ │ ├── Geohash.java │ │ │ │ ├── FoodAdapter.java │ │ │ │ ├── ClothAdapter.java │ │ │ │ ├── ShelterAdapter.java │ │ │ │ └── change_user_password.java │ │ └── AndroidManifest.xml │ ├── test │ │ └── java │ │ │ └── com │ │ │ └── example │ │ │ └── shareit │ │ │ └── ExampleUnitTest.java │ └── androidTest │ │ └── java │ │ └── com │ │ └── example │ │ └── shareit │ │ └── ExampleInstrumentedTest.java ├── proguard-rules.pro └── build.gradle ├── gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── firebase.json ├── settings.gradle ├── .gitignore ├── functions ├── .eslintrc.js ├── package.json └── index.js ├── strings.xml ├── gradle.properties ├── gradlew.bat ├── README.md └── gradlew /.firebaserc: -------------------------------------------------------------------------------- 1 | { 2 | "projects": { 3 | "default": "share-it-6d179" 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | # Auto detect text files and perform LF normalization 2 | * text=auto 3 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/cafe.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chirag38-unity/NestAid/HEAD/app/src/main/res/drawable/cafe.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/cloth.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chirag38-unity/NestAid/HEAD/app/src/main/res/drawable/cloth.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/diet.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chirag38-unity/NestAid/HEAD/app/src/main/res/drawable/diet.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/house.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chirag38-unity/NestAid/HEAD/app/src/main/res/drawable/house.png -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chirag38-unity/NestAid/HEAD/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /app/src/main/res/drawable/clothes.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chirag38-unity/NestAid/HEAD/app/src/main/res/drawable/clothes.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/donate.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chirag38-unity/NestAid/HEAD/app/src/main/res/drawable/donate.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/log_out.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chirag38-unity/NestAid/HEAD/app/src/main/res/drawable/log_out.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/shelter.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chirag38-unity/NestAid/HEAD/app/src/main/res/drawable/shelter.png -------------------------------------------------------------------------------- /app/src/main/ic_launcher-playstore.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chirag38-unity/NestAid/HEAD/app/src/main/ic_launcher-playstore.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-v24/mainbg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chirag38-unity/NestAid/HEAD/app/src/main/res/drawable-v24/mainbg.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-v24/peep.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chirag38-unity/NestAid/HEAD/app/src/main/res/drawable-v24/peep.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-v24/peep2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chirag38-unity/NestAid/HEAD/app/src/main/res/drawable-v24/peep2.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/received.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chirag38-unity/NestAid/HEAD/app/src/main/res/drawable/received.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/contribution.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chirag38-unity/NestAid/HEAD/app/src/main/res/drawable/contribution.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/mail_sent_amico.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chirag38-unity/NestAid/HEAD/app/src/main/res/drawable/mail_sent_amico.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/messages_rafiki.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chirag38-unity/NestAid/HEAD/app/src/main/res/drawable/messages_rafiki.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chirag38-unity/NestAid/HEAD/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chirag38-unity/NestAid/HEAD/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chirag38-unity/NestAid/HEAD/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chirag38-unity/NestAid/HEAD/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chirag38-unity/NestAid/HEAD/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/reset_password_pana.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chirag38-unity/NestAid/HEAD/app/src/main/res/drawable/reset_password_pana.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chirag38-unity/NestAid/HEAD/app/src/main/res/mipmap-hdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-mdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chirag38-unity/NestAid/HEAD/app/src/main/res/mipmap-mdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chirag38-unity/NestAid/HEAD/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chirag38-unity/NestAid/HEAD/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/personal_settings_rafiki.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chirag38-unity/NestAid/HEAD/app/src/main/res/drawable/personal_settings_rafiki.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/push_notifications_pana.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chirag38-unity/NestAid/HEAD/app/src/main/res/drawable/push_notifications_pana.png -------------------------------------------------------------------------------- /app/src/main/res/menu/new_donation_menu.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /app/src/main/res/menu/view_cloth_menu.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /app/src/main/res/menu/view_food_menu.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /app/src/main/res/menu/view_shelter_menu.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chirag38-unity/NestAid/HEAD/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chirag38-unity/NestAid/HEAD/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chirag38-unity/NestAid/HEAD/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/menu/view_contribution_menu.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chirag38-unity/NestAid/HEAD/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chirag38-unity/NestAid/HEAD/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chirag38-unity/NestAid/HEAD/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png -------------------------------------------------------------------------------- /app/src/main/res/values/ic_launcher_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #FFFFFF 4 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/bg_round.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Fri Mar 31 18:29:14 IST 2023 2 | distributionBase=GRADLE_USER_HOME 3 | distributionUrl=https\://services.gradle.org/distributions/gradle-8.0-bin.zip 4 | distributionPath=wrapper/dists 5 | zipStorePath=wrapper/dists 6 | zipStoreBase=GRADLE_USER_HOME 7 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/drawer_bdr.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 8 | 9 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/background_button_purple.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /app/src/main/res/values/headings_array.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Food 7 | Clothes 8 | Shelter 9 | 10 | 11 | -------------------------------------------------------------------------------- /app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/background_box_blue.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 8 | 9 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/background_box_purple.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 8 | 9 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/baseline_add_24.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /firebase.json: -------------------------------------------------------------------------------- 1 | { 2 | "functions": [ 3 | { 4 | "source": "functions", 5 | "codebase": "default", 6 | "ignore": [ 7 | "node_modules", 8 | ".git", 9 | "firebase-debug.log", 10 | "firebase-debug.*.log" 11 | ], 12 | "predeploy": [ 13 | "npm --prefix \"$RESOURCE_DIR\" run lint" 14 | ] 15 | } 16 | ] 17 | } 18 | -------------------------------------------------------------------------------- /settings.gradle: -------------------------------------------------------------------------------- 1 | pluginManagement { 2 | repositories { 3 | google() 4 | mavenCentral() 5 | gradlePluginPortal() 6 | } 7 | } 8 | dependencyResolutionManagement { 9 | repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS) 10 | repositories { 11 | google() 12 | mavenCentral() 13 | } 14 | } 15 | rootProject.name = "ShareIT" 16 | include ':app' 17 | -------------------------------------------------------------------------------- /app/src/main/res/layout/userclass.xml: -------------------------------------------------------------------------------- 1 | 2 | 10 | 11 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/baseline_close_24.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /app/src/main/java/com/example/shareit/DonateItem.java: -------------------------------------------------------------------------------- 1 | package com.example.shareit; 2 | 3 | import androidx.appcompat.app.AppCompatActivity; 4 | 5 | import android.os.Bundle; 6 | 7 | public class DonateItem extends AppCompatActivity { 8 | 9 | @Override 10 | protected void onCreate(Bundle savedInstanceState) { 11 | super.onCreate(savedInstanceState); 12 | setContentView(R.layout.activity_donate_item); 13 | } 14 | } -------------------------------------------------------------------------------- /app/src/main/res/drawable/baseline_delete_sweep_24.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/baseline_email_24.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/baseline_person_24.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/baseline_save_alt_24.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/baseline_logout_24.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/baseline_menu_open_24.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/header_bkg.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 9 | 12 | 13 | -------------------------------------------------------------------------------- /app/src/main/res/layout/activity_donate_item.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | -------------------------------------------------------------------------------- /app/src/test/java/com/example/shareit/ExampleUnitTest.java: -------------------------------------------------------------------------------- 1 | package com.example.shareit; 2 | 3 | import org.junit.Test; 4 | 5 | import static org.junit.Assert.*; 6 | 7 | /** 8 | * Example local unit test, which will execute on the development machine (host). 9 | * 10 | * @see Testing documentation 11 | */ 12 | public class ExampleUnitTest { 13 | @Test 14 | public void addition_isCorrect() { 15 | assertEquals(4, 2 + 2); 16 | } 17 | } -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Gradle files 2 | .gradle/ 3 | build/ 4 | 5 | # Local configuration file (sdk path, etc) 6 | local.properties 7 | 8 | # Log/OS Files 9 | *.log 10 | 11 | # Android Studio generated files and folders 12 | captures/ 13 | .externalNativeBuild/ 14 | .cxx/ 15 | *.apk 16 | output.json 17 | 18 | # IntelliJ 19 | *.iml 20 | .idea/ 21 | 22 | # Keystore files 23 | *.jks 24 | *.keystore 25 | 26 | # Google Services (e.g. APIs or Firebase) 27 | google-services.json 28 | 29 | # Android Profiling 30 | *.hprof 31 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/baseline_message_24.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/baseline_map_24.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /app/src/main/res/xml/backup_rules.xml: -------------------------------------------------------------------------------- 1 | 8 | 9 | 13 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/baseline_archive_24.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/baseline_autorenew_24.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/baseline_verified_24.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/black_verified_mark.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/baseline_local_phone_24.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /functions/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | env: { 3 | es6: true, 4 | node: true, 5 | }, 6 | parserOptions: { 7 | "ecmaVersion": 2018, 8 | }, 9 | extends: [ 10 | "eslint:recommended", 11 | "google", 12 | ], 13 | rules: { 14 | "no-restricted-globals": ["error", "name", "length"], 15 | "prefer-arrow-callback": "error", 16 | "quotes": ["error", "double", {"allowTemplateLiterals": true}], 17 | }, 18 | overrides: [ 19 | { 20 | files: ["**/*.spec.*"], 21 | env: { 22 | mocha: true, 23 | }, 24 | rules: {}, 25 | }, 26 | ], 27 | globals: {}, 28 | }; 29 | -------------------------------------------------------------------------------- /app/src/main/res/xml/data_extraction_rules.xml: -------------------------------------------------------------------------------- 1 | 6 | 7 | 8 | 12 | 13 | 19 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/baseline_call_24.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /strings.xml: -------------------------------------------------------------------------------- 1 | 2 | ShareIT 3 | Login 4 | Enter Email 5 | Enter Password 6 | Register User 7 | Register 8 | Login Now 9 | Register Now 10 | Enter Name 11 | Enter Phone Number 12 | 13 | Hello blank fragment 14 | -------------------------------------------------------------------------------- /app/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #FFBB86FC 4 | #FF6200EE 5 | #FF3700B3 6 | #FF03DAC5 7 | #b7e2f3 8 | #FF018786 9 | #FF000000 10 | #FFFFFFFF 11 | #EEFC5E 12 | #ED2939 13 | #3CB043 14 | #000000 15 | #777474 16 | -------------------------------------------------------------------------------- /functions/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "functions", 3 | "description": "Cloud Functions for Firebase", 4 | "scripts": { 5 | "lint": "eslint .", 6 | "serve": "firebase emulators:start --only functions", 7 | "shell": "firebase functions:shell", 8 | "start": "npm run shell", 9 | "deploy": "firebase deploy --only functions", 10 | "logs": "firebase functions:log" 11 | }, 12 | "engines": { 13 | "node": "16" 14 | }, 15 | "main": "index.js", 16 | "dependencies": { 17 | "firebase-admin": "^11.5.0", 18 | "firebase-functions": "^4.2.0" 19 | }, 20 | "devDependencies": { 21 | "eslint": "^8.15.0", 22 | "eslint-config-google": "^0.14.0", 23 | "firebase-functions-test": "^3.0.0" 24 | }, 25 | "private": true 26 | } 27 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/baseline_password_24.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /app/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # You can control the set of applied configuration files using the 3 | # proguardFiles setting in build.gradle. 4 | # 5 | # For more details, see 6 | # http://developer.android.com/guide/developing/tools/proguard.html 7 | 8 | # If your project uses WebView with JS, uncomment the following 9 | # and specify the fully qualified class name to the JavaScript interface 10 | # class: 11 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 12 | # public *; 13 | #} 14 | 15 | # Uncomment this to preserve the line number information for 16 | # debugging stack traces. 17 | #-keepattributes SourceFile,LineNumberTable 18 | 19 | # If you keep the line number information, uncomment this to 20 | # hide the original source file name. 21 | #-renamesourcefileattribute SourceFile -------------------------------------------------------------------------------- /app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | NestAid 3 | Login 4 | Enter Email 5 | Enter Password 6 | Register User 7 | Register 8 | Login Now 9 | Register Now 10 | Enter Name 11 | Enter Phone Number 12 | 13 | Hello blank fragment 14 | Confirm Password 15 | User Details 16 | -------------------------------------------------------------------------------- /app/src/main/res/values/themes.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 16 | -------------------------------------------------------------------------------- /app/src/main/res/values-night/themes.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 16 | -------------------------------------------------------------------------------- /app/src/androidTest/java/com/example/shareit/ExampleInstrumentedTest.java: -------------------------------------------------------------------------------- 1 | package com.example.shareit; 2 | 3 | import android.content.Context; 4 | 5 | import androidx.test.platform.app.InstrumentationRegistry; 6 | import androidx.test.ext.junit.runners.AndroidJUnit4; 7 | 8 | import org.junit.Test; 9 | import org.junit.runner.RunWith; 10 | 11 | import static org.junit.Assert.*; 12 | 13 | /** 14 | * Instrumented test, which will execute on an Android device. 15 | * 16 | * @see Testing documentation 17 | */ 18 | @RunWith(AndroidJUnit4.class) 19 | public class ExampleInstrumentedTest { 20 | @Test 21 | public void useAppContext() { 22 | // Context of the app under test. 23 | Context appContext = InstrumentationRegistry.getInstrumentation().getTargetContext(); 24 | assertEquals("com.example.shareit", appContext.getPackageName()); 25 | } 26 | } -------------------------------------------------------------------------------- /app/src/main/res/layout/toolbar.xml: -------------------------------------------------------------------------------- 1 | 2 | 10 | 11 | 16 | 17 | 25 | 26 | -------------------------------------------------------------------------------- /app/src/main/res/layout/activity_view_food.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 19 | 20 | -------------------------------------------------------------------------------- /app/src/main/res/layout/activity_view_clothes.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 19 | 20 | -------------------------------------------------------------------------------- /app/src/main/res/layout/activity_view_shelters.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 19 | 20 | -------------------------------------------------------------------------------- /app/src/main/res/layout/progress_dialog.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 14 | 15 | 18 | 24 | 25 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /functions/index.js: -------------------------------------------------------------------------------- 1 | const functions = require("firebase-functions"); 2 | const admin = require("firebase-admin"); 3 | const {firestore} = require("firebase-admin"); 4 | admin.initializeApp(); 5 | 6 | exports.removeExpiredDocuments = functions.pubsub.schedule("every 30 minutes") 7 | .onRun(async (context) => { 8 | console.log("Cron-Job"); 9 | const db = admin.firestore(); 10 | const now = firestore.Timestamp.now(); 11 | const ts = firestore.Timestamp.fromMillis(now.toMillis() - 7200000); 12 | // 24 hours in milliseconds = 86400000 13 | 14 | const snap = await db.collection("Foods").where("MilliSec", "<", ts) 15 | .get(); 16 | const promises = []; 17 | snap.forEach((snap) => { 18 | promises.push(snap.ref.delete()); 19 | }); 20 | return Promise.all(promises); 21 | }); 22 | 23 | // // Create and deploy your first functions 24 | // // https://firebase.google.com/docs/functions/get-started 25 | // 26 | // exports.helloWorld = functions.https.onRequest((request, response) => { 27 | // functions.logger.info("Hello logs!", {structuredData: true}); 28 | // response.send("Hello from Firebase!"); 29 | // }); 30 | -------------------------------------------------------------------------------- /app/src/main/java/com/example/shareit/WrapContentLinearLayoutManager.java: -------------------------------------------------------------------------------- 1 | package com.example.shareit; 2 | 3 | import android.content.Context; 4 | import android.util.AttributeSet; 5 | import android.util.Log; 6 | 7 | import androidx.recyclerview.widget.LinearLayoutManager; 8 | import androidx.recyclerview.widget.RecyclerView; 9 | 10 | public class WrapContentLinearLayoutManager extends LinearLayoutManager { 11 | public WrapContentLinearLayoutManager(Context context) { 12 | super(context); 13 | } 14 | 15 | public WrapContentLinearLayoutManager(Context context, int orientation, boolean reverseLayout) { 16 | super(context, orientation, reverseLayout); 17 | } 18 | 19 | public WrapContentLinearLayoutManager(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) { 20 | super(context, attrs, defStyleAttr, defStyleRes); 21 | } 22 | 23 | @Override 24 | public void onLayoutChildren(RecyclerView.Recycler recycler, RecyclerView.State state) { 25 | try { 26 | super.onLayoutChildren(recycler, state); 27 | } catch (IndexOutOfBoundsException e) { 28 | Log.e("TAG", "meet a IOOBE in RecyclerView"); 29 | } 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /app/src/main/res/layout/activity_spinner.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 14 | 15 | 21 | 29 | 34 | 35 | -------------------------------------------------------------------------------- /gradle.properties: -------------------------------------------------------------------------------- 1 | # Project-wide Gradle settings. 2 | # IDE (e.g. Android Studio) users: 3 | # Gradle settings configured through the IDE *will override* 4 | # any settings specified in this file. 5 | # For more details on how to configure your build environment visit 6 | # http://www.gradle.org/docs/current/userguide/build_environment.html 7 | # Specifies the JVM arguments used for the daemon process. 8 | # The setting is particularly useful for tweaking memory settings. 9 | org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8 10 | # When configured, Gradle will run in incubating parallel mode. 11 | # This option should only be used with decoupled projects. More details, visit 12 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects 13 | # org.gradle.parallel=true 14 | # AndroidX package structure to make it clearer which packages are bundled with the 15 | # Android operating system, and which are packaged with your app's APK 16 | # https://developer.android.com/topic/libraries/support-library/androidx-rn 17 | android.useAndroidX=true 18 | # Enables namespacing of each library's R class so that its R class includes only the 19 | # resources declared in the library itself and none from the library's dependencies, 20 | # thereby reducing the size of the R class for that library 21 | android.nonTransitiveRClass=true 22 | android.defaults.buildfeatures.buildconfig=true 23 | android.nonFinalResIds=false -------------------------------------------------------------------------------- /app/src/main/java/com/example/shareit/User.java: -------------------------------------------------------------------------------- 1 | package com.example.shareit; 2 | 3 | public class User { 4 | 5 | private String name, phone, email, usertype, userId; 6 | private Boolean verification; 7 | 8 | public User() { 9 | } 10 | 11 | public User(String name, String phone, String email, String usertype, String userId, Boolean verification) { 12 | this.name = name; 13 | this.phone = phone; 14 | this.email = email; 15 | this.usertype = usertype; 16 | this.userId = userId; 17 | this.verification = verification; 18 | } 19 | 20 | public Boolean getVerification() { 21 | return verification; 22 | } 23 | 24 | public void setVerification(Boolean verification) { 25 | this.verification = verification; 26 | } 27 | 28 | public String getName() { 29 | return name; 30 | } 31 | 32 | public void setName(String name) { 33 | this.name = name; 34 | } 35 | 36 | public void setPhone(String phone) { 37 | this.phone = phone; 38 | } 39 | 40 | public void setEmail(String email) { 41 | this.email = email; 42 | } 43 | 44 | public void setUsertype(String usertype) { 45 | this.usertype = usertype; 46 | } 47 | 48 | public void setUserId(String userId) { 49 | this.userId = userId; 50 | } 51 | 52 | public String getUsertype() { 53 | return usertype; 54 | } 55 | 56 | public String getPhone() { 57 | return phone; 58 | } 59 | 60 | public String getEmail() { 61 | return email; 62 | } 63 | 64 | public String getUserId() { 65 | return userId; 66 | } 67 | } 68 | -------------------------------------------------------------------------------- /app/src/main/res/drawable-v24/ic_launcher_foreground.xml: -------------------------------------------------------------------------------- 1 | 7 | 8 | 9 | 15 | 18 | 21 | 22 | 23 | 24 | 30 | -------------------------------------------------------------------------------- /app/build.gradle: -------------------------------------------------------------------------------- 1 | plugins { 2 | id 'com.android.application' 3 | id 'com.google.gms.google-services' 4 | } 5 | 6 | android { 7 | namespace 'com.example.shareit' 8 | compileSdk 33 9 | 10 | defaultConfig { 11 | applicationId "com.example.shareit" 12 | minSdk 28 13 | targetSdk 33 14 | versionCode 1 15 | versionName "1.0" 16 | 17 | testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" 18 | } 19 | 20 | buildTypes { 21 | release { 22 | minifyEnabled false 23 | proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' 24 | } 25 | } 26 | compileOptions { 27 | sourceCompatibility JavaVersion.VERSION_1_8 28 | targetCompatibility JavaVersion.VERSION_1_8 29 | } 30 | } 31 | 32 | dependencies { 33 | 34 | implementation 'androidx.appcompat:appcompat:1.6.1' 35 | // implementation 'com.android.support:design:28.0.0' 36 | // implementation 'com.android.support:cardview-v7:28.0.0' 37 | implementation "androidx.cardview:cardview:1.0.0" 38 | // implementation 'com.github.imperiumlabs:GeoFirestore-Android:v1.5.0' 39 | // implementation 'com.github.User:Repo:Tag' 40 | implementation 'it.xabaras.android:recyclerview-swipedecorator:1.4' 41 | implementation 'com.google.android.material:material:1.9.0' 42 | implementation 'androidx.constraintlayout:constraintlayout:2.1.4' 43 | implementation 'com.google.android.gms:play-services-location:21.0.1' 44 | implementation 'com.google.firebase:firebase-auth:22.0.0' 45 | implementation 'com.google.firebase:firebase-firestore:24.6.1' 46 | //geo fire 47 | implementation 'ch.hsr:geohash:1.3.0' 48 | implementation 'com.firebaseui:firebase-ui-firestore:8.0.2' 49 | implementation 'com.google.firebase:firebase-database:20.2.2' 50 | implementation 'com.firebase:geofire-android-common:3.1.0' 51 | implementation platform('com.google.firebase:firebase-bom:32.1.0') 52 | implementation 'com.google.firebase:firebase-auth' 53 | testImplementation 'junit:junit:4.13.2' 54 | androidTestImplementation 'androidx.test.ext:junit:1.1.5' 55 | androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1' 56 | } -------------------------------------------------------------------------------- /app/src/main/res/layout/activity_change_user_email.xml: -------------------------------------------------------------------------------- 1 | 2 | 11 | 12 | 16 | 17 | 25 | 26 | 27 | 31 | 32 | 39 | 40 | 41 | 42 | 46 | 47 |