├── android ├── settings.gradle ├── app │ ├── src │ │ ├── main │ │ │ ├── ic_car-web.png │ │ │ ├── res │ │ │ │ ├── values │ │ │ │ │ ├── drawables.xml │ │ │ │ │ ├── ic_launcher_background.xml │ │ │ │ │ ├── colors.xml │ │ │ │ │ ├── dimens.xml │ │ │ │ │ └── styles.xml │ │ │ │ ├── mipmap-hdpi │ │ │ │ │ ├── ic_car.png │ │ │ │ │ ├── ic_launcher.png │ │ │ │ │ ├── ic_default_user.png │ │ │ │ │ ├── ic_launcher_round.png │ │ │ │ │ └── ic_launcher_foreground.png │ │ │ │ ├── mipmap-mdpi │ │ │ │ │ ├── ic_car.png │ │ │ │ │ ├── ic_launcher.png │ │ │ │ │ ├── ic_default_user.png │ │ │ │ │ ├── ic_launcher_round.png │ │ │ │ │ └── ic_launcher_foreground.png │ │ │ │ ├── mipmap-xhdpi │ │ │ │ │ ├── ic_car.png │ │ │ │ │ ├── ic_launcher.png │ │ │ │ │ ├── ic_default_user.png │ │ │ │ │ ├── ic_launcher_round.png │ │ │ │ │ └── ic_launcher_foreground.png │ │ │ │ ├── drawable-hdpi │ │ │ │ │ ├── ic_menu.png │ │ │ │ │ ├── ic_phone.png │ │ │ │ │ ├── ic_radio.png │ │ │ │ │ └── ic_radio_filled.png │ │ │ │ ├── drawable-mdpi │ │ │ │ │ ├── ic_menu.png │ │ │ │ │ ├── ic_phone.png │ │ │ │ │ ├── ic_radio.png │ │ │ │ │ └── ic_radio_filled.png │ │ │ │ ├── drawable-xhdpi │ │ │ │ │ ├── ic_menu.png │ │ │ │ │ ├── ic_phone.png │ │ │ │ │ ├── ic_radio.png │ │ │ │ │ └── ic_radio_filled.png │ │ │ │ ├── mipmap-xxhdpi │ │ │ │ │ ├── ic_car.png │ │ │ │ │ ├── ic_launcher.png │ │ │ │ │ ├── ic_default_user.png │ │ │ │ │ ├── ic_launcher_round.png │ │ │ │ │ └── ic_launcher_foreground.png │ │ │ │ ├── mipmap-xxxhdpi │ │ │ │ │ ├── ic_car.png │ │ │ │ │ ├── ic_launcher.png │ │ │ │ │ ├── ic_launcher_round.png │ │ │ │ │ └── ic_launcher_foreground.png │ │ │ │ ├── drawable-xxhdpi │ │ │ │ │ ├── ic_menu.png │ │ │ │ │ ├── ic_phone.png │ │ │ │ │ ├── ic_radio.png │ │ │ │ │ ├── ic_start.png │ │ │ │ │ ├── ic_finish.png │ │ │ │ │ └── ic_radio_filled.png │ │ │ │ ├── raw │ │ │ │ │ └── driver_notification.mp3 │ │ │ │ ├── anim │ │ │ │ │ ├── slide_down.xml │ │ │ │ │ └── slide_up.xml │ │ │ │ ├── mipmap-anydpi-v26 │ │ │ │ │ ├── ic_launcher.xml │ │ │ │ │ └── ic_launcher_round.xml │ │ │ │ ├── drawable │ │ │ │ │ ├── ic_arrow_forward_black_24dp.xml │ │ │ │ │ ├── ic_circle.xml │ │ │ │ │ ├── ic_add_circle.xml │ │ │ │ │ ├── ic_keyboard_arrow_up_black_24dp.xml │ │ │ │ │ ├── ic_check_default.xml │ │ │ │ │ ├── ic_star_black_24dp.xml │ │ │ │ │ ├── ic_credit_card_black_24dp.xml │ │ │ │ │ ├── ic_circle_filled.xml │ │ │ │ │ ├── ic_check_circle_black_24dp.xml │ │ │ │ │ ├── ic_person_black_24dp.xml │ │ │ │ │ ├── ic_email_black_24dp.xml │ │ │ │ │ ├── ic_location_on_grey_24dp.xml │ │ │ │ │ ├── ic_location_on_primary_24dp.xml │ │ │ │ │ ├── ic_vpn_key_black_24dp.xml │ │ │ │ │ ├── ic_cancel_black_24dp.xml │ │ │ │ │ ├── ic_exit_to_app_black_24dp.xml │ │ │ │ │ ├── ic_map_black_24dp.xml │ │ │ │ │ ├── ic_call_black_24dp.xml │ │ │ │ │ ├── ic_attach_money_black_24dp.xml │ │ │ │ │ ├── ic_sentiment_dissatisfied_black_24dp.xml │ │ │ │ │ ├── ic_visa.xml │ │ │ │ │ ├── ic_chip.xml │ │ │ │ │ ├── ic_type_2.xml │ │ │ │ │ ├── ic_type_3.xml │ │ │ │ │ ├── shadow.xml │ │ │ │ │ ├── ic_type_4.xml │ │ │ │ │ └── ic_type_1.xml │ │ │ │ ├── layout │ │ │ │ │ ├── activity_authentication.xml │ │ │ │ │ ├── activity_add_payment.xml │ │ │ │ │ ├── item_marker.xml │ │ │ │ │ ├── item_payout.xml │ │ │ │ │ ├── dialog_card.xml │ │ │ │ │ ├── item_type.xml │ │ │ │ │ ├── activity_payment.xml │ │ │ │ │ ├── nav_header_main.xml │ │ │ │ │ ├── activity_map_driver.xml │ │ │ │ │ ├── activity_map_customer.xml │ │ │ │ │ ├── activity_driver_choose_type.xml │ │ │ │ │ ├── fragment_menu.xml │ │ │ │ │ ├── fragment_registration.xml │ │ │ │ │ ├── fragment_login.xml │ │ │ │ │ ├── activity_history.xml │ │ │ │ │ ├── add_payment_content.xml │ │ │ │ │ ├── activity_payout.xml │ │ │ │ │ ├── dialog_ride_review.xml │ │ │ │ │ ├── activity_customer_settings.xml │ │ │ │ │ ├── activity_details.xml │ │ │ │ │ ├── item_history.xml │ │ │ │ │ ├── item__card_request.xml │ │ │ │ │ ├── item_card.xml │ │ │ │ │ └── activity_driver_settings.xml │ │ │ │ ├── menu │ │ │ │ │ ├── main.xml │ │ │ │ │ ├── driver_main.xml │ │ │ │ │ └── customer_main.xml │ │ │ │ ├── values-w820dp │ │ │ │ │ └── dimens.xml │ │ │ │ └── drawable-anydpi │ │ │ │ │ └── ic_phone.xml │ │ │ ├── ic_email-web.png │ │ │ ├── ic_pickup-web.png │ │ │ ├── ic_launcher-web.png │ │ │ ├── ic_password-web.png │ │ │ ├── ic_default_user-web.png │ │ │ ├── ic_launcher-playstore.png │ │ │ ├── java │ │ │ │ └── com │ │ │ │ │ └── simcoder │ │ │ │ │ └── uber │ │ │ │ │ ├── Objects │ │ │ │ │ ├── LocationObject.java │ │ │ │ │ ├── TypeObject.java │ │ │ │ │ ├── CardObject.java │ │ │ │ │ ├── PayoutObject.java │ │ │ │ │ ├── CustomerObject.java │ │ │ │ │ └── DriverObject.java │ │ │ │ │ ├── Utils │ │ │ │ │ ├── SendNotification.java │ │ │ │ │ ├── onAppKilled.java │ │ │ │ │ └── Utils.java │ │ │ │ │ ├── Adapters │ │ │ │ │ ├── PayoutAdapter.java │ │ │ │ │ ├── CardRequestAdapter.java │ │ │ │ │ ├── TypeAdapter.java │ │ │ │ │ └── CardAdapter.java │ │ │ │ │ ├── Login │ │ │ │ │ ├── AuthenticationActivity.java │ │ │ │ │ ├── DetailsActivity.java │ │ │ │ │ ├── RegisterFragment.java │ │ │ │ │ ├── LoginFragment.java │ │ │ │ │ └── LauncherActivity.java │ │ │ │ │ ├── Driver │ │ │ │ │ └── DriverChooseTypeActivity.java │ │ │ │ │ ├── Payment │ │ │ │ │ └── PaymentActivity.java │ │ │ │ │ └── History │ │ │ │ │ └── HistoryActivity.java │ │ │ └── AndroidManifest.xml │ │ └── release │ │ │ └── res │ │ │ └── values │ │ │ └── google_maps_api.xml │ ├── proguard-rules.pro │ └── build.gradle ├── gradle │ └── wrapper │ │ ├── gradle-wrapper.jar │ │ └── gradle-wrapper.properties ├── build.gradle ├── gradle.properties ├── gradlew.bat └── gradlew ├── images ├── mockup.png └── simcoder.png ├── .gitignore ├── Firebase_Functions ├── firebase.json └── index.html ├── realtime_database_rules.json ├── LICENSE └── README.md /android/settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app' 2 | -------------------------------------------------------------------------------- /images/mockup.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimCoderYoutube/UberClone/HEAD/images/mockup.png -------------------------------------------------------------------------------- /images/simcoder.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimCoderYoutube/UberClone/HEAD/images/simcoder.png -------------------------------------------------------------------------------- /android/app/src/main/ic_car-web.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimCoderYoutube/UberClone/HEAD/android/app/src/main/ic_car-web.png -------------------------------------------------------------------------------- /android/app/src/main/res/values/drawables.xml: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /android/app/src/main/ic_email-web.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimCoderYoutube/UberClone/HEAD/android/app/src/main/ic_email-web.png -------------------------------------------------------------------------------- /android/app/src/main/ic_pickup-web.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimCoderYoutube/UberClone/HEAD/android/app/src/main/ic_pickup-web.png -------------------------------------------------------------------------------- /android/app/src/main/ic_launcher-web.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimCoderYoutube/UberClone/HEAD/android/app/src/main/ic_launcher-web.png -------------------------------------------------------------------------------- /android/app/src/main/ic_password-web.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimCoderYoutube/UberClone/HEAD/android/app/src/main/ic_password-web.png -------------------------------------------------------------------------------- /android/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimCoderYoutube/UberClone/HEAD/android/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /android/app/src/main/ic_default_user-web.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimCoderYoutube/UberClone/HEAD/android/app/src/main/ic_default_user-web.png -------------------------------------------------------------------------------- /android/app/src/main/ic_launcher-playstore.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimCoderYoutube/UberClone/HEAD/android/app/src/main/ic_launcher-playstore.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-hdpi/ic_car.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimCoderYoutube/UberClone/HEAD/android/app/src/main/res/mipmap-hdpi/ic_car.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-mdpi/ic_car.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimCoderYoutube/UberClone/HEAD/android/app/src/main/res/mipmap-mdpi/ic_car.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xhdpi/ic_car.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimCoderYoutube/UberClone/HEAD/android/app/src/main/res/mipmap-xhdpi/ic_car.png -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-hdpi/ic_menu.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimCoderYoutube/UberClone/HEAD/android/app/src/main/res/drawable-hdpi/ic_menu.png -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-hdpi/ic_phone.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimCoderYoutube/UberClone/HEAD/android/app/src/main/res/drawable-hdpi/ic_phone.png -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-hdpi/ic_radio.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimCoderYoutube/UberClone/HEAD/android/app/src/main/res/drawable-hdpi/ic_radio.png -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-mdpi/ic_menu.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimCoderYoutube/UberClone/HEAD/android/app/src/main/res/drawable-mdpi/ic_menu.png -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-mdpi/ic_phone.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimCoderYoutube/UberClone/HEAD/android/app/src/main/res/drawable-mdpi/ic_phone.png -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-mdpi/ic_radio.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimCoderYoutube/UberClone/HEAD/android/app/src/main/res/drawable-mdpi/ic_radio.png -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-xhdpi/ic_menu.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimCoderYoutube/UberClone/HEAD/android/app/src/main/res/drawable-xhdpi/ic_menu.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxhdpi/ic_car.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimCoderYoutube/UberClone/HEAD/android/app/src/main/res/mipmap-xxhdpi/ic_car.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxxhdpi/ic_car.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimCoderYoutube/UberClone/HEAD/android/app/src/main/res/mipmap-xxxhdpi/ic_car.png -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-xhdpi/ic_phone.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimCoderYoutube/UberClone/HEAD/android/app/src/main/res/drawable-xhdpi/ic_phone.png -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-xhdpi/ic_radio.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimCoderYoutube/UberClone/HEAD/android/app/src/main/res/drawable-xhdpi/ic_radio.png -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-xxhdpi/ic_menu.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimCoderYoutube/UberClone/HEAD/android/app/src/main/res/drawable-xxhdpi/ic_menu.png -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-xxhdpi/ic_phone.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimCoderYoutube/UberClone/HEAD/android/app/src/main/res/drawable-xxhdpi/ic_phone.png -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-xxhdpi/ic_radio.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimCoderYoutube/UberClone/HEAD/android/app/src/main/res/drawable-xxhdpi/ic_radio.png -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-xxhdpi/ic_start.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimCoderYoutube/UberClone/HEAD/android/app/src/main/res/drawable-xxhdpi/ic_start.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimCoderYoutube/UberClone/HEAD/android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimCoderYoutube/UberClone/HEAD/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimCoderYoutube/UberClone/HEAD/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/raw/driver_notification.mp3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimCoderYoutube/UberClone/HEAD/android/app/src/main/res/raw/driver_notification.mp3 -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-xxhdpi/ic_finish.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimCoderYoutube/UberClone/HEAD/android/app/src/main/res/drawable-xxhdpi/ic_finish.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-hdpi/ic_default_user.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimCoderYoutube/UberClone/HEAD/android/app/src/main/res/mipmap-hdpi/ic_default_user.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-mdpi/ic_default_user.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimCoderYoutube/UberClone/HEAD/android/app/src/main/res/mipmap-mdpi/ic_default_user.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimCoderYoutube/UberClone/HEAD/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimCoderYoutube/UberClone/HEAD/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-hdpi/ic_radio_filled.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimCoderYoutube/UberClone/HEAD/android/app/src/main/res/drawable-hdpi/ic_radio_filled.png -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-mdpi/ic_radio_filled.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimCoderYoutube/UberClone/HEAD/android/app/src/main/res/drawable-mdpi/ic_radio_filled.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimCoderYoutube/UberClone/HEAD/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimCoderYoutube/UberClone/HEAD/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xhdpi/ic_default_user.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimCoderYoutube/UberClone/HEAD/android/app/src/main/res/mipmap-xhdpi/ic_default_user.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxhdpi/ic_default_user.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimCoderYoutube/UberClone/HEAD/android/app/src/main/res/mipmap-xxhdpi/ic_default_user.png -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-xhdpi/ic_radio_filled.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimCoderYoutube/UberClone/HEAD/android/app/src/main/res/drawable-xhdpi/ic_radio_filled.png -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-xxhdpi/ic_radio_filled.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimCoderYoutube/UberClone/HEAD/android/app/src/main/res/drawable-xxhdpi/ic_radio_filled.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimCoderYoutube/UberClone/HEAD/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimCoderYoutube/UberClone/HEAD/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimCoderYoutube/UberClone/HEAD/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimCoderYoutube/UberClone/HEAD/android/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimCoderYoutube/UberClone/HEAD/android/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimCoderYoutube/UberClone/HEAD/android/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimCoderYoutube/UberClone/HEAD/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimCoderYoutube/UberClone/HEAD/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png -------------------------------------------------------------------------------- /android/app/src/main/res/values/ic_launcher_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #131313 4 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | *.iml 2 | android/.gradle 3 | android/local.properties 4 | android/.idea/workspace.xml 5 | android/.idea/libraries 6 | android/.DS_Store 7 | android/build 8 | android/captures 9 | android/.externalNativeBuild 10 | android/app/build -------------------------------------------------------------------------------- /android/app/src/main/res/anim/slide_down.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 8 | -------------------------------------------------------------------------------- /android/app/src/main/res/anim/slide_up.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 8 | -------------------------------------------------------------------------------- /android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Sat Jul 11 14:34:00 WEST 2020 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-6.7.1-all.zip 7 | -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /android/app/src/main/res/drawable/ic_arrow_forward_black_24dp.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /android/app/src/main/res/layout/activity_authentication.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | -------------------------------------------------------------------------------- /android/app/src/main/res/menu/main.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 9 | 10 | -------------------------------------------------------------------------------- /android/app/src/main/res/values-w820dp/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 64dp 6 | 7 | -------------------------------------------------------------------------------- /Firebase_Functions/firebase.json: -------------------------------------------------------------------------------- 1 | { 2 | "functions": { 3 | "predeploy": [ 4 | ] 5 | }, 6 | "hosting": { 7 | "public": "public", 8 | "ignore": [ 9 | "firebase.json", 10 | "**/.*", 11 | "**/node_modules/**" 12 | ], 13 | "rewrites": [ 14 | { 15 | "source": "/createStripeConnectAccount", 16 | "function": "createStripeConnectAccount" 17 | } 18 | ] 19 | } 20 | } -------------------------------------------------------------------------------- /android/app/src/main/res/drawable/ic_circle.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /android/app/src/main/res/drawable/ic_add_circle.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /android/app/src/main/res/drawable/ic_keyboard_arrow_up_black_24dp.xml: -------------------------------------------------------------------------------- 1 | 6 | 9 | 10 | -------------------------------------------------------------------------------- /android/app/src/main/res/drawable/ic_check_default.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /android/app/src/main/res/drawable/ic_star_black_24dp.xml: -------------------------------------------------------------------------------- 1 | 6 | 9 | 10 | -------------------------------------------------------------------------------- /android/app/src/main/res/drawable/ic_credit_card_black_24dp.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /android/app/src/main/res/drawable/ic_circle_filled.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /android/app/src/main/res/drawable/ic_check_circle_black_24dp.xml: -------------------------------------------------------------------------------- 1 | 6 | 9 | 10 | -------------------------------------------------------------------------------- /android/app/src/main/res/drawable/ic_person_black_24dp.xml: -------------------------------------------------------------------------------- 1 | 6 | 9 | 10 | -------------------------------------------------------------------------------- /android/app/src/main/res/drawable/ic_email_black_24dp.xml: -------------------------------------------------------------------------------- 1 | 6 | 9 | 10 | -------------------------------------------------------------------------------- /android/app/src/main/res/drawable/ic_location_on_grey_24dp.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /android/app/src/main/res/drawable/ic_location_on_primary_24dp.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /android/app/src/main/res/drawable/ic_vpn_key_black_24dp.xml: -------------------------------------------------------------------------------- 1 | 6 | 9 | 10 | -------------------------------------------------------------------------------- /android/app/src/main/res/drawable/ic_cancel_black_24dp.xml: -------------------------------------------------------------------------------- 1 | 6 | 9 | 10 | -------------------------------------------------------------------------------- /android/app/src/main/res/drawable/ic_exit_to_app_black_24dp.xml: -------------------------------------------------------------------------------- 1 | 6 | 9 | 10 | -------------------------------------------------------------------------------- /android/app/src/main/res/drawable/ic_map_black_24dp.xml: -------------------------------------------------------------------------------- 1 | 6 | 9 | 10 | -------------------------------------------------------------------------------- /android/app/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #696969 4 | #222A33 5 | #00BCD4 6 | #007285 7 | #F44336 8 | #000000 9 | #707070 10 | #C2C2C2 11 | #ECECEC 12 | #FFFFFF 13 | 14 | 15 | -------------------------------------------------------------------------------- /android/app/src/main/res/values/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 16dp 4 | 16dp 5 | 16dp 6 | 160dp 7 | 5dp 8 | 9 | 10 | 12 | 13 | -------------------------------------------------------------------------------- /android/app/src/main/res/drawable/ic_call_black_24dp.xml: -------------------------------------------------------------------------------- 1 | 6 | 9 | 10 | -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-anydpi/ic_phone.xml: -------------------------------------------------------------------------------- 1 | 8 | 11 | 12 | -------------------------------------------------------------------------------- /android/app/src/main/res/drawable/ic_attach_money_black_24dp.xml: -------------------------------------------------------------------------------- 1 | 6 | 9 | 10 | -------------------------------------------------------------------------------- /android/build.gradle: -------------------------------------------------------------------------------- 1 | // Top-level build file where you can add configuration options common to all sub-projects/modules. 2 | 3 | buildscript { 4 | repositories { 5 | jcenter() 6 | google() 7 | maven { url 'https://plugins.gradle.org/m2/'} 8 | 9 | } 10 | dependencies { 11 | classpath 'com.android.tools.build:gradle:4.2.1' 12 | classpath 'com.google.gms:google-services:4.3.8' 13 | classpath 'gradle.plugin.com.onesignal:onesignal-gradle-plugin:0.12.5' 14 | } 15 | } 16 | 17 | 18 | allprojects { 19 | repositories { 20 | jcenter() 21 | google() 22 | maven { url "https://jitpack.io" } 23 | } 24 | } 25 | 26 | task clean(type: Delete) { 27 | delete rootProject.buildDir 28 | } 29 | -------------------------------------------------------------------------------- /android/app/src/main/res/menu/driver_main.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 11 | 15 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /android/app/src/main/res/menu/customer_main.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 11 | 15 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /android/gradle.properties: -------------------------------------------------------------------------------- 1 | # Project-wide Gradle settings. 2 | 3 | # IDE (e.g. Android Studio) users: 4 | # Gradle settings configured through the IDE *will override* 5 | # any settings specified in this file. 6 | 7 | # For more details on how to configure your build environment visit 8 | # http://www.gradle.org/docs/current/userguide/build_environment.html 9 | 10 | # Specifies the JVM arguments used for the daemon process. 11 | # The setting is particularly useful for tweaking memory settings. 12 | android.enableJetifier=true 13 | android.useAndroidX=true 14 | org.gradle.jvmargs=-Xmx1536m 15 | 16 | # When configured, Gradle will run in incubating parallel mode. 17 | # This option should only be used with decoupled projects. More details, visit 18 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects 19 | # org.gradle.parallel=true 20 | -------------------------------------------------------------------------------- /android/app/src/main/res/layout/activity_add_payment.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /android/app/src/main/res/drawable/ic_sentiment_dissatisfied_black_24dp.xml: -------------------------------------------------------------------------------- 1 | 6 | 9 | 12 | 15 | 16 | -------------------------------------------------------------------------------- /android/app/src/release/res/values/google_maps_api.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | YOUR_KEY_HERE 21 | 22 | 23 | -------------------------------------------------------------------------------- /realtime_database_rules.json: -------------------------------------------------------------------------------- 1 | { 2 | "rules": { 3 | "Users": { 4 | ".read": "auth != null", 5 | "Customers" : { 6 | "$uid" : { 7 | ".write": "$uid === auth.uid" 8 | } 9 | }, 10 | "Drivers" : { 11 | "$uid" : { 12 | ".write": "$uid === auth.uid", 13 | "rating": { 14 | ".write": "auth != null" 15 | }, 16 | "payout_amount": { 17 | ".write": false 18 | } 19 | } 20 | }, 21 | }, 22 | "ride_info" : { 23 | ".read": "auth != null", 24 | ".write": "auth != null" 25 | }, 26 | "driversWorking" : { 27 | ".read": "auth != null", 28 | ".write": "auth != null" 29 | }, 30 | "customer_requests" : { 31 | ".read": "auth != null", 32 | ".write": true 33 | }, 34 | "stripe_customers" : { 35 | ".read": false, 36 | ".write": false 37 | } 38 | 39 | 40 | } 41 | } -------------------------------------------------------------------------------- /android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 13 | 14 | 21 | 22 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2018 SimCoder 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /android/app/src/main/java/com/simcoder/uber/Objects/LocationObject.java: -------------------------------------------------------------------------------- 1 | package com.simcoder.uber.Objects; 2 | 3 | import com.google.android.gms.maps.model.LatLng; 4 | 5 | /** 6 | * Location Object used to know pickup and destination location 7 | */ 8 | public class LocationObject { 9 | 10 | private LatLng coordinates; 11 | private String name = ""; 12 | 13 | /** 14 | * LocationObject constructor 15 | * @param coordinates - latLng of the location 16 | * @param name - name of the location 17 | */ 18 | public LocationObject(LatLng coordinates, String name){ 19 | this.coordinates = coordinates; 20 | this.name = name; 21 | } 22 | 23 | /** 24 | * LocationObject constructor 25 | * Creates an empty object 26 | */ 27 | public LocationObject(){ 28 | } 29 | 30 | 31 | public LatLng getCoordinates() { 32 | return coordinates; 33 | } 34 | public void setCoordinates(LatLng coordinates) { 35 | this.coordinates = coordinates; 36 | } 37 | 38 | public String getName() { 39 | return name; 40 | } 41 | public void setName(String name) { 42 | this.name = name; 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /android/app/src/main/java/com/simcoder/uber/Objects/TypeObject.java: -------------------------------------------------------------------------------- 1 | package com.simcoder.uber.Objects; 2 | 3 | import android.graphics.drawable.Drawable; 4 | 5 | 6 | /** 7 | * Type of car object, contains the info of each type of car 8 | * to be used by the type adapter. 9 | */ 10 | public class TypeObject { 11 | 12 | String name, id; 13 | Drawable image; 14 | int people; 15 | 16 | /** 17 | * TypeObject constructor 18 | * @param id - id of the type (type_1, type_2,....) 19 | * @param name - name of the type 20 | * @param image - image of the type as drawable 21 | * @param people . ammount of people this type handles 22 | */ 23 | public TypeObject(String id, String name, Drawable image, int people){ 24 | this.id = id; 25 | this.name = name; 26 | this.image = image; 27 | this.people = people; 28 | } 29 | 30 | public String getId() { 31 | return id; 32 | } 33 | 34 | public Drawable getImage() { 35 | return image; 36 | } 37 | 38 | public String getName() { 39 | return name; 40 | } 41 | 42 | public int getPeople() { 43 | return people; 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /android/app/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in C:\Users\manel\AppData\Local\Android\sdk1/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the proguardFiles 5 | # directive in build.gradle. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | 12 | # If your project uses WebView with JS, uncomment the following 13 | # and specify the fully qualified class name to the JavaScript interface 14 | # class: 15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 16 | # public *; 17 | #} 18 | 19 | # Uncomment this to preserve the line number information for 20 | # debugging stack traces. 21 | #-keepattributes SourceFile,LineNumberTable 22 | 23 | # If you keep the line number information, uncomment this to 24 | # hide the original source file name. 25 | #-renamesourcefileattribute SourceFile 26 | -dontwarn com.firebase.** 27 | -keep class com.firebase.** { *; } 28 | -keep interface com.firebase.** { *; } 29 | -keepclassmembers class * implements javax.net.ssl.SSLSocketFactory { 30 | private javax.net.ssl.SSLSocketFactory delegate; 31 | } -------------------------------------------------------------------------------- /android/app/src/main/java/com/simcoder/uber/Utils/SendNotification.java: -------------------------------------------------------------------------------- 1 | package com.simcoder.uber.Utils; 2 | 3 | import com.onesignal.OneSignal; 4 | 5 | import org.json.JSONException; 6 | import org.json.JSONObject; 7 | 8 | /** 9 | * Created by simco on 3/23/2018. 10 | */ 11 | 12 | /* 13 | * this class handles the sending of notifications to a specific user with oneSignal 14 | */ 15 | public class SendNotification { 16 | 17 | /** 18 | * @param message - body of the notification, 19 | * heading - header of the notification 20 | * sendUid - user to send the notification to 21 | * @param heading - title of notification 22 | * @param notificationKey - notification Key of user 23 | */ 24 | public SendNotification(final String message, final String heading, final String notificationKey) { 25 | 26 | try { 27 | JSONObject notificationContent = new JSONObject("{'contents': {'en': '" + message + "'}," + 28 | "'include_player_ids': ['" + notificationKey + "'], " + 29 | "'headings': {'en': '" + heading + "'}}"); 30 | OneSignal.postNotification(notificationContent, null); 31 | } catch (JSONException e) { 32 | e.printStackTrace(); 33 | } 34 | 35 | } 36 | 37 | } 38 | -------------------------------------------------------------------------------- /android/app/src/main/res/layout/item_marker.xml: -------------------------------------------------------------------------------- 1 | 15 | 16 | 17 | 27 | 28 | 29 | 38 | 39 | -------------------------------------------------------------------------------- /android/app/src/main/res/layout/item_payout.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 12 | 20 | 24 | 30 | 31 | 35 | -------------------------------------------------------------------------------- /android/app/src/main/java/com/simcoder/uber/Utils/onAppKilled.java: -------------------------------------------------------------------------------- 1 | package com.simcoder.uber.Utils; 2 | 3 | import android.app.Service; 4 | import android.content.Intent; 5 | import android.os.IBinder; 6 | 7 | import com.firebase.geofire.GeoFire; 8 | import com.google.firebase.auth.FirebaseAuth; 9 | import com.google.firebase.database.DatabaseReference; 10 | import com.google.firebase.database.FirebaseDatabase; 11 | 12 | /** 13 | * On App Killed disconnect driver from the database 14 | */ 15 | public class onAppKilled extends Service { 16 | 17 | /** 18 | * Disconnects driver by removing the driversWorking driver id from the database 19 | */ 20 | void disconnectDriver(){ 21 | DatabaseReference refWorking = FirebaseDatabase.getInstance().getReference("driversWorking"); 22 | GeoFire geoFireWorking = new GeoFire(refWorking); 23 | geoFireWorking.removeLocation(FirebaseAuth.getInstance().getCurrentUser().getUid()); 24 | } 25 | @Override 26 | public IBinder onBind(Intent intent) { 27 | return null; 28 | } 29 | 30 | @Override 31 | public int onStartCommand(Intent intent, int flags, int startId) { 32 | return START_NOT_STICKY; 33 | } 34 | 35 | @Override 36 | public void onDestroy() { 37 | super.onDestroy(); 38 | } 39 | 40 | @Override 41 | public void onTaskRemoved(Intent rootIntent) { 42 | disconnectDriver(); 43 | } 44 | } 45 | 46 | -------------------------------------------------------------------------------- /android/app/src/main/res/layout/dialog_card.xml: -------------------------------------------------------------------------------- 1 | 2 | 10 | 11 |