diff --git a/SNUTT Today/Info.plist b/SNUTT Today/Info.plist index 5da9f7a7..02130a79 100644 --- a/SNUTT Today/Info.plist +++ b/SNUTT Today/Info.plist @@ -2,10 +2,12 @@ + AppGroupID + ${APP_GROUP_ID} CFBundleDevelopmentRegion - en + ko_KR CFBundleDisplayName - SNUTT Today + $(BUNDLE_NAME) 위젯 CFBundleExecutable $(EXECUTABLE_NAME) CFBundleIdentifier @@ -17,7 +19,7 @@ CFBundlePackageType XPC! CFBundleShortVersionString - 1.0 + 1.0.0 CFBundleVersion 1 NSExtension diff --git a/SNUTT Today/SNUTT Today.entitlements b/SNUTT Today/SNUTT Today.entitlements index 41096d20..8056d133 100644 --- a/SNUTT Today/SNUTT Today.entitlements +++ b/SNUTT Today/SNUTT Today.entitlements @@ -4,7 +4,7 @@ com.apple.security.application-groups - group.wafflestudio.TodayExtensionSharingDefaults + ${APP_GROUP_ID} diff --git a/SNUTT.xcodeproj/project.pbxproj b/SNUTT.xcodeproj/project.pbxproj index 2771242c..8aeb47ed 100644 --- a/SNUTT.xcodeproj/project.pbxproj +++ b/SNUTT.xcodeproj/project.pbxproj @@ -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"; @@ -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"; @@ -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"; @@ -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"; diff --git a/SNUTT/Info.plist b/SNUTT/Info.plist index 177bcd47..447ca665 100644 --- a/SNUTT/Info.plist +++ b/SNUTT/Info.plist @@ -2,6 +2,8 @@ + AppGroupID + ${APP_GROUP_ID} CFBundleDevelopmentRegion ko_KR CFBundleExecutable diff --git a/SNUTT/SNUTT.entitlements b/SNUTT/SNUTT.entitlements index f835ebed..2b33dcb6 100644 --- a/SNUTT/SNUTT.entitlements +++ b/SNUTT/SNUTT.entitlements @@ -6,7 +6,7 @@ development com.apple.security.application-groups - group.wafflestudio.TodayExtensionSharingDefaults + ${APP_GROUP_ID} diff --git a/SNUTT/STDefaults.swift b/SNUTT/STDefaults.swift index 08e7d3f5..3e95e7ea 100644 --- a/SNUTT/STDefaults.swift +++ b/SNUTT/STDefaults.swift @@ -7,6 +7,7 @@ // import Foundation +import UIKit import SwiftyUserDefaults extension DefaultsKeys { @@ -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)!