├── _config.yml ├── Chatmvc - Java ├── app │ ├── .gitignore │ ├── src │ │ ├── main │ │ │ ├── res │ │ │ │ ├── drawable │ │ │ │ │ ├── app_icon.png │ │ │ │ │ ├── grey_node.png │ │ │ │ │ ├── purple_node_bg.png │ │ │ │ │ ├── rounded_edittext.xml │ │ │ │ │ ├── regular_button_background.xml │ │ │ │ │ ├── right_node_bg.xml │ │ │ │ │ └── left_node_bg.xml │ │ │ │ ├── mipmap-hdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── mipmap-mdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── mipmap-xhdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── mipmap-xxhdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── mipmap-xxxhdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── values │ │ │ │ │ ├── colors.xml │ │ │ │ │ ├── strings.xml │ │ │ │ │ └── dimens.xml │ │ │ │ ├── values-w820dp │ │ │ │ │ └── dimens.xml │ │ │ │ └── layout │ │ │ │ │ └── dialog_room.xml │ │ │ ├── java │ │ │ │ └── nosql │ │ │ │ │ └── anew │ │ │ │ │ └── chatmvc │ │ │ │ │ ├── interfaces │ │ │ │ │ ├── FirebaseCallBacks.java │ │ │ │ │ └── ModelCallBacks.java │ │ │ │ │ ├── utils │ │ │ │ │ └── MyUtils.java │ │ │ │ │ └── model │ │ │ │ │ ├── MessageModel.java │ │ │ │ │ └── ChatPojo.java │ │ │ └── AndroidManifest.xml │ │ ├── test │ │ │ └── java │ │ │ │ └── nosql │ │ │ │ └── anew │ │ │ │ └── chatmvc │ │ │ │ └── ExampleUnitTest.java │ │ └── androidTest │ │ │ └── java │ │ │ └── nosql │ │ │ └── anew │ │ │ └── chatmvc │ │ │ └── ExampleInstrumentedTest.java │ ├── proguard-rules.pro │ └── build.gradle ├── settings.gradle ├── chat.jpg ├── compare.png ├── layer-1.png ├── gradle │ └── wrapper │ │ ├── gradle-wrapper.jar │ │ └── gradle-wrapper.properties ├── .idea │ ├── misc.xml │ ├── modules.xml │ ├── libraries │ │ ├── com_google_code_findbugs_jsr305_2_0_1_jar.xml │ │ ├── com_android_support_support_v4_25_3_1.xml │ │ ├── com_google_firebase_firebase_iid_9_0_0.xml │ │ ├── com_google_firebase_firebase_auth_9_0_0.xml │ │ ├── com_google_firebase_firebase_core_9_0_0.xml │ │ ├── com_google_firebase_firebase_common_9_0_0.xml │ │ ├── com_google_firebase_firebase_config_9_0_0.xml │ │ ├── com_google_firebase_firebase_database_9_0_0.xml │ │ ├── com_google_firebase_firebase_analytics_9_0_0.xml │ │ ├── com_google_firebase_firebase_messaging_9_0_0.xml │ │ ├── junit_junit_4_12_jar.xml │ │ ├── com_google_firebase_firebase_auth_common_9_0_0.xml │ │ ├── com_google_firebase_firebase_auth_module_9_0_0.xml │ │ ├── com_google_android_gms_play_services_auth_9_0_0.xml │ │ ├── com_google_android_gms_play_services_base_9_0_0.xml │ │ ├── com_google_android_gms_play_services_tasks_9_0_0.xml │ │ ├── com_google_firebase_firebase_analytics_impl_9_0_0.xml │ │ ├── com_google_android_gms_play_services_basement_9_0_0.xml │ │ ├── com_google_android_gms_play_services_auth_base_9_0_0.xml │ │ ├── com_google_firebase_firebase_database_connection_9_0_0.xml │ │ ├── javax_inject_javax_inject_1_jar.xml │ │ ├── com_squareup_javawriter_2_1_1_jar.xml │ │ ├── org_hamcrest_hamcrest_core_1_3_jar.xml │ │ ├── org_hamcrest_hamcrest_library_1_3_jar.xml │ │ ├── org_hamcrest_hamcrest_integration_1_3_jar.xml │ │ ├── javax_annotation_javax_annotation_api_1_2_jar.xml │ │ ├── com_android_support_appcompat_v7_25_3_1.xml │ │ ├── com_android_support_support_compat_25_3_1.xml │ │ ├── com_android_support_recyclerview_v7_25_3_1.xml │ │ ├── com_android_support_support_core_ui_25_3_1.xml │ │ ├── com_android_support_support_fragment_25_3_1.xml │ │ ├── com_android_support_support_core_utils_25_3_1.xml │ │ ├── com_android_support_support_media_compat_25_3_1.xml │ │ ├── com_android_support_support_vector_drawable_25_3_1.xml │ │ ├── com_android_support_animated_vector_drawable_25_3_1.xml │ │ ├── com_android_support_support_annotations_25_3_1_jar.xml │ │ ├── com_android_support_test_rules_0_5.xml │ │ ├── com_android_support_test_runner_0_5.xml │ │ ├── com_android_support_test_espresso_espresso_core_2_2_2.xml │ │ ├── com_android_support_test_espresso_espresso_idling_resource_2_2_2.xml │ │ └── com_android_support_test_exposed_instrumentation_api_publish_0_5.xml │ ├── runConfigurations.xml │ └── gradle.xml ├── build.gradle └── gradle.properties ├── Chatmvc - Kotlin ├── app │ ├── .gitignore │ ├── src │ │ ├── main │ │ │ ├── res │ │ │ │ ├── drawable │ │ │ │ │ ├── app_icon.png │ │ │ │ │ ├── grey_node.png │ │ │ │ │ ├── purple_node_bg.png │ │ │ │ │ ├── rounded_edittext.xml │ │ │ │ │ ├── regular_button_background.xml │ │ │ │ │ ├── right_node_bg.xml │ │ │ │ │ └── left_node_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 │ │ │ │ ├── mipmap-anydpi-v26 │ │ │ │ │ ├── ic_launcher.xml │ │ │ │ │ └── ic_launcher_round.xml │ │ │ │ ├── values │ │ │ │ │ ├── colors.xml │ │ │ │ │ ├── strings.xml │ │ │ │ │ └── dimens.xml │ │ │ │ └── layout │ │ │ │ │ └── dialog_room.xml │ │ │ ├── java │ │ │ │ └── nosql │ │ │ │ │ └── anew │ │ │ │ │ └── kotlinmvc │ │ │ │ │ ├── interfaces │ │ │ │ │ ├── FirebaseCallBacks.kt │ │ │ │ │ └── ModelCallBacks.kt │ │ │ │ │ ├── utils │ │ │ │ │ └── MyUtils.kt │ │ │ │ │ └── models │ │ │ │ │ ├── MessageModel.kt │ │ │ │ │ └── ChatPojo.kt │ │ │ └── AndroidManifest.xml │ │ ├── test │ │ │ └── java │ │ │ │ └── nosql │ │ │ │ └── anew │ │ │ │ └── kotlinmvc │ │ │ │ └── ExampleUnitTest.kt │ │ └── androidTest │ │ │ └── java │ │ │ └── nosql │ │ │ └── anew │ │ │ └── kotlinmvc │ │ │ └── ExampleInstrumentedTest.kt │ ├── proguard-rules.pro │ └── build.gradle ├── settings.gradle ├── gradle │ └── wrapper │ │ ├── gradle-wrapper.jar │ │ └── gradle-wrapper.properties ├── .idea │ ├── libraries │ │ ├── net_sf_kxml_kxml2_2_3_0_jar.xml │ │ ├── org_jetbrains_annotations_13_0_jar.xml │ │ ├── com_google_code_findbugs_jsr305_2_0_1_jar.xml │ │ ├── com_android_support_constraint_constraint_layout_solver_1_0_2_jar.xml │ │ ├── com_google_firebase_firebase_iid_9_0_0.xml │ │ ├── junit_junit_4_12_jar.xml │ │ ├── com_google_firebase_firebase_auth_9_0_0.xml │ │ ├── com_google_firebase_firebase_core_9_0_0.xml │ │ ├── com_google_firebase_firebase_common_9_0_0.xml │ │ ├── com_google_firebase_firebase_config_9_0_0.xml │ │ ├── com_google_firebase_firebase_database_9_0_0.xml │ │ ├── com_google_firebase_firebase_analytics_9_0_0.xml │ │ ├── com_google_firebase_firebase_messaging_9_0_0.xml │ │ ├── com_google_android_gms_play_services_auth_9_0_0.xml │ │ ├── com_google_android_gms_play_services_base_9_0_0.xml │ │ ├── com_google_android_gms_play_services_tasks_9_0_0.xml │ │ ├── com_google_firebase_firebase_auth_common_9_0_0.xml │ │ ├── com_google_firebase_firebase_auth_module_9_0_0.xml │ │ ├── com_android_support_constraint_constraint_layout_1_0_2.xml │ │ ├── com_google_android_gms_play_services_basement_9_0_0.xml │ │ ├── com_google_firebase_firebase_analytics_impl_9_0_0.xml │ │ ├── com_google_android_gms_play_services_auth_base_9_0_0.xml │ │ ├── javax_inject_javax_inject_1_jar.xml │ │ ├── android_arch_core_common_1_0_0_jar.xml │ │ ├── com_google_firebase_firebase_database_connection_9_0_0.xml │ │ ├── com_squareup_javawriter_2_1_1_jar.xml │ │ ├── org_hamcrest_hamcrest_core_1_3_jar.xml │ │ ├── android_arch_lifecycle_common_1_0_0_jar.xml │ │ ├── org_hamcrest_hamcrest_library_1_3_jar.xml │ │ ├── org_hamcrest_hamcrest_integration_1_3_jar.xml │ │ ├── com_android_support_support_annotations_26_1_0_jar.xml │ │ ├── com_android_support_test_rules_1_0_1.xml │ │ ├── android_arch_lifecycle_runtime_1_0_0.xml │ │ ├── com_android_support_test_runner_1_0_1.xml │ │ ├── org_jetbrains_kotlin_kotlin_stdlib_1_1_51_jar.xml │ │ ├── com_android_support_recyclerview_v7_25_3_1.xml │ │ ├── com_android_support_support_v4_26_1_0.xml │ │ ├── com_android_support_appcompat_v7_26_1_0.xml │ │ ├── com_android_support_support_compat_26_1_0.xml │ │ ├── com_android_support_support_core_ui_26_1_0.xml │ │ ├── com_android_support_support_fragment_26_1_0.xml │ │ ├── org_jetbrains_kotlin_kotlin_stdlib_jre7_1_1_51_jar.xml │ │ ├── com_android_support_support_core_utils_26_1_0.xml │ │ ├── com_android_support_test_espresso_espresso_core_3_0_1.xml │ │ ├── com_android_support_support_media_compat_26_1_0.xml │ │ ├── com_android_support_support_vector_drawable_26_1_0.xml │ │ ├── com_android_support_animated_vector_drawable_26_1_0.xml │ │ └── com_android_support_test_espresso_espresso_idling_resource_3_0_1.xml │ ├── modules.xml │ ├── runConfigurations.xml │ └── gradle.xml ├── gradle.properties └── build.gradle ├── Chatmvp - Java ├── app │ ├── .gitignore │ ├── src │ │ ├── main │ │ │ ├── res │ │ │ │ ├── drawable │ │ │ │ │ ├── app_icon.png │ │ │ │ │ ├── grey_node.png │ │ │ │ │ ├── purple_node_bg.png │ │ │ │ │ ├── rounded_edittext.xml │ │ │ │ │ ├── regular_button_background.xml │ │ │ │ │ ├── right_node_bg.xml │ │ │ │ │ └── left_node_bg.xml │ │ │ │ ├── mipmap-hdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── mipmap-mdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── mipmap-xhdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── mipmap-xxhdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── mipmap-xxxhdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── values │ │ │ │ │ ├── colors.xml │ │ │ │ │ ├── strings.xml │ │ │ │ │ └── dimens.xml │ │ │ │ ├── values-w820dp │ │ │ │ │ └── dimens.xml │ │ │ │ └── layout │ │ │ │ │ └── dialog_room.xml │ │ │ ├── java │ │ │ │ └── nosql │ │ │ │ │ └── anew │ │ │ │ │ └── chatmvp │ │ │ │ │ ├── interfaces │ │ │ │ │ ├── FirebaseCallBacks.java │ │ │ │ │ └── ModelCallBacks.java │ │ │ │ │ ├── views │ │ │ │ │ ├── IChatView.java │ │ │ │ │ └── ILoginView.java │ │ │ │ │ ├── utils │ │ │ │ │ └── MyUtils.java │ │ │ │ │ └── models │ │ │ │ │ ├── MessageModel.java │ │ │ │ │ └── ChatPojo.java │ │ │ └── AndroidManifest.xml │ │ ├── test │ │ │ └── java │ │ │ │ └── nosql │ │ │ │ └── anew │ │ │ │ └── chatmvp │ │ │ │ └── ExampleUnitTest.java │ │ └── androidTest │ │ │ └── java │ │ │ └── nosql │ │ │ └── anew │ │ │ └── chatmvp │ │ │ └── ExampleInstrumentedTest.java │ ├── proguard-rules.pro │ └── build.gradle ├── settings.gradle ├── gradle │ └── wrapper │ │ ├── gradle-wrapper.jar │ │ └── gradle-wrapper.properties ├── build.gradle └── gradle.properties ├── Chatmvp - Kotlin ├── app │ ├── .gitignore │ ├── src │ │ ├── main │ │ │ ├── res │ │ │ │ ├── drawable │ │ │ │ │ ├── app_icon.png │ │ │ │ │ ├── grey_node.png │ │ │ │ │ ├── purple_node_bg.png │ │ │ │ │ ├── rounded_edittext.xml │ │ │ │ │ ├── regular_button_background.xml │ │ │ │ │ ├── right_node_bg.xml │ │ │ │ │ └── left_node_bg.xml │ │ │ │ ├── mipmap-hdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── mipmap-mdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── mipmap-xhdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── mipmap-xxhdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── mipmap-xxxhdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── values │ │ │ │ │ ├── colors.xml │ │ │ │ │ ├── strings.xml │ │ │ │ │ └── dimens.xml │ │ │ │ ├── values-w820dp │ │ │ │ │ └── dimens.xml │ │ │ │ └── layout │ │ │ │ │ └── dialog_room.xml │ │ │ ├── java │ │ │ │ └── nosql │ │ │ │ │ └── anew │ │ │ │ │ └── kotlinmvp │ │ │ │ │ ├── interfaces │ │ │ │ │ ├── FirebaseCallBacks.kt │ │ │ │ │ └── ModelCallBacks.kt │ │ │ │ │ ├── views │ │ │ │ │ ├── IChatView.kt │ │ │ │ │ └── ILoginView.kt │ │ │ │ │ ├── utils │ │ │ │ │ └── MyUtils.kt │ │ │ │ │ ├── models │ │ │ │ │ ├── MessageModel.kt │ │ │ │ │ └── ChatPojo.kt │ │ │ │ │ └── presenters │ │ │ │ │ └── LoginPresenter.kt │ │ │ └── AndroidManifest.xml │ │ ├── test │ │ │ └── java │ │ │ │ └── nosql │ │ │ │ └── anew │ │ │ │ └── kotlinmvp │ │ │ │ └── ExampleUnitTest.java │ │ └── androidTest │ │ │ └── java │ │ │ └── nosql │ │ │ └── anew │ │ │ └── kotlinmvp │ │ │ └── ExampleInstrumentedTest.java │ ├── proguard-rules.pro │ └── build.gradle ├── settings.gradle ├── gradle │ └── wrapper │ │ ├── gradle-wrapper.jar │ │ └── gradle-wrapper.properties ├── .idea │ ├── libraries │ │ ├── org_jetbrains_annotations_13_0_jar.xml │ │ ├── com_google_code_findbugs_jsr305_2_0_1_jar.xml │ │ ├── com_android_support_support_v4_25_3_1.xml │ │ ├── com_google_firebase_firebase_iid_9_0_0.xml │ │ ├── com_google_firebase_firebase_auth_9_0_0.xml │ │ ├── com_google_firebase_firebase_core_9_0_0.xml │ │ ├── com_google_firebase_firebase_common_9_0_0.xml │ │ ├── com_google_firebase_firebase_config_9_0_0.xml │ │ ├── com_google_firebase_firebase_database_9_0_0.xml │ │ ├── com_google_firebase_firebase_analytics_9_0_0.xml │ │ ├── com_google_firebase_firebase_messaging_9_0_0.xml │ │ ├── com_google_firebase_firebase_auth_common_9_0_0.xml │ │ ├── com_google_firebase_firebase_auth_module_9_0_0.xml │ │ ├── junit_junit_4_12_jar.xml │ │ ├── com_google_android_gms_play_services_auth_9_0_0.xml │ │ ├── com_google_android_gms_play_services_base_9_0_0.xml │ │ ├── com_google_android_gms_play_services_tasks_9_0_0.xml │ │ ├── com_google_firebase_firebase_analytics_impl_9_0_0.xml │ │ ├── com_google_android_gms_play_services_basement_9_0_0.xml │ │ ├── com_google_android_gms_play_services_auth_base_9_0_0.xml │ │ ├── com_google_firebase_firebase_database_connection_9_0_0.xml │ │ ├── javax_inject_javax_inject_1_jar.xml │ │ ├── com_squareup_javawriter_2_1_1_jar.xml │ │ ├── org_hamcrest_hamcrest_core_1_3_jar.xml │ │ ├── org_hamcrest_hamcrest_library_1_3_jar.xml │ │ ├── org_hamcrest_hamcrest_integration_1_3_jar.xml │ │ ├── org_jetbrains_kotlin_kotlin_stdlib_1_2_40_jar.xml │ │ ├── javax_annotation_javax_annotation_api_1_2_jar.xml │ │ ├── org_jetbrains_kotlin_kotlin_stdlib_jdk7_1_2_40_jar.xml │ │ ├── com_android_support_appcompat_v7_25_3_1.xml │ │ ├── com_android_support_support_compat_25_3_1.xml │ │ ├── com_android_support_recyclerview_v7_25_3_1.xml │ │ ├── com_android_support_support_core_ui_25_3_1.xml │ │ ├── com_android_support_support_fragment_25_3_1.xml │ │ ├── com_android_support_support_core_utils_25_3_1.xml │ │ ├── com_android_support_support_media_compat_25_3_1.xml │ │ ├── com_android_support_support_vector_drawable_25_3_1.xml │ │ ├── com_android_support_animated_vector_drawable_25_3_1.xml │ │ ├── com_android_support_test_rules_0_5.xml │ │ ├── com_android_support_support_annotations_25_3_1_jar.xml │ │ ├── com_android_support_test_runner_0_5.xml │ │ ├── com_android_support_test_espresso_espresso_core_2_2_2.xml │ │ ├── com_android_support_test_espresso_espresso_idling_resource_2_2_2.xml │ │ └── com_android_support_test_exposed_instrumentation_api_publish_0_5.xml │ ├── modules.xml │ ├── runConfigurations.xml │ └── gradle.xml ├── build.gradle └── gradle.properties ├── Chatmvvm - Java ├── app │ ├── .gitignore │ ├── src │ │ ├── main │ │ │ ├── res │ │ │ │ ├── drawable │ │ │ │ │ ├── app_icon.png │ │ │ │ │ ├── grey_node.png │ │ │ │ │ ├── purple_node_bg.png │ │ │ │ │ ├── rounded_edittext.xml │ │ │ │ │ ├── regular_button_background.xml │ │ │ │ │ ├── right_node_bg.xml │ │ │ │ │ └── left_node_bg.xml │ │ │ │ ├── mipmap-hdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── mipmap-mdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── mipmap-xhdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── mipmap-xxhdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── mipmap-xxxhdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── values │ │ │ │ │ ├── colors.xml │ │ │ │ │ ├── strings.xml │ │ │ │ │ └── dimens.xml │ │ │ │ ├── values-w820dp │ │ │ │ │ └── dimens.xml │ │ │ │ └── layout │ │ │ │ │ └── dialog_room.xml │ │ │ ├── java │ │ │ │ └── nosql │ │ │ │ │ └── anew │ │ │ │ │ └── chatmvvm │ │ │ │ │ ├── interfaces │ │ │ │ │ ├── Observer.java │ │ │ │ │ ├── FirebaseCallBacks.java │ │ │ │ │ └── ModelCallBacks.java │ │ │ │ │ ├── models │ │ │ │ │ └── MessageModel.java │ │ │ │ │ └── utils │ │ │ │ │ └── MyUtils.java │ │ │ └── AndroidManifest.xml │ │ ├── test │ │ │ └── java │ │ │ │ └── nosql │ │ │ │ └── anew │ │ │ │ └── chatmvvm │ │ │ │ └── ExampleUnitTest.java │ │ └── androidTest │ │ │ └── java │ │ │ └── nosql │ │ │ └── anew │ │ │ └── chatmvvm │ │ │ └── ExampleInstrumentedTest.java │ ├── proguard-rules.pro │ └── build.gradle ├── settings.gradle ├── gradle │ └── wrapper │ │ ├── gradle-wrapper.jar │ │ └── gradle-wrapper.properties ├── build.gradle └── gradle.properties └── .gitignore /_config.yml: -------------------------------------------------------------------------------- 1 | theme: jekyll-theme-cayman -------------------------------------------------------------------------------- /Chatmvc - Java/app/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /Chatmvc - Kotlin/app/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /Chatmvp - Java/app/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /Chatmvp - Kotlin/app/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /Chatmvvm - Java/app/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /Chatmvc - Java/settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app' 2 | -------------------------------------------------------------------------------- /Chatmvc - Kotlin/settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app' 2 | -------------------------------------------------------------------------------- /Chatmvp - Java/settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app' 2 | -------------------------------------------------------------------------------- /Chatmvp - Kotlin/settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app' 2 | -------------------------------------------------------------------------------- /Chatmvvm - Java/settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app' 2 | -------------------------------------------------------------------------------- /Chatmvc - Java/chat.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shardwiz/java-kotlin-chat/HEAD/Chatmvc - Java/chat.jpg -------------------------------------------------------------------------------- /Chatmvc - Java/compare.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shardwiz/java-kotlin-chat/HEAD/Chatmvc - Java/compare.png -------------------------------------------------------------------------------- /Chatmvc - Java/layer-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shardwiz/java-kotlin-chat/HEAD/Chatmvc - Java/layer-1.png -------------------------------------------------------------------------------- /Chatmvc - Java/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shardwiz/java-kotlin-chat/HEAD/Chatmvc - Java/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /Chatmvp - Java/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shardwiz/java-kotlin-chat/HEAD/Chatmvp - Java/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /Chatmvc - Kotlin/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shardwiz/java-kotlin-chat/HEAD/Chatmvc - Kotlin/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /Chatmvp - Kotlin/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shardwiz/java-kotlin-chat/HEAD/Chatmvp - Kotlin/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /Chatmvvm - Java/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shardwiz/java-kotlin-chat/HEAD/Chatmvvm - Java/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /Chatmvc - Java/app/src/main/res/drawable/app_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shardwiz/java-kotlin-chat/HEAD/Chatmvc - Java/app/src/main/res/drawable/app_icon.png -------------------------------------------------------------------------------- /Chatmvp - Java/app/src/main/res/drawable/app_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shardwiz/java-kotlin-chat/HEAD/Chatmvp - Java/app/src/main/res/drawable/app_icon.png -------------------------------------------------------------------------------- /Chatmvc - Java/app/src/main/res/drawable/grey_node.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shardwiz/java-kotlin-chat/HEAD/Chatmvc - Java/app/src/main/res/drawable/grey_node.png -------------------------------------------------------------------------------- /Chatmvc - Kotlin/app/src/main/res/drawable/app_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shardwiz/java-kotlin-chat/HEAD/Chatmvc - Kotlin/app/src/main/res/drawable/app_icon.png -------------------------------------------------------------------------------- /Chatmvc - Kotlin/app/src/main/res/drawable/grey_node.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shardwiz/java-kotlin-chat/HEAD/Chatmvc - Kotlin/app/src/main/res/drawable/grey_node.png -------------------------------------------------------------------------------- /Chatmvp - Java/app/src/main/res/drawable/grey_node.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shardwiz/java-kotlin-chat/HEAD/Chatmvp - Java/app/src/main/res/drawable/grey_node.png -------------------------------------------------------------------------------- /Chatmvp - Kotlin/app/src/main/res/drawable/app_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shardwiz/java-kotlin-chat/HEAD/Chatmvp - Kotlin/app/src/main/res/drawable/app_icon.png -------------------------------------------------------------------------------- /Chatmvp - Kotlin/app/src/main/res/drawable/grey_node.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shardwiz/java-kotlin-chat/HEAD/Chatmvp - Kotlin/app/src/main/res/drawable/grey_node.png -------------------------------------------------------------------------------- /Chatmvvm - Java/app/src/main/res/drawable/app_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shardwiz/java-kotlin-chat/HEAD/Chatmvvm - Java/app/src/main/res/drawable/app_icon.png -------------------------------------------------------------------------------- /Chatmvvm - Java/app/src/main/res/drawable/grey_node.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shardwiz/java-kotlin-chat/HEAD/Chatmvvm - Java/app/src/main/res/drawable/grey_node.png -------------------------------------------------------------------------------- /Chatmvc - Java/app/src/main/res/drawable/purple_node_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shardwiz/java-kotlin-chat/HEAD/Chatmvc - Java/app/src/main/res/drawable/purple_node_bg.png -------------------------------------------------------------------------------- /Chatmvc - Java/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shardwiz/java-kotlin-chat/HEAD/Chatmvc - Java/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /Chatmvc - Java/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shardwiz/java-kotlin-chat/HEAD/Chatmvc - Java/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /Chatmvc - Java/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shardwiz/java-kotlin-chat/HEAD/Chatmvc - Java/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /Chatmvc - Java/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shardwiz/java-kotlin-chat/HEAD/Chatmvc - Java/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /Chatmvc - Kotlin/app/src/main/res/drawable/purple_node_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shardwiz/java-kotlin-chat/HEAD/Chatmvc - Kotlin/app/src/main/res/drawable/purple_node_bg.png -------------------------------------------------------------------------------- /Chatmvc - Kotlin/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shardwiz/java-kotlin-chat/HEAD/Chatmvc - Kotlin/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /Chatmvc - Kotlin/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shardwiz/java-kotlin-chat/HEAD/Chatmvc - Kotlin/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /Chatmvp - Java/app/src/main/res/drawable/purple_node_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shardwiz/java-kotlin-chat/HEAD/Chatmvp - Java/app/src/main/res/drawable/purple_node_bg.png -------------------------------------------------------------------------------- /Chatmvp - Java/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shardwiz/java-kotlin-chat/HEAD/Chatmvp - Java/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /Chatmvp - Java/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shardwiz/java-kotlin-chat/HEAD/Chatmvp - Java/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /Chatmvp - Java/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shardwiz/java-kotlin-chat/HEAD/Chatmvp - Java/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /Chatmvp - Java/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shardwiz/java-kotlin-chat/HEAD/Chatmvp - Java/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /Chatmvp - Kotlin/app/src/main/res/drawable/purple_node_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shardwiz/java-kotlin-chat/HEAD/Chatmvp - Kotlin/app/src/main/res/drawable/purple_node_bg.png -------------------------------------------------------------------------------- /Chatmvp - Kotlin/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shardwiz/java-kotlin-chat/HEAD/Chatmvp - Kotlin/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /Chatmvp - Kotlin/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shardwiz/java-kotlin-chat/HEAD/Chatmvp - Kotlin/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /Chatmvvm - Java/app/src/main/res/drawable/purple_node_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shardwiz/java-kotlin-chat/HEAD/Chatmvvm - Java/app/src/main/res/drawable/purple_node_bg.png -------------------------------------------------------------------------------- /Chatmvvm - Java/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shardwiz/java-kotlin-chat/HEAD/Chatmvvm - Java/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /Chatmvvm - Java/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shardwiz/java-kotlin-chat/HEAD/Chatmvvm - Java/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /Chatmvvm - Java/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shardwiz/java-kotlin-chat/HEAD/Chatmvvm - Java/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /Chatmvc - Java/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shardwiz/java-kotlin-chat/HEAD/Chatmvc - Java/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /Chatmvc - Kotlin/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shardwiz/java-kotlin-chat/HEAD/Chatmvc - Kotlin/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /Chatmvc - Kotlin/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shardwiz/java-kotlin-chat/HEAD/Chatmvc - Kotlin/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /Chatmvp - Java/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shardwiz/java-kotlin-chat/HEAD/Chatmvp - Java/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /Chatmvp - Kotlin/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shardwiz/java-kotlin-chat/HEAD/Chatmvp - Kotlin/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /Chatmvp - Kotlin/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shardwiz/java-kotlin-chat/HEAD/Chatmvp - Kotlin/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /Chatmvvm - Java/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shardwiz/java-kotlin-chat/HEAD/Chatmvvm - Java/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /Chatmvvm - Java/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shardwiz/java-kotlin-chat/HEAD/Chatmvvm - Java/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /Chatmvc - Kotlin/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shardwiz/java-kotlin-chat/HEAD/Chatmvc - Kotlin/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /Chatmvp - Kotlin/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shardwiz/java-kotlin-chat/HEAD/Chatmvp - Kotlin/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /Chatmvc - Kotlin/app/src/main/res/mipmap-hdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shardwiz/java-kotlin-chat/HEAD/Chatmvc - Kotlin/app/src/main/res/mipmap-hdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /Chatmvc - Kotlin/app/src/main/res/mipmap-mdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shardwiz/java-kotlin-chat/HEAD/Chatmvc - Kotlin/app/src/main/res/mipmap-mdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /Chatmvc - Kotlin/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shardwiz/java-kotlin-chat/HEAD/Chatmvc - Kotlin/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /Chatmvc - Kotlin/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shardwiz/java-kotlin-chat/HEAD/Chatmvc - Kotlin/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /Chatmvc - Kotlin/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shardwiz/java-kotlin-chat/HEAD/Chatmvc - Kotlin/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /Chatmvc - Kotlin/app/src/main/java/nosql/anew/kotlinmvc/interfaces/FirebaseCallBacks.kt: -------------------------------------------------------------------------------- 1 | package nosql.anew.kotlinmvc.interfaces 2 | 3 | import com.google.firebase.database.DataSnapshot 4 | 5 | interface FirebaseCallBacks { 6 | fun onNewMessage(dataSnapshot: DataSnapshot?) 7 | } -------------------------------------------------------------------------------- /Chatmvp - Kotlin/app/src/main/java/nosql/anew/kotlinmvp/interfaces/FirebaseCallBacks.kt: -------------------------------------------------------------------------------- 1 | package nosql.anew.kotlinmvc.interfaces 2 | 3 | import com.google.firebase.database.DataSnapshot 4 | 5 | interface FirebaseCallBacks { 6 | fun onNewMessage(dataSnapshot: DataSnapshot?) 7 | } -------------------------------------------------------------------------------- /Chatmvvm - Java/app/src/main/java/nosql/anew/chatmvvm/interfaces/Observer.java: -------------------------------------------------------------------------------- 1 | package nosql.anew.chatmvvm.interfaces; 2 | 3 | /** 4 | * Created by rcmac1 on 03/09/17. 5 | */ 6 | 7 | public interface Observer { 8 | void onObserve(int event, T eventMessage); 9 | } 10 | -------------------------------------------------------------------------------- /Chatmvc - Java/app/src/main/res/drawable/rounded_edittext.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /Chatmvc - Kotlin/app/src/main/res/drawable/rounded_edittext.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /Chatmvp - Java/app/src/main/res/drawable/rounded_edittext.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /Chatmvp - Kotlin/app/src/main/res/drawable/rounded_edittext.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /Chatmvvm - Java/app/src/main/res/drawable/rounded_edittext.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /Chatmvc - Java/app/src/main/res/drawable/regular_button_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /Chatmvc - Java/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Mon Dec 28 10:00:20 PST 2015 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-2.14.1-all.zip 7 | -------------------------------------------------------------------------------- /Chatmvc - Kotlin/app/src/main/java/nosql/anew/kotlinmvc/interfaces/ModelCallBacks.kt: -------------------------------------------------------------------------------- 1 | package nosql.anew.kotlinmvc.interfaces 2 | 3 | import nosql.anew.kotlinmvc.models.ChatPojo 4 | import java.util.ArrayList 5 | 6 | interface ModelCallBacks { 7 | fun onModelUpdated(messages: ArrayList) 8 | } 9 | -------------------------------------------------------------------------------- /Chatmvc - Kotlin/app/src/main/res/drawable/regular_button_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /Chatmvc - Kotlin/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Tue Apr 10 23:17:12 IST 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.1-all.zip 7 | -------------------------------------------------------------------------------- /Chatmvp - Java/app/src/main/res/drawable/regular_button_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /Chatmvp - Java/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Mon Dec 28 10:00:20 PST 2015 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-2.14.1-all.zip 7 | -------------------------------------------------------------------------------- /Chatmvp - Kotlin/app/src/main/java/nosql/anew/kotlinmvp/interfaces/ModelCallBacks.kt: -------------------------------------------------------------------------------- 1 | package nosql.anew.kotlinmvc.interfaces 2 | 3 | import nosql.anew.kotlinmvp.models.ChatPojo 4 | import java.util.ArrayList 5 | 6 | interface ModelCallBacks { 7 | fun onModelUpdated(messages: ArrayList) 8 | } 9 | -------------------------------------------------------------------------------- /Chatmvp - Kotlin/app/src/main/res/drawable/regular_button_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /Chatmvvm - Java/app/src/main/res/drawable/regular_button_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /Chatmvvm - Java/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Fri Sep 01 22:17:37 IST 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 | -------------------------------------------------------------------------------- /Chatmvp - Kotlin/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Mon Dec 28 10:00:20 PST 2015 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-2.14.1-all.zip 7 | -------------------------------------------------------------------------------- /Chatmvc - Kotlin/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /Chatmvc - Kotlin/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /Chatmvc - Java/app/src/main/java/nosql/anew/chatmvc/interfaces/FirebaseCallBacks.java: -------------------------------------------------------------------------------- 1 | package nosql.anew.chatmvc.interfaces; 2 | 3 | import com.google.firebase.database.DataSnapshot; 4 | 5 | /** 6 | * Created by saksham on 26/6/17. 7 | */ 8 | 9 | public interface FirebaseCallBacks { 10 | void onNewMessage(DataSnapshot dataSnapshot); 11 | } 12 | -------------------------------------------------------------------------------- /Chatmvp - Java/app/src/main/java/nosql/anew/chatmvp/interfaces/FirebaseCallBacks.java: -------------------------------------------------------------------------------- 1 | package nosql.anew.chatmvp.interfaces; 2 | 3 | import com.google.firebase.database.DataSnapshot; 4 | 5 | /** 6 | * Created by saksham on 26/6/17. 7 | */ 8 | 9 | public interface FirebaseCallBacks { 10 | void onNewMessage(DataSnapshot dataSnapshot); 11 | } 12 | -------------------------------------------------------------------------------- /Chatmvvm - Java/app/src/main/java/nosql/anew/chatmvvm/interfaces/FirebaseCallBacks.java: -------------------------------------------------------------------------------- 1 | package nosql.anew.chatmvvm.interfaces; 2 | 3 | import com.google.firebase.database.DataSnapshot; 4 | 5 | /** 6 | * Created by saksham on 26/6/17. 7 | */ 8 | 9 | public interface FirebaseCallBacks { 10 | void onNewMessage(DataSnapshot dataSnapshot); 11 | } 12 | -------------------------------------------------------------------------------- /Chatmvc - Kotlin/.idea/libraries/net_sf_kxml_kxml2_2_3_0_jar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /Chatmvp - Kotlin/app/src/main/java/nosql/anew/kotlinmvp/views/IChatView.kt: -------------------------------------------------------------------------------- 1 | package nosql.anew.kotlinmvp.views 2 | 3 | import nosql.anew.kotlinmvp.models.ChatPojo 4 | import java.util.ArrayList 5 | 6 | /** 7 | * Created by Sam on 27/04/18. 8 | */ 9 | interface IChatView { 10 | fun updateList(list: ArrayList) 11 | fun clearEditText() 12 | } -------------------------------------------------------------------------------- /Chatmvc - Java/app/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #3F51B5 4 | #303F9F 5 | #d7dce7 6 | 7 | #FFFFFF 8 | #000000 9 | 10 | -------------------------------------------------------------------------------- /Chatmvc - Kotlin/app/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #3F51B5 4 | #303F9F 5 | #d7dce7 6 | 7 | #FFFFFF 8 | #000000 9 | 10 | -------------------------------------------------------------------------------- /Chatmvp - Java/app/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #3F51B5 4 | #303F9F 5 | #d7dce7 6 | 7 | #FFFFFF 8 | #000000 9 | 10 | -------------------------------------------------------------------------------- /Chatmvp - Kotlin/app/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #3F51B5 4 | #303F9F 5 | #d7dce7 6 | 7 | #FFFFFF 8 | #000000 9 | 10 | -------------------------------------------------------------------------------- /Chatmvvm - Java/app/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #3F51B5 4 | #303F9F 5 | #d7dce7 6 | 7 | #FFFFFF 8 | #000000 9 | 10 | -------------------------------------------------------------------------------- /Chatmvp - Kotlin/app/src/main/java/nosql/anew/kotlinmvp/views/ILoginView.kt: -------------------------------------------------------------------------------- 1 | package nosql.anew.kotlinmvp.views 2 | 3 | /** 4 | * Created by Sam on 27/04/18. 5 | */ 6 | interface ILoginView { 7 | fun showToast(message: String) 8 | fun authSuccessful() 9 | fun showRoomDialog() 10 | fun changeButtonText() 11 | fun startChatActivity(roomName: String) 12 | } 13 | -------------------------------------------------------------------------------- /Chatmvc - Java/app/src/main/java/nosql/anew/chatmvc/interfaces/ModelCallBacks.java: -------------------------------------------------------------------------------- 1 | package nosql.anew.chatmvc.interfaces; 2 | 3 | import java.util.ArrayList; 4 | 5 | import nosql.anew.chatmvc.model.ChatPojo; 6 | 7 | /** 8 | * Created by saksham on 26/6/17. 9 | */ 10 | 11 | public interface ModelCallBacks { 12 | void onModelUpdated(ArrayList messages); 13 | } 14 | -------------------------------------------------------------------------------- /Chatmvp - Java/app/src/main/java/nosql/anew/chatmvp/interfaces/ModelCallBacks.java: -------------------------------------------------------------------------------- 1 | package nosql.anew.chatmvp.interfaces; 2 | 3 | import java.util.ArrayList; 4 | 5 | import nosql.anew.chatmvp.models.ChatPojo; 6 | 7 | /** 8 | * Created by saksham on 26/6/17. 9 | */ 10 | 11 | public interface ModelCallBacks { 12 | void onModelUpdated(ArrayList messages); 13 | } 14 | -------------------------------------------------------------------------------- /Chatmvp - Java/app/src/main/java/nosql/anew/chatmvp/views/IChatView.java: -------------------------------------------------------------------------------- 1 | package nosql.anew.chatmvp.views; 2 | 3 | import java.util.ArrayList; 4 | 5 | import nosql.anew.chatmvp.models.ChatPojo; 6 | 7 | /** 8 | * Created by saksham on 26/6/17. 9 | */ 10 | 11 | public interface IChatView { 12 | void updateList(ArrayList list); 13 | void clearEditText(); 14 | } 15 | -------------------------------------------------------------------------------- /Chatmvc - Kotlin/.idea/libraries/org_jetbrains_annotations_13_0_jar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /Chatmvp - Kotlin/.idea/libraries/org_jetbrains_annotations_13_0_jar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /Chatmvvm - Java/app/src/main/java/nosql/anew/chatmvvm/interfaces/ModelCallBacks.java: -------------------------------------------------------------------------------- 1 | package nosql.anew.chatmvvm.interfaces; 2 | 3 | import java.util.ArrayList; 4 | 5 | import nosql.anew.chatmvvm.models.ChatPojo; 6 | 7 | /** 8 | * Created by saksham on 26/6/17. 9 | */ 10 | 11 | public interface ModelCallBacks { 12 | void onModelUpdated(ArrayList messages); 13 | } 14 | -------------------------------------------------------------------------------- /Chatmvp - Java/app/src/main/java/nosql/anew/chatmvp/views/ILoginView.java: -------------------------------------------------------------------------------- 1 | package nosql.anew.chatmvp.views; 2 | 3 | /** 4 | * Created by saksham on 20/6/17. 5 | */ 6 | 7 | public interface ILoginView { 8 | void showToast(String message); 9 | void authSuccessful(); 10 | void showRoomDialog(); 11 | void changeButtonText(); 12 | void startChatActivity(String roomName); 13 | } 14 | -------------------------------------------------------------------------------- /Chatmvc - Java/.idea/misc.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 9 | -------------------------------------------------------------------------------- /Chatmvc - Java/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /Chatmvc - Java/app/src/main/res/drawable/right_node_bg.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 11 | -------------------------------------------------------------------------------- /Chatmvc - Kotlin/app/src/main/res/drawable/right_node_bg.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 11 | -------------------------------------------------------------------------------- /Chatmvp - Java/app/src/main/res/drawable/right_node_bg.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 11 | -------------------------------------------------------------------------------- /Chatmvp - Kotlin/app/src/main/res/drawable/right_node_bg.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 11 | -------------------------------------------------------------------------------- /Chatmvvm - Java/app/src/main/res/drawable/right_node_bg.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 11 | -------------------------------------------------------------------------------- /Chatmvc - Java/app/src/main/res/values-w820dp/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 64dp 6 | 7 | -------------------------------------------------------------------------------- /Chatmvc - Kotlin/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /Chatmvp - Java/app/src/main/res/values-w820dp/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 64dp 6 | 7 | -------------------------------------------------------------------------------- /Chatmvp - Kotlin/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /Chatmvp - Kotlin/app/src/main/res/values-w820dp/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 64dp 6 | 7 | -------------------------------------------------------------------------------- /Chatmvvm - Java/app/src/main/res/values-w820dp/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 64dp 6 | 7 | -------------------------------------------------------------------------------- /Chatmvc - Java/.idea/libraries/com_google_code_findbugs_jsr305_2_0_1_jar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /Chatmvc - Kotlin/.idea/libraries/com_google_code_findbugs_jsr305_2_0_1_jar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /Chatmvp - Kotlin/.idea/libraries/com_google_code_findbugs_jsr305_2_0_1_jar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /Chatmvc - Kotlin/app/src/test/java/nosql/anew/kotlinmvc/ExampleUnitTest.kt: -------------------------------------------------------------------------------- 1 | package nosql.anew.kotlinmvc 2 | 3 | import org.junit.Test 4 | 5 | import org.junit.Assert.* 6 | 7 | /** 8 | * Example local unit test, which will execute on the development machine (host). 9 | * 10 | * See [testing documentation](http://d.android.com/tools/testing). 11 | */ 12 | class ExampleUnitTest { 13 | @Test 14 | fun addition_isCorrect() { 15 | assertEquals(4, 2 + 2) 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /Chatmvc - Java/app/src/main/res/drawable/left_node_bg.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 7 | 8 | 13 | -------------------------------------------------------------------------------- /Chatmvc - Kotlin/.idea/libraries/com_android_support_constraint_constraint_layout_solver_1_0_2_jar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /Chatmvc - Kotlin/app/src/main/res/drawable/left_node_bg.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 7 | 8 | 13 | -------------------------------------------------------------------------------- /Chatmvp - Java/app/src/main/res/drawable/left_node_bg.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 7 | 8 | 13 | -------------------------------------------------------------------------------- /Chatmvp - Kotlin/app/src/main/res/drawable/left_node_bg.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 7 | 8 | 13 | -------------------------------------------------------------------------------- /Chatmvvm - Java/app/src/main/res/drawable/left_node_bg.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 7 | 8 | 13 | -------------------------------------------------------------------------------- /Chatmvc - Java/.idea/libraries/com_android_support_support_v4_25_3_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /Chatmvc - Java/.idea/libraries/com_google_firebase_firebase_iid_9_0_0.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /Chatmvc - Java/app/src/test/java/nosql/anew/chatmvc/ExampleUnitTest.java: -------------------------------------------------------------------------------- 1 | package nosql.anew.chatmvc; 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 | } -------------------------------------------------------------------------------- /Chatmvp - Java/app/src/test/java/nosql/anew/chatmvp/ExampleUnitTest.java: -------------------------------------------------------------------------------- 1 | package nosql.anew.chatmvp; 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 | } -------------------------------------------------------------------------------- /Chatmvp - Kotlin/.idea/libraries/com_android_support_support_v4_25_3_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /Chatmvvm - Java/app/src/test/java/nosql/anew/chatmvvm/ExampleUnitTest.java: -------------------------------------------------------------------------------- 1 | package nosql.anew.chatmvvm; 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 | } -------------------------------------------------------------------------------- /Chatmvc - Java/.idea/libraries/com_google_firebase_firebase_auth_9_0_0.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /Chatmvc - Java/.idea/libraries/com_google_firebase_firebase_core_9_0_0.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /Chatmvp - Kotlin/.idea/libraries/com_google_firebase_firebase_iid_9_0_0.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /Chatmvp - Kotlin/app/src/test/java/nosql/anew/kotlinmvp/ExampleUnitTest.java: -------------------------------------------------------------------------------- 1 | package nosql.anew.kotlinmvp; 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 | } -------------------------------------------------------------------------------- /Chatmvp - Kotlin/.idea/libraries/com_google_firebase_firebase_auth_9_0_0.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /Chatmvp - Kotlin/.idea/libraries/com_google_firebase_firebase_core_9_0_0.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /Chatmvc - Java/.idea/libraries/com_google_firebase_firebase_common_9_0_0.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /Chatmvc - Java/.idea/libraries/com_google_firebase_firebase_config_9_0_0.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /Chatmvp - Kotlin/.idea/libraries/com_google_firebase_firebase_common_9_0_0.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /Chatmvp - Kotlin/.idea/libraries/com_google_firebase_firebase_config_9_0_0.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /Chatmvc - Java/.idea/libraries/com_google_firebase_firebase_database_9_0_0.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /Chatmvc - Java/.idea/libraries/com_google_firebase_firebase_analytics_9_0_0.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /Chatmvc - Java/.idea/libraries/com_google_firebase_firebase_messaging_9_0_0.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /Chatmvp - Kotlin/.idea/libraries/com_google_firebase_firebase_database_9_0_0.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /Chatmvc - Java/.idea/libraries/junit_junit_4_12_jar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Chatmvp - Kotlin/.idea/libraries/com_google_firebase_firebase_analytics_9_0_0.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /Chatmvp - Kotlin/.idea/libraries/com_google_firebase_firebase_messaging_9_0_0.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /Chatmvc - Java/.idea/libraries/com_google_firebase_firebase_auth_common_9_0_0.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /Chatmvc - Java/.idea/libraries/com_google_firebase_firebase_auth_module_9_0_0.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /Chatmvc - Kotlin/.idea/libraries/com_google_firebase_firebase_iid_9_0_0.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /Chatmvc - Kotlin/.idea/libraries/junit_junit_4_12_jar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Chatmvp - Kotlin/.idea/libraries/com_google_firebase_firebase_auth_common_9_0_0.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /Chatmvp - Kotlin/.idea/libraries/com_google_firebase_firebase_auth_module_9_0_0.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /Chatmvp - Kotlin/.idea/libraries/junit_junit_4_12_jar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Chatmvc - Java/.idea/libraries/com_google_android_gms_play_services_auth_9_0_0.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /Chatmvc - Java/.idea/libraries/com_google_android_gms_play_services_base_9_0_0.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /Chatmvc - Java/.idea/libraries/com_google_android_gms_play_services_tasks_9_0_0.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /Chatmvc - Kotlin/.idea/libraries/com_google_firebase_firebase_auth_9_0_0.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /Chatmvc - Kotlin/.idea/libraries/com_google_firebase_firebase_core_9_0_0.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /Chatmvp - Kotlin/.idea/libraries/com_google_android_gms_play_services_auth_9_0_0.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /Chatmvp - Kotlin/.idea/libraries/com_google_android_gms_play_services_base_9_0_0.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /Chatmvc - Java/.idea/libraries/com_google_firebase_firebase_analytics_impl_9_0_0.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /Chatmvp - Kotlin/.idea/libraries/com_google_android_gms_play_services_tasks_9_0_0.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /Chatmvc - Kotlin/.idea/libraries/com_google_firebase_firebase_common_9_0_0.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /Chatmvc - Kotlin/.idea/libraries/com_google_firebase_firebase_config_9_0_0.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /Chatmvp - Kotlin/.idea/libraries/com_google_firebase_firebase_analytics_impl_9_0_0.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /Chatmvc - Java/.idea/libraries/com_google_android_gms_play_services_basement_9_0_0.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /Chatmvc - Kotlin/.idea/libraries/com_google_firebase_firebase_database_9_0_0.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /Chatmvp - Kotlin/.idea/libraries/com_google_android_gms_play_services_basement_9_0_0.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /Chatmvc - Java/.idea/libraries/com_google_android_gms_play_services_auth_base_9_0_0.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /Chatmvc - Kotlin/.idea/libraries/com_google_firebase_firebase_analytics_9_0_0.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /Chatmvc - Kotlin/.idea/libraries/com_google_firebase_firebase_messaging_9_0_0.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /Chatmvc - Kotlin/app/src/main/java/nosql/anew/kotlinmvc/utils/MyUtils.kt: -------------------------------------------------------------------------------- 1 | package nosql.anew.kotlinmvc.utils 2 | 3 | import java.text.SimpleDateFormat 4 | import java.util.* 5 | 6 | /** 7 | * Created by Sam on 11/04/18. 8 | */ 9 | 10 | object MyUtils { 11 | var EXTRA_ROOM_NAME = "EXTRA_ROOM_NAME" 12 | 13 | fun convertTime(timestamp: Long): String { 14 | val c = Calendar.getInstance() 15 | val sdf = SimpleDateFormat("HH:mm") 16 | val date = Date(timestamp) 17 | sdf.timeZone = TimeZone.getDefault() 18 | return sdf.format(date) 19 | } 20 | } -------------------------------------------------------------------------------- /Chatmvp - Kotlin/.idea/libraries/com_google_android_gms_play_services_auth_base_9_0_0.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /Chatmvp - Kotlin/app/src/main/java/nosql/anew/kotlinmvp/utils/MyUtils.kt: -------------------------------------------------------------------------------- 1 | package nosql.anew.kotlinmvp.utils 2 | 3 | import java.text.SimpleDateFormat 4 | import java.util.* 5 | 6 | /** 7 | * Created by Sam on 11/04/18. 8 | */ 9 | 10 | object MyUtils { 11 | var EXTRA_ROOM_NAME = "EXTRA_ROOM_NAME" 12 | 13 | fun convertTime(timestamp: Long): String { 14 | val c = Calendar.getInstance() 15 | val sdf = SimpleDateFormat("HH:mm") 16 | val date = Date(timestamp) 17 | sdf.timeZone = TimeZone.getDefault() 18 | return sdf.format(date) 19 | } 20 | } -------------------------------------------------------------------------------- /Chatmvc - Java/.idea/libraries/com_google_firebase_firebase_database_connection_9_0_0.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /Chatmvc - Kotlin/.idea/libraries/com_google_android_gms_play_services_auth_9_0_0.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /Chatmvc - Kotlin/.idea/libraries/com_google_android_gms_play_services_base_9_0_0.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /Chatmvc - Kotlin/.idea/libraries/com_google_android_gms_play_services_tasks_9_0_0.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /Chatmvc - Kotlin/.idea/libraries/com_google_firebase_firebase_auth_common_9_0_0.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /Chatmvc - Kotlin/.idea/libraries/com_google_firebase_firebase_auth_module_9_0_0.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /Chatmvp - Kotlin/.idea/libraries/com_google_firebase_firebase_database_connection_9_0_0.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /Chatmvc - Kotlin/.idea/libraries/com_android_support_constraint_constraint_layout_1_0_2.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /Chatmvc - Kotlin/.idea/libraries/com_google_android_gms_play_services_basement_9_0_0.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /Chatmvc - Kotlin/.idea/libraries/com_google_firebase_firebase_analytics_impl_9_0_0.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /Chatmvc - Java/.idea/libraries/javax_inject_javax_inject_1_jar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Chatmvc - Kotlin/.idea/libraries/com_google_android_gms_play_services_auth_base_9_0_0.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /Chatmvc - Kotlin/.idea/libraries/javax_inject_javax_inject_1_jar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Chatmvp - Kotlin/.idea/libraries/javax_inject_javax_inject_1_jar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Chatmvc - Java/.idea/libraries/com_squareup_javawriter_2_1_1_jar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Chatmvc - Kotlin/.idea/libraries/android_arch_core_common_1_0_0_jar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Chatmvc - Java/.idea/libraries/org_hamcrest_hamcrest_core_1_3_jar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Chatmvc - Kotlin/.idea/libraries/com_google_firebase_firebase_database_connection_9_0_0.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /Chatmvc - Kotlin/.idea/libraries/com_squareup_javawriter_2_1_1_jar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Chatmvp - Kotlin/.idea/libraries/com_squareup_javawriter_2_1_1_jar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Chatmvc - Kotlin/.idea/libraries/org_hamcrest_hamcrest_core_1_3_jar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Chatmvp - Kotlin/.idea/libraries/org_hamcrest_hamcrest_core_1_3_jar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Chatmvc - Java/.idea/runConfigurations.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 11 | 12 | -------------------------------------------------------------------------------- /Chatmvc - Kotlin/.idea/libraries/android_arch_lifecycle_common_1_0_0_jar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Chatmvc - Kotlin/.idea/runConfigurations.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 11 | 12 | -------------------------------------------------------------------------------- /Chatmvp - Kotlin/.idea/runConfigurations.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 11 | 12 | -------------------------------------------------------------------------------- /Chatmvc - Java/.idea/libraries/org_hamcrest_hamcrest_library_1_3_jar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Chatmvc - Kotlin/.idea/libraries/org_hamcrest_hamcrest_library_1_3_jar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Chatmvp - Kotlin/.idea/libraries/org_hamcrest_hamcrest_library_1_3_jar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Chatmvc - Java/.idea/libraries/org_hamcrest_hamcrest_integration_1_3_jar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Chatmvc - Kotlin/.idea/libraries/org_hamcrest_hamcrest_integration_1_3_jar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Chatmvp - Kotlin/.idea/libraries/org_hamcrest_hamcrest_integration_1_3_jar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Chatmvc - Java/build.gradle: -------------------------------------------------------------------------------- 1 | // Top-level build file where you can add configuration options common to all sub-projects/modules. 2 | 3 | buildscript { 4 | repositories { 5 | jcenter() 6 | } 7 | dependencies { 8 | classpath 'com.android.tools.build:gradle:2.2.1' 9 | classpath 'com.google.gms:google-services:3.0.0' 10 | 11 | // NOTE: Do not place your application dependencies here; they belong 12 | // in the individual module build.gradle files 13 | } 14 | } 15 | 16 | allprojects { 17 | repositories { 18 | jcenter() 19 | } 20 | } 21 | 22 | task clean(type: Delete) { 23 | delete rootProject.buildDir 24 | } 25 | -------------------------------------------------------------------------------- /Chatmvp - Kotlin/.idea/libraries/org_jetbrains_kotlin_kotlin_stdlib_1_2_40_jar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Chatmvc - Java/.idea/libraries/javax_annotation_javax_annotation_api_1_2_jar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Chatmvp - Java/build.gradle: -------------------------------------------------------------------------------- 1 | // Top-level build file where you can add configuration options common to all sub-projects/modules. 2 | 3 | buildscript { 4 | repositories { 5 | jcenter() 6 | } 7 | dependencies { 8 | classpath 'com.android.tools.build:gradle:2.2.1' 9 | classpath 'com.google.gms:google-services:3.0.0' 10 | 11 | 12 | // NOTE: Do not place your application dependencies here; they belong 13 | // in the individual module build.gradle files 14 | } 15 | } 16 | 17 | allprojects { 18 | repositories { 19 | jcenter() 20 | } 21 | } 22 | 23 | task clean(type: Delete) { 24 | delete rootProject.buildDir 25 | } 26 | -------------------------------------------------------------------------------- /Chatmvp - Kotlin/.idea/libraries/javax_annotation_javax_annotation_api_1_2_jar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Chatmvvm - Java/build.gradle: -------------------------------------------------------------------------------- 1 | // Top-level build file where you can add configuration options common to all sub-projects/modules. 2 | 3 | buildscript { 4 | repositories { 5 | jcenter() 6 | } 7 | dependencies { 8 | classpath 'com.android.tools.build:gradle:2.3.3' 9 | classpath 'com.google.gms:google-services:3.0.0' 10 | 11 | 12 | // NOTE: Do not place your application dependencies here; they belong 13 | // in the individual module build.gradle files 14 | } 15 | } 16 | 17 | allprojects { 18 | repositories { 19 | jcenter() 20 | } 21 | } 22 | 23 | task clean(type: Delete) { 24 | delete rootProject.buildDir 25 | } 26 | -------------------------------------------------------------------------------- /Chatmvc - Kotlin/.idea/libraries/com_android_support_support_annotations_26_1_0_jar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Chatmvp - Kotlin/.idea/libraries/org_jetbrains_kotlin_kotlin_stdlib_jdk7_1_2_40_jar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Chatmvc - Java/.idea/gradle.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 17 | 18 | -------------------------------------------------------------------------------- /Chatmvc - Java/.idea/libraries/com_android_support_appcompat_v7_25_3_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /Chatmvp - Kotlin/.idea/libraries/com_android_support_appcompat_v7_25_3_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /Chatmvc - Kotlin/.idea/gradle.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 17 | 18 | -------------------------------------------------------------------------------- /Chatmvp - Kotlin/.idea/gradle.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 17 | 18 | -------------------------------------------------------------------------------- /Chatmvc - Java/.idea/libraries/com_android_support_support_compat_25_3_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /Chatmvp - Kotlin/.idea/libraries/com_android_support_support_compat_25_3_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /Chatmvc - Java/.idea/libraries/com_android_support_recyclerview_v7_25_3_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /Chatmvc - Java/.idea/libraries/com_android_support_support_core_ui_25_3_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /Chatmvp - Kotlin/.idea/libraries/com_android_support_recyclerview_v7_25_3_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /Chatmvp - Kotlin/.idea/libraries/com_android_support_support_core_ui_25_3_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /Chatmvc - Java/.idea/libraries/com_android_support_support_fragment_25_3_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /Chatmvc - Java/app/src/main/java/nosql/anew/chatmvc/utils/MyUtils.java: -------------------------------------------------------------------------------- 1 | package nosql.anew.chatmvc.utils; 2 | 3 | import java.text.SimpleDateFormat; 4 | import java.util.Calendar; 5 | import java.util.Date; 6 | import java.util.TimeZone; 7 | 8 | /** 9 | * Created by saksham on 25/6/17. 10 | */ 11 | 12 | public class MyUtils { 13 | public static String EXTRA_ROOM_NAME="EXTRA_ROOM_NAME"; 14 | 15 | public static String convertTime(long timestamp) { 16 | Calendar c = Calendar.getInstance(); 17 | SimpleDateFormat sdf; 18 | sdf = new SimpleDateFormat("HH:mm"); 19 | Date date = new Date(timestamp); 20 | sdf.setTimeZone(TimeZone.getDefault()); 21 | return sdf.format(date); 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /Chatmvp - Java/app/src/main/java/nosql/anew/chatmvp/utils/MyUtils.java: -------------------------------------------------------------------------------- 1 | package nosql.anew.chatmvp.utils; 2 | 3 | import java.text.SimpleDateFormat; 4 | import java.util.Calendar; 5 | import java.util.Date; 6 | import java.util.TimeZone; 7 | 8 | /** 9 | * Created by saksham on 25/6/17. 10 | */ 11 | 12 | public class MyUtils { 13 | public static String EXTRA_ROOM_NAME="EXTRA_ROOM_NAME"; 14 | 15 | public static String convertTime(long timestamp) { 16 | Calendar c = Calendar.getInstance(); 17 | SimpleDateFormat sdf; 18 | sdf = new SimpleDateFormat("HH:mm"); 19 | Date date = new Date(timestamp); 20 | sdf.setTimeZone(TimeZone.getDefault()); 21 | return sdf.format(date); 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /Chatmvp - Kotlin/.idea/libraries/com_android_support_support_fragment_25_3_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /Chatmvc - Kotlin/.idea/libraries/com_android_support_test_rules_1_0_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /Chatmvc - Java/.idea/libraries/com_android_support_support_core_utils_25_3_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /Chatmvc - Kotlin/.idea/libraries/android_arch_lifecycle_runtime_1_0_0.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /Chatmvc - Kotlin/.idea/libraries/com_android_support_test_runner_1_0_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /Chatmvc - Java/app/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in /home/saksham/Android/Sdk/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the proguardFiles 5 | # directive in build.gradle. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | 12 | # If your project uses WebView with JS, uncomment the following 13 | # and specify the fully qualified class name to the JavaScript interface 14 | # class: 15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 16 | # public *; 17 | #} 18 | -------------------------------------------------------------------------------- /Chatmvc - Kotlin/app/src/main/java/nosql/anew/kotlinmvc/models/MessageModel.kt: -------------------------------------------------------------------------------- 1 | package nosql.anew.kotlinmvc.models 2 | 3 | import com.google.firebase.database.DataSnapshot 4 | import nosql.anew.kotlinmvc.interfaces.ModelCallBacks 5 | import java.util.ArrayList 6 | 7 | /** 8 | * Created by Sam on 11/04/18. 9 | */ 10 | class MessageModel(internal var mModelCallBacks: ModelCallBacks) { 11 | private var mMessages: ArrayList? = null 12 | 13 | fun addMessages(dataSnapshot: DataSnapshot) { 14 | if (mMessages == null) { 15 | mMessages = ArrayList() 16 | } 17 | 18 | val chatPojo = ChatPojo(dataSnapshot) 19 | mMessages!!.add(chatPojo) 20 | mModelCallBacks.onModelUpdated(mMessages!!) 21 | } 22 | } -------------------------------------------------------------------------------- /Chatmvp - Java/app/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in /home/saksham/Android/Sdk/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the proguardFiles 5 | # directive in build.gradle. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | 12 | # If your project uses WebView with JS, uncomment the following 13 | # and specify the fully qualified class name to the JavaScript interface 14 | # class: 15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 16 | # public *; 17 | #} 18 | -------------------------------------------------------------------------------- /Chatmvp - Kotlin/.idea/libraries/com_android_support_support_core_utils_25_3_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /Chatmvp - Kotlin/app/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in /home/saksham/Android/Sdk/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the proguardFiles 5 | # directive in build.gradle. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | 12 | # If your project uses WebView with JS, uncomment the following 13 | # and specify the fully qualified class name to the JavaScript interface 14 | # class: 15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 16 | # public *; 17 | #} 18 | -------------------------------------------------------------------------------- /Chatmvp - Kotlin/app/src/main/java/nosql/anew/kotlinmvp/models/MessageModel.kt: -------------------------------------------------------------------------------- 1 | package nosql.anew.kotlinmvp.models 2 | 3 | import com.google.firebase.database.DataSnapshot 4 | import nosql.anew.kotlinmvc.interfaces.ModelCallBacks 5 | import java.util.ArrayList 6 | 7 | /** 8 | * Created by Sam on 11/04/18. 9 | */ 10 | class MessageModel(internal var mModelCallBacks: ModelCallBacks) { 11 | private var mMessages: ArrayList? = null 12 | 13 | fun addMessages(dataSnapshot: DataSnapshot) { 14 | if (mMessages == null) { 15 | mMessages = ArrayList() 16 | } 17 | 18 | val chatPojo = ChatPojo(dataSnapshot) 19 | mMessages!!.add(chatPojo) 20 | mModelCallBacks.onModelUpdated(mMessages!!) 21 | } 22 | } -------------------------------------------------------------------------------- /Chatmvvm - Java/app/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in /home/saksham/Android/Sdk/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the proguardFiles 5 | # directive in build.gradle. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | 12 | # If your project uses WebView with JS, uncomment the following 13 | # and specify the fully qualified class name to the JavaScript interface 14 | # class: 15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 16 | # public *; 17 | #} 18 | -------------------------------------------------------------------------------- /Chatmvc - Kotlin/.idea/libraries/org_jetbrains_kotlin_kotlin_stdlib_1_1_51_jar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /Chatmvp - Java/app/src/main/java/nosql/anew/chatmvp/models/MessageModel.java: -------------------------------------------------------------------------------- 1 | package nosql.anew.chatmvp.models; 2 | 3 | import com.google.firebase.database.DataSnapshot; 4 | 5 | import java.util.ArrayList; 6 | 7 | import nosql.anew.chatmvp.interfaces.ModelCallBacks; 8 | 9 | /** 10 | * Created by saksham on 26/6/17. 11 | */ 12 | 13 | public class MessageModel { 14 | private ArrayList mMessages; 15 | 16 | public void addMessages(DataSnapshot dataSnapshot, ModelCallBacks callBacks){ 17 | if (mMessages==null){ 18 | mMessages= new ArrayList<>(); 19 | } 20 | ChatPojo chatPojo=new ChatPojo(dataSnapshot); 21 | mMessages.add(chatPojo); 22 | callBacks.onModelUpdated(mMessages); 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /Chatmvc - Java/.idea/libraries/com_android_support_support_media_compat_25_3_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /Chatmvc - Kotlin/.idea/libraries/com_android_support_recyclerview_v7_25_3_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /Chatmvc - Kotlin/.idea/libraries/com_android_support_support_v4_26_1_0.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /Chatmvp - Kotlin/.idea/libraries/com_android_support_support_media_compat_25_3_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /Chatmvvm - Java/app/src/main/java/nosql/anew/chatmvvm/models/MessageModel.java: -------------------------------------------------------------------------------- 1 | package nosql.anew.chatmvvm.models; 2 | 3 | import com.google.firebase.database.DataSnapshot; 4 | 5 | import java.util.ArrayList; 6 | 7 | import nosql.anew.chatmvvm.interfaces.ModelCallBacks; 8 | 9 | /** 10 | * Created by saksham on 26/6/17. 11 | */ 12 | 13 | public class MessageModel { 14 | private ArrayList mMessages; 15 | 16 | public void addMessages(DataSnapshot dataSnapshot, ModelCallBacks callBacks){ 17 | if (mMessages==null){ 18 | mMessages= new ArrayList<>(); 19 | } 20 | ChatPojo chatPojo=new ChatPojo(dataSnapshot); 21 | mMessages.add(chatPojo); 22 | callBacks.onModelUpdated(mMessages); 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /Chatmvc - Kotlin/.idea/libraries/com_android_support_appcompat_v7_26_1_0.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /Chatmvc - Java/.idea/libraries/com_android_support_support_vector_drawable_25_3_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /Chatmvc - Java/.idea/libraries/com_android_support_animated_vector_drawable_25_3_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /Chatmvp - Kotlin/.idea/libraries/com_android_support_support_vector_drawable_25_3_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /Chatmvc - Kotlin/.idea/libraries/com_android_support_support_compat_26_1_0.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /Chatmvp - Kotlin/.idea/libraries/com_android_support_animated_vector_drawable_25_3_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /Chatmvc - Kotlin/.idea/libraries/com_android_support_support_core_ui_26_1_0.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /Chatmvc - Kotlin/.idea/libraries/com_android_support_support_fragment_26_1_0.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /Chatmvc - Kotlin/.idea/libraries/org_jetbrains_kotlin_kotlin_stdlib_jre7_1_1_51_jar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /Chatmvp - Kotlin/build.gradle: -------------------------------------------------------------------------------- 1 | // Top-level build file where you can add configuration options common to all sub-projects/modules. 2 | 3 | buildscript { 4 | ext.kotlin_version = '1.2.40' 5 | repositories { 6 | jcenter() 7 | } 8 | dependencies { 9 | classpath 'com.android.tools.build:gradle:2.2.1' 10 | classpath 'com.google.gms:google-services:3.0.0' 11 | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" 12 | 13 | // NOTE: Do not place your application dependencies here; they belong 14 | // in the individual module build.gradle files 15 | } 16 | } 17 | 18 | allprojects { 19 | repositories { 20 | jcenter() 21 | } 22 | } 23 | 24 | task clean(type: Delete) { 25 | delete rootProject.buildDir 26 | } 27 | -------------------------------------------------------------------------------- /Chatmvc - Kotlin/.idea/libraries/com_android_support_support_core_utils_26_1_0.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /Chatmvc - Java/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 | -------------------------------------------------------------------------------- /Chatmvc - Kotlin/.idea/libraries/com_android_support_test_espresso_espresso_core_3_0_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /Chatmvp - Java/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 | -------------------------------------------------------------------------------- /Chatmvc - Kotlin/.idea/libraries/com_android_support_support_media_compat_26_1_0.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /Chatmvc - Kotlin/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 | -------------------------------------------------------------------------------- /Chatmvp - Kotlin/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 | -------------------------------------------------------------------------------- /Chatmvvm - Java/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 | -------------------------------------------------------------------------------- /Chatmvc - Kotlin/app/src/androidTest/java/nosql/anew/kotlinmvc/ExampleInstrumentedTest.kt: -------------------------------------------------------------------------------- 1 | package nosql.anew.kotlinmvc 2 | 3 | import android.support.test.InstrumentationRegistry 4 | import android.support.test.runner.AndroidJUnit4 5 | 6 | import org.junit.Test 7 | import org.junit.runner.RunWith 8 | 9 | import org.junit.Assert.* 10 | 11 | /** 12 | * Instrumented test, which will execute on an Android device. 13 | * 14 | * See [testing documentation](http://d.android.com/tools/testing). 15 | */ 16 | @RunWith(AndroidJUnit4::class) 17 | class ExampleInstrumentedTest { 18 | @Test 19 | fun useAppContext() { 20 | // Context of the app under test. 21 | val appContext = InstrumentationRegistry.getTargetContext() 22 | assertEquals("nosql.anew.chatkotlinmvc", appContext.packageName) 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /Chatmvc - Kotlin/build.gradle: -------------------------------------------------------------------------------- 1 | // Top-level build file where you can add configuration options common to all sub-projects/modules. 2 | buildscript { 3 | ext.kotlin_version = '1.1.51' 4 | repositories { 5 | google() 6 | jcenter() 7 | } 8 | dependencies { 9 | classpath 'com.android.tools.build:gradle:3.0.1' 10 | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" 11 | classpath 'com.google.gms:google-services:3.0.0' 12 | 13 | // NOTE: Do not place your application dependencies here; they belong 14 | // in the individual module build.gradle files 15 | } 16 | } 17 | 18 | allprojects { 19 | repositories { 20 | google() 21 | jcenter() 22 | } 23 | } 24 | 25 | task clean(type: Delete) { 26 | delete rootProject.buildDir 27 | } 28 | -------------------------------------------------------------------------------- /Chatmvc - Kotlin/.idea/libraries/com_android_support_support_vector_drawable_26_1_0.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /Chatmvc - Java/.idea/libraries/com_android_support_support_annotations_25_3_1_jar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /Chatmvc - Java/.idea/libraries/com_android_support_test_rules_0_5.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /Chatmvc - Kotlin/.idea/libraries/com_android_support_animated_vector_drawable_26_1_0.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /Chatmvp - Kotlin/.idea/libraries/com_android_support_test_rules_0_5.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /Chatmvc - Java/.idea/libraries/com_android_support_test_runner_0_5.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /Chatmvp - Kotlin/.idea/libraries/com_android_support_support_annotations_25_3_1_jar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /Chatmvp - Kotlin/.idea/libraries/com_android_support_test_runner_0_5.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /Chatmvc - Kotlin/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 | -------------------------------------------------------------------------------- /Chatmvc - Kotlin/app/src/main/java/nosql/anew/kotlinmvc/models/ChatPojo.kt: -------------------------------------------------------------------------------- 1 | package nosql.anew.kotlinmvc.models 2 | 3 | import com.google.firebase.database.DataSnapshot 4 | import java.util.HashMap 5 | 6 | class ChatPojo(dataSnapshot: DataSnapshot) { 7 | var msgKey: String? = null 8 | var timeStamp: Long = 0 9 | var message: String? = null 10 | var senderId: String? = null 11 | 12 | /** 13 | * called when the we initialise object 14 | * Similar to parametric constructor in java 15 | */ 16 | init { 17 | val hashMap = dataSnapshot.value as HashMap 18 | this.msgKey = dataSnapshot.key 19 | this.message = hashMap["text"].toString() 20 | this.senderId = hashMap["senderId"].toString() 21 | this.timeStamp = java.lang.Long.parseLong(hashMap ["time"].toString()) 22 | } 23 | 24 | } 25 | 26 | -------------------------------------------------------------------------------- /Chatmvp - Kotlin/app/src/main/java/nosql/anew/kotlinmvp/models/ChatPojo.kt: -------------------------------------------------------------------------------- 1 | package nosql.anew.kotlinmvp.models 2 | 3 | import com.google.firebase.database.DataSnapshot 4 | import java.util.HashMap 5 | 6 | class ChatPojo(dataSnapshot: DataSnapshot) { 7 | var msgKey: String? = null 8 | var timeStamp: Long = 0 9 | var message: String? = null 10 | var senderId: String? = null 11 | 12 | /** 13 | * called when the we initialise object 14 | * Similar to parametric constructor in java 15 | */ 16 | init { 17 | val hashMap = dataSnapshot.value as HashMap 18 | this.msgKey = dataSnapshot.key 19 | this.message = hashMap["text"].toString() 20 | this.senderId = hashMap["senderId"].toString() 21 | this.timeStamp = java.lang.Long.parseLong(hashMap ["time"].toString()) 22 | } 23 | 24 | } 25 | 26 | -------------------------------------------------------------------------------- /Chatmvc - Kotlin/.idea/libraries/com_android_support_test_espresso_espresso_idling_resource_3_0_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /Chatmvc - Java/app/src/main/java/nosql/anew/chatmvc/model/MessageModel.java: -------------------------------------------------------------------------------- 1 | package nosql.anew.chatmvc.model; 2 | 3 | import com.google.firebase.database.DataSnapshot; 4 | 5 | import java.util.ArrayList; 6 | 7 | import nosql.anew.chatmvc.interfaces.ModelCallBacks; 8 | 9 | /** 10 | * Created by saksham on 26/6/17. 11 | */ 12 | 13 | public class MessageModel { 14 | private ArrayList mMessages; 15 | ModelCallBacks mModelCallBacks; 16 | 17 | public MessageModel(ModelCallBacks modelCallBacks){ 18 | this.mModelCallBacks=modelCallBacks; 19 | } 20 | 21 | public void addMessages(DataSnapshot dataSnapshot){ 22 | if (mMessages==null){ 23 | mMessages= new ArrayList<>(); 24 | } 25 | ChatPojo chatPojo=new ChatPojo(dataSnapshot); 26 | mMessages.add(chatPojo); 27 | mModelCallBacks.onModelUpdated(mMessages); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /Chatmvp - Kotlin/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /Chatmvc - Java/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /Chatmvc - Java/app/src/androidTest/java/nosql/anew/chatmvc/ExampleInstrumentedTest.java: -------------------------------------------------------------------------------- 1 | package nosql.anew.chatmvc; 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("nosql.anew.chatmvc", appContext.getPackageName()); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /Chatmvp - Java/app/src/androidTest/java/nosql/anew/chatmvp/ExampleInstrumentedTest.java: -------------------------------------------------------------------------------- 1 | package nosql.anew.chatmvp; 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("nosql.anew.chatmvp", appContext.getPackageName()); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /Chatmvvm - Java/app/src/androidTest/java/nosql/anew/chatmvvm/ExampleInstrumentedTest.java: -------------------------------------------------------------------------------- 1 | package nosql.anew.chatmvvm; 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("nosql.anew.chatmvp", appContext.getPackageName()); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /Chatmvp - Kotlin/app/src/androidTest/java/nosql/anew/kotlinmvp/ExampleInstrumentedTest.java: -------------------------------------------------------------------------------- 1 | package nosql.anew.kotlinmvp; 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("nosql.anew.chatmvp", appContext.getPackageName()); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /Chatmvp - Java/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /Chatmvc - Java/.idea/libraries/com_android_support_test_espresso_espresso_core_2_2_2.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /Chatmvp - Kotlin/.idea/libraries/com_android_support_test_espresso_espresso_core_2_2_2.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /Chatmvvm - Java/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /Chatmvc - Java/app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | Chatmvc 3 | Authentication with Firebase 4 | Create room 5 | Enter existing 6 | Enter room name 7 | Name of the room is your token by which you can connect with the person who entered the same room name as your 8 | Submit 9 | Authentication is successful 10 | Messages 11 | Room name 12 | Type here 13 | Send 14 | Authenticating, this may take 1 minute 15 | 16 | -------------------------------------------------------------------------------- /Chatmvp - Java/app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | Chatmvp 3 | Authentication with Firebase 4 | Create room 5 | Enter existing 6 | Enter room name 7 | Name of the room is your token by which you can connect with the person who entered the same room name as your 8 | Submit 9 | Authentication is successful 10 | Messages 11 | Room name 12 | Type here 13 | Send 14 | Authenticating, this may take 1 minute 15 | 16 | -------------------------------------------------------------------------------- /Chatmvvm - Java/app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | Chatmvvm 3 | Authentication with Firebase 4 | Create room 5 | Enter existing 6 | Enter room name 7 | Name of the room is your token by which you can connect with the person who entered the same room name as your 8 | Submit 9 | Authentication is successful 10 | Messages 11 | Room name 12 | Type here 13 | Send 14 | Authenticating, this may take 1 minute 15 | 16 | -------------------------------------------------------------------------------- /Chatmvc - Kotlin/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /Chatmvc - Kotlin/app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | kotlin Mvc 3 | Authentication with Firebase 4 | Create room 5 | Enter existing 6 | Enter room name 7 | Name of the room is your token by which you can connect with the person who entered the same room name as your 8 | Submit 9 | Authentication is successful 10 | Messages 11 | Room name 12 | Type here 13 | Send 14 | Authenticating, this may take 1 minute 15 | 16 | -------------------------------------------------------------------------------- /Chatmvp - Kotlin/app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | kotlin Mvp 3 | Authentication with Firebase 4 | Create room 5 | Enter existing 6 | Enter room name 7 | Name of the room is your token by which you can connect with the person who entered the same room name as your 8 | Submit 9 | Authentication is successful 10 | Messages 11 | Room name 12 | Type here 13 | Send 14 | Authenticating, this may take 1 minute 15 | 16 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Built application files 2 | *.apk 3 | *.ap_ 4 | 5 | # Files for the ART/Dalvik VM 6 | *.dex 7 | 8 | # Java class files 9 | *.class 10 | 11 | # Generated files 12 | bin/ 13 | gen/ 14 | out/ 15 | 16 | # Gradle files 17 | .gradle/ 18 | build/ 19 | 20 | # Local configuration file (sdk path, etc) 21 | local.properties 22 | 23 | # Proguard folder generated by Eclipse 24 | proguard/ 25 | 26 | # Log Files 27 | *.log 28 | 29 | # Android Studio Navigation editor temp files 30 | .navigation/ 31 | 32 | # Android Studio captures folder 33 | captures/ 34 | 35 | # Intellij 36 | *.iml 37 | .idea/workspace.xml 38 | .idea/tasks.xml 39 | .idea/gradle.xml 40 | .idea/dictionaries 41 | .idea/libraries 42 | 43 | # Keystore files 44 | *.jks 45 | 46 | # External native build folder generated in Android Studio 2.2 and later 47 | .externalNativeBuild 48 | 49 | # Google Services (e.g. APIs or Firebase) 50 | # google-services.json 51 | 52 | # Freeline 53 | freeline.py 54 | freeline/ 55 | freeline_project_description.json 56 | -------------------------------------------------------------------------------- /Chatmvc - Java/.idea/libraries/com_android_support_test_espresso_espresso_idling_resource_2_2_2.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /Chatmvp - Kotlin/.idea/libraries/com_android_support_test_espresso_espresso_idling_resource_2_2_2.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /Chatmvvm - Java/app/src/main/java/nosql/anew/chatmvvm/utils/MyUtils.java: -------------------------------------------------------------------------------- 1 | package nosql.anew.chatmvvm.utils; 2 | 3 | import java.text.SimpleDateFormat; 4 | import java.util.Calendar; 5 | import java.util.Date; 6 | import java.util.TimeZone; 7 | 8 | /** 9 | * Created by saksham on 25/6/17. 10 | */ 11 | 12 | public class MyUtils { 13 | public static String MESSAGE_AUTHENTICATION_FAILED = "Firebase authentication failed, please check your internet connection"; 14 | public static String MESSAGE_INVALIDE_ROOM_NAME= "Enter a valid Name"; 15 | 16 | public static String EXTRA_ROOM_NAME="EXTRA_ROOM_NAME"; 17 | 18 | public static final int OPEN_ACTIVITY = 1; 19 | public static final int SHOW_TOAST = 2; 20 | public static final int UPDATE_MESSAGES=1; 21 | 22 | public static String convertTime(long timestamp) { 23 | SimpleDateFormat sdf; 24 | sdf = new SimpleDateFormat("HH:mm"); 25 | Date date = new Date(timestamp); 26 | sdf.setTimeZone(TimeZone.getDefault()); 27 | return sdf.format(date); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /Chatmvc - Java/.idea/libraries/com_android_support_test_exposed_instrumentation_api_publish_0_5.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /Chatmvp - Kotlin/.idea/libraries/com_android_support_test_exposed_instrumentation_api_publish_0_5.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /Chatmvp - Kotlin/app/src/main/java/nosql/anew/kotlinmvp/presenters/LoginPresenter.kt: -------------------------------------------------------------------------------- 1 | package nosql.anew.kotlinmvp.presenters 2 | 3 | import com.google.firebase.auth.FirebaseAuth 4 | import nosql.anew.kotlinmvp.views.ILoginView 5 | 6 | /** 7 | * Created by Sam on 27/04/18. 8 | */ 9 | class LoginPresenter(internal var mILoginView: ILoginView) { 10 | 11 | fun firebaseAnonymousAuth() { 12 | mILoginView.changeButtonText() 13 | FirebaseAuth.getInstance().signInAnonymously() 14 | .addOnCompleteListener { task -> 15 | if (!task.isSuccessful) { 16 | mILoginView.showToast("Firebase authentication failed, please check your internet connection") 17 | } else { 18 | mILoginView.authSuccessful() 19 | } 20 | } 21 | } 22 | 23 | fun invalidateRoomName(roomName: String) { 24 | 25 | if (roomName.trim { it <= ' ' }.isEmpty()) { 26 | mILoginView.showToast("Enter a valid Name") 27 | } else { 28 | mILoginView.startChatActivity(roomName) 29 | } 30 | } 31 | 32 | fun showRoomDialogInActivity() { 33 | mILoginView.showRoomDialog() 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /Chatmvc - Java/app/src/main/res/values/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 16dp 4 | 16dp 5 | 6 | 12sp 7 | 14sp 8 | 16sp 9 | 5dp 10 | 11 | 10dp 12 | 13 | 45dp 14 | 50dp 15 | 60dp 16 | 200dp 17 | 18 | 200dp 19 | 80dp 20 | 21 | 180dp 22 | 23 | 5dp 24 | 10dp 25 | 20dp 26 | 27 | 5dp 28 | 10dp 29 | 20dp 30 | 50dp 31 | 32 | 280dp 33 | 380dp 34 | 35 | -------------------------------------------------------------------------------- /Chatmvc - Kotlin/app/src/main/res/values/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 16dp 4 | 16dp 5 | 6 | 12sp 7 | 14sp 8 | 16sp 9 | 5dp 10 | 11 | 10dp 12 | 13 | 45dp 14 | 50dp 15 | 60dp 16 | 200dp 17 | 18 | 200dp 19 | 80dp 20 | 21 | 180dp 22 | 23 | 5dp 24 | 10dp 25 | 20dp 26 | 27 | 5dp 28 | 10dp 29 | 20dp 30 | 50dp 31 | 32 | 280dp 33 | 380dp 34 | 35 | -------------------------------------------------------------------------------- /Chatmvp - Java/app/src/main/res/values/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 16dp 4 | 16dp 5 | 6 | 12sp 7 | 14sp 8 | 16sp 9 | 5dp 10 | 11 | 10dp 12 | 13 | 45dp 14 | 50dp 15 | 60dp 16 | 200dp 17 | 18 | 200dp 19 | 80dp 20 | 21 | 180dp 22 | 23 | 5dp 24 | 10dp 25 | 20dp 26 | 27 | 5dp 28 | 10dp 29 | 20dp 30 | 50dp 31 | 32 | 280dp 33 | 380dp 34 | 35 | -------------------------------------------------------------------------------- /Chatmvp - Kotlin/app/src/main/res/values/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 16dp 4 | 16dp 5 | 6 | 12sp 7 | 14sp 8 | 16sp 9 | 5dp 10 | 11 | 10dp 12 | 13 | 45dp 14 | 50dp 15 | 60dp 16 | 200dp 17 | 18 | 200dp 19 | 80dp 20 | 21 | 180dp 22 | 23 | 5dp 24 | 10dp 25 | 20dp 26 | 27 | 5dp 28 | 10dp 29 | 20dp 30 | 50dp 31 | 32 | 280dp 33 | 380dp 34 | 35 | -------------------------------------------------------------------------------- /Chatmvvm - Java/app/src/main/res/values/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 16dp 4 | 16dp 5 | 6 | 12sp 7 | 14sp 8 | 16sp 9 | 5dp 10 | 11 | 10dp 12 | 13 | 45dp 14 | 50dp 15 | 60dp 16 | 200dp 17 | 18 | 200dp 19 | 80dp 20 | 21 | 180dp 22 | 23 | 5dp 24 | 10dp 25 | 20dp 26 | 27 | 5dp 28 | 10dp 29 | 20dp 30 | 50dp 31 | 32 | 280dp 33 | 380dp 34 | 35 | -------------------------------------------------------------------------------- /Chatmvc - Java/app/src/main/res/layout/dialog_room.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 14 | 15 | 20 | 21 | 28 | 29 |