|
|
@ -18,11 +18,9 @@ package com.google.samples.apps.nowinandroid.util
|
|
|
|
|
|
|
|
|
|
|
|
import android.util.Log
|
|
|
|
import android.util.Log
|
|
|
|
import androidx.profileinstaller.ProfileVerifier
|
|
|
|
import androidx.profileinstaller.ProfileVerifier
|
|
|
|
import com.google.samples.apps.nowinandroid.core.network.di.ApplicationScope
|
|
|
|
|
|
|
|
import kotlinx.coroutines.CoroutineScope
|
|
|
|
import kotlinx.coroutines.CoroutineScope
|
|
|
|
import kotlinx.coroutines.guava.await
|
|
|
|
import kotlinx.coroutines.guava.await
|
|
|
|
import kotlinx.coroutines.launch
|
|
|
|
import kotlinx.coroutines.launch
|
|
|
|
import javax.inject.Inject
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Logs the app's Baseline Profile Compilation Status using [ProfileVerifier].
|
|
|
|
* Logs the app's Baseline Profile Compilation Status using [ProfileVerifier].
|
|
|
@ -48,8 +46,8 @@ import javax.inject.Inject
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* @see androidx.profileinstaller.ProfileVerifier.CompilationStatus.ResultCode
|
|
|
|
* @see androidx.profileinstaller.ProfileVerifier.CompilationStatus.ResultCode
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
class ProfileVerifierLogger @Inject constructor(
|
|
|
|
class ProfileVerifierLogger (
|
|
|
|
@ApplicationScope private val scope: CoroutineScope,
|
|
|
|
private val scope: CoroutineScope,
|
|
|
|
) {
|
|
|
|
) {
|
|
|
|
companion object {
|
|
|
|
companion object {
|
|
|
|
private const val TAG = "ProfileInstaller"
|
|
|
|
private const val TAG = "ProfileInstaller"
|
|
|
|