@@ -345,6 +345,32 @@ void expectDylibIsBundledMacOS(Directory appDirectory, String buildMode) {
345
345
final Link dylibLink = frameworkDir.childLink (frameworkName);
346
346
expect (dylibLink, exists);
347
347
expect (dylibLink.resolveSymbolicLinksSync (), dylibFile.path);
348
+ final String infoPlist = resourcesDir.childFile ('Info.plist' ).readAsStringSync ();
349
+ expect (infoPlist, '''
350
+ <?xml version="1.0" encoding="UTF-8"?>
351
+ <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
352
+ <plist version="1.0">
353
+ <dict>
354
+ <key>CFBundleDevelopmentRegion</key>
355
+ <string>en</string>
356
+ <key>CFBundleExecutable</key>
357
+ <string>package_with_native_assets</string>
358
+ <key>CFBundleIdentifier</key>
359
+ <string>io.flutter.flutter.native-assets.package-with-native-assets</string>
360
+ <key>CFBundleInfoDictionaryVersion</key>
361
+ <string>6.0</string>
362
+ <key>CFBundleName</key>
363
+ <string>package_with_native_assets</string>
364
+ <key>CFBundlePackageType</key>
365
+ <string>FMWK</string>
366
+ <key>CFBundleShortVersionString</key>
367
+ <string>1.0</string>
368
+ <key>CFBundleSignature</key>
369
+ <string>????</string>
370
+ <key>CFBundleVersion</key>
371
+ <string>1.0</string>
372
+ </dict>
373
+ </plist>''' );
348
374
}
349
375
350
376
void expectDylibIsBundledIos (Directory appDirectory, String buildMode) {
@@ -357,6 +383,36 @@ void expectDylibIsBundledIos(Directory appDirectory, String buildMode) {
357
383
.childDirectory ('$frameworkName .framework' )
358
384
.childFile (frameworkName);
359
385
expect (dylib, exists);
386
+ final String infoPlist = frameworksFolder
387
+ .childDirectory ('$frameworkName .framework' )
388
+ .childFile ('Info.plist' ).readAsStringSync ();
389
+ expect (infoPlist, '''
390
+ <?xml version="1.0" encoding="UTF-8"?>
391
+ <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
392
+ <plist version="1.0">
393
+ <dict>
394
+ <key>CFBundleDevelopmentRegion</key>
395
+ <string>en</string>
396
+ <key>CFBundleExecutable</key>
397
+ <string>package_with_native_assets</string>
398
+ <key>CFBundleIdentifier</key>
399
+ <string>io.flutter.flutter.native-assets.package-with-native-assets</string>
400
+ <key>CFBundleInfoDictionaryVersion</key>
401
+ <string>6.0</string>
402
+ <key>CFBundleName</key>
403
+ <string>package_with_native_assets</string>
404
+ <key>CFBundlePackageType</key>
405
+ <string>FMWK</string>
406
+ <key>CFBundleShortVersionString</key>
407
+ <string>1.0</string>
408
+ <key>CFBundleSignature</key>
409
+ <string>????</string>
410
+ <key>CFBundleVersion</key>
411
+ <string>1.0</string>
412
+ <key>MinimumOSVersion</key>
413
+ <string>12.0</string>
414
+ </dict>
415
+ </plist>''' );
360
416
}
361
417
362
418
/// Checks that dylibs are bundled.
0 commit comments