We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 87d858a commit 0b218b3Copy full SHA for 0b218b3
health-metrics/apk-size/app/configure.gradle
@@ -24,7 +24,14 @@ repositories {
24
if (project.hasProperty('sdks')) {
25
project.android {
26
sdks.split(',').each { sdk ->
27
- def (groupId, artifactId, version) = sdk.split(':')
+ def sdkParts = sdk.split(':')
28
+ if (sdkParts.size() != 3) {
29
+ throw new GradleException(
30
+ "Invalid SDK format: '${sdk}'. " +
31
+ "Expected format: 'groupId:artifactId:version' (sdks: '${sdks}')"
32
+ )
33
+ }
34
+ def (groupId, artifactId, version) = sdkParts
35
productFlavors.create(artifactId) {
36
dimension 'firebase'
37
}
0 commit comments