@@ -4,12 +4,9 @@ import com.google.testing.model.AndroidDevice
44import com.google.testing.model.AndroidDeviceCatalog
55import com.google.testing.model.AndroidModel
66import com.google.testing.model.Orientation
7- import flank.common.logLn
8- import ftl.api.fetchAndroidOsVersion
9- import ftl.environment.android.getDescription
10- import ftl.environment.getLocaleDescription
117import ftl.http.executeWithRetry
12- import ftl.presentation.cli.firebase.test.android.versions.toCliTable
8+ import ftl.presentation.cli.firebase.test.reportmanager.ReportManagerState
9+ import ftl.presentation.publish
1310
1411/* *
1512 * Contains lists of possible Android device and version ids, as well as checks
@@ -34,19 +31,9 @@ object AndroidCatalog {
3431
3532 fun getModels (projectId : String ): List <AndroidModel > = deviceCatalog(projectId).models.orEmpty()
3633
37- fun supportedVersionsAsTable (projectId : String ) = fetchAndroidOsVersion(projectId).toCliTable()
38-
39- fun describeSoftwareVersion (projectId : String , versionId : String ) =
40- fetchAndroidOsVersion(projectId).getDescription(versionId)
41-
42- private fun getVersionsList (projectId : String ) = deviceCatalog(projectId).versions
43-
4434 fun supportedOrientations (projectId : String ): List <Orientation > =
4535 deviceCatalog(projectId).runtimeConfiguration.orientations
4636
47- private fun getLocaleDescription (projectId : String , locale : String ) =
48- getLocales(projectId).getLocaleDescription(locale)
49-
5037 internal fun getLocales (projectId : String ) = deviceCatalog(projectId).runtimeConfiguration.locales
5138
5239 fun androidModelIds (projectId : String ) =
@@ -64,7 +51,9 @@ object AndroidCatalog {
6451 val form = deviceCatalog(projectId).models
6552 .find { it.id.equals(modelId, ignoreCase = true ) }?.form
6653 ? : DeviceType .PHYSICAL .name.also {
67- logLn(" Unable to find device type for $modelId . PHYSICAL used as fallback in cost calculations" )
54+ ReportManagerState .Log (
55+ " Unable to find device type for $modelId . PHYSICAL used as fallback in cost calculations"
56+ ).publish()
6857 }
6958
7059 return form.equals(DeviceType .VIRTUAL .name, ignoreCase = true ) || form.equals(
0 commit comments