Keep global symbols when stripping the Apple release builds

Closes #1315 (more like a workaround)
This commit is contained in:
Roland Geider
2026-08-13 19:32:15 +02:00
parent dc9b8367a6
commit 3b54903fea
3 changed files with 6 additions and 5 deletions

View File

@@ -494,6 +494,7 @@
MARKETING_VERSION = "$(FLUTTER_BUILD_NAME)";
PRODUCT_BUNDLE_IDENTIFIER = de.wger.flutter.community;
PRODUCT_NAME = "$(TARGET_NAME)";
STRIP_STYLE = "non-global";
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
SWIFT_VERSION = 5.0;
VERSIONING_SYSTEM = "apple-generic";

View File

@@ -101,11 +101,10 @@ class _IngredientTypeaheadState extends ConsumerState<IngredientTypeahead> {
context,
).push<String?>(MaterialPageRoute(builder: (context) => const ScanReader()));
if (code == null) {
return '';
}
if (code == '-1') {
// A decoder that never returns looks exactly like a cancelled scan from
// here, so log the empty result as the only trace it leaves.
if (code == null || code.isEmpty || code == '-1') {
widget._logger.info('Barcode scanner returned no code');
return '';
}
return code;

View File

@@ -516,6 +516,7 @@
"@executable_path/../Frameworks",
);
PROVISIONING_PROFILE_SPECIFIER = "";
STRIP_STYLE = "non-global";
SWIFT_VERSION = 5.0;
};
name = Release;