Skip to content

Commit

Permalink
[IDLE-514] 워크넷 공고 링크 조회 로깅 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
tgyuuAn committed Nov 12, 2024
1 parent dc3c45d commit b76902e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ android {
namespace = "com.idle.care"

defaultConfig {
versionCode = 10
versionName = "1.1.3"
versionCode = 14
versionName = "1.1.5"
targetSdk = 34

testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ import androidx.compose.ui.text.style.TextOverflow
import androidx.compose.ui.unit.dp
import androidx.core.content.ContextCompat.startActivity
import androidx.core.net.toUri
import com.idle.analytics.AnalyticsEvent
import com.idle.analytics.AnalyticsEvent.PropertiesKeys.ACTION_NAME
import com.idle.analytics.businessmetric.LocalAnalyticsHelper
import com.idle.analytics.businessmetric.TrackScreenViewEvent
import com.idle.compose.clickable
import com.idle.designresource.R
Expand All @@ -60,6 +63,7 @@ internal fun CrawlingJobPostingDetailScreen(
LocalOnBackPressedDispatcherOwner.current?.onBackPressedDispatcher
val scrollState = rememberScrollState()
val context = LocalContext.current
val analyticsHelper = LocalAnalyticsHelper.current

Scaffold(
containerColor = CareTheme.colors.white000,
Expand Down Expand Up @@ -499,6 +503,13 @@ internal fun CrawlingJobPostingDetailScreen(
description = jobPostingDetail.jobPostingUrl,
showRightArrow = true,
onClick = {
analyticsHelper.logEvent(
AnalyticsEvent(
type = AnalyticsEvent.Types.ACTION,
properties = mutableMapOf(ACTION_NAME to "apply_workent"),
)
)

startActivity(
context,
Intent(Intent.ACTION_VIEW, jobPostingDetail.jobPostingUrl.toUri()),
Expand Down

0 comments on commit b76902e

Please sign in to comment.