-
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.
* docs site 경로 일일이 설정하도록 변경 * refactor: Log 버전 설정 방식 수정 * feat: develop에 push 되었을 때도 문서 사이트 빌드
- Loading branch information
Showing
4 changed files
with
55 additions
and
41 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 |
---|---|---|
|
@@ -3,7 +3,7 @@ name: Deploy docs | |
|
||
on: | ||
push: | ||
branches: [ master ] | ||
branches: [ master, develop ] | ||
|
||
jobs: | ||
release: | ||
|
@@ -12,13 +12,6 @@ jobs: | |
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Read versionName property | ||
id: logger_version | ||
uses: christian-draeger/[email protected] | ||
with: | ||
path: './version.properties' | ||
properties: 'versionName' | ||
|
||
- name: set up JDK 17 | ||
uses: actions/setup-java@v4 | ||
with: | ||
|
@@ -38,4 +31,4 @@ jobs: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
BRANCH: gh-page | ||
FOLDER: yls/build/dokka/html/ | ||
TARGET_FOLDER: 'docs/%{{ steps.logger_version.outputs.versionName }}/' # ex: docx/0.1/ | ||
TARGET_FOLDER: 'docs/0.x/' |
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,53 +1,46 @@ | ||
package com.yourssu.logging.system | ||
|
||
fun logEvent( | ||
fun YLS.Facade.logEvent( | ||
eventName: String, | ||
version: Int = YLS.VERSION, | ||
vararg extra: Pair<String, Any>, | ||
) { | ||
YLS.log(version, "event" to eventName, *extra) | ||
YLS.log("event" to eventName, *extra) | ||
} | ||
|
||
fun logAppInitEvent( | ||
version: Int = YLS.VERSION, | ||
vararg extra: Pair<String, Any>, | ||
) { | ||
logEvent("AppInitialEntry", version, *extra) | ||
fun YLS.Facade.logAppInit(vararg extra: Pair<String, Any>) { | ||
logEvent("AppInitialEntry", *extra) | ||
} | ||
|
||
fun logDeepLinkEntry( | ||
fun YLS.Facade.logDeepLinkEntry( | ||
screenName: String, | ||
version: Int = YLS.VERSION, | ||
vararg extra: Pair<String, Any>, | ||
) { | ||
logEvent("DeepLinkEntry", version, "screen" to screenName, *extra) | ||
logEvent("DeepLinkEntry", "screen" to screenName, *extra) | ||
} | ||
|
||
fun logScreenEntry( | ||
fun YLS.Facade.logScreenEntry( | ||
screenName: String, | ||
version: Int = YLS.VERSION, | ||
vararg extra: Pair<String, Any>, | ||
) { | ||
logEvent("ScreenEntry", version, "screen" to screenName, *extra) | ||
logEvent("ScreenEntry", "screen" to screenName, *extra) | ||
} | ||
|
||
fun logScreenExit( | ||
fun YLS.Facade.logScreenExit( | ||
screenName: String, | ||
version: Int = YLS.VERSION, | ||
vararg extra: Pair<String, Any>, | ||
) { | ||
logEvent("ScreenExit", version, "screen" to screenName, *extra) | ||
logEvent("ScreenExit", "screen" to screenName, *extra) | ||
flush() | ||
} | ||
|
||
/** | ||
* @param componentName 클릭한 요소의 이름 | ||
* @param screenName 클릭한 시점의 화면의 이름 | ||
*/ | ||
fun logClick( | ||
fun YLS.Facade.logClick( | ||
componentName: String, | ||
screenName: String, | ||
version: Int = YLS.VERSION, | ||
vararg extra: Pair<String, Any>, | ||
) { | ||
logEvent("${componentName}Clicked", version, "screen" to screenName, *extra) | ||
logEvent("${componentName}Clicked", "screen" to screenName, *extra) | ||
} |
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