├── app ├── .gitignore ├── src │ ├── main │ │ ├── res │ │ │ ├── drawable │ │ │ │ ├── chat.png │ │ │ │ ├── post.png │ │ │ │ ├── doodle.png │ │ │ │ ├── icon01.jpg │ │ │ │ ├── splash.png │ │ │ │ ├── about_us.png │ │ │ │ ├── chat_list.png │ │ │ │ ├── setting.png │ │ │ │ ├── wallpaper.png │ │ │ │ ├── home_screen.png │ │ │ │ ├── cure_profile.png │ │ │ │ ├── github_profile.jpg │ │ │ │ ├── post_fragment.png │ │ │ │ ├── welcome_screen.png │ │ │ │ ├── your_profile.png │ │ │ │ ├── post_bottom_sheet.png │ │ │ │ ├── ic_outline_send_24.xml │ │ │ │ ├── ic_down.xml │ │ │ │ ├── button.xml │ │ │ │ ├── ic_baseline_message_24.xml │ │ │ │ ├── ic_round_add_24.xml │ │ │ │ ├── ic_baseline_edit_12.xml │ │ │ │ ├── ic_baseline_edit_24.xml │ │ │ │ ├── ic_outline_add_circle_outline.xml │ │ │ │ ├── ic_up.xml │ │ │ │ ├── ic_more_dots.xml │ │ │ │ ├── ic_round_favorite_24.xml │ │ │ │ ├── ic_outline_thumb_up_alt_24.xml │ │ │ │ ├── ic_round_perm_identity_125.xml │ │ │ │ ├── ic_camera.xml │ │ │ │ ├── ic_baseline_thumb_up_alt_24.xml │ │ │ │ ├── ic_call.xml │ │ │ │ ├── ic_round_star_24.xml │ │ │ │ ├── ic_baseline_call_.xml │ │ │ │ ├── ic_linkedin.xml │ │ │ │ ├── ic_twitter.xml │ │ │ │ ├── ic_male.xml │ │ │ │ ├── ic_female.xml │ │ │ │ ├── ic_github.xml │ │ │ │ └── ic_launcher_background.xml │ │ │ ├── mipmap-hdpi │ │ │ │ ├── app_icon.png │ │ │ │ ├── ic_launcher.png │ │ │ │ ├── app_icon_round.png │ │ │ │ ├── ic_launcher_round.png │ │ │ │ └── app_icon_foreground.png │ │ │ ├── mipmap-mdpi │ │ │ │ ├── app_icon.png │ │ │ │ ├── ic_launcher.png │ │ │ │ ├── app_icon_round.png │ │ │ │ ├── ic_launcher_round.png │ │ │ │ └── app_icon_foreground.png │ │ │ ├── mipmap-xhdpi │ │ │ │ ├── app_icon.png │ │ │ │ ├── ic_launcher.png │ │ │ │ ├── app_icon_round.png │ │ │ │ ├── ic_launcher_round.png │ │ │ │ └── app_icon_foreground.png │ │ │ ├── mipmap-xxhdpi │ │ │ │ ├── app_icon.png │ │ │ │ ├── ic_launcher.png │ │ │ │ ├── app_icon_round.png │ │ │ │ ├── app_icon_foreground.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-xxxhdpi │ │ │ │ ├── app_icon.png │ │ │ │ ├── ic_launcher.png │ │ │ │ ├── app_icon_round.png │ │ │ │ ├── ic_launcher_round.png │ │ │ │ └── app_icon_foreground.png │ │ │ ├── values │ │ │ │ ├── app_icon_background.xml │ │ │ │ ├── preloaded_fonts.xml │ │ │ │ ├── colors.xml │ │ │ │ ├── styles.xml │ │ │ │ ├── font_certs.xml │ │ │ │ └── strings.xml │ │ │ ├── mipmap-anydpi-v26 │ │ │ │ ├── app_icon.xml │ │ │ │ ├── app_icon_round.xml │ │ │ │ ├── ic_launcher.xml │ │ │ │ └── ic_launcher_round.xml │ │ │ ├── font │ │ │ │ └── amaranth_bold_italic.xml │ │ │ ├── layout │ │ │ │ ├── dialog_image_layout.xml │ │ │ │ ├── activity_cure_profile.xml │ │ │ │ ├── activity_profile.xml │ │ │ │ ├── fragment_cure.xml │ │ │ │ ├── activity_track_your.xml │ │ │ │ ├── activity_splash.xml │ │ │ │ ├── fragment_chat.xml │ │ │ │ ├── activity_block.xml │ │ │ │ ├── fragment_post.xml │ │ │ │ ├── item_block.xml │ │ │ │ ├── item_track.xml │ │ │ │ ├── message_list_you_image.xml │ │ │ │ ├── message_list_other_image.xml │ │ │ │ ├── activity_main_screen.xml │ │ │ │ ├── bottom_sheet.xml │ │ │ │ ├── chat_list.xml │ │ │ │ ├── cure_list.xml │ │ │ │ ├── activity_add_post.xml │ │ │ │ ├── post_item.xml │ │ │ │ ├── activity_chat.xml │ │ │ │ ├── message_list_other.xml │ │ │ │ ├── message_list.xml │ │ │ │ ├── activity_login_screen.xml │ │ │ │ ├── activity_setting.xml │ │ │ │ ├── dilaog_layout.xml │ │ │ │ ├── post_list.xml │ │ │ │ ├── post_list_like.xml │ │ │ │ ├── activity_editprofile.xml │ │ │ │ └── activity_about_us.xml │ │ │ ├── menu │ │ │ │ ├── main_menu.xml │ │ │ │ └── chat_menu.xml │ │ │ └── drawable-v24 │ │ │ │ └── ic_launcher_foreground.xml │ │ ├── app_icon-playstore.png │ │ ├── java │ │ │ └── com │ │ │ │ └── vatsal │ │ │ │ └── kesarwani │ │ │ │ └── therapy │ │ │ │ ├── Model │ │ │ │ ├── ChatModel.java │ │ │ │ ├── TrackModel.java │ │ │ │ ├── CureModel.java │ │ │ │ ├── AppConfig.java │ │ │ │ ├── MessageModel.java │ │ │ │ └── PostModel.java │ │ │ │ ├── Adapter │ │ │ │ ├── MyAdapter.java │ │ │ │ ├── TrackAdapter.java │ │ │ │ ├── CureAdapter.java │ │ │ │ └── MessageAdapter.java │ │ │ │ ├── Utility │ │ │ │ ├── Util.java │ │ │ │ ├── App.java │ │ │ │ └── AppVisibilityDetector.java │ │ │ │ ├── Activity │ │ │ │ ├── AboutUs.java │ │ │ │ ├── TrackYourActivity.java │ │ │ │ ├── Splash.java │ │ │ │ ├── MainScreen.java │ │ │ │ └── BlockActivity.java │ │ │ │ └── Fragment │ │ │ │ └── ChatFragment.java │ │ └── AndroidManifest.xml │ ├── test │ │ └── java │ │ │ └── com │ │ │ └── vatsal │ │ │ └── kesarwani │ │ │ └── therapy │ │ │ └── ExampleUnitTest.java │ └── androidTest │ │ └── java │ │ └── com │ │ └── vatsal │ │ └── kesarwani │ │ └── therapy │ │ └── ExampleInstrumentedTest.java ├── proguard-rules.pro ├── google-services.json └── build.gradle ├── settings.gradle ├── AppImages ├── clone.png ├── fork.png ├── star.png └── Change_branch.png ├── gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── .idea ├── vcs.xml ├── render.experimental.xml ├── runConfigurations.xml ├── gradle.xml ├── jarRepositories.xml ├── misc.xml └── codeStyles │ └── Project.xml ├── .gitignore ├── gradle.properties ├── gradlew.bat └── gradlew /app/.gitignore: -------------------------------------------------------------------------------- 1 | /build -------------------------------------------------------------------------------- /settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app' 2 | rootProject.name = "Therapy" -------------------------------------------------------------------------------- /AppImages/clone.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vatsalkesarwani12/Heal-O-Chat/HEAD/AppImages/clone.png -------------------------------------------------------------------------------- /AppImages/fork.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vatsalkesarwani12/Heal-O-Chat/HEAD/AppImages/fork.png -------------------------------------------------------------------------------- /AppImages/star.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vatsalkesarwani12/Heal-O-Chat/HEAD/AppImages/star.png -------------------------------------------------------------------------------- /AppImages/Change_branch.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vatsalkesarwani12/Heal-O-Chat/HEAD/AppImages/Change_branch.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/chat.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vatsalkesarwani12/Heal-O-Chat/HEAD/app/src/main/res/drawable/chat.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/post.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vatsalkesarwani12/Heal-O-Chat/HEAD/app/src/main/res/drawable/post.png -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vatsalkesarwani12/Heal-O-Chat/HEAD/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /app/src/main/app_icon-playstore.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vatsalkesarwani12/Heal-O-Chat/HEAD/app/src/main/app_icon-playstore.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/doodle.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vatsalkesarwani12/Heal-O-Chat/HEAD/app/src/main/res/drawable/doodle.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/icon01.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vatsalkesarwani12/Heal-O-Chat/HEAD/app/src/main/res/drawable/icon01.jpg -------------------------------------------------------------------------------- /app/src/main/res/drawable/splash.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vatsalkesarwani12/Heal-O-Chat/HEAD/app/src/main/res/drawable/splash.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/about_us.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vatsalkesarwani12/Heal-O-Chat/HEAD/app/src/main/res/drawable/about_us.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/chat_list.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vatsalkesarwani12/Heal-O-Chat/HEAD/app/src/main/res/drawable/chat_list.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/setting.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vatsalkesarwani12/Heal-O-Chat/HEAD/app/src/main/res/drawable/setting.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/wallpaper.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vatsalkesarwani12/Heal-O-Chat/HEAD/app/src/main/res/drawable/wallpaper.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/home_screen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vatsalkesarwani12/Heal-O-Chat/HEAD/app/src/main/res/drawable/home_screen.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/app_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vatsalkesarwani12/Heal-O-Chat/HEAD/app/src/main/res/mipmap-hdpi/app_icon.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-mdpi/app_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vatsalkesarwani12/Heal-O-Chat/HEAD/app/src/main/res/mipmap-mdpi/app_icon.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/cure_profile.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vatsalkesarwani12/Heal-O-Chat/HEAD/app/src/main/res/drawable/cure_profile.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/github_profile.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vatsalkesarwani12/Heal-O-Chat/HEAD/app/src/main/res/drawable/github_profile.jpg -------------------------------------------------------------------------------- /app/src/main/res/drawable/post_fragment.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vatsalkesarwani12/Heal-O-Chat/HEAD/app/src/main/res/drawable/post_fragment.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/welcome_screen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vatsalkesarwani12/Heal-O-Chat/HEAD/app/src/main/res/drawable/welcome_screen.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/your_profile.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vatsalkesarwani12/Heal-O-Chat/HEAD/app/src/main/res/drawable/your_profile.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vatsalkesarwani12/Heal-O-Chat/HEAD/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vatsalkesarwani12/Heal-O-Chat/HEAD/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/app_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vatsalkesarwani12/Heal-O-Chat/HEAD/app/src/main/res/mipmap-xhdpi/app_icon.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/app_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vatsalkesarwani12/Heal-O-Chat/HEAD/app/src/main/res/mipmap-xxhdpi/app_icon.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxxhdpi/app_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vatsalkesarwani12/Heal-O-Chat/HEAD/app/src/main/res/mipmap-xxxhdpi/app_icon.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vatsalkesarwani12/Heal-O-Chat/HEAD/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vatsalkesarwani12/Heal-O-Chat/HEAD/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/post_bottom_sheet.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vatsalkesarwani12/Heal-O-Chat/HEAD/app/src/main/res/drawable/post_bottom_sheet.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/app_icon_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vatsalkesarwani12/Heal-O-Chat/HEAD/app/src/main/res/mipmap-hdpi/app_icon_round.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-mdpi/app_icon_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vatsalkesarwani12/Heal-O-Chat/HEAD/app/src/main/res/mipmap-mdpi/app_icon_round.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/app_icon_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vatsalkesarwani12/Heal-O-Chat/HEAD/app/src/main/res/mipmap-xhdpi/app_icon_round.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/app_icon_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vatsalkesarwani12/Heal-O-Chat/HEAD/app/src/main/res/mipmap-xxhdpi/app_icon_round.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vatsalkesarwani12/Heal-O-Chat/HEAD/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vatsalkesarwani12/Heal-O-Chat/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/vatsalkesarwani12/Heal-O-Chat/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/vatsalkesarwani12/Heal-O-Chat/HEAD/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxxhdpi/app_icon_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vatsalkesarwani12/Heal-O-Chat/HEAD/app/src/main/res/mipmap-xxxhdpi/app_icon_round.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/app_icon_foreground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vatsalkesarwani12/Heal-O-Chat/HEAD/app/src/main/res/mipmap-hdpi/app_icon_foreground.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-mdpi/app_icon_foreground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vatsalkesarwani12/Heal-O-Chat/HEAD/app/src/main/res/mipmap-mdpi/app_icon_foreground.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/app_icon_foreground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vatsalkesarwani12/Heal-O-Chat/HEAD/app/src/main/res/mipmap-xhdpi/app_icon_foreground.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/app_icon_foreground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vatsalkesarwani12/Heal-O-Chat/HEAD/app/src/main/res/mipmap-xxhdpi/app_icon_foreground.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vatsalkesarwani12/Heal-O-Chat/HEAD/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vatsalkesarwani12/Heal-O-Chat/HEAD/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxxhdpi/app_icon_foreground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vatsalkesarwani12/Heal-O-Chat/HEAD/app/src/main/res/mipmap-xxxhdpi/app_icon_foreground.png -------------------------------------------------------------------------------- /app/src/main/res/values/app_icon_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #FFFFFF 4 | -------------------------------------------------------------------------------- /.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /.idea/render.experimental.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 6 | -------------------------------------------------------------------------------- /app/src/main/res/values/preloaded_fonts.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | @font/amaranth_bold_italic 5 | 6 | 7 | -------------------------------------------------------------------------------- /app/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #129A7F 4 | #129077 5 | #03DAC5 6 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | *.iml 2 | .gradle 3 | /local.properties 4 | /.idea/caches 5 | /.idea/libraries 6 | /.idea/modules.xml 7 | /.idea/workspace.xml 8 | /.idea/navEditor.xml 9 | /.idea/assetWizardSettings.xml 10 | .DS_Store 11 | /build 12 | /captures 13 | .externalNativeBuild 14 | .cxx 15 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Thu Jul 16 16:43:54 IST 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.1.1-all.zip 7 | -------------------------------------------------------------------------------- /app/src/main/res/mipmap-anydpi-v26/app_icon.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /app/src/main/res/mipmap-anydpi-v26/app_icon_round.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /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/java/com/vatsal/kesarwani/therapy/Model/ChatModel.java: -------------------------------------------------------------------------------- 1 | package com.vatsal.kesarwani.therapy.Model; 2 | 3 | public class ChatModel { 4 | private String mail; 5 | 6 | public ChatModel(String mail) { 7 | this.mail = mail; 8 | } 9 | 10 | public String getMail() { 11 | return mail; 12 | } 13 | 14 | public void setMail(String mail) { 15 | this.mail = mail; 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_outline_send_24.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_down.xml: -------------------------------------------------------------------------------- 1 | 7 | 10 | 11 | -------------------------------------------------------------------------------- /app/src/main/res/font/amaranth_bold_italic.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/button.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 8 | 9 | 10 | 13 | 14 | 15 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_baseline_message_24.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_round_add_24.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_baseline_edit_12.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_baseline_edit_24.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_outline_add_circle_outline.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /app/src/test/java/com/vatsal/kesarwani/therapy/ExampleUnitTest.java: -------------------------------------------------------------------------------- 1 | package com.vatsal.kesarwani.therapy; 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 | } -------------------------------------------------------------------------------- /app/src/main/res/layout/dialog_image_layout.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 13 | 14 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_up.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_more_dots.xml: -------------------------------------------------------------------------------- 1 | 7 | 10 | 11 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_round_favorite_24.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_outline_thumb_up_alt_24.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_round_perm_identity_125.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /.idea/runConfigurations.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 11 | 12 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_camera.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_baseline_thumb_up_alt_24.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_call.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_round_star_24.xml: -------------------------------------------------------------------------------- 1 | 7 | 10 | 11 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_baseline_call_.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /app/src/main/res/layout/activity_cure_profile.xml: -------------------------------------------------------------------------------- 1 | 2 | 10 | 11 | 13 | 14 | 16 | 17 | -------------------------------------------------------------------------------- /app/src/main/res/menu/main_menu.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 11 | 12 | 17 | 18 | 23 | 24 | 29 | 30 | -------------------------------------------------------------------------------- /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 -------------------------------------------------------------------------------- /.idea/gradle.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 20 | 21 | -------------------------------------------------------------------------------- /app/src/main/res/layout/activity_profile.xml: -------------------------------------------------------------------------------- 1 | 2 | 10 | 11 | 13 | 14 | 15 | 16 | 22 | 23 | -------------------------------------------------------------------------------- /app/src/androidTest/java/com/vatsal/kesarwani/therapy/ExampleInstrumentedTest.java: -------------------------------------------------------------------------------- 1 | package com.vatsal.kesarwani.therapy; 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.vatsal.kesarwani.therapy", appContext.getPackageName()); 25 | } 26 | } -------------------------------------------------------------------------------- /app/src/main/java/com/vatsal/kesarwani/therapy/Model/TrackModel.java: -------------------------------------------------------------------------------- 1 | package com.vatsal.kesarwani.therapy.Model; 2 | 3 | public class TrackModel { 4 | private String time; 5 | private String trackName; 6 | 7 | public TrackModel() { 8 | } 9 | 10 | public TrackModel(String time, String trackName) { 11 | this.time = time; 12 | this.trackName = trackName; 13 | } 14 | 15 | public String getTime() { 16 | return time; 17 | } 18 | 19 | public void setTime(String time) { 20 | this.time = time; 21 | } 22 | 23 | public String getTrackName() { 24 | return trackName; 25 | } 26 | 27 | public void setTrackName(String trackName) { 28 | this.trackName = trackName; 29 | } 30 | 31 | @Override 32 | public String toString() { 33 | return "TrackModel{" + 34 | "time='" + time + '\'' + 35 | ", trackName='" + trackName + '\'' + 36 | '}'; 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /app/src/main/res/menu/chat_menu.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 11 | 12 | 18 | 19 | 26 | 27 | 34 | 35 | -------------------------------------------------------------------------------- /app/src/main/res/layout/fragment_cure.xml: -------------------------------------------------------------------------------- 1 | 2 | 9 | 10 | 14 | 15 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 9 | 10 | 16 | 17 | 23 | 24 | -------------------------------------------------------------------------------- /app/src/main/res/layout/activity_track_your.xml: -------------------------------------------------------------------------------- 1 | 2 | 9 | 10 | 14 | 15 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /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 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 | # Automatically convert third-party libraries to use AndroidX 19 | android.enableJetifier=true -------------------------------------------------------------------------------- /app/google-services.json: -------------------------------------------------------------------------------- 1 | { 2 | "project_info": { 3 | "project_number": "851800524185", 4 | "firebase_url": "https://therapy-204b7.firebaseio.com", 5 | "project_id": "therapy-204b7", 6 | "storage_bucket": "therapy-204b7.appspot.com" 7 | }, 8 | "client": [ 9 | { 10 | "client_info": { 11 | "mobilesdk_app_id": "1:851800524185:android:4dd2bcadcc8daf51003f08", 12 | "android_client_info": { 13 | "package_name": "com.vatsal.kesarwani.therapy" 14 | } 15 | }, 16 | "oauth_client": [ 17 | { 18 | "client_id": "851800524185-c49oes2n6e1a4lcdd1ap0dcl7arsr6v3.apps.googleusercontent.com", 19 | "client_type": 3 20 | } 21 | ], 22 | "api_key": [ 23 | { 24 | "current_key": "AIzaSyDIZ8WCXGgbYz1Dngo2QqZuhTPcglCTOkM" 25 | } 26 | ], 27 | "services": { 28 | "appinvite_service": { 29 | "other_platform_oauth_client": [ 30 | { 31 | "client_id": "851800524185-c49oes2n6e1a4lcdd1ap0dcl7arsr6v3.apps.googleusercontent.com", 32 | "client_type": 3 33 | } 34 | ] 35 | } 36 | } 37 | } 38 | ], 39 | "configuration_version": "1" 40 | } -------------------------------------------------------------------------------- /app/src/main/res/layout/activity_splash.xml: -------------------------------------------------------------------------------- 1 | 2 | 9 | 10 | 26 | 27 | -------------------------------------------------------------------------------- /app/src/main/res/layout/fragment_chat.xml: -------------------------------------------------------------------------------- 1 | 2 | 9 | 10 | 16 | 17 | 27 | 28 | -------------------------------------------------------------------------------- /.idea/jarRepositories.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 9 | 10 | 14 | 15 | 19 | 20 | 24 | 25 | 29 | 30 | -------------------------------------------------------------------------------- /app/src/main/java/com/vatsal/kesarwani/therapy/Adapter/MyAdapter.java: -------------------------------------------------------------------------------- 1 | package com.vatsal.kesarwani.therapy.Adapter; 2 | 3 | import android.content.Context; 4 | 5 | import androidx.annotation.NonNull; 6 | import androidx.fragment.app.Fragment; 7 | import androidx.fragment.app.FragmentManager; 8 | import androidx.fragment.app.FragmentPagerAdapter; 9 | 10 | import com.vatsal.kesarwani.therapy.Fragment.CureFragment; 11 | import com.vatsal.kesarwani.therapy.Fragment.PostFragment; 12 | import com.vatsal.kesarwani.therapy.Fragment.ChatFragment; 13 | 14 | public class MyAdapter extends FragmentPagerAdapter { 15 | 16 | private Context myContext; 17 | int totalTabs; 18 | 19 | public MyAdapter(@NonNull FragmentManager fm, Context myContext, int totalTabs) { 20 | super(fm); 21 | this.myContext = myContext; 22 | this.totalTabs = totalTabs; 23 | } 24 | 25 | @NonNull 26 | @Override 27 | public Fragment getItem(int position) { 28 | switch (position){ 29 | case 0: 30 | return new PostFragment(); 31 | case 1: 32 | return new CureFragment(); 33 | case 2: 34 | return new ChatFragment(); 35 | default: 36 | return null; 37 | } 38 | } 39 | 40 | @Override 41 | public int getCount() { 42 | return totalTabs; 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /app/src/main/res/layout/activity_block.xml: -------------------------------------------------------------------------------- 1 | 2 | 9 | 10 | 14 | 15 | 21 | 22 | 23 | 24 | 31 | 32 | -------------------------------------------------------------------------------- /app/src/main/res/layout/fragment_post.xml: -------------------------------------------------------------------------------- 1 | 2 | 9 | 10 | 14 | 15 | 21 | 22 | 23 | 24 | 33 | 34 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_linkedin.xml: -------------------------------------------------------------------------------- 1 | 6 | 9 | 12 | 13 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_twitter.xml: -------------------------------------------------------------------------------- 1 | 6 | 9 | 10 | -------------------------------------------------------------------------------- /app/src/main/res/layout/item_block.xml: -------------------------------------------------------------------------------- 1 | 2 | 10 | 11 | 14 | 15 | 24 | 25 | 34 | 35 | 36 | 37 | 38 | -------------------------------------------------------------------------------- /app/src/main/java/com/vatsal/kesarwani/therapy/Model/CureModel.java: -------------------------------------------------------------------------------- 1 | package com.vatsal.kesarwani.therapy.Model; 2 | 3 | public class CureModel { 4 | private String name; 5 | private String desc; 6 | private String sex; 7 | private String mail; 8 | private String uri; 9 | private String UID; 10 | 11 | public CureModel(String name, String desc, String sex, String mail, String uri, String UID) { 12 | this.name = name; 13 | this.desc = desc; 14 | this.sex = sex; 15 | this.mail = mail; 16 | this.uri = uri; 17 | this.UID = UID; 18 | } 19 | 20 | public String getName() { 21 | return name; 22 | } 23 | 24 | public void setName(String name) { 25 | this.name = name; 26 | } 27 | 28 | public String getDesc() { 29 | return desc; 30 | } 31 | 32 | public void setDesc(String desc) { 33 | this.desc = desc; 34 | } 35 | 36 | public String getSex() { 37 | return sex; 38 | } 39 | 40 | public void setSex(String sex) { 41 | this.sex = sex; 42 | } 43 | 44 | public String getMail() { 45 | return mail; 46 | } 47 | 48 | public void setMail(String mail) { 49 | this.mail = mail; 50 | } 51 | 52 | public String getUri() { 53 | return uri; 54 | } 55 | 56 | public void setUri(String uri) { 57 | this.uri = uri; 58 | } 59 | 60 | public String getUID() { 61 | return UID; 62 | } 63 | 64 | public void setUID(String UID) { 65 | this.UID = UID; 66 | } 67 | } 68 | -------------------------------------------------------------------------------- /app/src/main/res/layout/item_track.xml: -------------------------------------------------------------------------------- 1 | 2 | 11 | 12 | 19 | 20 | 29 | 30 | 38 | 39 | 40 | 41 | 42 | 43 | -------------------------------------------------------------------------------- /app/src/main/java/com/vatsal/kesarwani/therapy/Utility/Util.java: -------------------------------------------------------------------------------- 1 | package com.vatsal.kesarwani.therapy.Utility; 2 | 3 | import com.google.firebase.auth.FirebaseAuth; 4 | import com.google.firebase.database.DatabaseReference; 5 | import com.google.firebase.database.FirebaseDatabase; 6 | import com.google.firebase.firestore.FirebaseFirestore; 7 | import com.vatsal.kesarwani.therapy.Model.AppConfig; 8 | 9 | import java.util.HashMap; 10 | import java.util.Map; 11 | import java.util.Objects; 12 | 13 | public class Util { 14 | private DatabaseReference dr; 15 | private FirebaseAuth mAuth; 16 | 17 | public void setOffline(){ 18 | Map m=new HashMap<>(); 19 | m.put(AppConfig.STATUS,false); 20 | 21 | FirebaseFirestore.getInstance().collection("User") 22 | .document(Objects.requireNonNull(Objects.requireNonNull(FirebaseAuth.getInstance().getCurrentUser()).getEmail())) 23 | .update(m); 24 | } 25 | 26 | public void setOnline(){ 27 | Map m=new HashMap<>(); 28 | m.put(AppConfig.STATUS,true); 29 | 30 | FirebaseFirestore.getInstance().collection("User") 31 | .document(Objects.requireNonNull(Objects.requireNonNull(FirebaseAuth.getInstance().getCurrentUser()).getEmail())) 32 | .update(m); 33 | } 34 | 35 | public void track(Map map){ 36 | dr= FirebaseDatabase.getInstance().getReference(); 37 | mAuth=FirebaseAuth.getInstance(); 38 | 39 | dr.child("Track") 40 | .child(Objects.requireNonNull(Objects.requireNonNull(mAuth.getCurrentUser()).getUid())) 41 | .push() 42 | .setValue(map); 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /app/src/main/java/com/vatsal/kesarwani/therapy/Model/AppConfig.java: -------------------------------------------------------------------------------- 1 | package com.vatsal.kesarwani.therapy.Model; 2 | 3 | public class AppConfig { 4 | 5 | final public static String SHARED_PREF="com.vatsal.kesarwani.theraphy.SHARED_PREF"; 6 | final public static String PROFILE_VISIBILITY="com.vatsal.kesarwani.theraphy.PROFILE_VISIBILITY"; 7 | final public static String PROFILE_STATE="com.vatsal.kesarwani.theraphy.PROFILE_STATE"; 8 | final public static String CALL_STATE="com.vatsal.kesarwani.theraphy.CALL_STATE"; 9 | final public static String PROFILE_DP="com.vatsal.kesarwani.theraphy.PROFILE_DP"; 10 | final public static String USERNAME="com.vatsal.kesarwani.theraphy.USERNAME"; 11 | final public static String SPLASH=0+""; 12 | final public static String UID="UID"; 13 | final public static String NAME="NAME"; 14 | final public static String AGE="AGE"; 15 | final public static String SEX="SEX"; 16 | final public static String NUMBER="NUMBER"; 17 | final public static String ABOUT="ABOUT"; 18 | final public static String DESCRIPTION="DESCRIPTION"; 19 | final public static String CAN_CALL="CAN_CALL"; 20 | final public static String VISIBLE="VISIBLE"; 21 | final public static String POST_DESCRIPTION = "POST_DESCRIPTION"; 22 | final public static String POST_IMAGE="POST_IMAGE"; 23 | final public static String POST_BY="POST_BY"; 24 | final public static String PROFILE_DISPLAY="PROFILE_DISPLAY"; 25 | final public static String LIKES="LIKES"; 26 | final public static String STATUS="STATUS"; 27 | final public static String REPORT="REPORT"; 28 | final public static String TIME="time"; 29 | final public static String TRACKNAME="trackName"; 30 | 31 | 32 | 33 | } 34 | -------------------------------------------------------------------------------- /app/src/main/java/com/vatsal/kesarwani/therapy/Utility/App.java: -------------------------------------------------------------------------------- 1 | package com.vatsal.kesarwani.therapy.Utility; 2 | 3 | import android.app.Application; 4 | import android.content.Context; 5 | import android.content.SharedPreferences; 6 | import android.util.Log; 7 | 8 | import com.google.firebase.auth.FirebaseAuth; 9 | import com.vatsal.kesarwani.therapy.Model.AppConfig; 10 | 11 | public class App extends Application { 12 | private FirebaseAuth mAuth; 13 | private SharedPreferences sharedPreferences; 14 | 15 | private static final String TAG = "App123"; 16 | @Override 17 | public void onCreate() { 18 | super.onCreate(); 19 | mAuth= FirebaseAuth.getInstance(); 20 | sharedPreferences= getSharedPreferences(AppConfig.SHARED_PREF, Context.MODE_PRIVATE); 21 | 22 | if (mAuth.getCurrentUser() != null && sharedPreferences.getString(AppConfig.PROFILE_STATE, "com.vatsal.kesarwani.theraphy.PROFILE_STATE").equals("com.vatsal.kesarwani.theraphy.PROFILE_STATE")) { 23 | Log.d(TAG, "onAppGotoForeground: "); 24 | } else if (mAuth.getCurrentUser() != null) { 25 | Log.d(TAG, "onCreate: "); 26 | AppVisibilityDetector.init(App.this, new AppVisibilityDetector.AppVisibilityCallback() { 27 | @Override 28 | public void onAppGotoForeground() { 29 | //app is from background to foreground 30 | new Util().setOnline(); 31 | } 32 | @Override 33 | public void onAppGotoBackground() { 34 | //app is from foreground to background 35 | new Util().setOffline(); 36 | } 37 | }); 38 | } 39 | } 40 | 41 | 42 | } 43 | -------------------------------------------------------------------------------- /app/src/main/java/com/vatsal/kesarwani/therapy/Model/MessageModel.java: -------------------------------------------------------------------------------- 1 | package com.vatsal.kesarwani.therapy.Model; 2 | 3 | public class MessageModel { 4 | private String user; 5 | private String mssg; 6 | private String img; 7 | private String time; 8 | private String date; 9 | 10 | public MessageModel() { 11 | } 12 | 13 | public MessageModel(String mssg, String user, String img, String time, String date) { 14 | this.user = user; 15 | this.mssg = mssg; 16 | this.img = img; 17 | this.time = time; 18 | this.date = date; 19 | } 20 | 21 | public String getUser() { 22 | return user; 23 | } 24 | 25 | public void setUser(String user) { 26 | this.user = user; 27 | } 28 | 29 | public String getMssg() { 30 | return mssg; 31 | } 32 | 33 | public void setMssg(String mssg) { 34 | this.mssg = mssg; 35 | } 36 | 37 | public String getImg() { 38 | return img; 39 | } 40 | 41 | public void setImg(String img) { 42 | this.img = img; 43 | } 44 | 45 | public String getTime() { 46 | return time; 47 | } 48 | 49 | public void setTime(String time) { 50 | this.time = time; 51 | } 52 | 53 | public String getDate() { 54 | return date; 55 | } 56 | 57 | public void setDate(String date) { 58 | this.date = date; 59 | } 60 | 61 | @Override 62 | public String toString() { 63 | return "MessageModel{" + 64 | "user='" + user + '\'' + 65 | ", mssg='" + mssg + '\'' + 66 | ", img='" + img + '\'' + 67 | ", time='" + time + '\'' + 68 | ", date='" + date + '\'' + 69 | '}'; 70 | } 71 | } 72 | -------------------------------------------------------------------------------- /app/src/main/res/drawable-v24/ic_launcher_foreground.xml: -------------------------------------------------------------------------------- 1 | 7 | 8 | 9 | 15 | 18 | 21 | 22 | 23 | 24 | 30 | -------------------------------------------------------------------------------- /app/src/main/java/com/vatsal/kesarwani/therapy/Adapter/TrackAdapter.java: -------------------------------------------------------------------------------- 1 | package com.vatsal.kesarwani.therapy.Adapter; 2 | 3 | import android.content.Context; 4 | import android.view.LayoutInflater; 5 | import android.view.View; 6 | import android.view.ViewGroup; 7 | import android.widget.TextView; 8 | 9 | import androidx.annotation.NonNull; 10 | import androidx.recyclerview.widget.RecyclerView; 11 | 12 | import com.vatsal.kesarwani.therapy.Model.TrackModel; 13 | import com.vatsal.kesarwani.therapy.R; 14 | 15 | import java.util.List; 16 | 17 | public class TrackAdapter extends RecyclerView.Adapter { 18 | 19 | private Context context; 20 | private List list; 21 | 22 | public TrackAdapter(Context context, List list) { 23 | this.context = context; 24 | this.list = list; 25 | } 26 | 27 | @NonNull 28 | @Override 29 | public TrackAdapter.ViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) { 30 | View v= LayoutInflater.from(parent.getContext()).inflate(R.layout.item_track,parent,false); 31 | return new ViewHolder(v); 32 | } 33 | 34 | @Override 35 | public void onBindViewHolder(@NonNull TrackAdapter.ViewHolder holder, int position) { 36 | holder.time.setText(list.get(position).getTime()); 37 | holder.track.setText(list.get(position).getTrackName()); 38 | } 39 | 40 | @Override 41 | public int getItemCount() { 42 | return list.size(); 43 | } 44 | 45 | public static class ViewHolder extends RecyclerView.ViewHolder { 46 | private TextView time,track; 47 | public ViewHolder(@NonNull View itemView) { 48 | super(itemView); 49 | time=itemView.findViewById(R.id.time); 50 | track=itemView.findViewById(R.id.task_name); 51 | } 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /app/src/main/res/layout/message_list_you_image.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 15 | 16 | 19 | 20 | 29 | 30 | 41 | 42 | 47 | 48 | 49 | 50 | 51 | 52 | -------------------------------------------------------------------------------- /app/src/main/res/layout/message_list_other_image.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 15 | 16 | 19 | 20 | 29 | 30 | 41 | 42 | 47 | 48 | 49 | 50 | 51 | 52 | -------------------------------------------------------------------------------- /app/src/main/res/layout/activity_main_screen.xml: -------------------------------------------------------------------------------- 1 | 2 | 10 | 11 | 18 | 19 | 26 | 27 | 35 | 36 | 37 | 38 | 39 | 46 | 47 | -------------------------------------------------------------------------------- /app/src/main/res/layout/bottom_sheet.xml: -------------------------------------------------------------------------------- 1 | 2 | 12 | 13 | 19 | 20 | 25 | 26 | 30 | 31 | 38 | 39 | 40 | 41 | 42 | 43 | 52 | 53 | -------------------------------------------------------------------------------- /app/src/main/res/layout/chat_list.xml: -------------------------------------------------------------------------------- 1 | 2 | 12 | 13 | 17 | 18 | 19 | 28 | 29 | 35 | 36 | 48 | 49 | 50 | 51 | -------------------------------------------------------------------------------- /app/src/main/res/layout/cure_list.xml: -------------------------------------------------------------------------------- 1 | 2 | 11 | 12 | 15 | 16 | 25 | 26 | 36 | 37 | 44 | 45 | 52 | 53 | 54 | 55 | 56 | 57 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_male.xml: -------------------------------------------------------------------------------- 1 | 6 | 9 | 10 | -------------------------------------------------------------------------------- /gradlew.bat: -------------------------------------------------------------------------------- 1 | @if "%DEBUG%" == "" @echo off 2 | @rem ########################################################################## 3 | @rem 4 | @rem Gradle startup script for Windows 5 | @rem 6 | @rem ########################################################################## 7 | 8 | @rem Set local scope for the variables with windows NT shell 9 | if "%OS%"=="Windows_NT" setlocal 10 | 11 | set DIRNAME=%~dp0 12 | if "%DIRNAME%" == "" set DIRNAME=. 13 | set APP_BASE_NAME=%~n0 14 | set APP_HOME=%DIRNAME% 15 | 16 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 17 | set DEFAULT_JVM_OPTS= 18 | 19 | @rem Find java.exe 20 | if defined JAVA_HOME goto findJavaFromJavaHome 21 | 22 | set JAVA_EXE=java.exe 23 | %JAVA_EXE% -version >NUL 2>&1 24 | if "%ERRORLEVEL%" == "0" goto init 25 | 26 | echo. 27 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 28 | echo. 29 | echo Please set the JAVA_HOME variable in your environment to match the 30 | echo location of your Java installation. 31 | 32 | goto fail 33 | 34 | :findJavaFromJavaHome 35 | set JAVA_HOME=%JAVA_HOME:"=% 36 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe 37 | 38 | if exist "%JAVA_EXE%" goto init 39 | 40 | echo. 41 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 42 | echo. 43 | echo Please set the JAVA_HOME variable in your environment to match the 44 | echo location of your Java installation. 45 | 46 | goto fail 47 | 48 | :init 49 | @rem Get command-line arguments, handling Windows variants 50 | 51 | if not "%OS%" == "Windows_NT" goto win9xME_args 52 | 53 | :win9xME_args 54 | @rem Slurp the command line arguments. 55 | set CMD_LINE_ARGS= 56 | set _SKIP=2 57 | 58 | :win9xME_args_slurp 59 | if "x%~1" == "x" goto execute 60 | 61 | set CMD_LINE_ARGS=%* 62 | 63 | :execute 64 | @rem Setup the command line 65 | 66 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar 67 | 68 | @rem Execute Gradle 69 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS% 70 | 71 | :end 72 | @rem End local scope for the variables with windows NT shell 73 | if "%ERRORLEVEL%"=="0" goto mainEnd 74 | 75 | :fail 76 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of 77 | rem the _cmd.exe /c_ return code! 78 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 79 | exit /b 1 80 | 81 | :mainEnd 82 | if "%OS%"=="Windows_NT" endlocal 83 | 84 | :omega 85 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_female.xml: -------------------------------------------------------------------------------- 1 | 6 | 9 | 10 | -------------------------------------------------------------------------------- /app/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'com.android.application' 2 | apply plugin: 'com.google.gms.google-services' 3 | apply plugin: 'com.google.firebase.crashlytics' 4 | 5 | android { 6 | compileSdkVersion 29 7 | buildToolsVersion "30.0.0" 8 | 9 | defaultConfig { 10 | applicationId "com.vatsal.kesarwani.therapy" 11 | minSdkVersion 21 12 | targetSdkVersion 29 13 | versionCode 1 14 | versionName "1.0" 15 | 16 | testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" 17 | } 18 | 19 | buildTypes { 20 | release { 21 | minifyEnabled false 22 | proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' 23 | } 24 | } 25 | } 26 | 27 | dependencies { 28 | implementation fileTree(dir: "libs", include: ["*.jar"]) 29 | implementation 'androidx.appcompat:appcompat:1.2.0' 30 | implementation 'androidx.constraintlayout:constraintlayout:2.0.1' 31 | implementation 'com.google.firebase:firebase-analytics:17.5.0' 32 | implementation 'com.google.firebase:firebase-auth:19.3.2' 33 | implementation 'com.google.android.gms:play-services-auth:18.1.0' 34 | implementation 'androidx.viewpager2:viewpager2:1.0.0' 35 | implementation 'com.google.android.material:material:1.2.0' 36 | //noinspection GradleCompatible 37 | implementation 'com.android.support:design:28.0.0' 38 | implementation 'androidx.legacy:legacy-support-v4:1.0.0' 39 | implementation 'com.google.firebase:firebase-firestore:21.6.0' 40 | implementation 'com.google.firebase:firebase-storage:19.2.0' 41 | implementation 'com.google.firebase:firebase-database:19.4.0' 42 | implementation 'com.google.firebase:firebase-messaging:20.2.4' 43 | implementation 'com.google.firebase:firebase-crashlytics:17.1.1' 44 | testImplementation 'junit:junit:4.13' 45 | androidTestImplementation 'androidx.test.ext:junit:1.1.2' 46 | androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0' 47 | 48 | //alerter 49 | implementation 'com.tapadoo.android:alerter:1.0.6' 50 | 51 | //Toasty 52 | implementation 'com.github.GrenderG:Toasty:1.4.2' 53 | 54 | //circular image 55 | implementation 'de.hdodenhof:circleimageview:3.1.0' 56 | 57 | //glide 58 | implementation 'com.github.bumptech.glide:glide:4.11.0' 59 | annotationProcessor 'com.github.bumptech.glide:compiler:4.11.0' 60 | 61 | //image-picker 62 | implementation 'com.github.dhaval2404:imagepicker:1.7.5' 63 | 64 | //swipe refresh layout 65 | implementation "androidx.swiperefreshlayout:swiperefreshlayout:1.1.0" 66 | 67 | } 68 | -------------------------------------------------------------------------------- /app/src/main/res/layout/activity_add_post.xml: -------------------------------------------------------------------------------- 1 | 2 | 9 | 10 | 19 | 20 | 23 | 24 | 30 | 31 | 36 | 37 | 38 | 39 | 40 | 41 | 53 | 54 |