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

Reorganized project structure #11

Closed
wants to merge 9 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,25 +6,25 @@ osx_image: xcode9.2
language: swift
env:
global:
- WORKSPACE=Example/UtiliKit.xcworkspace
- IOS_FRAMEWORK_SCHEME="UtiliKit-Example"
- WORKSPACE=UtiliKit.xcworkspace
- IOS_FRAMEWORK_SCHEME="UtiliKit-iOS"
matrix:
- DESTINATION="platform=iOS Simulator,OS=11.2,name=iPhone X" SDK="iphonesimulator" SCHEME="$IOS_FRAMEWORK_SCHEME" RUN_TESTS="YES" POD_LINT="YES"
    - DESTINATION="platform=iOS Simulator,OS=11.2,name=iPhone X"                        SCHEME="$IOS_FRAMEWORK_SCHEME"      RUN_TESTS="YES" POD_LINT="YES"
# - DESTINATION="platform=tvOS Simulator,OS=11.2,name=Apple TV 4K"                    SCHEME="$TVOS_FRAMEWORK_SCHEME"     RUN_TESTS="YES" POD_LINT="NO"
#- DESTINATION="platform=watchOS Simulator,OS=4.2,name=Apple Watch Series 3 - 42mm"  SCHEME="$WATCHOS_FRAMEWORK_SCHEME"  RUN_TESTS="NO"  POD_LINT="NO"

# cache: cocoapods
# podfile: Example/Podfile
before_install:
- gem install cocoapods --pre # Since Travis is not always on latest version
- pod install --project-directory=Example
script:
- set -o pipefail

# Build Framework and Run Tests if specified
- if [ $RUN_TESTS == "YES" ]; then
xcodebuild test -enableCodeCoverage YES -workspace "$WORKSPACE" -scheme "$SCHEME" -destination "$DESTINATION" -sdk "$SDK" ONLY_ACTIVE_ARCH=NO | xcpretty;
else
xcodebuild build -workspace "$WORKSPACE" -scheme "$SCHEME" -destination "$DESTINATION" -sdk "$SDK" ONLY_ACTIVE_ARCH=NO | xcpretty;
fi
  - if [ $RUN_TESTS == "YES" ]; then
      xcodebuild test -workspace "$WORKSPACE" -scheme "$SCHEME" -destination "$DESTINATION" ONLY_ACTIVE_ARCH=NO -enableCodeCoverage YES | xcpretty;
    else
      xcodebuild build -workspace "$WORKSPACE" -scheme "$SCHEME" -destination "$DESTINATION" ONLY_ACTIVE_ARCH=NO | xcpretty;
    fi

# Run `pod lib lint` if specified
- if [ $POD_LINT == "YES" ]; then
Expand Down
12 changes: 0 additions & 12 deletions Example/Podfile

This file was deleted.

22 changes: 0 additions & 22 deletions Example/Podfile.lock

This file was deleted.

781 changes: 0 additions & 781 deletions Example/UtiliKit.xcodeproj/project.pbxproj

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
//
// ContainerExampleViewController.swift
// UtiliKit_Example
// UtiliKit
//
// Created by Will McGinty on 1/2/18.
// Copyright © 2018 CocoaPods. All rights reserved.
// Copyright © 2018 Bottle Rocket Studios. All rights reserved.
//

import UIKit
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import UIKit
class VCViewController: UIViewController {

@IBAction func didSelectInitialViewController(_ sender: Any) {
// Instantiate a "InitialViewController" from the storyboard
// Instantiate an InitialViewController from the storyboard
// Notice that the desired type of view controller that you want to instantiate must be provided.
// The UIStoryboard extension will automatically attempt to instantiate a view controller with an identifier that matches the name of the view controller's type and then cast it into that type.
let vc: InitialViewController = UIStoryboard(identifier: .vcTest).instantiateInitialViewController()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
//
// ViewControllerA.swift
// Container_Example
// UtiliKit
//
// Created by Will McGinty on 10/19/17.
// Copyright © 2017 CocoaPods. All rights reserved.
// Copyright © 2018 Bottle Rocket Studios. All rights reserved.
//

import UIKit
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
//
// ViewControllerB.swift
// Container_Example
// UtiliKit
//
// Created by Will McGinty on 10/19/17.
// Copyright © 2017 CocoaPods. All rights reserved.
// Copyright © 2018 Bottle Rocket Studios. All rights reserved.
//

import UIKit
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
//
// WipeTransitionAnimator.swift
// UtiliKit
//
// Created by Wilson Turner on 2/17/17.
// Copyright © 2018 Bottle Rocket Studios. All rights reserved.
//

import UIKit
Expand Down
24 changes: 24 additions & 0 deletions Sources/Supporting Files/Info.plist
Original file line number Diff line number Diff line change
@@ -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>$(DEVELOPMENT_LANGUAGE)</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>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleVersion</key>
<string>$(CURRENT_PROJECT_VERSION)</string>
<key>NSPrincipalClass</key>
<string></string>
</dict>
</plist>
18 changes: 18 additions & 0 deletions Sources/Supporting Files/UtiliKit.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
//
// UtiliKit.h
// UtiliKit
//
// Copyright © 2018 Bottle Rocket Studios. All rights reserved.
//

#import <Foundation/Foundation.h>

//! Project version number for UtiliKit.
FOUNDATION_EXPORT double UtiliKitVersionNumber;

//! Project version string for UtiliKit.
FOUNDATION_EXPORT const unsigned char UtiliKitVersionString[];

// In this header, you should import all the public headers of your framework using statements like #import <UtiliKit/PublicHeader.h>


Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
//
// ContainerTransitionContext.swift
// Container
// UtiliKit
//
// Copyright © 2018 Bottle Rocket Studios. All rights reserved.
//

import Foundation
import UIKit

class ContainerTransitionContext: NSObject {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//
// ContainerViewController.swift
// Container
// UtiliKit
//
// Copyright © 2018 Bottle Rocket Studios. All rights reserved.
//
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
//
// ContainerViewControllerDelegate.swift
// Container
// UtiliKit
//
// Copyright © 2018 Bottle Rocket Studios. All rights reserved.
//

import Foundation
import UIKit

public protocol ContainerViewControllerDelegate: class {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//
// ContainerViewControllerTransitionAnimator.swift
// Container
// UtiliKit
//
// Copyright © 2018 Bottle Rocket Studios. All rights reserved.
//
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
13 changes: 6 additions & 7 deletions UtiliKit.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ s.homepage = 'https://github.com/BottleRocketStudios/iOS-UtiliKit'
s.license = { :type => 'Apache 2.0', :file => 'LICENSE' }
s.author = { 'Bottle Rocket Studios' => 'wilson.turner@bottlerocketstudios.com' }
s.source = { :git => 'https://github.com/bottlerocketstudios/iOS-UtiliKit.git', :tag => s.version.to_s }
s.source_files = 'UtiliKit/Classes/**/*'
s.frameworks = 'UIKit', 'MapKit'
s.source_files = 'Sources/UtiliKit/**/*'
s.ios.deployment_target = '9.0'
s.default_subspec = 'Core'

Expand All @@ -36,23 +35,23 @@ core.dependency 'UtiliKit/General'
end

s.subspec 'Instantiation' do |instantiation|
instantiation.source_files = 'UtiliKit/Classes/Instantiation/*.swift'
instantiation.source_files = 'Sources/UtiliKit/Instantiation/*.swift'
end

s.subspec 'TimelessDate' do |timeless|
timeless.source_files = 'UtiliKit/Classes/TimelessDate/*.swift'
timeless.source_files = 'Sources/UtiliKit/TimelessDate/*.swift'
end

s.subspec 'General' do |general|
general.source_files = 'UtiliKit/Classes/General/*.swift'
general.source_files = 'Sources/UtiliKit/General/*.swift'
end

s.subspec 'Version' do |version|
version.source_files = 'UtiliKit/Classes/Version/*.swift'
version.source_files = 'Sources/UtiliKit/Version/*.swift'
end

s.subspec 'Container' do |container|
container.source_files = 'UtiliKit/Classes/Container/*.swift'
container.source_files = 'Sources/UtiliKit/Container/*.swift'
end

end
Loading