feat(ios): make app bundle identifier configurable at build time (#354)

This commit is contained in:
Luis Padron
2026-04-17 13:41:39 -04:00
committed by GitHub
parent 232f6f0b20
commit 560d330059
4 changed files with 21 additions and 6 deletions

View File

@@ -16,6 +16,7 @@ profile
xcuserdata
**/.generated/
Flutter/App.framework
Flutter/AppOverrides.xcconfig
Flutter/Flutter.framework
Flutter/Flutter.podspec
Flutter/Generated.xcconfig

View File

@@ -1,2 +1,9 @@
#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"
#include "Generated.xcconfig"
// Default app bundle identifier. Internal/custom builds can override this
// without patching tracked files by writing
// `mobile/ios/Flutter/AppOverrides.xcconfig` containing
// `BUNDLE_IDENTIFIER = your.app.id` (gitignored).
BUNDLE_IDENTIFIER = com.sprout.sproutMobile
#include? "AppOverrides.xcconfig"

View File

@@ -1,2 +1,9 @@
#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"
#include "Generated.xcconfig"
// Default app bundle identifier. Internal/custom builds can override this
// without patching tracked files by writing
// `mobile/ios/Flutter/AppOverrides.xcconfig` containing
// `BUNDLE_IDENTIFIER = your.app.id` (gitignored).
BUNDLE_IDENTIFIER = com.sprout.sproutMobile
#include? "AppOverrides.xcconfig"

View File

@@ -482,7 +482,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
PRODUCT_BUNDLE_IDENTIFIER = com.sprout.sproutMobile;
PRODUCT_BUNDLE_IDENTIFIER = $(BUNDLE_IDENTIFIER);
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
SWIFT_VERSION = 5.0;
@@ -499,7 +499,7 @@
CURRENT_PROJECT_VERSION = 1;
GENERATE_INFOPLIST_FILE = YES;
MARKETING_VERSION = 1.0;
PRODUCT_BUNDLE_IDENTIFIER = com.sprout.sproutMobile.RunnerTests;
PRODUCT_BUNDLE_IDENTIFIER = $(BUNDLE_IDENTIFIER).RunnerTests;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
@@ -517,7 +517,7 @@
CURRENT_PROJECT_VERSION = 1;
GENERATE_INFOPLIST_FILE = YES;
MARKETING_VERSION = 1.0;
PRODUCT_BUNDLE_IDENTIFIER = com.sprout.sproutMobile.RunnerTests;
PRODUCT_BUNDLE_IDENTIFIER = $(BUNDLE_IDENTIFIER).RunnerTests;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 5.0;
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Runner.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Runner";
@@ -533,7 +533,7 @@
CURRENT_PROJECT_VERSION = 1;
GENERATE_INFOPLIST_FILE = YES;
MARKETING_VERSION = 1.0;
PRODUCT_BUNDLE_IDENTIFIER = com.sprout.sproutMobile.RunnerTests;
PRODUCT_BUNDLE_IDENTIFIER = $(BUNDLE_IDENTIFIER).RunnerTests;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 5.0;
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Runner.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Runner";
@@ -665,7 +665,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
PRODUCT_BUNDLE_IDENTIFIER = com.sprout.sproutMobile;
PRODUCT_BUNDLE_IDENTIFIER = $(BUNDLE_IDENTIFIER);
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
@@ -688,7 +688,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
PRODUCT_BUNDLE_IDENTIFIER = com.sprout.sproutMobile;
PRODUCT_BUNDLE_IDENTIFIER = $(BUNDLE_IDENTIFIER);
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
SWIFT_VERSION = 5.0;