-
Notifications
You must be signed in to change notification settings - Fork 18
Plugin doesn't work with Kotlin gradle scripts #42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
zbynek
added a commit
to zbynek/FirebaseTestLab-Android
that referenced
this issue
Jun 25, 2020
You can try your changes using Jitpack
This fails for me with Groovy
for configuration
|
Solutionval deviceName = "nexusEmulator"
firebaseTestLab {
keyFile = File("$projectDir/my-app-key.json") // TODO HOWTO github action secret?!
googleProjectId = if (startParameter.toLowerCase().contains("acc")) { "android-mobile-app-acc" } else { "android-mobile-app-prod" }
createDevice(deviceName) {
com.appunite.firebasetestlabplugin.model.Device(deviceName).also {
deviceIds = listOf("hammerhead")
androidApiLevels = listOf(23)
locales = listOf("nl", "en")
}
}
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I've been generally unsuccessful configuring this plugin with
kts
gradle scripts. I believe it's due to the use of a Closure instead of an Action in thedevices
method onFirebaseTestLabPluginExtension
For the moment, I've forked the plugin locally to make the following change in
FirebaseTestLabPluginExtension
:fun devices(action: NamedDomainObjectContainer<Device>.() -> Unit) { devices.action() }
this lets me configure the plugin like this in my
build.gradle.kts
file:I haven't tested to see if this breaks compatibility with groovy gradle scripts, but I'm open to helping out to reach a compatible solution.
The text was updated successfully, but these errors were encountered: