@@ -19,6 +19,19 @@ void main() {
1919 fileSystem = MemoryFileSystem .test ();
2020 });
2121
22+ testWithoutContext ('Finds app bundle when flavor contains multiple dimensions in release mode' , () {
23+ final FlutterProject project = generateFakeAppBundle ('fooBarRelease' , 'app-foo-bar-release.aab' , fileSystem);
24+ final File bundle = findBundleFile (
25+ project,
26+ const BuildInfo (BuildMode .release, 'fooBar' , treeShakeIcons: false ),
27+ BufferLogger .test (),
28+ TestUsage (),
29+ );
30+
31+ expect (bundle, isNotNull);
32+ expect (bundle.path, '/build/app/outputs/bundle/fooBarRelease/app-foo-bar-release.aab' );
33+ });
34+
2235 testWithoutContext ('Finds app bundle when flavor contains underscores in release mode' , () {
2336 final FlutterProject project = generateFakeAppBundle ('foo_barRelease' , 'app.aab' , fileSystem);
2437 final File bundle = findBundleFile (
@@ -84,6 +97,19 @@ void main() {
8497 expect (bundle.path, '/build/app/outputs/bundle/release/app.aab' );
8598 });
8699
100+ testWithoutContext ('Finds app bundle when flavor contains multiple dimensions in debug mode' , () {
101+ final FlutterProject project = generateFakeAppBundle ('fooBarDebug' , 'app-foo-bar-debug.aab' , fileSystem);
102+ final File bundle = findBundleFile (
103+ project,
104+ const BuildInfo (BuildMode .debug, 'fooBar' , treeShakeIcons: false ),
105+ BufferLogger .test (),
106+ TestUsage (),
107+ );
108+
109+ expect (bundle, isNotNull);
110+ expect (bundle.path, '/build/app/outputs/bundle/fooBarDebug/app-foo-bar-debug.aab' );
111+ });
112+
87113 testWithoutContext ('Finds app bundle when flavor contains underscores in debug mode' , () {
88114 final FlutterProject project = generateFakeAppBundle ('foo_barDebug' , 'app.aab' , fileSystem);
89115 final File bundle = findBundleFile (
@@ -149,6 +175,19 @@ void main() {
149175 expect (bundle.path, '/build/app/outputs/bundle/debug/app.aab' );
150176 });
151177
178+ testWithoutContext ('Finds app bundle when flavor contains multiple dimensions in profile mode' , () {
179+ final FlutterProject project = generateFakeAppBundle ('fooBarProfile' , 'app-foo-bar-profile.aab' , fileSystem);
180+ final File bundle = findBundleFile (
181+ project,
182+ const BuildInfo (BuildMode .profile, 'fooBar' , treeShakeIcons: false ),
183+ BufferLogger .test (),
184+ TestUsage (),
185+ );
186+
187+ expect (bundle, isNotNull);
188+ expect (bundle.path, '/build/app/outputs/bundle/fooBarProfile/app-foo-bar-profile.aab' );
189+ });
190+
152191 testWithoutContext ('Finds app bundle when flavor contains underscores in profile mode' , () {
153192 final FlutterProject project = generateFakeAppBundle ('foo_barProfile' , 'app.aab' , fileSystem);
154193 final File bundle = findBundleFile (
0 commit comments