Use BUILD_LIBRARY_FOR_DISTRIBUTION build setting for generating add-to-app frameworks (#50536)
This commit is contained in:
@@ -218,7 +218,7 @@ Future<void> main() async {
|
||||
);
|
||||
}
|
||||
|
||||
section("Check all modes' have plugin dylib");
|
||||
section('Check all modes have plugins');
|
||||
|
||||
for (final String mode in <String>['Debug', 'Profile', 'Release']) {
|
||||
final String pluginFrameworkPath = path.join(
|
||||
@@ -238,6 +238,17 @@ Future<void> main() async {
|
||||
'device_info.framework',
|
||||
'device_info',
|
||||
));
|
||||
|
||||
checkFileExists(path.join(
|
||||
outputPath,
|
||||
mode,
|
||||
'device_info.xcframework',
|
||||
'ios-armv7_arm64',
|
||||
'device_info.framework',
|
||||
'Headers',
|
||||
'DeviceInfoPlugin.h',
|
||||
));
|
||||
|
||||
final String simulatorFrameworkPath = path.join(
|
||||
outputPath,
|
||||
mode,
|
||||
@@ -246,10 +257,23 @@ Future<void> main() async {
|
||||
'device_info.framework',
|
||||
'device_info',
|
||||
);
|
||||
|
||||
final String simulatorFrameworkHeaderPath = path.join(
|
||||
outputPath,
|
||||
mode,
|
||||
'device_info.xcframework',
|
||||
'ios-x86_64-simulator',
|
||||
'device_info.framework',
|
||||
'Headers',
|
||||
'DeviceInfoPlugin.h',
|
||||
);
|
||||
|
||||
if (mode == 'Debug') {
|
||||
checkFileExists(simulatorFrameworkPath);
|
||||
checkFileExists(simulatorFrameworkHeaderPath);
|
||||
} else {
|
||||
checkFileNotExists(simulatorFrameworkPath);
|
||||
checkFileNotExists(simulatorFrameworkHeaderPath);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user