Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add multiplatform support #14

Merged
merged 13 commits into from
Mar 30, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions .swift-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.0
4 changes: 2 additions & 2 deletions Cely Demo/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
// AppDelegate.swift
// Cely Demo
//
// Created by Fabian Buentello on 10/15/16.
// Copyright © 2016 Fabian Buentello. All rights reserved.
// Created by Fabian Buentello on 3/27/17.
// Copyright © 2017 ChaiOne. All rights reserved.
//

import UIKit
Expand Down
Binary file not shown.
Binary file not shown.
22 changes: 0 additions & 22 deletions Cely Demo/Assets.xcassets/CelyThin.imageset/Contents.json

This file was deleted.

Binary file not shown.
21 changes: 0 additions & 21 deletions Cely Demo/Assets.xcassets/ChaiOneLogo.imageset/Contents.json

This file was deleted.

52 changes: 27 additions & 25 deletions Cely Demo/Base.lproj/Main.storyboard
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<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">
<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">
<device id="retina4_7" orientation="portrait">
<adaptation id="fullscreen"/>
</device>
Expand All @@ -11,70 +11,72 @@
</dependencies>
<scenes>
<!--View Controller-->
<scene sceneID="tne-QT-ifu">
<scene sceneID="ZBq-49-qQt">
<objects>
<viewController id="BYZ-38-t0r" customClass="ViewController" customModule="Cely_Demo" customModuleProvider="target" sceneMemberID="viewController">
<viewController id="svJ-It-h7B" customClass="ViewController" customModule="Cely_Demo" customModuleProvider="target" sceneMemberID="viewController">
<layoutGuides>
<viewControllerLayoutGuide type="top" id="y3c-jy-aDJ"/>
<viewControllerLayoutGuide type="bottom" id="wfy-db-euE"/>
<viewControllerLayoutGuide type="top" id="k9W-nP-JYA"/>
<viewControllerLayoutGuide type="bottom" id="BQf-2q-iWG"/>
</layoutGuides>
<view key="view" contentMode="scaleToFill" id="8bC-Xf-vdC">
<view key="view" contentMode="scaleToFill" id="fda-Pz-Ss4">
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="xxd-Ai-Z3U">
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="yRN-nu-lVm">
<rect key="frame" x="16" y="20" width="57" height="30"/>
<state key="normal" title="Settings">
<color key="titleColor" red="1" green="1" blue="1" alpha="1" colorSpace="calibratedRGB"/>
</state>
<connections>
<segue destination="Hcw-9b-enT" kind="show" id="0Ya-LC-h2S"/>
<segue destination="rRA-t9-7xr" kind="show" id="SLb-KR-rFl">
<nil key="action"/>
</segue>
</connections>
</button>
</subviews>
<color key="backgroundColor" red="0.33725490200000002" green="0.79607843140000001" blue="0.97647058819999999" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<constraints>
<constraint firstItem="xxd-Ai-Z3U" firstAttribute="top" secondItem="y3c-jy-aDJ" secondAttribute="bottom" id="kQN-ME-Rw9"/>
<constraint firstItem="xxd-Ai-Z3U" firstAttribute="leading" secondItem="8bC-Xf-vdC" secondAttribute="leadingMargin" id="yYA-Xs-rH6"/>
<constraint firstItem="yRN-nu-lVm" firstAttribute="top" secondItem="k9W-nP-JYA" secondAttribute="bottom" id="H8g-W1-LC1"/>
<constraint firstItem="yRN-nu-lVm" firstAttribute="leading" secondItem="fda-Pz-Ss4" secondAttribute="leadingMargin" id="NMh-aI-cVh"/>
</constraints>
</view>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="dkx-z0-nzr" sceneMemberID="firstResponder"/>
<placeholder placeholderIdentifier="IBFirstResponder" id="VDL-2K-WO1" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="-145" y="37"/>
<point key="canvasLocation" x="-191" y="27"/>
</scene>
<!--Settings View Controller-->
<scene sceneID="uZI-nc-KCh">
<scene sceneID="EnZ-km-paj">
<objects>
<viewController id="Hcw-9b-enT" customClass="SettingsViewController" customModule="Cely_Demo" customModuleProvider="target" sceneMemberID="viewController">
<viewController id="rRA-t9-7xr" customClass="SettingsViewController" customModule="Cely_Demo" customModuleProvider="target" sceneMemberID="viewController">
<layoutGuides>
<viewControllerLayoutGuide type="top" id="m86-Dg-hl2"/>
<viewControllerLayoutGuide type="bottom" id="4hY-zw-v16"/>
<viewControllerLayoutGuide type="top" id="wiz-kP-0Gj"/>
<viewControllerLayoutGuide type="bottom" id="FXo-zn-Apn"/>
</layoutGuides>
<view key="view" contentMode="scaleToFill" id="rmo-y0-whp">
<view key="view" contentMode="scaleToFill" id="Zq6-aU-iAv">
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="5eG-gi-ZOj">
<rect key="frame" x="163.5" y="318.5" width="48" height="30"/>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="7CJ-Uc-HQ6">
<rect key="frame" x="164" y="319" width="48" height="30"/>
<state key="normal" title="Logout">
<color key="titleColor" red="1" green="1" blue="1" alpha="1" colorSpace="calibratedRGB"/>
</state>
<connections>
<action selector="LogoutButtonPressed" destination="Hcw-9b-enT" eventType="touchUpInside" id="9fe-MU-tLM"/>
<action selector="LogoutButtonPressed" destination="rRA-t9-7xr" eventType="touchUpInside" id="80u-8N-Lcf"/>
</connections>
</button>
</subviews>
<color key="backgroundColor" red="0.86666667461395264" green="0.57254904508590698" blue="0.12549020349979401" alpha="1" colorSpace="calibratedRGB"/>
<color key="backgroundColor" red="0.86666667460000002" green="0.57254904510000004" blue="0.12549020350000001" alpha="1" colorSpace="calibratedRGB"/>
<constraints>
<constraint firstItem="5eG-gi-ZOj" firstAttribute="centerX" secondItem="rmo-y0-whp" secondAttribute="centerX" id="LIR-qN-vpw"/>
<constraint firstItem="5eG-gi-ZOj" firstAttribute="centerY" secondItem="rmo-y0-whp" secondAttribute="centerY" id="RD4-JW-4px"/>
<constraint firstItem="7CJ-Uc-HQ6" firstAttribute="centerY" secondItem="Zq6-aU-iAv" secondAttribute="centerY" id="GMB-Tl-mG3"/>
<constraint firstItem="7CJ-Uc-HQ6" firstAttribute="centerX" secondItem="Zq6-aU-iAv" secondAttribute="centerX" id="rim-CG-HdC"/>
</constraints>
</view>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="DKf-SV-Yh0" userLabel="First Responder" sceneMemberID="firstResponder"/>
<placeholder placeholderIdentifier="IBFirstResponder" id="lVe-ha-LY9" userLabel="First Responder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="833" y="38"/>
<point key="canvasLocation" x="788" y="28"/>
</scene>
</scenes>
</document>
2 changes: 1 addition & 1 deletion Cely Demo/Cely Demo.entitlements
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<dict>
<key>keychain-access-groups</key>
<array>
<string>$(AppIdentifierPrefix)com.buentello.Cely-Demo</string>
<string>$(AppIdentifierPrefix)com.chaione.Cely-Demo</string>
</array>
</dict>
</plist>
5 changes: 5 additions & 0 deletions Cely Demo/Cely_Demo.xcdatamodeld/.xccurrentversion
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?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/>
</plist>
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<model type="com.apple.IDECoreDataModeler.DataModel" documentVersion="1.0" lastSavedToolsVersion="1" systemVersion="11A491" minimumToolsVersion="Automatic" sourceLanguage="Swift" userDefinedModelVersionIdentifier="">
<elements/>
</model>
2 changes: 1 addition & 1 deletion Cely Demo/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.1.0</string>
<string>1.2.0</string>
<key>CFBundleVersion</key>
<string>1</string>
<key>LSRequiresIPhoneOS</key>
Expand Down
2 changes: 1 addition & 1 deletion Cely Demo/LoginStyles.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// Copyright © 2016 Fabian Buentello. All rights reserved.
//

import Foundation
import UIKit
import Cely

struct LoginStyles: CelyStyle {
Expand Down
20 changes: 20 additions & 0 deletions Cely.podspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
Pod::Spec.new do |s|
s.name = 'Cely'
s.version = '1.1.0'
s.license = { :type => "MIT", :file => "LICENSE" }
s.summary = 'Cely’s goal is to add a login system into your app in under 30 seconds!'
s.homepage = 'http://rahulkatariya.me'
s.social_media_url = 'https://twitter.com/initfabian'
s.authors = { "Fabian Buentello" => "fabian.buentello@gmail.com" }
s.source = { :git => "https://github.com/ChaiOne/Cely.git", :tag => "v"+s.version.to_s }
s.platforms = { :ios => "9.0", :osx => "10.10", :tvos => "9.0", :watchos => "2.0" }
s.requires_arc = true

s.default_subspec = "Core"
s.subspec "Core" do |ss|
ss.resources = 'Sources/Supporting Files/*.{storyboard,xib,xcassets,json,imageset,png}'
ss.source_files = "Sources/*.swift"
ss.framework = "Foundation"
end

end