Mercurial > public > simoleon
changeset 177:a1443bd115d9
add icloud capability
author | Dennis Concepcion Martin <dennisconcepcionmartin@gmail.com> |
---|---|
date | Tue, 26 Oct 2021 13:18:51 +0200 |
parents | 736c560d99c1 |
children | 1077bc0ffdbf |
files | Simoleon.xcodeproj/project.pbxproj Simoleon/ContentView.swift Simoleon/Info.plist Simoleon/Simoleon.entitlements |
diffstat | 4 files changed, 48 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/Simoleon.xcodeproj/project.pbxproj Tue Oct 26 13:17:07 2021 +0200 +++ b/Simoleon.xcodeproj/project.pbxproj Tue Oct 26 13:18:51 2021 +0200 @@ -16,6 +16,7 @@ 95DC5D662728176900B1EFA0 /* SimoleonTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 95DC5D652728176900B1EFA0 /* SimoleonTests.swift */; }; 95DC5D702728176900B1EFA0 /* SimoleonUITests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 95DC5D6F2728176900B1EFA0 /* SimoleonUITests.swift */; }; 95DC5D722728176900B1EFA0 /* SimoleonUITestsLaunchTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 95DC5D712728176900B1EFA0 /* SimoleonUITestsLaunchTests.swift */; }; + 95DC5D8327281A9F00B1EFA0 /* CloudKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 95DC5D8227281A9F00B1EFA0 /* CloudKit.framework */; }; /* End PBXBuildFile section */ /* Begin PBXContainerItemProxy section */ @@ -49,6 +50,9 @@ 95DC5D6F2728176900B1EFA0 /* SimoleonUITests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SimoleonUITests.swift; sourceTree = "<group>"; }; 95DC5D712728176900B1EFA0 /* SimoleonUITestsLaunchTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SimoleonUITestsLaunchTests.swift; sourceTree = "<group>"; }; 95DC5D7E272817DE00B1EFA0 /* Config.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = Config.xcconfig; sourceTree = "<group>"; }; + 95DC5D7F27281A8C00B1EFA0 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist; path = Info.plist; sourceTree = "<group>"; }; + 95DC5D8027281A9700B1EFA0 /* Simoleon.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = Simoleon.entitlements; sourceTree = "<group>"; }; + 95DC5D8227281A9F00B1EFA0 /* CloudKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CloudKit.framework; path = System/Library/Frameworks/CloudKit.framework; sourceTree = SDKROOT; }; /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ @@ -56,6 +60,7 @@ isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( + 95DC5D8327281A9F00B1EFA0 /* CloudKit.framework in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -83,6 +88,7 @@ 95DC5D642728176900B1EFA0 /* SimoleonTests */, 95DC5D6E2728176900B1EFA0 /* SimoleonUITests */, 95DC5D4D2728176700B1EFA0 /* Products */, + 95DC5D8127281A9F00B1EFA0 /* Frameworks */, ); sourceTree = "<group>"; }; @@ -99,6 +105,8 @@ 95DC5D4E2728176700B1EFA0 /* Simoleon */ = { isa = PBXGroup; children = ( + 95DC5D8027281A9700B1EFA0 /* Simoleon.entitlements */, + 95DC5D7F27281A8C00B1EFA0 /* Info.plist */, 95DC5D532728176800B1EFA0 /* Assets.xcassets */, 95DC5D7E272817DE00B1EFA0 /* Config.xcconfig */, 95DC5D5A2728176800B1EFA0 /* Simoleon.xcdatamodeld */, @@ -135,6 +143,14 @@ path = SimoleonUITests; sourceTree = "<group>"; }; + 95DC5D8127281A9F00B1EFA0 /* Frameworks */ = { + isa = PBXGroup; + children = ( + 95DC5D8227281A9F00B1EFA0 /* CloudKit.framework */, + ); + name = Frameworks; + sourceTree = "<group>"; + }; /* End PBXGroup section */ /* Begin PBXNativeTarget section */ @@ -428,12 +444,14 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; + CODE_SIGN_ENTITLEMENTS = Simoleon/Simoleon.entitlements; CODE_SIGN_STYLE = Automatic; CURRENT_PROJECT_VERSION = 1; DEVELOPMENT_ASSET_PATHS = "\"Simoleon/Preview Content\""; DEVELOPMENT_TEAM = MTX83R5H8X; ENABLE_PREVIEWS = YES; GENERATE_INFOPLIST_FILE = YES; + INFOPLIST_FILE = Simoleon/Info.plist; INFOPLIST_KEY_UIApplicationSceneManifest_Generation = YES; INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES; INFOPLIST_KEY_UILaunchScreen_Generation = YES; @@ -457,12 +475,14 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; + CODE_SIGN_ENTITLEMENTS = Simoleon/Simoleon.entitlements; CODE_SIGN_STYLE = Automatic; CURRENT_PROJECT_VERSION = 1; DEVELOPMENT_ASSET_PATHS = "\"Simoleon/Preview Content\""; DEVELOPMENT_TEAM = MTX83R5H8X; ENABLE_PREVIEWS = YES; GENERATE_INFOPLIST_FILE = YES; + INFOPLIST_FILE = Simoleon/Info.plist; INFOPLIST_KEY_UIApplicationSceneManifest_Generation = YES; INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES; INFOPLIST_KEY_UILaunchScreen_Generation = YES;
--- a/Simoleon/ContentView.swift Tue Oct 26 13:17:07 2021 +0200 +++ b/Simoleon/ContentView.swift Tue Oct 26 13:18:51 2021 +0200 @@ -6,7 +6,6 @@ // import SwiftUI -import CoreData struct ContentView: View { var body: some View { @@ -16,6 +15,7 @@ struct ContentView_Previews: PreviewProvider { static var previews: some View { - ContentView().environment(\.managedObjectContext, PersistenceController.preview.container.viewContext) + ContentView() + .environment(\.managedObjectContext, PersistenceController.preview.container.viewContext) } }
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Simoleon/Info.plist Tue Oct 26 13:18:51 2021 +0200 @@ -0,0 +1,10 @@ +<?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>UIBackgroundModes</key> + <array> + <string>remote-notification</string> + </array> +</dict> +</plist>
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Simoleon/Simoleon.entitlements Tue Oct 26 13:18:51 2021 +0200 @@ -0,0 +1,16 @@ +<?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>development</string> + <key>com.apple.developer.icloud-container-identifiers</key> + <array> + <string>iCloud.simoleon</string> + </array> + <key>com.apple.developer.icloud-services</key> + <array> + <string>CloudKit</string> + </array> +</dict> +</plist>