From 2a4ff9d8217636cf0dfb00e27ba5cb52f374e6fe Mon Sep 17 00:00:00 2001 From: cherrylime69 <95393311+cherrylime69@users.noreply.github.com> Date: Fri, 24 Jun 2022 19:07:10 +0900 Subject: [PATCH] =?UTF-8?q?Revert=20"[Team-04][Android][Linus=5FJay][2?= =?UTF-8?q?=EC=A3=BC=EC=B0=A8=20=EC=88=98=EC=9A=94=EC=9D=BC=20=EC=84=B8?= =?UTF-8?q?=EB=B2=88=EC=A7=B8=20PR]"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/build.gradle | 17 +- app/src/main/AndroidManifest.xml | 9 +- .../com/example/issu_tracker/data/Comment.kt | 9 +- .../com/example/issu_tracker/data/Issue.kt | 11 +- .../com/example/issu_tracker/data/Label.kt | 5 - .../example/issu_tracker/data/Repository.kt | 50 --- .../com/example/issu_tracker/data/User.kt | 12 +- .../issu_tracker/data/local/FriendDatabase.kt | 10 - .../issu_tracker/data/local/UserDao.kt | 29 -- .../data/repository/FilterRepository.kt | 8 - .../data/repository/FilterRepositoryImpl.kt | 41 -- .../data/repository/FriendRemoteRepository.kt | 12 - .../repository/FriendRemoteRepositoryIml.kt | 55 --- .../data/repository/HomeRepository.kt | 10 +- .../data/repository/HomeRepositoryImpl.kt | 60 +-- .../data/repository/IssueEditorRepository.kt | 14 - .../repository/IssueEditorRepositoryImpl.kt | 89 ----- .../issu_tracker/di/RepositoryModule.kt | 55 +-- .../issu_tracker/filter/ConditionBar.kt | 43 ++ .../{ui/common => filter}/CustomToolbar.kt | 2 +- .../{ui => }/filter/FilterFragment.kt | 32 +- .../{ui => }/filter/FilterViewModel.kt | 39 +- .../{ui => }/filter/SpinnerAdapter.kt | 2 +- .../issu_tracker/ui/DetailIssueActivity.kt | 15 - .../ui/account/AccountViewModel.kt | 35 -- .../issu_tracker/ui/account/FriendAdapter.kt | 62 --- .../ui/account/MyAccountFragment.kt | 88 ++-- .../issu_tracker/ui/common/ConditionBar.kt | 63 --- .../issu_tracker/ui/common/Constants.kt | 9 +- .../issu_tracker/ui/common/LabelAdapter.kt | 51 --- .../ui/common/SwipeHelperCallback.kt | 116 ------ .../issu_tracker/ui/common/bndingAdapter.kt | 15 - .../issu_tracker/ui/home/HomeActivity.kt | 6 - .../issu_tracker/ui/home/HomeViewModel.kt | 56 +-- .../issu_tracker/ui/issue/IssueAdapter.kt | 81 +--- .../ui/issue/IssueEditorFragment.kt | 375 ------------------ .../ui/issue/IssueEditorViewModel.kt | 124 ------ .../issu_tracker/ui/issue/IssueFragment.kt | 152 +------ .../issu_tracker/ui/issue/IssueViewModel.kt | 30 -- .../ic_baseline_curtains_closed_24.xml | 10 - .../ic_baseline_restore_from_trash_24.xml | 10 - app/src/main/res/drawable/ic_leading.xml | 9 - app/src/main/res/drawable/ic_plus.xml | 11 - .../drawable/round_rectangle_background.xml | 4 +- .../res/drawable/spinner_selected_text.xml | 3 +- .../main/res/layout/activity_detail_issue.xml | 9 - app/src/main/res/layout/fragment_filter.xml | 14 +- app/src/main/res/layout/fragment_issue.xml | 138 ++----- .../main/res/layout/fragment_issue_editor.xml | 130 ------ .../main/res/layout/fragment_my_account.xml | 78 +--- app/src/main/res/layout/item_friend.xml | 68 ---- app/src/main/res/layout/item_issue.xml | 152 +++---- app/src/main/res/layout/item_label.xml | 25 -- app/src/main/res/layout/item_spinner.xml | 1 + .../main/res/layout/view_filter_condition.xml | 1 - .../res/menu/issue_editor_context_menu.xml | 16 - .../main/res/navigation/navigation_graph.xml | 13 +- app/src/main/res/values/attrs.xml | 3 - app/src/main/res/values/strings.xml | 12 - app/src/main/res/values/style.xml | 31 +- app/src/main/res/values/themes.xml | 6 +- build.gradle | 4 - 62 files changed, 266 insertions(+), 2374 deletions(-) delete mode 100644 app/src/main/java/com/example/issu_tracker/data/Label.kt delete mode 100644 app/src/main/java/com/example/issu_tracker/data/Repository.kt delete mode 100644 app/src/main/java/com/example/issu_tracker/data/local/FriendDatabase.kt delete mode 100644 app/src/main/java/com/example/issu_tracker/data/local/UserDao.kt delete mode 100644 app/src/main/java/com/example/issu_tracker/data/repository/FilterRepository.kt delete mode 100644 app/src/main/java/com/example/issu_tracker/data/repository/FilterRepositoryImpl.kt delete mode 100644 app/src/main/java/com/example/issu_tracker/data/repository/FriendRemoteRepository.kt delete mode 100644 app/src/main/java/com/example/issu_tracker/data/repository/FriendRemoteRepositoryIml.kt delete mode 100644 app/src/main/java/com/example/issu_tracker/data/repository/IssueEditorRepository.kt delete mode 100644 app/src/main/java/com/example/issu_tracker/data/repository/IssueEditorRepositoryImpl.kt create mode 100644 app/src/main/java/com/example/issu_tracker/filter/ConditionBar.kt rename app/src/main/java/com/example/issu_tracker/{ui/common => filter}/CustomToolbar.kt (98%) rename app/src/main/java/com/example/issu_tracker/{ui => }/filter/FilterFragment.kt (80%) rename app/src/main/java/com/example/issu_tracker/{ui => }/filter/FilterViewModel.kt (65%) rename app/src/main/java/com/example/issu_tracker/{ui => }/filter/SpinnerAdapter.kt (90%) delete mode 100644 app/src/main/java/com/example/issu_tracker/ui/DetailIssueActivity.kt delete mode 100644 app/src/main/java/com/example/issu_tracker/ui/account/AccountViewModel.kt delete mode 100644 app/src/main/java/com/example/issu_tracker/ui/account/FriendAdapter.kt delete mode 100644 app/src/main/java/com/example/issu_tracker/ui/common/ConditionBar.kt delete mode 100644 app/src/main/java/com/example/issu_tracker/ui/common/LabelAdapter.kt delete mode 100644 app/src/main/java/com/example/issu_tracker/ui/common/SwipeHelperCallback.kt delete mode 100644 app/src/main/java/com/example/issu_tracker/ui/issue/IssueEditorFragment.kt delete mode 100644 app/src/main/java/com/example/issu_tracker/ui/issue/IssueEditorViewModel.kt delete mode 100644 app/src/main/java/com/example/issu_tracker/ui/issue/IssueViewModel.kt delete mode 100644 app/src/main/res/drawable/ic_baseline_curtains_closed_24.xml delete mode 100644 app/src/main/res/drawable/ic_baseline_restore_from_trash_24.xml delete mode 100644 app/src/main/res/drawable/ic_leading.xml delete mode 100644 app/src/main/res/drawable/ic_plus.xml delete mode 100644 app/src/main/res/layout/activity_detail_issue.xml delete mode 100644 app/src/main/res/layout/fragment_issue_editor.xml delete mode 100644 app/src/main/res/layout/item_friend.xml delete mode 100644 app/src/main/res/layout/item_label.xml delete mode 100644 app/src/main/res/menu/issue_editor_context_menu.xml diff --git a/app/build.gradle b/app/build.gradle index a777ba42b9..f35a3cfa72 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -11,7 +11,7 @@ android { defaultConfig { applicationId "com.example.issu_tracker" - minSdk 23 + minSdk 21 targetSdk 32 versionCode 1 versionName "1.0" @@ -38,14 +38,6 @@ android { } dependencies { - //Room - implementation "androidx.room:room-ktx:2.4.2" - kapt "androidx.room:room-compiler:2.4.2" - implementation "androidx.room:room-runtime:2.4.2" - annotationProcessor "androidx.room:room-compiler:2.4.2" - // Glide - implementation 'com.github.bumptech.glide:glide:4.13.0' - annotationProcessor 'com.github.bumptech.glide:compiler:4.11.0' implementation "org.jetbrains.kotlinx:kotlinx-coroutines-play-services:1.6.1" // hilt @@ -68,13 +60,12 @@ dependencies { //cloud fireStore implementation 'com.google.firebase:firebase-firestore-ktx' + //firebase for Google and Github Oauth login implementation platform('com.google.firebase:firebase-bom:30.0.1') implementation 'com.google.firebase:firebase-analytics-ktx' implementation 'com.google.firebase:firebase-auth-ktx' implementation 'com.google.android.gms:play-services-auth:20.2.0' - // Declare the dependency for the Cloud Storage library - implementation 'com.google.firebase:firebase-storage-ktx' // Testing testImplementation "androidx.arch.core:core-testing:2.1.0" @@ -83,8 +74,4 @@ dependencies { testImplementation 'androidx.test.ext:junit:1.1.2' testImplementation "org.robolectric:robolectric:4.4" - // Markwon (display markdown) - implementation "io.noties.markwon:core:$markwon_version" - implementation "io.noties.markwon:editor:$markwon_version" - implementation "io.noties.markwon:image:$markwon_version" } \ No newline at end of file diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index f193da52c6..48e22f66c4 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -3,7 +3,6 @@ package="com.example.issu_tracker"> - - + android:exported="true"> + + + diff --git a/app/src/main/java/com/example/issu_tracker/data/Comment.kt b/app/src/main/java/com/example/issu_tracker/data/Comment.kt index d00c740758..06a4b195ea 100644 --- a/app/src/main/java/com/example/issu_tracker/data/Comment.kt +++ b/app/src/main/java/com/example/issu_tracker/data/Comment.kt @@ -1,9 +1,6 @@ package com.example.issu_tracker.data -import java.io.Serializable - data class Comment( - val commentUser: User? = null, - val content: String = "", - val time: String = "" -) : Serializable \ No newline at end of file + val commentUser: User?=null, val content: String="", + val time: String="" +) \ No newline at end of file diff --git a/app/src/main/java/com/example/issu_tracker/data/Issue.kt b/app/src/main/java/com/example/issu_tracker/data/Issue.kt index 1fb340e84b..26087e03eb 100644 --- a/app/src/main/java/com/example/issu_tracker/data/Issue.kt +++ b/app/src/main/java/com/example/issu_tracker/data/Issue.kt @@ -1,10 +1,12 @@ package com.example.issu_tracker.data -import java.io.Serializable +import com.google.gson.annotations.SerializedName + import java.lang.Exception +data class Label(val color: String = "", val content: String = "") + data class IssueDto( - var id: String = "", val commets: List = listOf(), val description: String = "", val label: List