Skip to content

Commit 482bcda

Browse files
authored
Add multiplatform support (#14)
* restructure application using cookie cutter framework * remove playground * fix podspec issue * fix carthage code signing issue * update documentation * Update versions in plist files * remove unneeded frameworks * update tests * remove carthage dependencies * fix xcconfig mapping * change iPhone deployment target for bitrise simulator * add key sharing entitlements * fix filepaths for xcconfig files.
1 parent dce75f9 commit 482bcda

File tree

90 files changed

+2500
-666
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

90 files changed

+2500
-666
lines changed

.swift-version

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.0

Cely Demo/AppDelegate.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
// AppDelegate.swift
33
// Cely Demo
44
//
5-
// Created by Fabian Buentello on 10/15/16.
6-
// Copyright © 2016 Fabian Buentello. All rights reserved.
5+
// Created by Fabian Buentello on 3/27/17.
6+
// Copyright © 2017 ChaiOne. All rights reserved.
77
//
88

99
import UIKit
Binary file not shown.
Binary file not shown.

Cely Demo/Assets.xcassets/CelyThin.imageset/Contents.json

-22
This file was deleted.
Binary file not shown.

Cely Demo/Assets.xcassets/ChaiOneLogo.imageset/Contents.json

-21
This file was deleted.

Cely Demo/Base.lproj/Main.storyboard

+27-25
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="11762" systemVersion="16D32" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES" initialViewController="BYZ-38-t0r">
2+
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="11762" systemVersion="16D32" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES" initialViewController="svJ-It-h7B">
33
<device id="retina4_7" orientation="portrait">
44
<adaptation id="fullscreen"/>
55
</device>
@@ -11,70 +11,72 @@
1111
</dependencies>
1212
<scenes>
1313
<!--View Controller-->
14-
<scene sceneID="tne-QT-ifu">
14+
<scene sceneID="ZBq-49-qQt">
1515
<objects>
16-
<viewController id="BYZ-38-t0r" customClass="ViewController" customModule="Cely_Demo" customModuleProvider="target" sceneMemberID="viewController">
16+
<viewController id="svJ-It-h7B" customClass="ViewController" customModule="Cely_Demo" customModuleProvider="target" sceneMemberID="viewController">
1717
<layoutGuides>
18-
<viewControllerLayoutGuide type="top" id="y3c-jy-aDJ"/>
19-
<viewControllerLayoutGuide type="bottom" id="wfy-db-euE"/>
18+
<viewControllerLayoutGuide type="top" id="k9W-nP-JYA"/>
19+
<viewControllerLayoutGuide type="bottom" id="BQf-2q-iWG"/>
2020
</layoutGuides>
21-
<view key="view" contentMode="scaleToFill" id="8bC-Xf-vdC">
21+
<view key="view" contentMode="scaleToFill" id="fda-Pz-Ss4">
2222
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
2323
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
2424
<subviews>
25-
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="xxd-Ai-Z3U">
25+
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="yRN-nu-lVm">
2626
<rect key="frame" x="16" y="20" width="57" height="30"/>
2727
<state key="normal" title="Settings">
2828
<color key="titleColor" red="1" green="1" blue="1" alpha="1" colorSpace="calibratedRGB"/>
2929
</state>
3030
<connections>
31-
<segue destination="Hcw-9b-enT" kind="show" id="0Ya-LC-h2S"/>
31+
<segue destination="rRA-t9-7xr" kind="show" id="SLb-KR-rFl">
32+
<nil key="action"/>
33+
</segue>
3234
</connections>
3335
</button>
3436
</subviews>
3537
<color key="backgroundColor" red="0.33725490200000002" green="0.79607843140000001" blue="0.97647058819999999" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
3638
<constraints>
37-
<constraint firstItem="xxd-Ai-Z3U" firstAttribute="top" secondItem="y3c-jy-aDJ" secondAttribute="bottom" id="kQN-ME-Rw9"/>
38-
<constraint firstItem="xxd-Ai-Z3U" firstAttribute="leading" secondItem="8bC-Xf-vdC" secondAttribute="leadingMargin" id="yYA-Xs-rH6"/>
39+
<constraint firstItem="yRN-nu-lVm" firstAttribute="top" secondItem="k9W-nP-JYA" secondAttribute="bottom" id="H8g-W1-LC1"/>
40+
<constraint firstItem="yRN-nu-lVm" firstAttribute="leading" secondItem="fda-Pz-Ss4" secondAttribute="leadingMargin" id="NMh-aI-cVh"/>
3941
</constraints>
4042
</view>
4143
</viewController>
42-
<placeholder placeholderIdentifier="IBFirstResponder" id="dkx-z0-nzr" sceneMemberID="firstResponder"/>
44+
<placeholder placeholderIdentifier="IBFirstResponder" id="VDL-2K-WO1" sceneMemberID="firstResponder"/>
4345
</objects>
44-
<point key="canvasLocation" x="-145" y="37"/>
46+
<point key="canvasLocation" x="-191" y="27"/>
4547
</scene>
4648
<!--Settings View Controller-->
47-
<scene sceneID="uZI-nc-KCh">
49+
<scene sceneID="EnZ-km-paj">
4850
<objects>
49-
<viewController id="Hcw-9b-enT" customClass="SettingsViewController" customModule="Cely_Demo" customModuleProvider="target" sceneMemberID="viewController">
51+
<viewController id="rRA-t9-7xr" customClass="SettingsViewController" customModule="Cely_Demo" customModuleProvider="target" sceneMemberID="viewController">
5052
<layoutGuides>
51-
<viewControllerLayoutGuide type="top" id="m86-Dg-hl2"/>
52-
<viewControllerLayoutGuide type="bottom" id="4hY-zw-v16"/>
53+
<viewControllerLayoutGuide type="top" id="wiz-kP-0Gj"/>
54+
<viewControllerLayoutGuide type="bottom" id="FXo-zn-Apn"/>
5355
</layoutGuides>
54-
<view key="view" contentMode="scaleToFill" id="rmo-y0-whp">
56+
<view key="view" contentMode="scaleToFill" id="Zq6-aU-iAv">
5557
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
5658
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
5759
<subviews>
58-
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="5eG-gi-ZOj">
59-
<rect key="frame" x="163.5" y="318.5" width="48" height="30"/>
60+
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="7CJ-Uc-HQ6">
61+
<rect key="frame" x="164" y="319" width="48" height="30"/>
6062
<state key="normal" title="Logout">
6163
<color key="titleColor" red="1" green="1" blue="1" alpha="1" colorSpace="calibratedRGB"/>
6264
</state>
6365
<connections>
64-
<action selector="LogoutButtonPressed" destination="Hcw-9b-enT" eventType="touchUpInside" id="9fe-MU-tLM"/>
66+
<action selector="LogoutButtonPressed" destination="rRA-t9-7xr" eventType="touchUpInside" id="80u-8N-Lcf"/>
6567
</connections>
6668
</button>
6769
</subviews>
68-
<color key="backgroundColor" red="0.86666667461395264" green="0.57254904508590698" blue="0.12549020349979401" alpha="1" colorSpace="calibratedRGB"/>
70+
<color key="backgroundColor" red="0.86666667460000002" green="0.57254904510000004" blue="0.12549020350000001" alpha="1" colorSpace="calibratedRGB"/>
6971
<constraints>
70-
<constraint firstItem="5eG-gi-ZOj" firstAttribute="centerX" secondItem="rmo-y0-whp" secondAttribute="centerX" id="LIR-qN-vpw"/>
71-
<constraint firstItem="5eG-gi-ZOj" firstAttribute="centerY" secondItem="rmo-y0-whp" secondAttribute="centerY" id="RD4-JW-4px"/>
72+
<constraint firstItem="7CJ-Uc-HQ6" firstAttribute="centerY" secondItem="Zq6-aU-iAv" secondAttribute="centerY" id="GMB-Tl-mG3"/>
73+
<constraint firstItem="7CJ-Uc-HQ6" firstAttribute="centerX" secondItem="Zq6-aU-iAv" secondAttribute="centerX" id="rim-CG-HdC"/>
7274
</constraints>
7375
</view>
7476
</viewController>
75-
<placeholder placeholderIdentifier="IBFirstResponder" id="DKf-SV-Yh0" userLabel="First Responder" sceneMemberID="firstResponder"/>
77+
<placeholder placeholderIdentifier="IBFirstResponder" id="lVe-ha-LY9" userLabel="First Responder" sceneMemberID="firstResponder"/>
7678
</objects>
77-
<point key="canvasLocation" x="833" y="38"/>
79+
<point key="canvasLocation" x="788" y="28"/>
7880
</scene>
7981
</scenes>
8082
</document>

Cely Demo/Cely Demo.entitlements

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<dict>
55
<key>keychain-access-groups</key>
66
<array>
7-
<string>$(AppIdentifierPrefix)com.buentello.Cely-Demo</string>
7+
<string>$(AppIdentifierPrefix)com.chaione.Cely-Demo</string>
88
</array>
99
</dict>
1010
</plist>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
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+
</plist>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2+
<model type="com.apple.IDECoreDataModeler.DataModel" documentVersion="1.0" lastSavedToolsVersion="1" systemVersion="11A491" minimumToolsVersion="Automatic" sourceLanguage="Swift" userDefinedModelVersionIdentifier="">
3+
<elements/>
4+
</model>

Cely Demo/Info.plist

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<key>CFBundlePackageType</key>
1616
<string>APPL</string>
1717
<key>CFBundleShortVersionString</key>
18-
<string>1.1.0</string>
18+
<string>1.2.0</string>
1919
<key>CFBundleVersion</key>
2020
<string>1</string>
2121
<key>LSRequiresIPhoneOS</key>

Cely Demo/LoginStyles.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
// Copyright © 2016 Fabian Buentello. All rights reserved.
77
//
88

9-
import Foundation
9+
import UIKit
1010
import Cely
1111

1212
struct LoginStyles: CelyStyle {

Cely.podspec

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
Pod::Spec.new do |s|
2+
s.name = 'Cely'
3+
s.version = '1.1.0'
4+
s.license = { :type => "MIT", :file => "LICENSE" }
5+
s.summary = 'Cely’s goal is to add a login system into your app in under 30 seconds!'
6+
s.homepage = 'http://rahulkatariya.me'
7+
s.social_media_url = 'https://twitter.com/initfabian'
8+
s.authors = { "Fabian Buentello" => "[email protected]" }
9+
s.source = { :git => "https://github.com/ChaiOne/Cely.git", :tag => "v"+s.version.to_s }
10+
s.platforms = { :ios => "9.0", :osx => "10.10", :tvos => "9.0", :watchos => "2.0" }
11+
s.requires_arc = true
12+
13+
s.default_subspec = "Core"
14+
s.subspec "Core" do |ss|
15+
ss.resources = 'Sources/Supporting Files/*.{storyboard,xib,xcassets,json,imageset,png}'
16+
ss.source_files = "Sources/*.swift"
17+
ss.framework = "Foundation"
18+
end
19+
20+
end

0 commit comments

Comments
 (0)