@@ -4,12 +4,9 @@ import com.google.testing.model.AndroidDevice
4
4
import com.google.testing.model.AndroidDeviceCatalog
5
5
import com.google.testing.model.AndroidModel
6
6
import 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
11
7
import 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
13
10
14
11
/* *
15
12
* Contains lists of possible Android device and version ids, as well as checks
@@ -34,19 +31,9 @@ object AndroidCatalog {
34
31
35
32
fun getModels (projectId : String ): List <AndroidModel > = deviceCatalog(projectId).models.orEmpty()
36
33
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
-
44
34
fun supportedOrientations (projectId : String ): List <Orientation > =
45
35
deviceCatalog(projectId).runtimeConfiguration.orientations
46
36
47
- private fun getLocaleDescription (projectId : String , locale : String ) =
48
- getLocales(projectId).getLocaleDescription(locale)
49
-
50
37
internal fun getLocales (projectId : String ) = deviceCatalog(projectId).runtimeConfiguration.locales
51
38
52
39
fun androidModelIds (projectId : String ) =
@@ -64,7 +51,9 @@ object AndroidCatalog {
64
51
val form = deviceCatalog(projectId).models
65
52
.find { it.id.equals(modelId, ignoreCase = true ) }?.form
66
53
? : 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()
68
57
}
69
58
70
59
return form.equals(DeviceType .VIRTUAL .name, ignoreCase = true ) || form.equals(
0 commit comments