Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature : 홈 리뉴얼 #505

Open
wants to merge 149 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
149 commits
Select commit Hold shift + click to select a range
39659f7
[feat] tabrow 구현
014967 Jun 15, 2024
efdd38f
컴포넌트로만 존재하도록 변경
014967 Jun 24, 2024
14e7eed
햔재 미사용 state 제거
014967 Jun 24, 2024
9c27235
폰트 크기 및 여백 변경
014967 Jun 29, 2024
5434a95
spotless 적용
014967 Jun 29, 2024
39e08c1
empty 스케쥴 UI 구현
014967 Jun 29, 2024
c0c6c49
🧸 EventDetail 모델을 sealed class로 리팩토링
Jun 26, 2024
8276297
🧸 ScheduleDetailContentItem 컴포저블 생성
Jun 26, 2024
79ed36e
🧸 ScheduleDetailHeaderItem 컴포저블 생성
Jun 26, 2024
b5d7a21
🧸 스케줄 상세 화면 RecyclerView를 LazyColumn으로 교체
Jun 27, 2024
bee7659
🧸 스케줄 상세 화면 배경색 변경
Jun 27, 2024
37d367a
🧸 와일드카드 제거
Jun 27, 2024
b4c24da
🧸 Lint 적용
Jun 27, 2024
567ea42
Merge pull request #498 from 014967/feature/tab_row
014967 Jun 29, 2024
2b0333e
Merge branch 'feature/home_renewal' of github.com-boris:mash-up-kr/ma…
boris-xyz Jun 29, 2024
c15f4bf
🧸feat : MashUpGradient Button추가
boris-xyz Jun 29, 2024
efef43b
Merge pull request #500 from mash-up-kr/refactoring/schedule-detail
Sookhee Jun 29, 2024
0330d79
🛠refactor : apply lint
boris-xyz Jun 29, 2024
991391d
🧸 HtmlText 컴포저블 추가 및 ScheduleTopbar 생성
Sookhee Jun 29, 2024
50221ca
🧸 Schedule 화면에 Tab 추가 (이번 주 일정 / 전체 일정)
Sookhee Jun 29, 2024
0337f98
🧸 SpotlessApply
Sookhee Jun 29, 2024
81bc776
🧸feat : MashupPlatformBadge 추가
boris-xyz Jun 29, 2024
0b306ca
🧸feat : PlatformSchedule 추가 및 전체 세미나 수정
boris-xyz Jun 29, 2024
76eb92e
🛠refactor : remove new line
boris-xyz Jun 29, 2024
0c8e420
Merge pull request #506 from mash-up-kr/feature/separate_schedule
014967 Jun 29, 2024
4080436
Merge pull request #504 from mash-up-kr/feature/emptyschedule
014967 Jun 29, 2024
7af71b4
🛠 린트 적용
boris-xyz Jun 29, 2024
feeec00
Merge pull request #507 from 014967/feature/week_schedule
014967 Jun 29, 2024
ef359c9
🧸feat : EmptyCard연결
boris-xyz Jun 29, 2024
799880d
🧸feat : InProgress 상태 추가
boris-xyz Jun 29, 2024
500587c
Merge pull request #508 from 014967/feature/link_empty
014967 Jun 29, 2024
d0da4d5
Merge pull request #509 from 014967/feature/in_progress
014967 Jun 29, 2024
3020ea6
🧸feat : add empty schedule
boris-xyz Jun 29, 2024
26400e7
🧸 ScheduleScreen 클릭 이벤트를 처리하는 함수 분리
Sookhee Jun 29, 2024
3f00ca0
🧸feat : add spacer
boris-xyz Jun 29, 2024
971635e
Merge branch 'feature/empty_schedule' of github.com-boris:014967/mash…
boris-xyz Jun 29, 2024
e87641d
[refactor] apply lint
boris-xyz Jun 29, 2024
e7d94ab
Merge pull request #512 from 014967/feature/empty_schedule
014967 Jun 29, 2024
2df6ed2
🧸 전체 일정에서 보여줄 데이터 가공 (월/일별로 묶어서 보여준다.)
Sookhee Jun 29, 2024
38274cc
🧸 전체 일정 화면에서 사용할 Composable 생성 및 데이터 연결
Sookhee Jun 29, 2024
4664028
parse notice
boris-xyz Jul 1, 2024
674cbe0
플랫폼 공지가 없을 때 여백 제거
boris-xyz Jul 3, 2024
b3655fd
린트 적용
boris-xyz Jul 3, 2024
b2748ed
초기 moreMenu feature 구성
boris-xyz Jul 3, 2024
4f28320
🧸feat : 더보기 화면 구현
boris-xyz Jul 3, 2024
363e00a
🧸feat : apply lint
boris-xyz Jul 3, 2024
4574297
Merge pull request #513 from mash-up-kr/feature/schedule_daily
014967 Jul 3, 2024
78902df
Merge pull request #514 from 014967/feature/notice
014967 Jul 3, 2024
7820bb1
Merge branch 'feature/home_renewal' of github.com-boris:mash-up-kr/ma…
boris-xyz Jul 3, 2024
9f7f436
빌드 파일 수정
boris-xyz Jul 4, 2024
f77d9b2
Rnb api 연결
boris-xyz Jul 4, 2024
9892ed0
Schedule에서 더보기 버튼 연결
boris-xyz Jul 4, 2024
6a303ec
데이터 및 비즈니스 로직 추가
boris-xyz Jul 4, 2024
d3e0b6e
UI 구현
boris-xyz Jul 4, 2024
86742a0
apply lint
boris-xyz Jul 4, 2024
d04677e
alarm feature 생성
boris-xyz Jul 4, 2024
d0f9fa0
🧸 Notice Screen 구현
boris-xyz Jul 13, 2024
6fd7ebd
🧸 더보기 화면 구현
boris-xyz Jul 13, 2024
79e77db
🧸 알림 API 구현
boris-xyz Jul 13, 2024
6df933e
린트적용
boris-xyz Jul 14, 2024
140d1bc
🧸 알림 예외 처리 추가
boris-xyz Jul 14, 2024
a754b91
Build 수정
boris-xyz Jul 14, 2024
a7f9c55
린트 적용
boris-xyz Jul 14, 2024
75c9f43
Merge pull request #516 from 014967/feature/rnb
014967 Jul 27, 2024
e4e8d4c
Merge pull request #517 from 014967/feature/alarm
014967 Jul 27, 2024
a9f67b3
[refactor] move file for navigation
boris-xyz Jul 27, 2024
b82df61
[fix] build file
boris-xyz Jul 27, 2024
1c512b6
[refactor] apply lint
boris-xyz Jul 27, 2024
6b7a60e
매숑이키우기 액티비티 추가
boris-xyz Aug 6, 2024
af17687
웹뷰 컴포저블 수정 및 기존 웹뷰 수정
boris-xyz Aug 6, 2024
7cde6df
spotless린트 적용
boris-xyz Aug 6, 2024
73ca844
🛠 알림 확인 했음을 체크하는 API 호출 위치 수정
Sookhee Aug 6, 2024
466f33f
Merge pull request #518 from 014967/feature/connect_navigation
014967 Aug 6, 2024
86f15a2
🛠 오래된 알림 -> 지난 알림으로 String 변경
Sookhee Aug 6, 2024
9a2213b
Merge pull request #519 from 014967/feature/mashong
014967 Aug 6, 2024
c5d7771
🛠spotlessApply
Sookhee Aug 6, 2024
fe19805
생일 축하 팝업 추가
boris-xyz Aug 6, 2024
156fb0c
생일 축하 화면 추가
boris-xyz Aug 6, 2024
33a9a48
newIntent로 변경
boris-xyz Aug 6, 2024
c04717a
웹뷰 헤더 추가
boris-xyz Aug 6, 2024
be73a40
Merge pull request #520 from mash-up-kr/feature/push-histories
014967 Aug 7, 2024
2f2f5da
Merge pull request #521 from 014967/feature/bottom_card
014967 Aug 7, 2024
bd86299
Merge pull request #522 from 014967/feature/birthday
014967 Aug 7, 2024
162bd90
뒤로가기가 안먹어서 keyDown으로 변경
boris-xyz Aug 7, 2024
c6db8f1
apply lint
boris-xyz Aug 7, 2024
82e34b6
Merge pull request #523 from 014967/fix/etc
014967 Aug 7, 2024
0cb8232
NoticeActivity 위치 이동
boris-xyz Aug 7, 2024
d2960de
알림 네비게이션 추가
boris-xyz Aug 7, 2024
f287164
뒤로가기를 keyDown으로 변경
boris-xyz Aug 7, 2024
94da14e
apply lint
boris-xyz Aug 7, 2024
59f81e5
🧸 스케쥴 화면에서 이번 주 스케쥴 없을 때 "매숑이 밥주러 가기" 버튼 이동 연결
Aug 8, 2024
0df6a61
Merge pull request #525 from mash-up-kr/feature/empty_schedule_naviga…
014967 Aug 8, 2024
8a65ac2
생일 축하 URL 변경
boris-xyz Aug 11, 2024
271fbf5
Bottom Navigation에서 State 유지
boris-xyz Aug 11, 2024
5dcd89f
Merge pull request #524 from 014967/feature/noti_navigation
014967 Aug 11, 2024
97bea5f
이번주 일정 분기가 제대로 되지 않는것 수정
boris-xyz Aug 11, 2024
a30567a
apply lint
boris-xyz Aug 11, 2024
21bd899
이번주 시작 시간을 0분 0초에 맞추기
boris-xyz Aug 12, 2024
96d4958
apply lint
boris-xyz Aug 12, 2024
d8944ac
Merge pull request #526 from 014967/fix/week_schedule
014967 Aug 12, 2024
23d92c1
🧸 생일 축하, 매숑이 키우기 deeplink 화면 연결
Aug 14, 2024
97023a9
🛠 기타 알림 아이콘 변경
Aug 16, 2024
9626956
🛠 플랫폼 세미나 일 때 "플랫폼 출석현황" 버튼 노출하지 않기
Aug 16, 2024
009d2d7
🧸 스케줄 상세 화면에 공지 영역 추가
Aug 16, 2024
9e4f26e
🛠 이번 주 일정 UI 수정
Aug 16, 2024
8e2b0e6
🌱 Version 1.7.0 (version code 32)
Aug 16, 2024
b2a0b2a
기존 GA 네이밍 수정
boris-xyz Aug 18, 2024
0fe7aa9
WEB HOST 추가
boris-xyz Aug 18, 2024
c9dbcb5
WEB HOST를 통해 URL 수정
boris-xyz Aug 18, 2024
fe7695f
apply lint
boris-xyz Aug 18, 2024
edcec87
Merge pull request #527 from mash-up-kr/feature/push_deeplink
014967 Aug 18, 2024
104ffd2
Merge pull request #529 from 014967/feature/webview
014967 Aug 18, 2024
431ca40
🧸 전체 일정 목록에서 이번 주 일정 포커싱 처리
Aug 19, 2024
d92cc60
🛠 spotlessApply
Sookhee Aug 19, 2024
bde5415
🛠 Notice 페이지 사이즈 100으로 늘림
Sookhee Aug 19, 2024
9be9d2b
생일 축하 팝업 연결
boris-xyz Aug 19, 2024
d848371
apply lint
boris-xyz Aug 19, 2024
4f1bc18
Merge pull request #530 from mash-up-kr/fix/qa
014967 Aug 19, 2024
efe773b
🛠 새로운 알림 확인을 위해 MoreMenu 페이지 들어갈 때마다(Resume) API 받아오기
Sookhee Aug 19, 2024
f24782f
Merge pull request #532 from 014967/feature/birthday_popup
014967 Aug 19, 2024
d8851d2
Merge remote-tracking branch 'origin/feature/home_renewal' into featu…
Sookhee Aug 19, 2024
f96111b
Merge remote-tracking branch 'origin/feature/home_renewal' into featu…
Sookhee Aug 19, 2024
e7384c9
Merge pull request #531 from mash-up-kr/feature/daily_scroll_focusing
Sookhee Aug 19, 2024
47c30ae
🛠 공지 null 외에도 비어있으면 없음 처리
Sookhee Aug 19, 2024
e99d400
🛠 title -> formattedTime으로 잘못 전달된 파라미터 수정
Sookhee Aug 19, 2024
2960ff4
생일 축하 팝업 연결
boris-xyz Aug 19, 2024
8ad1f5a
apply lint
boris-xyz Aug 19, 2024
cbd5883
🧸 전체 일정 목록에서 이번 주 일정 포커싱 처리
Aug 19, 2024
3477079
이벤트 LIST GA추가
boris-xyz Aug 19, 2024
c4ad591
GA params 추가
boris-xyz Aug 19, 2024
e6adca9
lint apply
boris-xyz Aug 19, 2024
45b3214
Merge branch 'feature/home_renewal' into feature/ga
014967 Aug 19, 2024
cb39856
push에 GA 추가
boris-xyz Aug 19, 2024
ccb4766
apply lint
boris-xyz Aug 19, 2024
fc977cf
Merge pull request #534 from mash-up-kr/fix/schedule
Sookhee Aug 19, 2024
3ca7256
Merge pull request #533 from mash-up-kr/fix/notice
Sookhee Aug 19, 2024
2315605
Merge pull request #528 from 014967/feature/ga
014967 Aug 19, 2024
d6689e1
🌱 Version 1.7.1 (version code 33)
Aug 20, 2024
17d915b
웹뷰 키보드 입력용 imePadding 추가
boris-xyz Aug 23, 2024
4d8bd03
Merge pull request #536 from 014967/feature/webview_keyboard
014967 Sep 1, 2024
bc69bfb
새로운 출석 점수 반영
boris-xyz Sep 1, 2024
9d13272
Merge pull request #537 from 014967/feature/new_attendancetype
014967 Sep 1, 2024
1560a9d
상세 스케줄 보러가기 클릭시에 상세스케줄 화면으로 이동
boris-xyz Sep 1, 2024
84732e4
apply lint
boris-xyz Sep 1, 2024
459758a
알림을 읽지 못하는 이슈 수정
boris-xyz Sep 2, 2024
5f65cfe
🧸 MainActivity launchMode 변경(singleTasK)
Sep 4, 2024
f28b784
Merge pull request #538 from 014967/fix/card_navigation
Sookhee Sep 4, 2024
1f5062e
Merge pull request #539 from mash-up-kr/fix/main-launch_mode
Sookhee Sep 4, 2024
616c708
🌱 Version 1.7.2 (version code 34)
Sep 4, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ android {
applicationId "com.mashup"
minSdkVersion minVersion
targetSdkVersion targetVersion
versionCode 31
versionName "1.6.2"
versionCode 34
versionName "1.7.2"

testInstrumentationRunner "com.mashup.core.testing.MashUpTestRunner"
vectorDrawables {
Expand Down Expand Up @@ -107,6 +107,8 @@ dependencies {
implementation project(":feature:setting")
implementation project(":feature:danggn")
implementation project(":feature:myPage")
implementation project(":feature:moreMenu")
implementation project(':feature:moreMenu:notice')

// ml Kit
implementation "com.google.mlkit:barcode-scanning:$barcodeSacnnerVersion"
Expand Down Expand Up @@ -164,4 +166,7 @@ dependencies {

// Naver Map
implementation "io.github.fornewid:naver-map-compose:1.4.0"

// Date Time
implementation 'com.jakewharton.threetenabp:threetenabp:1.3.1'
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
package com.mashup.data.network

const val API_HOST = "https://api.dev-member.mash-up.kr/"
const val WEB_HOST = "https://dev-app.mash-up.kr/"
38 changes: 29 additions & 9 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
<uses-feature
android:name="android.hardware.camera"
android:required="false" />
<uses-permission android:name="android.permission.POST_NOTIFICATIONS"/>

<uses-permission android:name="android.permission.POST_NOTIFICATIONS" />
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
Expand All @@ -15,19 +16,21 @@
<queries>
<package android:name="com.android.vending" />
<intent>
<action android:name="android.intent.action.VIEW"/>
<data android:scheme="https" android:host="play.google.com" />
<action android:name="android.intent.action.VIEW" />
<data
android:host="play.google.com"
android:scheme="https" />
</intent>
</queries>

<application
android:name=".MashUpApplication"
android:allowBackup="false"
android:icon="@mipmap/ic_launcher"
android:label="${appName}"
android:roundIcon="@mipmap/ic_launcher_round"
android:resizeableActivity="false"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:allowBackup="false"
android:theme="@style/Theme.MashUp"
android:usesCleartextTraffic="true"
tools:ignore="DataExtractionRules">
Expand Down Expand Up @@ -62,8 +65,9 @@
android:name=".ui.login.LoginActivity"
android:exported="true"
android:screenOrientation="portrait"
tools:ignore="LockedOrientationActivity"/>
<activity android:name=".ui.splash.SplashActivity"
tools:ignore="LockedOrientationActivity" />
<activity
android:name=".ui.splash.SplashActivity"
android:exported="true"
android:screenOrientation="portrait"
android:theme="@style/SplashTheme"
Expand Down Expand Up @@ -99,6 +103,7 @@
android:name=".ui.main.MainActivity"
android:exported="true"
android:label="@string/title_activity_main"
android:launchMode="singleTask"
android:screenOrientation="portrait"
android:theme="@style/Theme.MashUp"
android:windowSoftInputMode="stateAlwaysHidden"
Expand All @@ -125,13 +130,14 @@
android:name=".ui.setting.SettingActivity"
android:exported="false"
android:screenOrientation="portrait"
tools:ignore="LockedOrientationActivity"/>
tools:ignore="LockedOrientationActivity" />

<activity
android:name=".ui.setting.PushActivity"
android:exported="false"
android:screenOrientation="portrait"
tools:ignore="LockedOrientationActivity"/>
tools:ignore="LockedOrientationActivity" />


<activity
android:name=".ui.error.NetworkDisconnectActivity"
Expand All @@ -140,6 +146,20 @@
android:screenOrientation="portrait"
tools:ignore="LockedOrientationActivity" />

<activity
android:name=".ui.moremenu.MoreMenuActivity"
android:exported="false"
android:screenOrientation="portrait" />

<activity android:name=".ui.webview.mashong.MashongActivity"
android:exported="false"
android:screenOrientation="portrait"/>

<activity
android:name=".ui.webview.birthday.BirthdayActivity"
android:exported="false"
android:screenOrientation="portrait"/>

<service
android:name=".service.MashUpFirebaseMessagingService"
android:exported="false">
Expand Down
1 change: 1 addition & 0 deletions app/src/main/java/com/mashup/constant/ExtraConstant.kt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ const val EXTRA_LOGIN_TYPE = "EXTRA_MAIN_TYPE"
const val EXTRA_TITLE_KEY = "EXTRA_TITLE_KEY"
const val EXTRA_URL_KEY = "EXTRA_URL_KEY"
const val EXTRA_SCHEDULE_ID = "EXTRA_SCHEDULE_ID"
const val EXTRA_SCHEDULE_TYPE = "EXTRA_SCHEDULE_TYPE"

const val EXTRA_LOGOUT = "EXTRA_LOGOUT"
const val EXTRA_WITH_DRAWL = "EXTRA_WITH_DRAWL"
Expand Down
98 changes: 76 additions & 22 deletions app/src/main/java/com/mashup/constant/log/UserActionLogs.kt
Original file line number Diff line number Diff line change
@@ -1,42 +1,96 @@
package com.mashup.constant.log

const val LOG_BACK = "back"
const val LOG_CLOSE = "close"
/**
* Category Common
*/
const val LOG_COMMON_BACK = "back"
const val LOG_COMMON_CLOSE = "close"
const val LOG_COMMON_POPUP_CONFIRM = "popup_new_confirm"
const val LOG_COMMON_POPUP_CANCEL = "popup_new_cancel"

/**
* Category SignUp
*/
const val LOG_LOGIN = "login"
const val LOG_SIGN_UP = "signup"

const val LOG_LOGOUT = "logout"
const val LOG_DELETE_USER = "delete_user"
const val LOG_SNS_FACEBOOK = "facebook"
const val LOG_SNS_INSTAGRAM = "instagram"
const val LOG_SNS_TISTORY = "tistory"
const val LOG_SNS_YOUTUBE = "youtube"
const val LOG_SNS_MASHUP_HOME = "mashup_home"
const val LOG_SNS_MASHUP_RECRUIT = "mashup_recruit"
const val LOG_PLACE_SIGN_CODE = "signup_code"
const val LOG_PLACE_SIGN_MEMBER_INFO = "signup_info"
const val LOG_PLACE_SIGN_PLATFORM = "signup_platform"
const val LOG_POPUP_SIGNUP_CONFIRM = "popup_signup_confirm"
const val LOG_POPUP_SIGNUP_CANCEL = "popup_signup_cancel"

const val LOG_PLACE_CHANGE_PASSWORD = "change_password"
const val LOG_PLACE_ENTER_ID = "enter_id"

const val LOG_SCHEDULE_LIST_REFRESH = "refresh"
const val LOG_SCHEDULE_STATUS_CONFIRM = "status_confirm"
const val LOG_SCHEDULE_EVENT_DETAIL = "event_detail"
/**
* Category Event List
*/
const val LOG_EVENT_LIST_REFRESH = "refresh"
const val LOG_EVENT_LIST_STATUS_CONFIRM = "status_confirm"
const val LOG_EVENT_LIST_EVENT_DETAIL = "event_detail"
const val LOG_EVENT_LIST_WEEK_MASHONG = "week_mashong"
const val LOG_EVENT_LIST_WEEK = "week"
const val LOG_EVENT_LIST_ALL = "all"
const val LOG_EVENT_LIST_DETAIL_COPY = "detail_copy"

/**
* Category More
*/
const val LOG_MORE_BIRTH = "more_birth"
const val LOG_MORE_MASHONG = "more_mashong"
const val LOG_MORE_CARROT = "more_carrot"
const val LOG_MORE_ALARM = "more_alarm"
const val LOG_MORE_SETTING = "more_setting"

/**
* Category Alarm
*/
const val LOG_ALARM_LIST = "alarm_list"

/**
* Category Logout
*/
const val LOG_POPUP_LOGOUT_CONFIRM = "popup_logout_confirm"
const val LOG_POPUP_LOGOUT_CANCEL = "popup_logout_cancel"

/**
* Category QR
*/
const val LOG_QR = "qr"
const val LOG_QR_SUCCESS = "qr_success"
const val LOG_QR_DONE = "qr_done"
const val LOG_QR_TIME_FAIL = "qr_time_fail"
const val LOG_QR_WRONG = "qr_wrong"
const val LOG_QR_LOCATION = "qr_location"
const val LOG_QR_DISTANCE_OUT_OF_RANGE = "qr_distance_out_of_range"

const val LOG_DELETE_SUCCESS_USER = "delete_user_success"
/**
* Category MyPage
*/
const val LOG_MYPAGE_HELP = "help"

const val LOG_COMMON_POPUP_CONFIRM = "popup_new_confirm"
const val LOG_COMMON_POPUP_CANCEL = "popup_new_cancel"
/**
* Category Setting
*/
const val LOG_SETTING_LOGOUT = "logout"
const val LOG_SETTING_DELETE_USER = "delete_user"
const val LOG_SETTING_SNS_FACEBOOK = "facebook"
const val LOG_SETTING_SNS_INSTAGRAM = "instagram"
const val LOG_SETTING_SNS_TISTORY = "tistory"
const val LOG_SETTING_SNS_YOUTUBE = "youtube"
const val LOG_SETTING_SNS_MASHUP_HOME = "mashup_home"
const val LOG_SETTING_SNS_MASHUP_RECRUIT = "mashup_recruit"

/**
* Category Delete User
*/
const val LOG_DELETE_USER_SUCCESS = "delete_user_success"

/**
* Category Danggn
*/
const val LOG_DANGGN = "danggn"
const val LOG_DANGGN_HELP = "danggn_help"

/**
* UnCategorization
*/
const val LOG_PLACE_SIGN_CODE = "signup_code"
const val LOG_PLACE_SIGN_MEMBER_INFO = "signup_info"
const val LOG_PLACE_SIGN_PLATFORM = "signup_platform"
const val LOG_PLACE_ENTER_ID = "enter_id"
6 changes: 6 additions & 0 deletions app/src/main/java/com/mashup/data/dto/ScheduleResponse.kt
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ import java.util.Locale

@JsonClass(generateAdapter = true)
data class ScheduleResponse(
@field:Json(name = "scheduleType")
val scheduleType: String,
@field:Json(name = "notice")
val notice: String?,
@field:Json(name = "scheduleId")
val scheduleId: Int,
@field:Json(name = "dateCount")
Expand Down Expand Up @@ -54,9 +58,11 @@ data class ScheduleResponse(
dateCount == 0 -> {
"D-Day"
}

dateCount > 0 -> {
"D-$dateCount"
}

else -> {
"D+${-dateCount}"
}
Expand Down
18 changes: 18 additions & 0 deletions app/src/main/java/com/mashup/di/NetworkModule.kt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ import com.facebook.flipper.plugins.network.NetworkFlipperPlugin
import com.mashup.BuildConfig.DEBUG_MODE
import com.mashup.core.model.Platform
import com.mashup.core.network.adapter.PlatformJsonAdapter
import com.mashup.core.network.dao.MetaDao
import com.mashup.core.network.dao.PopupDao
import com.mashup.core.network.dao.PushHistoryDao
import com.mashup.core.network.dao.StorageDao
import com.mashup.data.network.API_HOST
import com.mashup.network.CustomDateAdapter
Expand Down Expand Up @@ -145,4 +147,20 @@ class NetworkModule {
): MemberProfileDao {
return retrofit.create()
}

@Provides
@Singleton
fun provideMetaDao(
retrofit: Retrofit
): MetaDao {
return retrofit.create()
}

@Provides
@Singleton
fun providePushHistoryDao(
retrofit: Retrofit
): PushHistoryDao {
return retrofit.create()
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,15 @@ import android.os.Build
import android.util.Log
import androidx.core.app.NotificationCompat
import androidx.core.app.NotificationManagerCompat
import androidx.core.os.bundleOf
import com.google.firebase.messaging.FirebaseMessagingService
import com.google.firebase.messaging.RemoteMessage
import com.mashup.BuildConfig
import com.mashup.R
import com.mashup.constant.EXTRA_LINK
import com.mashup.constant.log.LOG_ALARM_LIST
import com.mashup.ui.splash.SplashActivity
import com.mashup.util.AnalyticsManager
import dagger.hilt.android.AndroidEntryPoint
import java.net.URL

Expand Down Expand Up @@ -58,6 +61,13 @@ class MashUpFirebaseMessagingService : FirebaseMessagingService() {
imageUrl: Uri?,
data: Map<String, String>
) {
AnalyticsManager.addEvent(
eventName = LOG_ALARM_LIST,
params = bundleOf(
"place" to "PUSH",
"type" to PushLinkType.getPushLinkType(data[EXTRA_LINK].orEmpty()).name
)
)
val splashIntent = Intent(this, SplashActivity::class.java).apply {
flags = Intent.FLAG_ACTIVITY_SINGLE_TOP or Intent.FLAG_ACTIVITY_CLEAR_TOP
putExtra(EXTRA_LINK, data[EXTRA_LINK])
Expand Down
2 changes: 2 additions & 0 deletions app/src/main/java/com/mashup/service/PushLinkType.kt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ enum class PushLinkType {
QR, // QR 페이지
DANGGN, // 당근 페이지
DANGGN_REWARD,
BIRTHDAY, // 생일 축하
MASHONG, // 매숑이 키우기
MYPAGE,
UNKNOWN
;
Expand Down
10 changes: 10 additions & 0 deletions app/src/main/java/com/mashup/ui/login/LoginActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ import com.mashup.ui.main.model.MainTab
import com.mashup.ui.password.PasswordActivity
import com.mashup.ui.qrscan.QRScanActivity
import com.mashup.ui.signup.SignUpActivity
import com.mashup.ui.webview.birthday.BirthdayActivity
import com.mashup.ui.webview.mashong.MashongActivity
import com.mashup.util.AnalyticsManager
import dagger.hilt.android.AndroidEntryPoint
import kotlinx.coroutines.flow.collectLatest
Expand Down Expand Up @@ -160,6 +162,14 @@ class LoginActivity : BaseActivity<ActivityLoginBinding>() {
)
}

PushLinkType.BIRTHDAY -> {
buildTaskStack(baseIntent, BirthdayActivity.newIntent(this))
}

PushLinkType.MASHONG -> {
buildTaskStack(baseIntent, MashongActivity.newIntent(this))
}

PushLinkType.QR -> {
buildTaskStack(baseIntent, QRScanActivity.newIntent(this))
}
Expand Down
Loading
Loading