Open erickzanardo opened 3 weeks ago
Description
shorebird init creates ambiguous flavors in multi dimensional android projects.
shorebird init
Steps To Reproduce
flavorDimensions "track", "country" productFlavors { internal { dimension "track" applicationIdSuffix ".internal" manifestPlaceholders = [applicationLabel: "[Internal] Shorebird Example"] } stable { dimension "track" manifestPlaceholders = [applicationLabel: "Shorebird Example"] } global { applicationIdSuffix ".gl" dimension "country" manifestPlaceholders = [applicationLabel: "Shorebird Example"] } playStore { applicationIdSuffix ".pl" dimension "country" manifestPlaceholders = [applicationLabel: "Shorebird Example"] } local { applicationIdSuffix ".lcl" dimension "country" manifestPlaceholders = [applicationLabel: "Shorebird Example"] } }
Run shorebird init
It will create a shorebird configuration like:
app_id: 5171ee3d-1a4d-4bdd-91c3-64cef78fe41c flavors: internal: 5171ee3d-1a4d-4bdd-91c3-64cef78fe41c # <-- this one shouldn't exist internalGlobal: 5487a0d3-8c5a-4178-86ef-5295588e89bd internalLocal: acb850fb-a9e3-45fb-86c0-705bb265d1e4 internalPlayStore: c8cfaff9-d94e-4767-9055-50c4f0b25ddd stable: 666541bc-0eda-477d-8ad5-ec97760435e6 stableGlobal: 6ceb59f3-8d0e-45c2-965d-6bf554f331d0 stableLocal: d9f3396e-f503-45f9-bb05-7ac5d4b060b0 stablePlayStore: ca70dd3f-7357-4a04-bb77-4d6fe38a15b1
shorebird release android --flavor internal
shorebird release android --flavor internal ✗ Failed to build: FAILURE: Build failed with an exception.
Expected Behavior
the ambiguous flavor should not have been created
Description
shorebird init
creates ambiguous flavors in multi dimensional android projects.Steps To Reproduce
Run
shorebird init
It will create a shorebird configuration like:
shorebird release android --flavor internal
Expected Behavior
the ambiguous flavor should not have been created