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

[IDLE-514] 워크넷 공고 링크 조회 로깅 추가 #155

Merged
merged 1 commit into from
Nov 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
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