From 78fd2151418b500854544152144424cd3f63907f Mon Sep 17 00:00:00 2001 From: winter223 Date: Sat, 19 Mar 2022 20:13:14 +0900 Subject: [PATCH 01/11] =?UTF-8?q?[#11]=20=EA=B0=81=EC=A2=85=20=ED=8E=B8?= =?UTF-8?q?=EC=9D=98=20=ED=99=95=EC=9E=A5=ED=95=A8=EC=88=98=20=EC=B6=94?= =?UTF-8?q?=EA=B0=80=20-=20=ED=86=A0=EC=8A=A4=ED=8A=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../common/extension/ActivityExtension.kt | 8 ++++++++ .../common/extension/FragmentExtension.kt | 8 ++++++++ 2 files changed, 16 insertions(+) create mode 100644 app/src/main/java/com/moyerun/moyeorun_android/common/extension/ActivityExtension.kt create mode 100644 app/src/main/java/com/moyerun/moyeorun_android/common/extension/FragmentExtension.kt diff --git a/app/src/main/java/com/moyerun/moyeorun_android/common/extension/ActivityExtension.kt b/app/src/main/java/com/moyerun/moyeorun_android/common/extension/ActivityExtension.kt new file mode 100644 index 0000000..d57b173 --- /dev/null +++ b/app/src/main/java/com/moyerun/moyeorun_android/common/extension/ActivityExtension.kt @@ -0,0 +1,8 @@ +package com.moyerun.moyeorun_android.common.extension + +import android.app.Activity +import android.widget.Toast + +fun Activity.toast(msg: String, isShort: Boolean = true) { + Toast.makeText(this, msg, if (isShort) Toast.LENGTH_SHORT else Toast.LENGTH_LONG).show() +} \ No newline at end of file diff --git a/app/src/main/java/com/moyerun/moyeorun_android/common/extension/FragmentExtension.kt b/app/src/main/java/com/moyerun/moyeorun_android/common/extension/FragmentExtension.kt new file mode 100644 index 0000000..2ad8fe7 --- /dev/null +++ b/app/src/main/java/com/moyerun/moyeorun_android/common/extension/FragmentExtension.kt @@ -0,0 +1,8 @@ +package com.moyerun.moyeorun_android.common.extension + +import android.widget.Toast +import androidx.fragment.app.Fragment + +fun Fragment.toast(msg: String, isShort: Boolean = false) { + Toast.makeText(context, msg, if (isShort) Toast.LENGTH_SHORT else Toast.LENGTH_LONG).show() +} \ No newline at end of file From 3feb0660ec90362eefdb5f06849fb34f623d3ea0 Mon Sep 17 00:00:00 2001 From: Kimchohee Date: Mon, 21 Mar 2022 20:39:07 +0900 Subject: [PATCH 02/11] =?UTF-8?q?[#9]=20=EC=95=88=EB=93=9C=EB=A1=9C?= =?UTF-8?q?=EC=9D=B4=EB=93=9C=20OS=20=EC=B5=9C=EC=86=8C=20=EB=B2=84?= =?UTF-8?q?=EC=A0=84=20=EC=84=A4=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/build.gradle b/app/build.gradle index 85c790b..8ec065d 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -10,7 +10,7 @@ android { defaultConfig { applicationId "com.moyerun.moyeorun_android" - minSdk 21 + minSdk 26 targetSdk 32 versionCode 1 versionName "1.0" From 7a5eeb546cd76e8037a507cd71ecab48ad670e8d Mon Sep 17 00:00:00 2001 From: Kimchohee Date: Mon, 21 Mar 2022 21:12:40 +0900 Subject: [PATCH 03/11] =?UTF-8?q?[#5]=20=EC=83=81=ED=83=9C=EB=B0=94=20?= =?UTF-8?q?=EC=8A=A4=ED=83=80=EC=9D=BC=20=EC=A0=81=EC=9A=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/res/values-night/themes.xml | 3 ++- app/src/main/res/values/themes.xml | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/app/src/main/res/values-night/themes.xml b/app/src/main/res/values-night/themes.xml index 23fd564..73e4480 100644 --- a/app/src/main/res/values-night/themes.xml +++ b/app/src/main/res/values-night/themes.xml @@ -10,7 +10,8 @@ @color/main_light_blue @color/main_black - ?attr/colorPrimaryVariant + @android:color/transparent + true @color/main_white diff --git a/app/src/main/res/values/themes.xml b/app/src/main/res/values/themes.xml index 01953d4..3efc26a 100644 --- a/app/src/main/res/values/themes.xml +++ b/app/src/main/res/values/themes.xml @@ -10,7 +10,8 @@ @color/main_light_blue @color/main_black - ?attr/colorPrimaryVariant + @android:color/transparent + true @color/main_white From 56509bb2689304045d88e846a0fa878aedd7c587 Mon Sep 17 00:00:00 2001 From: kimchohee <31889335+choheeis@users.noreply.github.com> Date: Tue, 22 Mar 2022 23:27:05 +0900 Subject: [PATCH 04/11] =?UTF-8?q?[#16]=20=EC=9D=B4=EC=8A=88,=20PR=20?= =?UTF-8?q?=ED=85=9C=ED=94=8C=EB=A6=BF=20=EB=A7=8C=EB=93=A4=EA=B8=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 이슈 템플릿 설정 --- .github/ISSUE_TEMPLATE/create-new-issue.md | 14 ++++++++++++++ .github/ISSUE_TEMPLATE/custom.md | 10 ++++++++++ 2 files changed, 24 insertions(+) create mode 100644 .github/ISSUE_TEMPLATE/create-new-issue.md create mode 100644 .github/ISSUE_TEMPLATE/custom.md diff --git a/.github/ISSUE_TEMPLATE/create-new-issue.md b/.github/ISSUE_TEMPLATE/create-new-issue.md new file mode 100644 index 0000000..7676126 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/create-new-issue.md @@ -0,0 +1,14 @@ +--- +name: Create new issue +about: 새로운 이슈를 등록합니다! +title: '' +labels: '' +assignees: '' + +--- + +### 배경 +- 본 이슈를 등록하게 된 이유를 설명합니다.(AS-IS, TO-BE) + +### 내용 +- 본 이슈의 목표를 구체적으로 어떻게 달성할 것인가에 대해 설명합니다. diff --git a/.github/ISSUE_TEMPLATE/custom.md b/.github/ISSUE_TEMPLATE/custom.md new file mode 100644 index 0000000..48d5f81 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/custom.md @@ -0,0 +1,10 @@ +--- +name: Custom issue template +about: Describe this issue template's purpose here. +title: '' +labels: '' +assignees: '' + +--- + + From f447e2947f30414f5499cc3c5e6700e307080a22 Mon Sep 17 00:00:00 2001 From: Kimchohee Date: Tue, 22 Mar 2022 23:30:42 +0900 Subject: [PATCH 05/11] =?UTF-8?q?=EB=B6=88=ED=95=84=EC=9A=94=ED=95=9C=20?= =?UTF-8?q?=EC=9D=B4=EC=8A=88=20=ED=85=9C=ED=94=8C=EB=A6=BF=20=EC=82=AD?= =?UTF-8?q?=EC=A0=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/ISSUE_TEMPLATE/custom.md | 10 ---------- 1 file changed, 10 deletions(-) delete mode 100644 .github/ISSUE_TEMPLATE/custom.md diff --git a/.github/ISSUE_TEMPLATE/custom.md b/.github/ISSUE_TEMPLATE/custom.md deleted file mode 100644 index 48d5f81..0000000 --- a/.github/ISSUE_TEMPLATE/custom.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -name: Custom issue template -about: Describe this issue template's purpose here. -title: '' -labels: '' -assignees: '' - ---- - - From 59f770a80cb55a228d2fb90b18be4ae5927fb753 Mon Sep 17 00:00:00 2001 From: Kimchohee Date: Tue, 22 Mar 2022 23:41:31 +0900 Subject: [PATCH 06/11] =?UTF-8?q?[#16]=20=EC=9D=B4=EC=8A=88,=20PR=20?= =?UTF-8?q?=ED=85=9C=ED=94=8C=EB=A6=BF=20=EB=A7=8C=EB=93=A4=EA=B8=B0=20-?= =?UTF-8?q?=20PR=20=ED=85=9C=ED=94=8C=EB=A6=BF=20=EC=84=A4=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/PULL_REQUEST_TEMPLATE.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 .github/PULL_REQUEST_TEMPLATE.md diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md new file mode 100644 index 0000000..b8d23a2 --- /dev/null +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -0,0 +1,12 @@ +### 내용 +- 본 PR이 어떤 기능에 대한 작업인지, 이슈를 참조하여 간략하게 설명합니다. + +### 작업 사항 +- 변경된 코드에 대해 다른 사람들이 빠르게 구조 및 내용을 이해할 수 있도록 간략하게 설명합니다. + +### 변경 전 VS 변경 후 +|변경 전|변경 후| +|---|---| +||| + +### 참고 \ No newline at end of file From 11d73342e30b561c54fc954d620b7dc97cccce0c Mon Sep 17 00:00:00 2001 From: Kimchohee Date: Sun, 27 Mar 2022 16:30:17 +0900 Subject: [PATCH 07/11] =?UTF-8?q?[#16]=20=EC=9D=B4=EC=8A=88,=20PR=20?= =?UTF-8?q?=ED=85=9C=ED=94=8C=EB=A6=BF=20=EB=A7=8C=EB=93=A4=EA=B8=B0=20-?= =?UTF-8?q?=20=EC=9D=B4=EB=AF=B8=EC=A7=80=20width=20300=20=EA=B8=B0?= =?UTF-8?q?=EB=B3=B8=EA=B0=92=20=EC=84=A4=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/PULL_REQUEST_TEMPLATE.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index b8d23a2..1de57aa 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -7,6 +7,6 @@ ### 변경 전 VS 변경 후 |변경 전|변경 후| |---|---| -||| +||| ### 참고 \ No newline at end of file From 24b1fac878667520f9664a20f5cc81be8b87795d Mon Sep 17 00:00:00 2001 From: winter223 Date: Tue, 29 Mar 2022 14:37:05 +0900 Subject: [PATCH 08/11] =?UTF-8?q?[#2]=20=EB=94=94=ED=8F=B4=ED=8A=B8=20?= =?UTF-8?q?=EC=8A=A4=ED=83=80=EC=9D=BC=20=EC=84=A4=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 기본 텍스트 컬러 추가 - 기본 텍스트 사이즈 추가 --- app/src/main/res/values/colors.xml | 5 +++++ app/src/main/res/values/themes.xml | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/app/src/main/res/values/colors.xml b/app/src/main/res/values/colors.xml index ffdcad1..28e0e60 100644 --- a/app/src/main/res/values/colors.xml +++ b/app/src/main/res/values/colors.xml @@ -11,4 +11,9 @@ #EEF4FF + + + #333333 + #828282 + \ No newline at end of file diff --git a/app/src/main/res/values/themes.xml b/app/src/main/res/values/themes.xml index 3efc26a..72ce1dd 100644 --- a/app/src/main/res/values/themes.xml +++ b/app/src/main/res/values/themes.xml @@ -14,5 +14,9 @@ true @color/main_white + @color/text_default_black + @color/text_default_black + 18dp + \ No newline at end of file From ed57673cd555a534fb39e2ce3f81a1646f20db61 Mon Sep 17 00:00:00 2001 From: winter223 Date: Wed, 30 Mar 2022 08:58:58 +0900 Subject: [PATCH 09/11] =?UTF-8?q?[#2]=20=EB=94=94=ED=8F=B4=ED=8A=B8=20?= =?UTF-8?q?=EC=8A=A4=ED=83=80=EC=9D=BC=20=EC=84=A4=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 기본 힌트 컬러 추가 --- app/src/main/res/values/colors.xml | 1 + app/src/main/res/values/themes.xml | 2 ++ 2 files changed, 3 insertions(+) diff --git a/app/src/main/res/values/colors.xml b/app/src/main/res/values/colors.xml index 28e0e60..ae0b9d4 100644 --- a/app/src/main/res/values/colors.xml +++ b/app/src/main/res/values/colors.xml @@ -15,5 +15,6 @@ #333333 #828282 + #A9A9A9 \ No newline at end of file diff --git a/app/src/main/res/values/themes.xml b/app/src/main/res/values/themes.xml index 72ce1dd..166a24c 100644 --- a/app/src/main/res/values/themes.xml +++ b/app/src/main/res/values/themes.xml @@ -14,8 +14,10 @@ true @color/main_white + @color/text_default_black @color/text_default_black + @color/text_hint_gray 18dp From c8b00ae50d8591dfba3cc9d036f9212a5eebedd3 Mon Sep 17 00:00:00 2001 From: winter223 Date: Mon, 4 Apr 2022 17:26:13 +0900 Subject: [PATCH 10/11] =?UTF-8?q?[#27]=20Hilt=20=EC=9D=98=EC=A1=B4?= =?UTF-8?q?=EC=84=B1=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/build.gradle | 6 ++++++ .../com/moyerun/moyeorun_android/MoyeoRunApplication.kt | 2 ++ build.gradle | 3 +++ 3 files changed, 11 insertions(+) diff --git a/app/build.gradle b/app/build.gradle index 8ec065d..d5915d1 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -1,8 +1,10 @@ plugins { id 'com.android.application' id 'org.jetbrains.kotlin.android' + id 'kotlin-kapt' id 'com.google.gms.google-services' id 'com.google.firebase.crashlytics' + id 'dagger.hilt.android.plugin' } android { @@ -74,4 +76,8 @@ dependencies { implementation platform('com.google.firebase:firebase-bom:29.2.0') implementation 'com.google.firebase:firebase-analytics-ktx' implementation 'com.google.firebase:firebase-crashlytics-ktx' + + // Hilt + implementation "com.google.dagger:hilt-android:$hilt_version" + kapt "com.google.dagger:hilt-android-compiler:$hilt_version" } \ No newline at end of file diff --git a/app/src/main/java/com/moyerun/moyeorun_android/MoyeoRunApplication.kt b/app/src/main/java/com/moyerun/moyeorun_android/MoyeoRunApplication.kt index 109cdb0..4fb0fa7 100644 --- a/app/src/main/java/com/moyerun/moyeorun_android/MoyeoRunApplication.kt +++ b/app/src/main/java/com/moyerun/moyeorun_android/MoyeoRunApplication.kt @@ -1,7 +1,9 @@ package com.moyerun.moyeorun_android import android.app.Application +import dagger.hilt.android.HiltAndroidApp +@HiltAndroidApp class MoyeoRunApplication: Application() { override fun onCreate() { diff --git a/build.gradle b/build.gradle index 1b8aa64..edf283a 100644 --- a/build.gradle +++ b/build.gradle @@ -1,7 +1,10 @@ buildscript { + ext.hilt_version = '2.40.2' + dependencies { classpath 'com.google.gms:google-services:4.3.10' classpath 'com.google.firebase:firebase-crashlytics-gradle:2.8.1' + classpath "com.google.dagger:hilt-android-gradle-plugin:$hilt_version" } } From 8e6d2a1dffba80fb108f166e2a80ebb8f8e89d9c Mon Sep 17 00:00:00 2001 From: winter223 Date: Wed, 13 Apr 2022 18:50:10 +0900 Subject: [PATCH 11/11] =?UTF-8?q?[#11]=20=EA=B0=81=EC=A2=85=20=ED=8E=B8?= =?UTF-8?q?=EC=9D=98=20=ED=99=95=EC=9E=A5=ED=95=A8=EC=88=98=20=EC=B6=94?= =?UTF-8?q?=EA=B0=80=20-=20DebounceClick?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../common/extension/ViewExtension.kt | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 app/src/main/java/com/moyerun/moyeorun_android/common/extension/ViewExtension.kt diff --git a/app/src/main/java/com/moyerun/moyeorun_android/common/extension/ViewExtension.kt b/app/src/main/java/com/moyerun/moyeorun_android/common/extension/ViewExtension.kt new file mode 100644 index 0000000..bb0e66e --- /dev/null +++ b/app/src/main/java/com/moyerun/moyeorun_android/common/extension/ViewExtension.kt @@ -0,0 +1,19 @@ +package com.moyerun.moyeorun_android.common.extension + +import android.view.View + +fun View.setOnDebounceClickListener(interval: Long = 1000L, action: (View?) -> Unit) { + val debounceClickListener = object : View.OnClickListener { + private var lastClickedMillis = 0L + + override fun onClick(view: View?) { + val now = System.currentTimeMillis() + if (now - lastClickedMillis < interval) { + return + } + lastClickedMillis = now + action.invoke(view) + } + } + setOnClickListener(debounceClickListener) +} \ No newline at end of file