Skip to content

Commit

Permalink
App Group ID production
Browse files Browse the repository at this point in the history
  • Loading branch information
Rajin9601 committed Mar 18, 2017
1 parent 826083c commit 657eeda
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 7 deletions.
8 changes: 5 additions & 3 deletions SNUTT Today/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>AppGroupID</key>
<string>${APP_GROUP_ID}</string>
<key>CFBundleDevelopmentRegion</key>
<string>en</string>
<string>ko_KR</string>
<key>CFBundleDisplayName</key>
<string>SNUTT Today</string>
<string>$(BUNDLE_NAME) 위젯</string>
<key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIdentifier</key>
Expand All @@ -17,7 +19,7 @@
<key>CFBundlePackageType</key>
<string>XPC!</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<string>1.0.0</string>
<key>CFBundleVersion</key>
<string>1</string>
<key>NSExtension</key>
Expand Down
2 changes: 1 addition & 1 deletion SNUTT Today/SNUTT Today.entitlements
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<dict>
<key>com.apple.security.application-groups</key>
<array>
<string>group.wafflestudio.TodayExtensionSharingDefaults</string>
<string>${APP_GROUP_ID}</string>
</array>
</dict>
</plist>
5 changes: 4 additions & 1 deletion SNUTT.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -1202,6 +1202,7 @@
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
APP_GROUP_ID = group.wafflestudio.TodayExtensionSharingDefaultsDev;
BUNDLE_IDENTIFIER = "com.wafflestudio.snutt-dev";
BUNDLE_NAME = "SNUTT-Debug";
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
Expand Down Expand Up @@ -1253,6 +1254,7 @@
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
APP_GROUP_ID = group.wafflestudio.TodayExtensionSharingDefaultsDev;
BUNDLE_IDENTIFIER = "com.wafflestudio.snutt-dev";
BUNDLE_NAME = "SNUTT-Staging";
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
Expand Down Expand Up @@ -1376,6 +1378,7 @@
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
APP_GROUP_ID = group.wafflestudio.TodayExtensionSharingDefaults;
BUNDLE_IDENTIFIER = com.wafflestudio.snutt;
BUNDLE_NAME = SNUTT;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
Expand Down Expand Up @@ -1516,7 +1519,7 @@
INFOPLIST_FILE = "SNUTT Today/Info.plist";
IPHONEOS_DEPLOYMENT_TARGET = 10.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @executable_path/../../Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = "com.wafflestudio.snutt-dev.SNUTT-Today";
PRODUCT_BUNDLE_IDENTIFIER = "com.wafflestudio.snutt.SNUTT-Today";
PRODUCT_NAME = "$(TARGET_NAME)";
SKIP_INSTALL = YES;
SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
Expand Down
2 changes: 2 additions & 0 deletions SNUTT/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,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>AppGroupID</key>
<string>${APP_GROUP_ID}</string>
<key>CFBundleDevelopmentRegion</key>
<string>ko_KR</string>
<key>CFBundleExecutable</key>
Expand Down
2 changes: 1 addition & 1 deletion SNUTT/SNUTT.entitlements
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<string>development</string>
<key>com.apple.security.application-groups</key>
<array>
<string>group.wafflestudio.TodayExtensionSharingDefaults</string>
<string>${APP_GROUP_ID}</string>
</array>
</dict>
</plist>
3 changes: 2 additions & 1 deletion SNUTT/STDefaults.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
//

import Foundation
import UIKit
import SwiftyUserDefaults

extension DefaultsKeys {
Expand All @@ -33,4 +34,4 @@ extension NSUserDefaults {
}
}

public let STDefaults = NSUserDefaults(suiteName: "group.wafflestudio.TodayExtensionSharingDefaults")!
public let STDefaults = NSUserDefaults(suiteName: NSBundle.mainBundle().objectForInfoDictionaryKey("AppGroupID") as! String)!

0 comments on commit 657eeda

Please sign in to comment.