├── app ├── .gitignore ├── src │ ├── main │ │ ├── res │ │ │ ├── drawable │ │ │ │ ├── back.png │ │ │ │ ├── user.png │ │ │ │ ├── account.png │ │ │ │ ├── ic_menu.png │ │ │ │ ├── setting.png │ │ │ │ ├── splash.png │ │ │ │ ├── download.png │ │ │ │ ├── bubbleleft.9.png │ │ │ │ ├── bubbleright.9.png │ │ │ │ ├── shape_round.xml │ │ │ │ ├── border.xml │ │ │ │ ├── shape_rectangle.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 │ │ │ ├── xml │ │ │ │ └── provider_paths.xml │ │ │ ├── values │ │ │ │ ├── colors.xml │ │ │ │ ├── strings.xml │ │ │ │ ├── dimens.xml │ │ │ │ └── styles.xml │ │ │ ├── mipmap-anydpi-v26 │ │ │ │ ├── ic_launcher.xml │ │ │ │ └── ic_launcher_round.xml │ │ │ ├── values-w820dp │ │ │ │ └── dimens.xml │ │ │ ├── menu │ │ │ │ └── menu_main.xml │ │ │ ├── layout │ │ │ │ ├── activity_splash.xml │ │ │ │ ├── fragment_chatroom.xml │ │ │ │ ├── fragment_userlist.xml │ │ │ │ ├── fragment_userlistinroom.xml │ │ │ │ ├── activity_select_user.xml │ │ │ │ ├── item_select_user.xml │ │ │ │ ├── activity_view_pager.xml │ │ │ │ ├── activity_userpw.xml │ │ │ │ ├── fragment_chat.xml │ │ │ │ ├── item_user.xml │ │ │ │ ├── activity_chat.xml │ │ │ │ ├── activity_login.xml │ │ │ │ ├── fragment_user.xml │ │ │ │ ├── activity_main.xml │ │ │ │ ├── item_chatimage_right.xml │ │ │ │ ├── item_chatroom.xml │ │ │ │ ├── item_chatmsg_right.xml │ │ │ │ ├── item_chatimage_left.xml │ │ │ │ ├── item_chatmsg_left.xml │ │ │ │ ├── item_chatfile_right.xml │ │ │ │ └── item_chatfile_left.xml │ │ │ └── drawable-v24 │ │ │ │ └── ic_launcher_foreground.xml │ │ ├── java │ │ │ └── gujc │ │ │ │ └── directtalk9 │ │ │ │ ├── model │ │ │ │ ├── NotificationModel.java │ │ │ │ ├── ChatModel.java │ │ │ │ ├── UserModel.java │ │ │ │ ├── ChatRoomModel.java │ │ │ │ └── Message.java │ │ │ │ ├── common │ │ │ │ ├── MyAppGlideModule.java │ │ │ │ ├── MyFirebaseMessagingService.java │ │ │ │ ├── Util9.java │ │ │ │ └── FirestoreAdapter.java │ │ │ │ ├── photoview │ │ │ │ ├── HackyViewPager.java │ │ │ │ └── ViewPagerActivity.java │ │ │ │ ├── SplashActivity.java │ │ │ │ ├── UserPWActivity.java │ │ │ │ ├── chat │ │ │ │ ├── ChatActivity.java │ │ │ │ └── SelectUserActivity.java │ │ │ │ ├── fragment │ │ │ │ ├── UserListFragment.java │ │ │ │ ├── UserListInRoomFragment.java │ │ │ │ ├── UserFragment.java │ │ │ │ ├── ChatRoomFragment.java │ │ │ │ └── ChatFragment.java │ │ │ │ ├── LoginActivity.java │ │ │ │ └── MainActivity.java │ │ └── AndroidManifest.xml │ ├── test │ │ └── java │ │ │ └── gujc │ │ │ └── directtalk9 │ │ │ └── ExampleUnitTest.java │ └── androidTest │ │ └── java │ │ └── gujc │ │ └── directtalk9 │ │ └── ExampleInstrumentedTest.java ├── proguard-rules.pro └── build.gradle ├── settings.gradle ├── Screenshot.png ├── gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── .gitignore ├── .idea ├── vcs.xml ├── runConfigurations.xml ├── gradle.xml ├── misc.xml └── codeStyles │ └── Project.xml ├── gradle.properties ├── README.md ├── gradlew.bat └── gradlew /app/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app' 2 | -------------------------------------------------------------------------------- /Screenshot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gujc71/DirectTalk9/HEAD/Screenshot.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/back.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gujc71/DirectTalk9/HEAD/app/src/main/res/drawable/back.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/user.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gujc71/DirectTalk9/HEAD/app/src/main/res/drawable/user.png -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gujc71/DirectTalk9/HEAD/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /app/src/main/res/drawable/account.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gujc71/DirectTalk9/HEAD/app/src/main/res/drawable/account.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_menu.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gujc71/DirectTalk9/HEAD/app/src/main/res/drawable/ic_menu.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/setting.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gujc71/DirectTalk9/HEAD/app/src/main/res/drawable/setting.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/splash.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gujc71/DirectTalk9/HEAD/app/src/main/res/drawable/splash.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/download.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gujc71/DirectTalk9/HEAD/app/src/main/res/drawable/download.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/bubbleleft.9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gujc71/DirectTalk9/HEAD/app/src/main/res/drawable/bubbleleft.9.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/bubbleright.9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gujc71/DirectTalk9/HEAD/app/src/main/res/drawable/bubbleright.9.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gujc71/DirectTalk9/HEAD/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gujc71/DirectTalk9/HEAD/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gujc71/DirectTalk9/HEAD/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gujc71/DirectTalk9/HEAD/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gujc71/DirectTalk9/HEAD/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gujc71/DirectTalk9/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/gujc71/DirectTalk9/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/gujc71/DirectTalk9/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/gujc71/DirectTalk9/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/gujc71/DirectTalk9/HEAD/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | *.iml 2 | .gradle 3 | /local.properties 4 | /.idea/libraries 5 | /.idea/modules.xml 6 | /.idea/workspace.xml 7 | .DS_Store 8 | /build 9 | /captures 10 | .externalNativeBuild 11 | -------------------------------------------------------------------------------- /.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /app/src/main/res/xml/provider_paths.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /app/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #3F51B5 4 | #303F9F 5 | #FF4081 6 | 7 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Sun Jul 01 08:37:38 KST 2018 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-4.4-all.zip 7 | -------------------------------------------------------------------------------- /app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | Direct Talk9 3 | Settings 4 | Hello World from section: %1$d 5 | 6 | 7 | -------------------------------------------------------------------------------- /app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/shape_round.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 8 | 9 | -------------------------------------------------------------------------------- /app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /app/src/main/res/values/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 16dp 4 | 16dp 5 | 16dp 6 | 8dp 7 | 8 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/border.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /app/src/main/res/values-w820dp/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 64dp 6 | 7 | -------------------------------------------------------------------------------- /app/src/main/res/menu/menu_main.xml: -------------------------------------------------------------------------------- 1 | 5 | 10 | 11 | -------------------------------------------------------------------------------- /app/src/test/java/gujc/directtalk9/ExampleUnitTest.java: -------------------------------------------------------------------------------- 1 | package gujc.directtalk9; 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/gujc/directtalk9/model/NotificationModel.java: -------------------------------------------------------------------------------- 1 | package gujc.directtalk9.model; 2 | 3 | public class NotificationModel { 4 | public String to; 5 | 6 | public Notification notification = new Notification(); 7 | public Data data = new Data(); 8 | 9 | public static class Notification { 10 | public String title; 11 | public String body; 12 | } 13 | 14 | public static class Data { 15 | public String title; 16 | public String body; 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /app/src/main/res/layout/activity_splash.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /app/src/main/java/gujc/directtalk9/model/ChatModel.java: -------------------------------------------------------------------------------- 1 | package gujc.directtalk9.model; 2 | 3 | import java.util.ArrayList; 4 | import java.util.Date; 5 | import java.util.HashMap; 6 | import java.util.List; 7 | import java.util.Map; 8 | 9 | public class ChatModel { 10 | public Map users = new HashMap<>() ; 11 | public Map messages = new HashMap<>() ; 12 | 13 | public static class FileInfo { 14 | public String filename; 15 | public String filesize; 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /.idea/runConfigurations.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 11 | 12 | -------------------------------------------------------------------------------- /app/src/main/res/layout/fragment_chatroom.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/shape_rectangle.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 7 | 12 | 17 | 18 | -------------------------------------------------------------------------------- /app/src/main/res/layout/fragment_userlist.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /.idea/gradle.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 17 | 18 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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/main/java/gujc/directtalk9/common/MyAppGlideModule.java: -------------------------------------------------------------------------------- 1 | package gujc.directtalk9.common; 2 | 3 | import android.content.Context; 4 | 5 | import com.bumptech.glide.Glide; 6 | import com.bumptech.glide.Registry; 7 | import com.bumptech.glide.annotation.GlideModule; 8 | import com.bumptech.glide.module.AppGlideModule; 9 | import com.firebase.ui.storage.images.FirebaseImageLoader; 10 | import com.google.firebase.storage.StorageReference; 11 | 12 | import java.io.InputStream; 13 | 14 | @GlideModule 15 | public class MyAppGlideModule extends AppGlideModule { 16 | 17 | @Override 18 | public void registerComponents(Context context, Glide glide, Registry registry) { 19 | // Register FirebaseImageLoader to handle StorageReference 20 | registry.append(StorageReference.class, InputStream.class, new FirebaseImageLoader.Factory()); 21 | } 22 | } -------------------------------------------------------------------------------- /app/src/main/res/layout/fragment_userlistinroom.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 14 | 15 | 21 | 22 | -------------------------------------------------------------------------------- /app/src/androidTest/java/gujc/directtalk9/ExampleInstrumentedTest.java: -------------------------------------------------------------------------------- 1 | package gujc.directtalk9; 2 | 3 | import android.content.Context; 4 | import android.support.test.InstrumentationRegistry; 5 | import android.support.test.runner.AndroidJUnit4; 6 | 7 | import org.junit.Test; 8 | import org.junit.runner.RunWith; 9 | 10 | import static org.junit.Assert.*; 11 | 12 | /** 13 | * Instrumented test, which will execute on an Android device. 14 | * 15 | * @see Testing documentation 16 | */ 17 | @RunWith(AndroidJUnit4.class) 18 | public class ExampleInstrumentedTest { 19 | @Test 20 | public void useAppContext() { 21 | // Context of the app under test. 22 | Context appContext = InstrumentationRegistry.getTargetContext(); 23 | 24 | assertEquals("gujc.directtalk9", appContext.getPackageName()); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 10 | 11 | 15 | 16 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /app/src/main/res/layout/activity_select_user.xml: -------------------------------------------------------------------------------- 1 | 2 | 9 | 10 | 17 | 18 |