-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #28 from MONEYMONG/release/release-1.2.0
Release/release 1.2.0
- Loading branch information
Showing
88 changed files
with
1,107 additions
and
536 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,4 +18,6 @@ keystore.properties | |
|
||
# Keystore Files | ||
*.jks | ||
*.keystore | ||
*.keystore | ||
|
||
*.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
core/common/src/main/java/com/moneymong/moneymong/common/di/EventModule.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package com.moneymong.moneymong.common.di | ||
|
||
import com.moneymong.moneymong.common.event.EventTracker | ||
import dagger.Module | ||
import dagger.Provides | ||
import dagger.hilt.InstallIn | ||
import dagger.hilt.components.SingletonComponent | ||
import javax.inject.Singleton | ||
|
||
@Module | ||
@InstallIn(SingletonComponent::class) | ||
object EventModule { | ||
|
||
@Provides | ||
@Singleton | ||
fun provideEventTracker(): EventTracker = | ||
EventTracker() | ||
} |
38 changes: 38 additions & 0 deletions
38
core/common/src/main/java/com/moneymong/moneymong/common/event/Event.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
package com.moneymong.moneymong.common.event | ||
|
||
enum class Event(val eventName: String, val desc: String) { | ||
OPERATION_COST_CLICK( | ||
eventName = "operation_cost_click", | ||
desc = "운영비 등록하기 버튼 클릭" | ||
), | ||
LEDGER_CLICK( | ||
eventName = "ledger_click", | ||
desc = "소속 장부 확인 버튼 클릭" | ||
), | ||
OCR_REGISTER_CLICK( | ||
eventName = "ocr_register_click", | ||
desc = "등록하기 버튼 클릭" | ||
), | ||
OCR_MODIFY_CLICK( | ||
eventName = "ocr_modify_click", | ||
desc = "수정하기 버튼 클릭" | ||
), | ||
OCR_MODIFY_TO_REGISTER_CLICK( | ||
eventName = "ocr_modify_to_register_click", | ||
desc = "등록하기 버튼 클릭" | ||
), | ||
PLUS_CLICK( | ||
eventName = "plus_click", | ||
desc = "+ 플로팅 버튼 클릭" | ||
), | ||
HAND_CLICK( | ||
eventName = "hand_click", | ||
desc = "수동 등록 플로팅 버튼 클릭" | ||
), | ||
OCR_CLICK( | ||
eventName = "ocr_click", | ||
desc = "OCR 등록 플로팅 버튼 클릭" | ||
) | ||
; | ||
|
||
} |
24 changes: 24 additions & 0 deletions
24
core/common/src/main/java/com/moneymong/moneymong/common/event/EventTracker.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package com.moneymong.moneymong.common.event | ||
|
||
import android.os.Bundle | ||
import com.google.firebase.Firebase | ||
import com.google.firebase.analytics.FirebaseAnalytics | ||
import com.google.firebase.analytics.analytics | ||
import javax.inject.Inject | ||
|
||
class EventTracker @Inject constructor() { | ||
|
||
private lateinit var firebaseAnalytics: FirebaseAnalytics | ||
private var initialized: Boolean = false | ||
|
||
fun initialize() { | ||
firebaseAnalytics = Firebase.analytics | ||
initialized = true | ||
} | ||
|
||
fun logEvent(event: Event, param: Bundle? = null) { | ||
check(initialized) { "logEvent를 호출하기 전 초기화가 필요합니다." } | ||
|
||
firebaseAnalytics.logEvent(event.eventName, param) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
66 changes: 66 additions & 0 deletions
66
.../main/java/com/moneymong/moneymong/design_system/component/selection/SelectionDefaults.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
package com.moneymong.moneymong.design_system.component.selection | ||
|
||
import androidx.compose.ui.graphics.Color | ||
import com.moneymong.moneymong.design_system.theme.Blue01 | ||
import com.moneymong.moneymong.design_system.theme.Blue04 | ||
import com.moneymong.moneymong.design_system.theme.Gray03 | ||
import com.moneymong.moneymong.design_system.theme.Gray04 | ||
import com.moneymong.moneymong.design_system.theme.Gray05 | ||
import com.moneymong.moneymong.design_system.theme.White | ||
|
||
|
||
enum class MDSSelectionType( | ||
val backgroundColor: Color, | ||
val contentColor: Color | ||
) { | ||
PRIMARY( | ||
backgroundColor = Blue04, | ||
contentColor = White | ||
), | ||
SECONDARY( | ||
backgroundColor = Blue01, | ||
contentColor = Blue04 | ||
) | ||
} | ||
|
||
internal val unSelectedBackgroundColor = White | ||
internal val unSelectedContentColor = Gray05 | ||
|
||
internal val disabledBackgroundColor = Gray03 | ||
internal val disabledContentColor = Gray04 | ||
|
||
internal val selectionBackgroundColor: ( | ||
enabled: Boolean, | ||
isSelected: Boolean, | ||
type: MDSSelectionType | ||
) -> Color = { enabled, isSelected, type -> | ||
when { | ||
enabled.not() -> disabledBackgroundColor | ||
isSelected.not() -> unSelectedBackgroundColor | ||
else -> type.backgroundColor | ||
} | ||
} | ||
|
||
internal val selectionContentColor: ( | ||
enabled: Boolean, | ||
isSelected: Boolean, | ||
type: MDSSelectionType | ||
) -> Color = { enabled, isSelected, type -> | ||
when { | ||
enabled.not() -> disabledContentColor | ||
isSelected.not() -> unSelectedContentColor | ||
else -> type.contentColor | ||
} | ||
} | ||
|
||
internal val selectionBorderColor: ( | ||
enabled: Boolean, | ||
isSelected: Boolean, | ||
type: MDSSelectionType | ||
) -> Color = { enabled, isSelected, type -> | ||
when { | ||
enabled.not() -> disabledBackgroundColor | ||
isSelected.not() -> Gray03 | ||
else -> type.backgroundColor | ||
} | ||
} |
25 changes: 0 additions & 25 deletions
25
.../src/main/java/com/moneymong/moneymong/design_system/component/selection/SelectionType.kt
This file was deleted.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions
5
core/model/src/main/java/com/moneymong/moneymong/model/sign/LoginType.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
package com.moneymong.moneymong.model.sign | ||
|
||
enum class LoginType { | ||
KAKAO | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
core/model/src/main/java/com/moneymong/moneymong/model/sign/UnivRequest.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
package com.moneymong.moneymong.model.sign | ||
|
||
data class UnivRequest( | ||
val universityName: String, | ||
val grade: Int | ||
val universityName: String?, | ||
val grade: Int? | ||
) |
2 changes: 1 addition & 1 deletion
2
core/model/src/main/java/com/moneymong/moneymong/model/sign/UnivResponse.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
package com.moneymong.moneymong.model.sign | ||
|
||
data class UnivResponse( | ||
val universityName: String, | ||
val universityName: String?, | ||
val grade: Int | ||
) |
Oops, something went wrong.