├── .idea ├── .name ├── copyright │ └── profiles_settings.xml ├── vcs.xml ├── render.experimental.xml ├── runConfigurations.xml ├── gradle.xml ├── compiler.xml ├── misc.xml └── codeStyles │ └── Project.xml ├── app ├── .gitignore ├── src │ ├── main │ │ ├── res │ │ │ ├── drawable │ │ │ │ ├── logo.png │ │ │ │ ├── phone.png │ │ │ │ ├── logotwo.png │ │ │ │ ├── project_logo.jpg │ │ │ │ ├── undraw_empty_xct9.png │ │ │ │ ├── undraw_calling_kpbp.png │ │ │ │ ├── undraw_chatting_2yvo.png │ │ │ │ ├── undraw_begin_chat_c6pj.png │ │ │ │ ├── undraw_chatting_2yvopp.png │ │ │ │ ├── undraw_synchronize_ccxk.png │ │ │ │ ├── undraw_group_hangout_5gmq.png │ │ │ │ ├── background.xml │ │ │ │ ├── ic_home_black_24dp.xml │ │ │ │ ├── ic_dashboard_black_24dp.xml │ │ │ │ ├── button_bg.xml │ │ │ │ ├── ic_chat_black_24dp.xml │ │ │ │ ├── ic_account_box_black_24dp.xml │ │ │ │ ├── ic_notifications_black_24dp.xml │ │ │ │ ├── ic_sync_black_24dp.xml │ │ │ │ ├── ic_call_black_24dp.xml │ │ │ │ ├── ic_account_circle_black_24dp.xml │ │ │ │ ├── ic_camera_alt_black_24dp.xml │ │ │ │ └── ic_launcher_background.xml │ │ │ ├── mipmap-hdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-mdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-xhdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-xxhdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-xxxhdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-anydpi-v26 │ │ │ │ ├── ic_launcher.xml │ │ │ │ └── ic_launcher_round.xml │ │ │ ├── values │ │ │ │ ├── dimens.xml │ │ │ │ ├── styles.xml │ │ │ │ ├── colors.xml │ │ │ │ └── strings.xml │ │ │ ├── layout │ │ │ │ ├── activity_splash.xml │ │ │ │ ├── activity_chat.xml │ │ │ │ ├── fragment_chat.xml │ │ │ │ ├── item_message.xml │ │ │ │ ├── activity_bottom_navigation.xml │ │ │ │ ├── contactlist_row.xml │ │ │ │ ├── activity_login.xml │ │ │ │ ├── fragment_home.xml │ │ │ │ ├── activity_home_chatting.xml │ │ │ │ └── fragment_profile.xml │ │ │ ├── menu │ │ │ │ └── bottom_nav_menu.xml │ │ │ ├── navigation │ │ │ │ └── mobile_navigation.xml │ │ │ └── drawable-v24 │ │ │ │ └── ic_launcher_foreground.xml │ │ ├── java │ │ │ └── com │ │ │ │ └── saumya │ │ │ │ └── chattery │ │ │ │ ├── Contacts.java │ │ │ │ ├── ui │ │ │ │ ├── home │ │ │ │ │ ├── HomeViewModel.java │ │ │ │ │ └── HomeFragment.java │ │ │ │ ├── Chat │ │ │ │ │ ├── ChatViewModel.java │ │ │ │ │ └── ChatFragment.java │ │ │ │ └── profile │ │ │ │ │ ├── ProfileViewModel.java │ │ │ │ │ └── ProfileFragment.java │ │ │ │ ├── MessageModel.java │ │ │ │ ├── BottomNavigation.java │ │ │ │ ├── SplashActivity.java │ │ │ │ ├── LoginActivity.java │ │ │ │ ├── MessageAdapter.java │ │ │ │ ├── RecyclerAdapter.java │ │ │ │ ├── ChatActivity.java │ │ │ │ └── HomeChattingActivity.java │ │ └── AndroidManifest.xml │ ├── test │ │ └── java │ │ │ └── com │ │ │ └── saumya │ │ │ └── chattery │ │ │ └── ExampleUnitTest.java │ └── androidTest │ │ └── java │ │ └── com │ │ └── saumya │ │ └── chattery │ │ └── ExampleInstrumentedTest.java ├── proguard-rules.pro ├── google-services.json └── build.gradle ├── settings.gradle ├── gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── .gitignore ├── README.md ├── gradle.properties ├── gradlew.bat └── gradlew /.idea/.name: -------------------------------------------------------------------------------- 1 | Chattery -------------------------------------------------------------------------------- /app/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app' 2 | rootProject.name='Chattery' 3 | -------------------------------------------------------------------------------- /.idea/copyright/profiles_settings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saumya1singh/CHATTERY/HEAD/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /app/src/main/res/drawable/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saumya1singh/CHATTERY/HEAD/app/src/main/res/drawable/logo.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/phone.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saumya1singh/CHATTERY/HEAD/app/src/main/res/drawable/phone.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/logotwo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saumya1singh/CHATTERY/HEAD/app/src/main/res/drawable/logotwo.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/project_logo.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saumya1singh/CHATTERY/HEAD/app/src/main/res/drawable/project_logo.jpg -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saumya1singh/CHATTERY/HEAD/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saumya1singh/CHATTERY/HEAD/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saumya1singh/CHATTERY/HEAD/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/undraw_empty_xct9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saumya1singh/CHATTERY/HEAD/app/src/main/res/drawable/undraw_empty_xct9.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saumya1singh/CHATTERY/HEAD/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saumya1singh/CHATTERY/HEAD/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/undraw_calling_kpbp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saumya1singh/CHATTERY/HEAD/app/src/main/res/drawable/undraw_calling_kpbp.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/undraw_chatting_2yvo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saumya1singh/CHATTERY/HEAD/app/src/main/res/drawable/undraw_chatting_2yvo.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saumya1singh/CHATTERY/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/saumya1singh/CHATTERY/HEAD/app/src/main/res/mipmap-mdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/undraw_begin_chat_c6pj.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saumya1singh/CHATTERY/HEAD/app/src/main/res/drawable/undraw_begin_chat_c6pj.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/undraw_chatting_2yvopp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saumya1singh/CHATTERY/HEAD/app/src/main/res/drawable/undraw_chatting_2yvopp.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/undraw_synchronize_ccxk.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saumya1singh/CHATTERY/HEAD/app/src/main/res/drawable/undraw_synchronize_ccxk.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saumya1singh/CHATTERY/HEAD/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saumya1singh/CHATTERY/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/saumya1singh/CHATTERY/HEAD/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/undraw_group_hangout_5gmq.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/saumya1singh/CHATTERY/HEAD/app/src/main/res/drawable/undraw_group_hangout_5gmq.png -------------------------------------------------------------------------------- /.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /.idea/render.experimental.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 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 Oct 10 13:31:04 IST 2019 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-5.4.1-all.zip 7 | -------------------------------------------------------------------------------- /app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/background.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_home_black_24dp.xml: -------------------------------------------------------------------------------- 1 | 6 | 9 | 10 | -------------------------------------------------------------------------------- /app/src/main/res/values/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 16dp 4 | 16dp 5 | 6 | 20sp 7 | 18sp 8 | 14sp 9 | 10 | 11 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_dashboard_black_24dp.xml: -------------------------------------------------------------------------------- 1 | 6 | 9 | 10 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/button_bg.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 9 | 10 | 13 | 14 | -------------------------------------------------------------------------------- /app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /app/src/main/res/layout/activity_splash.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /app/src/test/java/com/saumya/chattery/ExampleUnitTest.java: -------------------------------------------------------------------------------- 1 | package com.saumya.chattery; 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/java/com/saumya/chattery/Contacts.java: -------------------------------------------------------------------------------- 1 | package com.saumya.chattery; 2 | 3 | public class Contacts { 4 | 5 | String name; 6 | String phone; 7 | 8 | public String getName() { 9 | return name; 10 | } 11 | 12 | public void setName(String name) { 13 | this.name = name; 14 | } 15 | 16 | public String getPhone() { 17 | return phone; 18 | } 19 | 20 | public void setPhone(String phone) { 21 | this.phone = phone; 22 | } 23 | 24 | } 25 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_chat_black_24dp.xml: -------------------------------------------------------------------------------- 1 | 6 | 9 | 10 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_account_box_black_24dp.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_notifications_black_24dp.xml: -------------------------------------------------------------------------------- 1 | 6 | 9 | 10 | -------------------------------------------------------------------------------- /app/src/main/java/com/saumya/chattery/ui/home/HomeViewModel.java: -------------------------------------------------------------------------------- 1 | package com.saumya.chattery.ui.home; 2 | 3 | import androidx.lifecycle.LiveData; 4 | import androidx.lifecycle.MutableLiveData; 5 | import androidx.lifecycle.ViewModel; 6 | 7 | public class HomeViewModel extends ViewModel { 8 | 9 | private MutableLiveData mText; 10 | 11 | public HomeViewModel() { 12 | mText = new MutableLiveData<>(); 13 | mText.setValue("This is home fragment"); 14 | } 15 | 16 | public LiveData getText() { 17 | return mText; 18 | } 19 | } -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_sync_black_24dp.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /app/src/main/java/com/saumya/chattery/ui/Chat/ChatViewModel.java: -------------------------------------------------------------------------------- 1 | package com.saumya.chattery.ui.Chat; 2 | 3 | import androidx.lifecycle.LiveData; 4 | import androidx.lifecycle.MutableLiveData; 5 | import androidx.lifecycle.ViewModel; 6 | 7 | public class ChatViewModel extends ViewModel { 8 | 9 | private MutableLiveData mText; 10 | 11 | public ChatViewModel() { 12 | mText = new MutableLiveData<>(); 13 | mText.setValue("This is dashboard fragment"); 14 | } 15 | 16 | public LiveData getText() { 17 | return mText; 18 | } 19 | } -------------------------------------------------------------------------------- /app/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #A76BF8 4 | #000 5 | #b042f5 6 | #69C8F3 7 | #ffffff 8 | #00000000 9 | #AD3DF1 10 | #5D0A97 11 | 12 | #19AA8B 13 | #75CAE9 14 | 15 | -------------------------------------------------------------------------------- /app/src/main/java/com/saumya/chattery/ui/profile/ProfileViewModel.java: -------------------------------------------------------------------------------- 1 | package com.saumya.chattery.ui.profile; 2 | 3 | import androidx.lifecycle.LiveData; 4 | import androidx.lifecycle.MutableLiveData; 5 | import androidx.lifecycle.ViewModel; 6 | 7 | public class ProfileViewModel extends ViewModel { 8 | 9 | private MutableLiveData mText; 10 | 11 | public ProfileViewModel() { 12 | mText = new MutableLiveData<>(); 13 | mText.setValue("This is notifications fragment"); 14 | } 15 | 16 | public LiveData getText() { 17 | return mText; 18 | } 19 | } -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_call_black_24dp.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /.idea/runConfigurations.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 11 | 12 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_account_circle_black_24dp.xml: -------------------------------------------------------------------------------- 1 | 6 | 9 | 10 | -------------------------------------------------------------------------------- /app/src/main/res/layout/activity_chat.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 10 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /app/src/main/res/menu/bottom_nav_menu.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 8 | 9 | 13 | 14 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_camera_alt_black_24dp.xml: -------------------------------------------------------------------------------- 1 | 6 | 9 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/gradle.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 18 | 19 | -------------------------------------------------------------------------------- /.idea/compiler.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /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 22 | -------------------------------------------------------------------------------- /app/src/androidTest/java/com/saumya/chattery/ExampleInstrumentedTest.java: -------------------------------------------------------------------------------- 1 | package com.saumya.chattery; 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 | 25 | assertEquals("com.saumya.chattery", appContext.getPackageName()); 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /app/src/main/java/com/saumya/chattery/MessageModel.java: -------------------------------------------------------------------------------- 1 | package com.saumya.chattery; 2 | 3 | public class MessageModel { 4 | 5 | private String text; 6 | private String name; 7 | private String photoUrl; 8 | 9 | public MessageModel() { 10 | } 11 | 12 | public MessageModel(String text, String name, String photoUrl) { 13 | this.text = text; 14 | this.name = name; 15 | this.photoUrl = photoUrl; 16 | } 17 | 18 | public String getText() { 19 | return text; 20 | } 21 | 22 | public void setText(String text) { 23 | this.text = text; 24 | } 25 | 26 | public String getName() { 27 | return name; 28 | } 29 | 30 | public void setName(String name) { 31 | this.name = name; 32 | } 33 | 34 | public String getPhotoUrl() { 35 | return photoUrl; 36 | } 37 | 38 | public void setPhotoUrl(String photoUrl) { 39 | this.photoUrl = photoUrl; 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /app/src/main/res/navigation/mobile_navigation.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 13 | 14 | 19 | 20 | 25 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # App-Innovation- 2 | 3 | "Chattery" is a very interesting app that provides realtime chatting ❤. 4 | The app includes various new fetures in comparison to already existing messenger app "Whatsapp". 5 | 6 | 7 | Some fetures of the app are : 8 | 9 | Application is completely authenticated and secured . 10 | Sending and receiving messages . 11 | Receiving notification . 12 | Group messages . 13 | Conservational view (previous chats view) 14 | Complete Backups 15 | Search through all the messages #filtering 16 | Delete single message 17 | Password protect some group 18 | In profile photo: a added option of ‘only share with’. 19 | 20 | Screenshots : 21 | 22 | 23 | [![a.png](https://i.postimg.cc/L8PMyZDs/a.png)](https://postimg.cc/K1mVjjdX) 24 | [![b.png](https://i.postimg.cc/6QTbjstf/b.png)](https://postimg.cc/v1FvTN14) 25 | [![c.png](https://i.postimg.cc/2yNHSVv0/c.png)](https://postimg.cc/62zVH6MZ) 26 | [![d.jpg](https://i.postimg.cc/tRcfL4Yn/d.jpg)](https://postimg.cc/ThrCbGjT) 27 | [![e.jpg](https://i.postimg.cc/HxX2RdKX/e.jpg)](https://postimg.cc/hz4T7WKt) 28 | [![f.jpg](https://i.postimg.cc/Yqp3DcxL/f.jpg)](https://postimg.cc/WtHgtHCs) 29 | -------------------------------------------------------------------------------- /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=-Xmx1536m 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 20 | 21 | -------------------------------------------------------------------------------- /app/src/main/res/layout/fragment_chat.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 15 | 16 | 17 | 18 | 19 | 32 | 33 | 34 | 35 | -------------------------------------------------------------------------------- /app/src/main/res/layout/item_message.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 9 | 14 | 15 | 24 | 25 | 33 | -------------------------------------------------------------------------------- /app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 14 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /app/src/main/java/com/saumya/chattery/BottomNavigation.java: -------------------------------------------------------------------------------- 1 | package com.saumya.chattery; 2 | 3 | import android.os.Bundle; 4 | 5 | import com.google.android.material.bottomnavigation.BottomNavigationView; 6 | 7 | import androidx.appcompat.app.AppCompatActivity; 8 | import androidx.navigation.NavController; 9 | import androidx.navigation.Navigation; 10 | import androidx.navigation.ui.AppBarConfiguration; 11 | import androidx.navigation.ui.NavigationUI; 12 | 13 | public class BottomNavigation extends AppCompatActivity { 14 | 15 | @Override 16 | protected void onCreate(Bundle savedInstanceState) { 17 | super.onCreate(savedInstanceState); 18 | setContentView(R.layout.activity_bottom_navigation); 19 | 20 | BottomNavigationView navView = findViewById(R.id.nav_view); 21 | // Passing each menu ID as a set of Ids because each 22 | // menu should be considered as top level destinations. 23 | AppBarConfiguration appBarConfiguration = new AppBarConfiguration.Builder( 24 | R.id.navigation_home, R.id.navigation_dashboard, R.id.navigation_notifications) 25 | .build(); 26 | NavController navController = Navigation.findNavController(this, R.id.nav_host_fragment); 27 | NavigationUI.setupActionBarWithNavController(this, navController, appBarConfiguration); 28 | NavigationUI.setupWithNavController(navView, navController); 29 | 30 | 31 | } 32 | 33 | } 34 | -------------------------------------------------------------------------------- /app/src/main/java/com/saumya/chattery/ui/Chat/ChatFragment.java: -------------------------------------------------------------------------------- 1 | package com.saumya.chattery.ui.Chat; 2 | 3 | import android.content.Intent; 4 | import android.os.Bundle; 5 | import android.view.LayoutInflater; 6 | import android.view.View; 7 | import android.view.ViewGroup; 8 | import android.widget.Button; 9 | import android.widget.TextView; 10 | 11 | import androidx.annotation.Nullable; 12 | import androidx.annotation.NonNull; 13 | import androidx.fragment.app.Fragment; 14 | import androidx.lifecycle.Observer; 15 | import androidx.lifecycle.ViewModelProviders; 16 | 17 | import com.saumya.chattery.ChatActivity; 18 | import com.saumya.chattery.R; 19 | 20 | public class ChatFragment extends Fragment { 21 | 22 | private ChatViewModel chatViewModel; 23 | Button btnSync; 24 | 25 | public View onCreateView(@NonNull LayoutInflater inflater, 26 | ViewGroup container, Bundle savedInstanceState) { 27 | chatViewModel = 28 | ViewModelProviders.of(this).get(ChatViewModel.class); 29 | View root = inflater.inflate(R.layout.fragment_chat, container, false); 30 | 31 | btnSync = root.findViewById(R.id.btnSync); 32 | 33 | btnSync.setOnClickListener(new View.OnClickListener() { 34 | @Override 35 | public void onClick(View view) { 36 | 37 | Intent intent = new Intent(getContext(), ChatActivity.class); 38 | startActivity(intent); 39 | } 40 | }); 41 | 42 | 43 | return root; 44 | } 45 | } -------------------------------------------------------------------------------- /app/google-services.json: -------------------------------------------------------------------------------- 1 | { 2 | "project_info": { 3 | "project_number": "662360538305", 4 | "firebase_url": "https://chattery-23cb9.firebaseio.com", 5 | "project_id": "chattery-23cb9", 6 | "storage_bucket": "chattery-23cb9.appspot.com" 7 | }, 8 | "client": [ 9 | { 10 | "client_info": { 11 | "mobilesdk_app_id": "1:662360538305:android:5b75ff18487e2301462840", 12 | "android_client_info": { 13 | "package_name": "com.saumya.chattery" 14 | } 15 | }, 16 | "oauth_client": [ 17 | { 18 | "client_id": "662360538305-ut53p0qndcji4u0n0romjla02hgofe7f.apps.googleusercontent.com", 19 | "client_type": 1, 20 | "android_info": { 21 | "package_name": "com.saumya.chattery", 22 | "certificate_hash": "8cff96e5e8b61cd5acff0d1e0f3e7268c2dda4a2" 23 | } 24 | }, 25 | { 26 | "client_id": "662360538305-2he7ncanjig2fh5ssrivu8hmf15f02g9.apps.googleusercontent.com", 27 | "client_type": 3 28 | } 29 | ], 30 | "api_key": [ 31 | { 32 | "current_key": "AIzaSyBcOdPkPjh0pbupuNNYyQJoILfSWm9ZbFg" 33 | } 34 | ], 35 | "services": { 36 | "appinvite_service": { 37 | "other_platform_oauth_client": [ 38 | { 39 | "client_id": "662360538305-2he7ncanjig2fh5ssrivu8hmf15f02g9.apps.googleusercontent.com", 40 | "client_type": 3 41 | } 42 | ] 43 | } 44 | } 45 | } 46 | ], 47 | "configuration_version": "1" 48 | } -------------------------------------------------------------------------------- /app/src/main/res/layout/activity_bottom_navigation.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 20 | 21 | 32 | 33 | -------------------------------------------------------------------------------- /app/src/main/res/layout/contactlist_row.xml: -------------------------------------------------------------------------------- 1 | 2 | 11 | 12 | 19 | 20 | 25 | 26 | 34 | 35 | 43 | 44 | 45 | 46 | 47 | 48 | -------------------------------------------------------------------------------- /.idea/misc.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 16 | 26 | 27 | 28 | 29 | 30 | 31 | 33 | -------------------------------------------------------------------------------- /app/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'com.android.application' 2 | apply plugin: 'com.google.gms.google-services' 3 | 4 | android { 5 | compileSdkVersion 29 6 | buildToolsVersion "29.0.2" 7 | defaultConfig { 8 | applicationId "com.saumya.chattery" 9 | minSdkVersion 16 10 | targetSdkVersion 29 11 | versionCode 2 12 | versionName "1.0" 13 | testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" 14 | vectorDrawables.useSupportLibrary = true 15 | } 16 | buildTypes { 17 | release { 18 | minifyEnabled false 19 | proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' 20 | } 21 | } 22 | } 23 | 24 | dependencies { 25 | implementation fileTree(dir: 'libs', include: ['*.jar']) 26 | implementation 'androidx.appcompat:appcompat:1.1.0' 27 | implementation 'com.github.bumptech.glide:glide:4.8.0' 28 | implementation 'com.firebaseui:firebase-ui-storage:3.3.0' 29 | implementation 'com.google.code.gson:gson:2.8.5' 30 | implementation 'androidx.constraintlayout:constraintlayout:1.1.3' 31 | implementation 'com.google.android.material:material:1.0.0' 32 | implementation 'de.hdodenhof:circleimageview:3.0.1' 33 | implementation 'com.github.msayan:tutorial-view:v1.0.10' 34 | implementation 'androidx.vectordrawable:vectordrawable:1.1.0' 35 | implementation 'androidx.navigation:navigation-fragment:2.1.0' 36 | implementation 'androidx.navigation:navigation-ui:2.1.0' 37 | implementation 'androidx.lifecycle:lifecycle-extensions:2.1.0' 38 | implementation 'com.google.firebase:firebase-auth:19.1.0' 39 | implementation 'com.google.firebase:firebase-database:19.1.0' 40 | implementation 'com.google.firebase:firebase-storage:19.1.0' 41 | testImplementation 'junit:junit:4.12' 42 | androidTestImplementation 'androidx.test:runner:1.2.0' 43 | androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0' 44 | 45 | 46 | } 47 | -------------------------------------------------------------------------------- /app/src/main/res/drawable-v24/ic_launcher_foreground.xml: -------------------------------------------------------------------------------- 1 | 7 | 12 | 13 | 19 | 22 | 25 | 26 | 27 | 28 | 34 | 35 | -------------------------------------------------------------------------------- /app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | Chattery 3 | BottomNavigation 4 | Home 5 | Dashboard 6 | Notifications 7 | 8 | 9 | Chatting 10 | Grant Access 11 | Give Music Player access to files 12 | Begin Chatting 13 | Group Hangout 14 | Result is awesome! 15 | Tap open both of their chats, if it says both are online, proceed. 16 | The five senses exercise can help. It helps us to be better at picking up on what our senses tell us. As a result, it makes it easier for us to start a conversation. 17 | The end goal of small talk is to find a mutual interest – something BOTH of you love to talk about. When you find a mutual interest, the conversation stops being boring! 18 | Thank you, have fun 19 | The end goal of small talk is to find a mutual interest – something BOTH of you love to talk about. When you find a mutual interest, the conversation stops being boring! 20 | When you text someone new or someone you barely know, you need a clear REASON for why you are contacting them. The end goal of small talk is to find a mutual interest – something BOTH of you love to talk about. When you find a mutual interest, the conversation stops being boring! 21 | When you focus on someone else or something else than yourself, that makes you LESS SELF-CONSCIOUS and MORE CONFIDENT. 22 | 23 | -------------------------------------------------------------------------------- /app/src/main/res/layout/activity_login.xml: -------------------------------------------------------------------------------- 1 | 2 | 11 | 12 | 18 | 19 | 20 | 21 | 33 | 34 | 47 | 48 | 68 | 69 | 70 | 71 | 72 | 73 | -------------------------------------------------------------------------------- /app/src/main/res/layout/activity_home_chatting.xml: -------------------------------------------------------------------------------- 1 | 2 | 9 | 10 | 20 | 21 | 22 | 23 | 38 | 39 | 40 | 41 | 57 | 58 | 59 | 68 | 69 | 70 | 81 | 82 | 83 |