@@ -19,6 +19,19 @@ void main() {
19
19
fileSystem = MemoryFileSystem .test ();
20
20
});
21
21
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
+
22
35
testWithoutContext ('Finds app bundle when flavor contains underscores in release mode' , () {
23
36
final FlutterProject project = generateFakeAppBundle ('foo_barRelease' , 'app.aab' , fileSystem);
24
37
final File bundle = findBundleFile (
@@ -84,6 +97,19 @@ void main() {
84
97
expect (bundle.path, '/build/app/outputs/bundle/release/app.aab' );
85
98
});
86
99
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
+
87
113
testWithoutContext ('Finds app bundle when flavor contains underscores in debug mode' , () {
88
114
final FlutterProject project = generateFakeAppBundle ('foo_barDebug' , 'app.aab' , fileSystem);
89
115
final File bundle = findBundleFile (
@@ -149,6 +175,19 @@ void main() {
149
175
expect (bundle.path, '/build/app/outputs/bundle/debug/app.aab' );
150
176
});
151
177
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
+
152
191
testWithoutContext ('Finds app bundle when flavor contains underscores in profile mode' , () {
153
192
final FlutterProject project = generateFakeAppBundle ('foo_barProfile' , 'app.aab' , fileSystem);
154
193
final File bundle = findBundleFile (
0 commit comments