Permalink
Browse files

Initial empty example projects

  • Loading branch information...
1 parent 2317bd3 commit 8271d315b42384d3c966b4020fc0a093b08dff1b @billinghamj billinghamj committed Jun 23, 2016
Showing with 3,233 additions and 5 deletions.
  1. +8 −5 .gitignore
  2. +1,508 −0 examples/Examples.xcodeproj/project.pbxproj
  3. +7 −0 examples/Examples.xcodeproj/project.xcworkspace/contents.xcworkspacedata
  4. +10 −0 examples/Examples.xcworkspace/contents.xcworkspacedata
  5. +33 −0 examples/Podfile
  6. +24 −0 examples/Tests/Info.plist
  7. +44 −0 examples/Tests/SanityTests.m
  8. +15 −0 examples/iOS/AppDelegate.h
  9. +18 −0 examples/iOS/AppDelegate.m
  10. +38 −0 examples/iOS/Assets.xcassets/AppIcon.appiconset/Contents.json
  11. +27 −0 examples/iOS/Base.lproj/LaunchScreen.storyboard
  12. +25 −0 examples/iOS/Base.lproj/Main.storyboard
  13. +40 −0 examples/iOS/Info.plist
  14. +13 −0 examples/iOS/ViewController.h
  15. +13 −0 examples/iOS/ViewController.m
  16. +19 −0 examples/iOS/main.m
  17. +13 −0 examples/macOS/AppDelegate.h
  18. +13 −0 examples/macOS/AppDelegate.m
  19. +58 −0 examples/macOS/Assets.xcassets/AppIcon.appiconset/Contents.json
  20. +682 −0 examples/macOS/Base.lproj/Main.storyboard
  21. +34 −0 examples/macOS/Info.plist
  22. +13 −0 examples/macOS/ViewController.h
  23. +13 −0 examples/macOS/ViewController.m
  24. +14 −0 examples/macOS/main.m
  25. +15 −0 examples/tvOS/AppDelegate.h
  26. +18 −0 examples/tvOS/AppDelegate.m
  27. +12 −0 ...Image.brandassets/App Icon - Large.imagestack/Back.imagestacklayer/Content.imageset/Contents.json
  28. +6 −0 ...Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Back.imagestacklayer/Contents.json
  29. +17 −0 .../Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Large.imagestack/Contents.json
  30. +12 −0 ...mage.brandassets/App Icon - Large.imagestack/Front.imagestacklayer/Content.imageset/Contents.json
  31. +6 −0 ...con & Top Shelf Image.brandassets/App Icon - Large.imagestack/Front.imagestacklayer/Contents.json
  32. +12 −0 ...age.brandassets/App Icon - Large.imagestack/Middle.imagestacklayer/Content.imageset/Contents.json
  33. +6 −0 ...on & Top Shelf Image.brandassets/App Icon - Large.imagestack/Middle.imagestacklayer/Contents.json
  34. +12 −0 ...Image.brandassets/App Icon - Small.imagestack/Back.imagestacklayer/Content.imageset/Contents.json
  35. +6 −0 ...Icon & Top Shelf Image.brandassets/App Icon - Small.imagestack/Back.imagestacklayer/Contents.json
  36. +17 −0 .../Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - Small.imagestack/Contents.json
  37. +12 −0 ...mage.brandassets/App Icon - Small.imagestack/Front.imagestacklayer/Content.imageset/Contents.json
  38. +6 −0 ...con & Top Shelf Image.brandassets/App Icon - Small.imagestack/Front.imagestacklayer/Contents.json
  39. +12 −0 ...age.brandassets/App Icon - Small.imagestack/Middle.imagestacklayer/Content.imageset/Contents.json
  40. +6 −0 ...on & Top Shelf Image.brandassets/App Icon - Small.imagestack/Middle.imagestacklayer/Contents.json
  41. +32 −0 examples/tvOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/Contents.json
  42. +12 −0 ...ssets.xcassets/App Icon & Top Shelf Image.brandassets/Top Shelf Image Wide.imageset/Contents.json
  43. +12 −0 ...vOS/Assets.xcassets/App Icon & Top Shelf Image.brandassets/Top Shelf Image.imageset/Contents.json
  44. +6 −0 examples/tvOS/Assets.xcassets/Contents.json
  45. +15 −0 examples/tvOS/Assets.xcassets/LaunchImage.launchimage/Contents.json
  46. +25 −0 examples/tvOS/Base.lproj/Main.storyboard
  47. +34 −0 examples/tvOS/Info.plist
  48. +13 −0 examples/tvOS/ViewController.h
  49. +13 −0 examples/tvOS/ViewController.m
  50. +19 −0 examples/tvOS/main.m
  51. +13 −0 examples/watchOS-extension/ExtensionDelegate.h
  52. +13 −0 examples/watchOS-extension/ExtensionDelegate.m
  53. +38 −0 examples/watchOS-extension/Info.plist
  54. +13 −0 examples/watchOS-extension/InterfaceController.h
  55. +13 −0 examples/watchOS-extension/InterfaceController.m
  56. +55 −0 examples/watchOS/Assets.xcassets/AppIcon.appiconset/Contents.json
  57. +15 −0 examples/watchOS/Base.lproj/Interface.storyboard
  58. +35 −0 examples/watchOS/Info.plist
View
@@ -1,5 +1,3 @@
-# Xcode
-.DS_Store
build/
*.pbxuser
!default.pbxuser
@@ -9,9 +7,14 @@ build/
!default.mode2v3
*.perspectivev3
!default.perspectivev3
-!default.xcworkspace
-xcuserdata
+xcuserdata/
+*.xccheckout
profile
*.moved-aside
DerivedData
-.idea/
+*.hmap
+*.ipa
+.bundle
+Carthage
+Pods/
+Podfile.lock
Oops, something went wrong.
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<Workspace
+ version = "1.0">
+ <FileRef
+ location = "self:Examples.xcodeproj">
+ </FileRef>
+</Workspace>
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<Workspace
+ version = "1.0">
+ <FileRef
+ location = "group:Examples.xcodeproj">
+ </FileRef>
+ <FileRef
+ location = "group:Pods/Pods.xcodeproj">
+ </FileRef>
+</Workspace>
View
@@ -0,0 +1,33 @@
+use_frameworks!
+
+target 'iOS' do
+ pod 'JSONModel', path: '..'
+end
+
+target 'macOS' do
+ pod 'JSONModel', path: '..'
+end
+
+target 'tvOS' do
+ pod 'JSONModel', path: '..'
+end
+
+target 'watchOS' do
+ pod 'JSONModel', path: '..'
+end
+
+target 'watchOS-extension' do
+ pod 'JSONModel', path: '..'
+end
+
+target 'iOSTests' do
+ pod 'JSONModel', path: '..'
+end
+
+target 'macOSTests' do
+ pod 'JSONModel', path: '..'
+end
+
+target 'tvOSTests' do
+ pod 'JSONModel', path: '..'
+end
@@ -0,0 +1,24 @@
+<?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>CFBundleDevelopmentRegion</key>
+ <string>en</string>
+ <key>CFBundleExecutable</key>
+ <string>$(EXECUTABLE_NAME)</string>
+ <key>CFBundleIdentifier</key>
+ <string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
+ <key>CFBundleInfoDictionaryVersion</key>
+ <string>6.0</string>
+ <key>CFBundleName</key>
+ <string>$(PRODUCT_NAME)</string>
+ <key>CFBundlePackageType</key>
+ <string>BNDL</string>
+ <key>CFBundleShortVersionString</key>
+ <string>1.0</string>
+ <key>CFBundleSignature</key>
+ <string>????</string>
+ <key>CFBundleVersion</key>
+ <string>1</string>
+</dict>
+</plist>
@@ -0,0 +1,44 @@
+//
+// SanityTests.m
+// Examples
+//
+// Created by James Billingham on 23/06/2016.
+// Copyright © 2016 JSONModel. All rights reserved.
+//
+
+@import XCTest;
+@import JSONModel;
+
+@interface MyModel : JSONModel
+@property (nonatomic) NSString *foo;
+@property (nonatomic) NSInteger a;
+@end
+
+@implementation MyModel
+@end
+
+@interface SanityTests : XCTestCase
+@end
+
+@implementation SanityTests
+
+- (void)testSanity
+{
+ XCTAssert(YES);
+}
+
+- (void)testJsonModel
+{
+ NSString *json = @"{\"foo\":\"bar\", \"a\": 1}";
+
+ NSError *error = nil;
+ MyModel *obj = [[MyModel alloc] initWithString:json error:&error];
+
+ XCTAssertNil(error);
+ XCTAssertNotNil(obj);
+
+ XCTAssertEqualObjects(obj.foo, @"bar");
+ XCTAssertEqual(obj.a, 1);
+}
+
+@end
@@ -0,0 +1,15 @@
+//
+// AppDelegate.h
+// iOS
+//
+// Created by James Billingham on 23/06/2016.
+// Copyright © 2012-2016, JSONModel contributors. MIT licensed.
+//
+
+@import UIKit;
+
+@interface AppDelegate : UIResponder <UIApplicationDelegate>
+
+@property (strong, nonatomic) UIWindow *window;
+
+@end
@@ -0,0 +1,18 @@
+//
+// AppDelegate.m
+// iOS
+//
+// Created by James Billingham on 23/06/2016.
+// Copyright © 2012-2016, JSONModel contributors. MIT licensed.
+//
+
+#import "AppDelegate.h"
+
+@implementation AppDelegate
+
+- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
+{
+ return YES;
+}
+
+@end
@@ -0,0 +1,38 @@
+{
+ "images" : [
+ {
+ "idiom" : "iphone",
+ "size" : "29x29",
+ "scale" : "2x"
+ },
+ {
+ "idiom" : "iphone",
+ "size" : "29x29",
+ "scale" : "3x"
+ },
+ {
+ "idiom" : "iphone",
+ "size" : "40x40",
+ "scale" : "2x"
+ },
+ {
+ "idiom" : "iphone",
+ "size" : "40x40",
+ "scale" : "3x"
+ },
+ {
+ "idiom" : "iphone",
+ "size" : "60x60",
+ "scale" : "2x"
+ },
+ {
+ "idiom" : "iphone",
+ "size" : "60x60",
+ "scale" : "3x"
+ }
+ ],
+ "info" : {
+ "version" : 1,
+ "author" : "xcode"
+ }
+}
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="8150" systemVersion="15A204g" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" initialViewController="01J-lp-oVM">
+ <dependencies>
+ <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="8122"/>
+ </dependencies>
+ <scenes>
+ <!--View Controller-->
+ <scene sceneID="EHf-IW-A2E">
+ <objects>
+ <viewController id="01J-lp-oVM" sceneMemberID="viewController">
+ <layoutGuides>
+ <viewControllerLayoutGuide type="top" id="Llm-lL-Icb"/>
+ <viewControllerLayoutGuide type="bottom" id="xb3-aO-Qok"/>
+ </layoutGuides>
+ <view key="view" contentMode="scaleToFill" id="Ze5-6b-2t3">
+ <rect key="frame" x="0.0" y="0.0" width="600" height="600"/>
+ <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
+ <animations/>
+ <color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
+ </view>
+ </viewController>
+ <placeholder placeholderIdentifier="IBFirstResponder" id="iYj-Kq-Ea1" userLabel="First Responder" sceneMemberID="firstResponder"/>
+ </objects>
+ <point key="canvasLocation" x="53" y="375"/>
+ </scene>
+ </scenes>
+</document>
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="10117" systemVersion="16A201w" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" initialViewController="BYZ-38-t0r">
+ <dependencies>
+ <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="10085"/>
+ </dependencies>
+ <scenes>
+ <!--View Controller-->
+ <scene sceneID="tne-QT-ifu">
+ <objects>
+ <viewController id="BYZ-38-t0r" customClass="ViewController" sceneMemberID="viewController">
+ <layoutGuides>
+ <viewControllerLayoutGuide type="top" id="y3c-jy-aDJ"/>
+ <viewControllerLayoutGuide type="bottom" id="wfy-db-euE"/>
+ </layoutGuides>
+ <view key="view" contentMode="scaleToFill" id="8bC-Xf-vdC">
+ <rect key="frame" x="0.0" y="0.0" width="600" height="600"/>
+ <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
+ <color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
+ </view>
+ </viewController>
+ <placeholder placeholderIdentifier="IBFirstResponder" id="dkx-z0-nzr" sceneMemberID="firstResponder"/>
+ </objects>
+ </scene>
+ </scenes>
+</document>
@@ -0,0 +1,40 @@
+<?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>CFBundleDevelopmentRegion</key>
+ <string>en</string>
+ <key>CFBundleDisplayName</key>
+ <string>JSONModel</string>
+ <key>CFBundleExecutable</key>
+ <string>$(EXECUTABLE_NAME)</string>
+ <key>CFBundleIdentifier</key>
+ <string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
+ <key>CFBundleInfoDictionaryVersion</key>
+ <string>6.0</string>
+ <key>CFBundleName</key>
+ <string>$(PRODUCT_NAME)</string>
+ <key>CFBundlePackageType</key>
+ <string>APPL</string>
+ <key>CFBundleShortVersionString</key>
+ <string>1.0</string>
+ <key>CFBundleSignature</key>
+ <string>????</string>
+ <key>CFBundleVersion</key>
+ <string>1</string>
+ <key>LSRequiresIPhoneOS</key>
+ <true/>
+ <key>UILaunchStoryboardName</key>
+ <string>LaunchScreen</string>
+ <key>UIMainStoryboardFile</key>
+ <string>Main</string>
+ <key>UIRequiredDeviceCapabilities</key>
+ <array>
+ <string>armv7</string>
+ </array>
+ <key>UISupportedInterfaceOrientations</key>
+ <array>
+ <string>UIInterfaceOrientationPortrait</string>
+ </array>
+</dict>
+</plist>
@@ -0,0 +1,13 @@
+//
+// ViewController.h
+// iOS
+//
+// Created by James Billingham on 23/06/2016.
+// Copyright © 2012-2016, JSONModel contributors. MIT licensed.
+//
+
+@import UIKit;
+
+@interface ViewController : UIViewController
+
+@end
@@ -0,0 +1,13 @@
+//
+// ViewController.m
+// iOS
+//
+// Created by James Billingham on 23/06/2016.
+// Copyright © 2012-2016, JSONModel contributors. MIT licensed.
+//
+
+#import "ViewController.h"
+
+@implementation ViewController
+
+@end
View
@@ -0,0 +1,19 @@
+//
+// main.m
+// iOS
+//
+// Created by James Billingham on 23/06/2016.
+// Copyright © 2012-2016, JSONModel contributors. MIT licensed.
+//
+
+@import UIKit;
+
+#import "AppDelegate.h"
+
+int main(int argc, char * argv[])
+{
+ @autoreleasepool
+ {
+ return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
+ }
+}
@@ -0,0 +1,13 @@
+//
+// AppDelegate.h
+// macOS
+//
+// Created by James Billingham on 23/06/2016.
+// Copyright © 2012-2016, JSONModel contributors. MIT licensed.
+//
+
+@import Cocoa;
+
+@interface AppDelegate : NSObject <NSApplicationDelegate>
+
+@end
@@ -0,0 +1,13 @@
+//
+// AppDelegate.m
+// macOS
+//
+// Created by James Billingham on 23/06/2016.
+// Copyright © 2012-2016, JSONModel contributors. MIT licensed.
+//
+
+#import "AppDelegate.h"
+
+@implementation AppDelegate
+
+@end
Oops, something went wrong.

0 comments on commit 8271d31

Please sign in to comment.