~emersion/goguma-dev

ios: Add release-specific entitlement v1 APPLIED

Jean THOMAS: 1
 ios: Add release-specific entitlement

 3 files changed, 12 insertions(+), 2 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~emersion/goguma-dev/patches/49951/mbox | git am -3
Learn more about email & git

[PATCH] ios: Add release-specific entitlement Export this patch

Use 'development' APNs on default entitlement, use 'production'
on a new entitlement.
---
 ios/Runner.xcodeproj/project.pbxproj  | 4 +++-
 ios/Runner/Runner.entitlements        | 2 +-
 ios/Runner/RunnerRelease.entitlements | 8 ++++++++
 3 files changed, 12 insertions(+), 2 deletions(-)
 create mode 100644 ios/Runner/RunnerRelease.entitlements

diff --git a/ios/Runner.xcodeproj/project.pbxproj b/ios/Runner.xcodeproj/project.pbxproj
index fcc42ff..381c819 100644
--- a/ios/Runner.xcodeproj/project.pbxproj
+++ b/ios/Runner.xcodeproj/project.pbxproj
@@ -31,6 +31,7 @@

/* Begin PBXFileReference section */
		0F3DEC032B90E7FB00F2106A /* Runner.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = Runner.entitlements; sourceTree = "<group>"; };
		0FCB8DE52B93BFE8002037EF /* RunnerRelease.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = RunnerRelease.entitlements; sourceTree = "<group>"; };
		1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = "<group>"; };
		1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = "<group>"; };
		3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = "<group>"; };
@@ -95,6 +96,7 @@
		97C146F01CF9000F007C117D /* Runner */ = {
			isa = PBXGroup;
			children = (
				0FCB8DE52B93BFE8002037EF /* RunnerRelease.entitlements */,
				0F3DEC032B90E7FB00F2106A /* Runner.entitlements */,
				97C146FA1CF9000F007C117D /* Main.storyboard */,
				97C146FD1CF9000F007C117D /* Assets.xcassets */,
@@ -533,7 +535,7 @@
				ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
				ASSETCATALOG_COMPILER_INCLUDE_ALL_APPICON_ASSETS = YES;
				CLANG_ENABLE_MODULES = YES;
				CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements;
				CODE_SIGN_ENTITLEMENTS = Runner/RunnerRelease.entitlements;
				CURRENT_PROJECT_VERSION = 900;
				DEVELOPMENT_TEAM = 9YRYAT4YQL;
				ENABLE_BITCODE = NO;
diff --git a/ios/Runner/Runner.entitlements b/ios/Runner/Runner.entitlements
index 28c29bf..903def2 100644
--- a/ios/Runner/Runner.entitlements
+++ b/ios/Runner/Runner.entitlements
@@ -3,6 +3,6 @@
<plist version="1.0">
<dict>
	<key>aps-environment</key>
	<string>production</string>
	<string>development</string>
</dict>
</plist>
diff --git a/ios/Runner/RunnerRelease.entitlements b/ios/Runner/RunnerRelease.entitlements
new file mode 100644
index 0000000..28c29bf
--- /dev/null
+++ b/ios/Runner/RunnerRelease.entitlements
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>aps-environment</key>
	<string>production</string>
</dict>
</plist>
-- 
2.39.3 (Apple Git-145)
Pushed, thanks!