Skip to content

Commit c6b59e4

Browse files
committed
Merge pull request #38 from ReactKit/universal-framework
Create universal framework to support watchOS & tvOS by using xcconfigs.
2 parents e49b1c6 + c1751bf commit c6b59e4

File tree

12 files changed

+114
-386
lines changed

12 files changed

+114
-386
lines changed

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "Carthage/Checkouts/xcconfigs"]
2+
path = Carthage/Checkouts/xcconfigs
3+
url = https://github.com/mrackwitz/xcconfigs.git

Cartfile.private

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
github "mrackwitz/xcconfigs"

Cartfile.resolved

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
github "mrackwitz/xcconfigs" "3.0"

Carthage/Checkouts/xcconfigs

Submodule xcconfigs added at 6b2682f

Configurations/Base.xcconfig

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
//
2+
// Base.xcconfig
3+
// SwiftState
4+
//
5+
// Created by Yasuhiro Inami on 2015-12-09.
6+
// Copyright © 2015 Yasuhiro Inami. All rights reserved.
7+
//
8+
9+
CODE_SIGN_IDENTITY[sdk=iphoneos*] = iPhone Developer;
10+
MACOSX_DEPLOYMENT_TARGET = 10.9;
11+
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
12+
WATCHOS_DEPLOYMENT_TARGET = 2.0;
13+
TVOS_DEPLOYMENT_TARGET = 9.0;

Configurations/Debug.xcconfig

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
//
2+
// Debug.xcconfig
3+
// SwiftState
4+
//
5+
// Created by Yasuhiro Inami on 2015-12-09.
6+
// Copyright © 2015 Yasuhiro Inami. All rights reserved.
7+
//
8+
9+
#include "Base.xcconfig"
10+
11+
SWIFT_OPTIMIZATION_LEVEL = -Onone;

Configurations/Release.xcconfig

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
//
2+
// Release.xcconfig
3+
// SwiftState
4+
//
5+
// Created by Yasuhiro Inami on 2015-12-09.
6+
// Copyright © 2015 Yasuhiro Inami. All rights reserved.
7+
//
8+
9+
#include "Base.xcconfig"
10+
11+
SWIFT_OPTIMIZATION_LEVEL = -Owholemodule;

Sources/_Random.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
// Copyright © 2015 Yasuhiro Inami. All rights reserved.
77
//
88

9-
#if os(OSX) || os(iOS)
9+
#if os(OSX) || os(iOS) || os(watchOS) || os(tvOS)
1010
import Darwin
1111
#else
1212
import Glibc

SwiftState.xcodeproj/project.pbxproj

Lines changed: 58 additions & 276 deletions
Large diffs are not rendered by default.

SwiftState.xcodeproj/xcshareddata/xcschemes/SwiftState-iOS.xcscheme

Lines changed: 0 additions & 100 deletions
This file was deleted.

0 commit comments

Comments
 (0)