mirror of
https://github.com/wger-project/flutter.git
synced 2026-11-30 01:41:05 +01:00
Keep global symbols when stripping the Apple release builds
Closes #1315 (more like a workaround)
This commit is contained in:
@@ -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";
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -516,6 +516,7 @@
|
||||
"@executable_path/../Frameworks",
|
||||
);
|
||||
PROVISIONING_PROFILE_SPECIFIER = "";
|
||||
STRIP_STYLE = "non-global";
|
||||
SWIFT_VERSION = 5.0;
|
||||
};
|
||||
name = Release;
|
||||
|
||||
Reference in New Issue
Block a user