Skip to content

Commit

Permalink
Add FTL devices to AlwaysOnKotlin
Browse files Browse the repository at this point in the history
  • Loading branch information
yschimke committed Jan 3, 2024
1 parent a830884 commit a76d883
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 4 deletions.
1 change: 1 addition & 0 deletions AlwaysOnKotlin/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ buildscript {
plugins {
alias(libs.plugins.com.diffplug.spotless) apply(false)
alias(libs.plugins.com.android.application) apply(false)
alias(libs.plugins.firebase.testlab) apply (false)
}

subprojects {
Expand Down
19 changes: 15 additions & 4 deletions AlwaysOnKotlin/compose/build.gradle
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import com.android.build.api.dsl.ManagedVirtualDevice

/*
* Copyright (C) 2021 The Android Open Source Project
*
Expand All @@ -17,6 +19,7 @@
plugins {
id 'com.android.application'
id 'org.jetbrains.kotlin.android'
id "com.google.firebase.testlab"
}

android {
Expand Down Expand Up @@ -78,23 +81,31 @@ android {
}

testOptions {
firebaseTestLab {
managedDevices {
pixelWatch {
device = "r11"
apiLevel = 30
}
}
}
devices {
squareApi30(com.android.build.api.dsl.ManagedVirtualDevice) {
squareApi30(ManagedVirtualDevice) {
device = "Wear OS Square"
apiLevel = 30
systemImageSource = "android-wear"
}
roundApi28(com.android.build.api.dsl.ManagedVirtualDevice) {
roundApi28(ManagedVirtualDevice) {
device = "Wear OS Large Round"
apiLevel = 28
systemImageSource = "android-wear"
}
roundApi30(com.android.build.api.dsl.ManagedVirtualDevice) {
roundApi30(ManagedVirtualDevice) {
device = "Wear OS Large Round"
apiLevel = 30
systemImageSource = "android-wear"
}
roundApi33(com.android.build.api.dsl.ManagedVirtualDevice) {
roundApi33(ManagedVirtualDevice) {
device = "Wear OS Large Round"
apiLevel = 33
systemImageSource = "android-wear"
Expand Down
1 change: 1 addition & 0 deletions AlwaysOnKotlin/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ android.useAndroidX=true
android.sdk.channel=3
# https://buganizer.corp.google.com/issues/311218673
android.experimental.lint.version=8.3.0-alpha14
android.experimental.testOptions.managedDevices.customDevice=true
1 change: 1 addition & 0 deletions AlwaysOnKotlin/gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,4 @@ wearable = { module = "com.google.android.wearable:wearable", version.ref = "wea
[plugins]
com-android-application = { id = "com.android.application", version.ref = "android-gradle-plugin" }
com-diffplug-spotless = "com.diffplug.spotless:6.23.3"
firebase-testlab = "com.google.firebase.testlab:0.0.1-alpha05"

0 comments on commit a76d883

Please sign in to comment.