├── app ├── .gitignore ├── src │ ├── main │ │ ├── res │ │ │ ├── drawable │ │ │ │ ├── bg.jpg │ │ │ │ ├── ic_messaging.png │ │ │ │ ├── ic_error_24dp.xml │ │ │ │ ├── circle_accent.xml │ │ │ │ ├── rounded_rect_bg.xml │ │ │ │ └── chat_rounded_rect_bg.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 │ │ │ ├── values │ │ │ │ ├── ids.xml │ │ │ │ ├── styles.xml │ │ │ │ ├── dimens.xml │ │ │ │ ├── strings.xml │ │ │ │ └── colors.xml │ │ │ ├── layout │ │ │ │ ├── activity_splash.xml │ │ │ │ ├── fragment_users.xml │ │ │ │ ├── fragment_chat.xml │ │ │ │ ├── activity_chat.xml │ │ │ │ ├── activity_login.xml │ │ │ │ ├── activity_register.xml │ │ │ │ ├── fragment_register.xml │ │ │ │ ├── item_user_listing.xml │ │ │ │ ├── item_all_user_listing.xml │ │ │ │ ├── item_chat_other.xml │ │ │ │ ├── fragment_login.xml │ │ │ │ ├── item_chat_mine.xml │ │ │ │ └── activity_user_listing.xml │ │ │ └── menu │ │ │ │ └── menu_user_listing.xml │ │ ├── java │ │ │ └── exr │ │ │ │ └── at │ │ │ │ └── com │ │ │ │ └── firebasechat │ │ │ │ ├── model │ │ │ │ ├── User.java │ │ │ │ ├── Users.java │ │ │ │ └── Chat.java │ │ │ │ ├── utils │ │ │ │ ├── Constants.java │ │ │ │ ├── ItemClickSupport.java │ │ │ │ ├── NetworkConnectionUtil.java │ │ │ │ └── SharedPrefUtil.java │ │ │ │ ├── core │ │ │ │ ├── logout │ │ │ │ │ ├── LogoutContract.java │ │ │ │ │ ├── LogoutInteractor.java │ │ │ │ │ └── LogoutPresenter.java │ │ │ │ ├── users │ │ │ │ │ ├── add │ │ │ │ │ │ ├── AddUserContract.java │ │ │ │ │ │ ├── AddUserPresenter.java │ │ │ │ │ │ └── AddUserInteractor.java │ │ │ │ │ └── getall │ │ │ │ │ │ ├── GetUsersContract.java │ │ │ │ │ │ ├── GetUsersPresenter.java │ │ │ │ │ │ └── GetUsersInteractor.java │ │ │ │ ├── login │ │ │ │ │ ├── LoginContract.java │ │ │ │ │ ├── LoginPresenter.java │ │ │ │ │ └── LoginInteractor.java │ │ │ │ ├── registration │ │ │ │ │ ├── RegisterContract.java │ │ │ │ │ ├── RegisterPresenter.java │ │ │ │ │ └── RegisterInteractor.java │ │ │ │ └── chat │ │ │ │ │ ├── ChatContract.java │ │ │ │ │ ├── ChatPresenter.java │ │ │ │ │ └── ChatInteractor.java │ │ │ │ ├── FirebaseChatMainApp.java │ │ │ │ ├── ui │ │ │ │ ├── adapters │ │ │ │ │ ├── UserListingPagerAdapter.java │ │ │ │ │ ├── UserListingRecyclerAdapter.java │ │ │ │ │ └── ChatRecyclerAdapter.java │ │ │ │ ├── activities │ │ │ │ │ ├── RegisterActivity.java │ │ │ │ │ ├── SplashActivity.java │ │ │ │ │ ├── LoginActivity.java │ │ │ │ │ ├── ChatActivity.java │ │ │ │ │ └── UserListingActivity.java │ │ │ │ └── fragments │ │ │ │ │ ├── LoginFragment.java │ │ │ │ │ ├── RegisterFragment.java │ │ │ │ │ ├── UsersFragment.java │ │ │ │ │ └── ChatFragment.java │ │ │ │ ├── event │ │ │ │ └── PushNotificationEvent.java │ │ │ │ └── fcm │ │ │ │ ├── MyFirebaseInstanceIDService.java │ │ │ │ ├── MyFirebaseMessagingService.java │ │ │ │ └── FcmNotificationBuilder.java │ │ └── AndroidManifest.xml │ ├── test │ │ └── java │ │ │ └── exr │ │ │ └── at │ │ │ └── com │ │ │ └── firebasechat │ │ │ └── ExampleUnitTest.java │ └── androidTest │ │ └── java │ │ └── exr │ │ └── at │ │ └── com │ │ └── firebasechat │ │ └── ExampleInstrumentedTest.java ├── proguard-rules.pro ├── build.gradle └── google-services.json ├── settings.gradle ├── .idea ├── copyright │ └── profiles_settings.xml ├── inspectionProfiles │ ├── profiles_settings.xml │ └── Project_Default.xml ├── modules.xml ├── runConfigurations.xml ├── gradle.xml ├── compiler.xml └── misc.xml ├── gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── .gitignore ├── gradle.properties ├── gradlew.bat └── gradlew /app/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app' 2 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/bg.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/emonm/FirebaseChat/HEAD/app/src/main/res/drawable/bg.jpg -------------------------------------------------------------------------------- /.idea/copyright/profiles_settings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/emonm/FirebaseChat/HEAD/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_messaging.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/emonm/FirebaseChat/HEAD/app/src/main/res/drawable/ic_messaging.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/emonm/FirebaseChat/HEAD/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/emonm/FirebaseChat/HEAD/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/emonm/FirebaseChat/HEAD/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/emonm/FirebaseChat/HEAD/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/emonm/FirebaseChat/HEAD/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/emonm/FirebaseChat/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/emonm/FirebaseChat/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/emonm/FirebaseChat/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/emonm/FirebaseChat/HEAD/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/values/ids.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/emonm/FirebaseChat/HEAD/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | *.iml 2 | .gradle 3 | /local.properties 4 | /.idea/workspace.xml 5 | /.idea/libraries 6 | .DS_Store 7 | /build 8 | /captures 9 | .externalNativeBuild 10 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_error_24dp.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Thu Jul 13 12:59:47 ALMT 2017 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-3.3-all.zip 7 | -------------------------------------------------------------------------------- /.idea/inspectionProfiles/profiles_settings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/circle_accent.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /app/src/main/res/layout/activity_splash.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | -------------------------------------------------------------------------------- /.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/rounded_rect_bg.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 8 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/chat_rounded_rect_bg.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 8 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /app/src/main/java/exr/at/com/firebasechat/model/User.java: -------------------------------------------------------------------------------- 1 | package exr.at.com.firebasechat.model; 2 | 3 | /** 4 | * Created by delaroy on 4/13/17. 5 | */ 6 | public class User { 7 | public String uid; 8 | public String email; 9 | public String firebaseToken; 10 | 11 | public User(){ 12 | 13 | } 14 | 15 | public User(String uid, String email, String firebaseToken){ 16 | this.uid = uid; 17 | this.email = email; 18 | this.firebaseToken = firebaseToken; 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /app/src/test/java/exr/at/com/firebasechat/ExampleUnitTest.java: -------------------------------------------------------------------------------- 1 | package exr.at.com.firebasechat; 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() throws Exception { 15 | assertEquals(4, 2 + 2); 16 | } 17 | } -------------------------------------------------------------------------------- /app/src/main/res/menu/menu_user_listing.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 12 | 13 | -------------------------------------------------------------------------------- /app/src/main/java/exr/at/com/firebasechat/utils/Constants.java: -------------------------------------------------------------------------------- 1 | package exr.at.com.firebasechat.utils; 2 | 3 | 4 | 5 | public class Constants { 6 | public static final String ARG_USERS = "users"; 7 | public static final String ARG_RECEIVER = "receiver"; 8 | public static final String ARG_RECEIVER_UID = "receiver_uid"; 9 | public static final String ARG_CHAT_ROOMS = "chat_rooms"; 10 | public static final String ARG_FIREBASE_TOKEN = "firebaseToken"; 11 | public static final String ARG_FRIENDS = "friends"; 12 | public static final String ARG_UID = "uid"; 13 | } 14 | -------------------------------------------------------------------------------- /.idea/runConfigurations.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 11 | 12 | -------------------------------------------------------------------------------- /app/src/main/java/exr/at/com/firebasechat/core/logout/LogoutContract.java: -------------------------------------------------------------------------------- 1 | package exr.at.com.firebasechat.core.logout; 2 | 3 | 4 | 5 | public interface LogoutContract { 6 | interface View { 7 | void onLogoutSuccess(String message); 8 | 9 | void onLogoutFailure(String message); 10 | } 11 | 12 | interface Presenter { 13 | void logout(); 14 | } 15 | 16 | interface Interactor { 17 | void performFirebaseLogout(); 18 | } 19 | 20 | interface OnLogoutListener { 21 | void onSuccess(String message); 22 | 23 | void onFailure(String message); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /app/src/main/java/exr/at/com/firebasechat/FirebaseChatMainApp.java: -------------------------------------------------------------------------------- 1 | package exr.at.com.firebasechat; 2 | 3 | 4 | import android.app.Application; 5 | 6 | public class FirebaseChatMainApp extends Application { 7 | private static boolean sIsChatActivityOpen = false; 8 | 9 | public static boolean isChatActivityOpen() { 10 | return sIsChatActivityOpen; 11 | } 12 | 13 | public static void setChatActivityOpen(boolean isChatActivityOpen) { 14 | FirebaseChatMainApp.sIsChatActivityOpen = isChatActivityOpen; 15 | } 16 | @Override 17 | public void onCreate() { 18 | super.onCreate(); 19 | } 20 | } -------------------------------------------------------------------------------- /.idea/gradle.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 17 | 18 | -------------------------------------------------------------------------------- /app/src/main/java/exr/at/com/firebasechat/model/Users.java: -------------------------------------------------------------------------------- 1 | package exr.at.com.firebasechat.model; 2 | 3 | /** 4 | * Created by delaroy on 4/13/17. 5 | */ 6 | public class Users { 7 | 8 | private String emailId; 9 | private String lastMessage; 10 | private int notifCount; 11 | 12 | public String getEmailId(){ return emailId; } 13 | 14 | public void setEmailId(){ this.emailId = emailId; } 15 | 16 | public String getLastMessage(){ return lastMessage; } 17 | 18 | public void setLastMessage(){ this.lastMessage = lastMessage; } 19 | 20 | public int getNotifCount(){ return notifCount; } 21 | 22 | public void setNotifCount(int notifCount){ this.notifCount = notifCount; } 23 | } 24 | -------------------------------------------------------------------------------- /.idea/inspectionProfiles/Project_Default.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 10 | -------------------------------------------------------------------------------- /.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 | -------------------------------------------------------------------------------- /gradle.properties: -------------------------------------------------------------------------------- 1 | # Project-wide Gradle settings. 2 | 3 | # IDE (e.g. Android Studio) users: 4 | # Gradle settings configured through the IDE *will override* 5 | # any settings specified in this file. 6 | 7 | # For more details on how to configure your build environment visit 8 | # http://www.gradle.org/docs/current/userguide/build_environment.html 9 | 10 | # Specifies the JVM arguments used for the daemon process. 11 | # The setting is particularly useful for tweaking memory settings. 12 | org.gradle.jvmargs=-Xmx1536m 13 | 14 | # When configured, Gradle will run in incubating parallel mode. 15 | # This option should only be used with decoupled projects. More details, visit 16 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects 17 | # org.gradle.parallel=true 18 | -------------------------------------------------------------------------------- /app/src/main/java/exr/at/com/firebasechat/core/users/add/AddUserContract.java: -------------------------------------------------------------------------------- 1 | package exr.at.com.firebasechat.core.users.add; 2 | 3 | import android.content.Context; 4 | 5 | import com.google.firebase.auth.FirebaseUser; 6 | 7 | 8 | 9 | public interface AddUserContract { 10 | interface View { 11 | void onAddUserSuccess(String message); 12 | 13 | void onAddUserFailure(String message); 14 | } 15 | 16 | interface Presenter { 17 | void addUser(Context context, FirebaseUser firebaseUser); 18 | } 19 | 20 | interface Interactor { 21 | void addUserToDatabase(Context context, FirebaseUser firebaseUser); 22 | } 23 | 24 | interface OnUserDatabaseListener { 25 | void onSuccess(String message); 26 | 27 | void onFailure(String message); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /app/src/main/java/exr/at/com/firebasechat/model/Chat.java: -------------------------------------------------------------------------------- 1 | package exr.at.com.firebasechat.model; 2 | 3 | /** 4 | * Created by delaroy on 4/13/17. 5 | */ 6 | public class Chat { 7 | public String sender; 8 | public String receiver; 9 | public String senderUid; 10 | public String receiverUid; 11 | public String message; 12 | public long timestamp; 13 | 14 | public Chat(){ 15 | 16 | } 17 | 18 | public Chat(String sender, String receiver, String senderUid, String receiverUid, String message, long timestamp){ 19 | this.sender = sender; 20 | this.receiver = receiver; 21 | this.senderUid = senderUid; 22 | this.receiverUid = receiverUid; 23 | this.message = message; 24 | this.timestamp = timestamp; 25 | 26 | } 27 | 28 | 29 | 30 | 31 | 32 | } 33 | -------------------------------------------------------------------------------- /app/src/main/java/exr/at/com/firebasechat/core/login/LoginContract.java: -------------------------------------------------------------------------------- 1 | package exr.at.com.firebasechat.core.login; 2 | 3 | import android.app.Activity; 4 | 5 | /** 6 | * Author: Kartik Sharma 7 | * Created on: 8/28/2016 , 11:06 AM 8 | * Project: FirebaseChat 9 | */ 10 | 11 | public interface LoginContract { 12 | interface View { 13 | void onLoginSuccess(String message); 14 | 15 | void onLoginFailure(String message); 16 | } 17 | 18 | interface Presenter { 19 | void login(Activity activity, String email, String password); 20 | } 21 | 22 | interface Interactor { 23 | void performFirebaseLogin(Activity activity, String email, String password); 24 | } 25 | 26 | interface OnLoginListener { 27 | void onSuccess(String message); 28 | 29 | void onFailure(String message); 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /app/src/main/java/exr/at/com/firebasechat/core/logout/LogoutInteractor.java: -------------------------------------------------------------------------------- 1 | package exr.at.com.firebasechat.core.logout; 2 | 3 | import com.google.firebase.auth.FirebaseAuth; 4 | 5 | 6 | 7 | public class LogoutInteractor implements LogoutContract.Interactor { 8 | private LogoutContract.OnLogoutListener mOnLogoutListener; 9 | 10 | public LogoutInteractor(LogoutContract.OnLogoutListener onLogoutListener) { 11 | mOnLogoutListener = onLogoutListener; 12 | } 13 | 14 | @Override 15 | public void performFirebaseLogout() { 16 | if (FirebaseAuth.getInstance().getCurrentUser() != null) { 17 | FirebaseAuth.getInstance().signOut(); 18 | mOnLogoutListener.onSuccess("Successfully logged out!"); 19 | } else { 20 | mOnLogoutListener.onFailure("No user logged in yet!"); 21 | } 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /app/src/main/java/exr/at/com/firebasechat/core/registration/RegisterContract.java: -------------------------------------------------------------------------------- 1 | package exr.at.com.firebasechat.core.registration; 2 | 3 | import android.app.Activity; 4 | 5 | import com.google.firebase.auth.FirebaseUser; 6 | 7 | 8 | public interface RegisterContract { 9 | interface View { 10 | void onRegistrationSuccess(FirebaseUser firebaseUser); 11 | 12 | void onRegistrationFailure(String message); 13 | } 14 | 15 | interface Presenter { 16 | void register(Activity activity, String email, String password); 17 | } 18 | 19 | interface Interactor { 20 | void performFirebaseRegistration(Activity activity, String email, String password); 21 | } 22 | 23 | interface OnRegistrationListener { 24 | void onSuccess(FirebaseUser firebaseUser); 25 | 26 | void onFailure(String message); 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /app/src/main/res/layout/fragment_users.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 11 | 12 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /app/src/main/java/exr/at/com/firebasechat/core/logout/LogoutPresenter.java: -------------------------------------------------------------------------------- 1 | package exr.at.com.firebasechat.core.logout; 2 | 3 | 4 | 5 | public class LogoutPresenter implements LogoutContract.Presenter, LogoutContract.OnLogoutListener { 6 | private LogoutContract.View mLogoutView; 7 | private LogoutInteractor mLogoutInteractor; 8 | 9 | public LogoutPresenter(LogoutContract.View logoutView) { 10 | mLogoutView = logoutView; 11 | mLogoutInteractor = new LogoutInteractor(this); 12 | } 13 | 14 | @Override 15 | public void logout() { 16 | mLogoutInteractor.performFirebaseLogout(); 17 | } 18 | 19 | @Override 20 | public void onSuccess(String message) { 21 | mLogoutView.onLogoutSuccess(message); 22 | } 23 | 24 | @Override 25 | public void onFailure(String message) { 26 | mLogoutView.onLogoutFailure(message); 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /app/src/androidTest/java/exr/at/com/firebasechat/ExampleInstrumentedTest.java: -------------------------------------------------------------------------------- 1 | package exr.at.com.firebasechat; 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 | * Instrumentation 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() throws Exception { 21 | // Context of the app under test. 22 | Context appContext = InstrumentationRegistry.getTargetContext(); 23 | 24 | assertEquals("exr.at.com.firebasechat", appContext.getPackageName()); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 10 | 11 | 15 | 16 | 19 | 20 |