-
Notifications
You must be signed in to change notification settings - Fork 2
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 #250 from BCSDLab/release
Update v3.4.0
- Loading branch information
Showing
45 changed files
with
1,283 additions
and
635 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
48 changes: 48 additions & 0 deletions
48
core/src/main/java/in/koreatech/koin/core/analytics/EventLogger.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,48 @@ | ||
package `in`.koreatech.koin.core.analytics | ||
|
||
import com.google.firebase.analytics.ktx.analytics | ||
import com.google.firebase.analytics.ktx.logEvent | ||
import com.google.firebase.ktx.Firebase | ||
import `in`.koreatech.koin.core.BuildConfig | ||
import `in`.koreatech.koin.core.constant.AnalyticsConstant | ||
|
||
object EventLogger { | ||
|
||
private const val EVENT_CATEGORY = "event_category" | ||
private const val EVENT_LABEL = "event_label" | ||
private const val VALUE = "value" | ||
|
||
/** | ||
* @param action: 이벤트 발생 도메인(BUSINESS, CAMPUS, USER) | ||
* @param label: 이벤트 소분류 | ||
* @param value: 이벤트 값 | ||
*/ | ||
fun logClickEvent(action: String, label: String, value: String) { | ||
logEvent(action, AnalyticsConstant.Category.CLICK, label, value) | ||
} | ||
|
||
/** | ||
* @param action: 이벤트 발생 도메인(BUSINESS, CAMPUS, USER) | ||
* @param label: 이벤트 소분류 | ||
* @param value: 이벤트 값 | ||
*/ | ||
fun logScrollEvent(action: String, label: String, value: String) { | ||
logEvent(action, AnalyticsConstant.Category.SCROLL, label, value) | ||
} | ||
|
||
/** | ||
* @param action: 이벤트 발생 도메인(BUSINESS, CAMPUS, USER) | ||
* @param category: 이벤트 종류(click, scroll, ...) | ||
* @param label: 이벤트 소분류 | ||
* @param value: 이벤트 값 | ||
* @sample logEvent("BUSINESS", "click", "main_shop_categories", "전체보기") | ||
*/ | ||
private fun logEvent(action: String, category: String, label: String, value: String) { | ||
if (BuildConfig.IS_DEBUG) return | ||
Firebase.analytics.logEvent(action) { | ||
param(EVENT_CATEGORY, category) | ||
param(EVENT_LABEL, label) | ||
param(VALUE, value) | ||
} | ||
} | ||
} |
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
48 changes: 48 additions & 0 deletions
48
core/src/main/java/in/koreatech/koin/core/constant/AnalyticsConstant.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,48 @@ | ||
package `in`.koreatech.koin.core.constant | ||
|
||
object AnalyticsConstant { | ||
|
||
object Domain { | ||
const val BUSINESS = "BUSINESS" | ||
const val CAMPUS = "CAMPUS" | ||
const val USER = "USER" | ||
} | ||
|
||
object Category { | ||
const val CLICK = "click" | ||
const val SCROLL = "scroll" | ||
} | ||
|
||
object Label { | ||
const val MAIN_SHOP_CATEGORIES = "main_shop_categories" | ||
const val SHOP_CATEGORIES = "shop_categories" | ||
const val SHOP_CATEGORIES_SEARCH = "shop_categories_search" | ||
const val HAMBURGER = "hamburger" | ||
const val HAMBURGER_SHOP = "${HAMBURGER}_shop" | ||
const val HAMBURGER_DINING = "${HAMBURGER}_dining" | ||
const val HAMBURGER_MY_INFO_WITHOUT_LOGIN = "${HAMBURGER}_my_info_without_login" | ||
const val HAMBURGER_MY_INFO_WITH_LOGIN = "${HAMBURGER}_my_info_with_login" | ||
const val HAMBURGER_BUS = "${HAMBURGER}_bus" | ||
const val USER_ONLY_OK = "user_only_ok" | ||
const val MAIN_MENU_MOVEDETAILVIEW = "main_menu_moveDetailView" | ||
const val MAIN_MENU_CORNER = "main_menu_corner" | ||
const val MENU_TIME = "menu_time" | ||
const val MAIN_BUS = "main_bus" | ||
const val MAIN_BUS_CHANGETOFROM = "main_bus_changeToFrom" | ||
const val MAIN_BUS_SCROLL = "main_bus_scroll" | ||
const val BUS_DEPARTURE = "bus_departure" | ||
const val BUS_ARRIVAL = "bus_arrival" | ||
const val BUS_TIMETABLE = "bus_timetable" | ||
const val BUS_TIMETABLE_AREA = "bus_timetable_area" | ||
const val BUS_TIMETABLE_TIME = "bus_timetable_time" | ||
const val BUS_TIMETABLE_EXPRESS = "bus_timetable_express" | ||
const val MENU_IMAGE = "menu_image" | ||
const val LOGIN = "login" | ||
const val START_SIGN_UP = "start_sign_up" | ||
const val COMPLETE_SIGN_UP = "complete_sign_up" | ||
const val SHOP_PICTURE = "shop_picture" | ||
const val SHOP_CALL = "shop_call" | ||
const val SHOP_CLICK = "shop_click" | ||
} | ||
|
||
} |
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
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
10 changes: 10 additions & 0 deletions
10
domain/src/main/java/in/koreatech/koin/domain/model/dining/DiningPlace.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,10 @@ | ||
package `in`.koreatech.koin.domain.model.dining | ||
|
||
enum class DiningPlace( | ||
val place: String | ||
) { | ||
CornerA("A코너"), | ||
CornerB("B코너"), | ||
CornerC("C코너"), | ||
Nungsu("능수관") | ||
} |
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
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
Oops, something went wrong.