Skip to content

Commit

Permalink
[FEAT] BaseViewModel에 shotSwmLogging 추가 (#156)
Browse files Browse the repository at this point in the history
  • Loading branch information
KxxHyoRim committed Nov 13, 2023
1 parent 3b46bae commit 2554f1f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import com.lgtm.domain.entity.LgtmResponseException
import com.lgtm.domain.logging.SwmCommonLoggingScheme
import com.swm.logging.android.SWMLogging
import kotlinx.coroutines.CoroutineExceptionHandler

abstract class BaseViewModel : ViewModel() {
Expand All @@ -30,4 +32,8 @@ abstract class BaseViewModel : ViewModel() {
}
}
}

fun shotSwmLogging(scheme : SwmCommonLoggingScheme) {
SWMLogging.logEvent(scheme)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@ class SignUpActivity : BaseActivity<ActivitySignUpBinding>(R.layout.activity_sig
.setEventLogName("signUpExposure")
.setScreenName(this.javaClass)
.build()
signUpViewModel.shotSignUpExposureLogging(scheme)
viewModel?.shotSwmLogging(scheme)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class SplashActivity : BaseActivity<ActivitySplashBinding>(R.layout.activity_spl
.setEventLogName("splashExposure")
.setScreenName(this.javaClass)
.build()
splashViewModel.shotSplashExposureLogging(scheme)
viewModel?.shotSwmLogging(scheme)
}

override fun onResume() {
Expand Down

0 comments on commit 2554f1f

Please sign in to comment.