Skip to content

Commit 0a0f1c4

Browse files
authored
Merge pull request #4 from olmps/feature/platforms
tvOS and macOS platforms
2 parents 3d4cb4d + 8f0a701 commit 0a0f1c4

34 files changed

Lines changed: 1663 additions & 9 deletions

File tree

NestedCloudKitCodable.podspec

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = 'NestedCloudKitCodable'
3-
s.version = '1.0.2'
3+
s.version = '1.0.3'
44
s.summary = "Nested encoder and decoder for CKRecords."
55
s.description = <<-DESC
66
NestedCloudKitCodable is a library to help you encode your custom objects to CloudKit CKRecord format
@@ -13,7 +13,10 @@ Pod::Spec.new do |s|
1313
s.source = { :git => 'https://github.com/olmps/NestedCloudKitCodable.git', :tag => s.version.to_s }
1414
s.framework = "CloudKit"
1515
s.source_files = "Source/Classes/**/*.swift"
16-
s.ios.deployment_target = '10.0'
17-
s.watchos.deployment_target = '4.0'
1816
s.swift_version = '5.0'
17+
18+
s.ios.deployment_target = '10.0'
19+
s.watchos.deployment_target = '3.0'
20+
s.tvos.deployment_target = '11.0'
21+
s.osx.deployment_target = '10.13'
1922
end

NestedCloudKitCodable.xcodeproj/project.pbxproj

Lines changed: 409 additions & 3 deletions
Large diffs are not rendered by default.
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
//
2+
// AppDelegate.swift
3+
// NestedCloudKitCodableMacOS
4+
//
5+
// Created by Guilherme Girotto on 25/08/20.
6+
// Copyright © 2020 CocoaPods. All rights reserved.
7+
//
8+
9+
import Cocoa
10+
import NestedCloudKitCodable
11+
12+
@NSApplicationMain
13+
class AppDelegate: NSObject, NSApplicationDelegate {
14+
func applicationDidFinishLaunching(_ aNotification: Notification) {
15+
// Insert code here to initialize your application
16+
}
17+
18+
func applicationWillTerminate(_ aNotification: Notification) {
19+
// Insert code here to tear down your application
20+
}
21+
}
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
{
2+
"images" : [
3+
{
4+
"idiom" : "mac",
5+
"scale" : "1x",
6+
"size" : "16x16"
7+
},
8+
{
9+
"idiom" : "mac",
10+
"scale" : "2x",
11+
"size" : "16x16"
12+
},
13+
{
14+
"idiom" : "mac",
15+
"scale" : "1x",
16+
"size" : "32x32"
17+
},
18+
{
19+
"idiom" : "mac",
20+
"scale" : "2x",
21+
"size" : "32x32"
22+
},
23+
{
24+
"idiom" : "mac",
25+
"scale" : "1x",
26+
"size" : "128x128"
27+
},
28+
{
29+
"idiom" : "mac",
30+
"scale" : "2x",
31+
"size" : "128x128"
32+
},
33+
{
34+
"idiom" : "mac",
35+
"scale" : "1x",
36+
"size" : "256x256"
37+
},
38+
{
39+
"idiom" : "mac",
40+
"scale" : "2x",
41+
"size" : "256x256"
42+
},
43+
{
44+
"idiom" : "mac",
45+
"scale" : "1x",
46+
"size" : "512x512"
47+
},
48+
{
49+
"idiom" : "mac",
50+
"scale" : "2x",
51+
"size" : "512x512"
52+
}
53+
],
54+
"info" : {
55+
"author" : "xcode",
56+
"version" : 1
57+
}
58+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"info" : {
3+
"author" : "xcode",
4+
"version" : 1
5+
}
6+
}

NestedCloudKitCodableMacOS/Base.lproj/Main.storyboard

Lines changed: 717 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>CFBundleDevelopmentRegion</key>
6+
<string>$(DEVELOPMENT_LANGUAGE)</string>
7+
<key>CFBundleExecutable</key>
8+
<string>$(EXECUTABLE_NAME)</string>
9+
<key>CFBundleIconFile</key>
10+
<string></string>
11+
<key>CFBundleIdentifier</key>
12+
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
13+
<key>CFBundleInfoDictionaryVersion</key>
14+
<string>6.0</string>
15+
<key>CFBundleName</key>
16+
<string>$(PRODUCT_NAME)</string>
17+
<key>CFBundlePackageType</key>
18+
<string>$(PRODUCT_BUNDLE_PACKAGE_TYPE)</string>
19+
<key>CFBundleShortVersionString</key>
20+
<string>1.0</string>
21+
<key>CFBundleVersion</key>
22+
<string>1</string>
23+
<key>LSMinimumSystemVersion</key>
24+
<string>$(MACOSX_DEPLOYMENT_TARGET)</string>
25+
<key>NSHumanReadableCopyright</key>
26+
<string>Copyright © 2020 CocoaPods. All rights reserved.</string>
27+
<key>NSMainStoryboardFile</key>
28+
<string>Main</string>
29+
<key>NSPrincipalClass</key>
30+
<string>NSApplication</string>
31+
<key>NSSupportsAutomaticTermination</key>
32+
<true/>
33+
<key>NSSupportsSuddenTermination</key>
34+
<true/>
35+
</dict>
36+
</plist>
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>com.apple.security.app-sandbox</key>
6+
<true/>
7+
<key>com.apple.security.files.user-selected.read-only</key>
8+
<true/>
9+
</dict>
10+
</plist>
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
//
2+
// ViewController.swift
3+
// NestedCloudKitCodableMacOS
4+
//
5+
// Created by Guilherme Girotto on 25/08/20.
6+
// Copyright © 2020 CocoaPods. All rights reserved.
7+
//
8+
9+
import Cocoa
10+
import NestedCloudKitCodable
11+
12+
class ViewController: NSViewController {
13+
14+
override func viewDidLoad() {
15+
super.viewDidLoad()
16+
17+
// Do any additional setup after loading the view.
18+
}
19+
20+
override var representedObject: Any? {
21+
didSet {
22+
// Update the view, if already loaded.
23+
}
24+
}
25+
}
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
//
2+
// AppDelegate.swift
3+
// NestedCloudKitCodableTvOS
4+
//
5+
// Created by Guilherme Girotto on 25/08/20.
6+
// Copyright © 2020 CocoaPods. All rights reserved.
7+
//
8+
9+
import UIKit
10+
import NestedCloudKitCodable
11+
12+
@UIApplicationMain
13+
class AppDelegate: UIResponder, UIApplicationDelegate {
14+
15+
var window: UIWindow?
16+
17+
func application(_ application: UIApplication,
18+
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
19+
// Override point for customization after application launch.
20+
return true
21+
}
22+
}

0 commit comments

Comments
 (0)