Skip to content

Commit

Permalink
Replace library with cocoapods configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
OverSwift committed Jun 21, 2017
1 parent 47e7392 commit 78a4704
Show file tree
Hide file tree
Showing 107 changed files with 2,360 additions and 2,786 deletions.
14 changes: 14 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# references:
# * http://www.objc.io/issue-6/travis-ci.html
# * https://github.com/supermarin/xcpretty#usage

osx_image: xcode7.3
language: objective-c
# cache: cocoapods
# podfile: Example/Podfile
# before_install:
# - gem install cocoapods # Since Travis is not always on latest version
# - pod install --project-directory=Example
script:
- set -o pipefail && xcodebuild test -workspace Example/OBD2-Swift.xcworkspace -scheme OBD2-Swift-Example -sdk iphonesimulator9.3 ONLY_ACTIVE_ARCH=NO | xcpretty
- pod lib lint
434 changes: 434 additions & 0 deletions Example/OBD2-Swift.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "0830"
LastUpgradeVersion = "0820"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
Expand All @@ -14,52 +14,24 @@
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "9258F3091EAF4664006B7580"
BuildableName = "OBD2-Swift-lib-example.app"
BlueprintName = "OBD2-Swift-lib-example"
ReferencedContainer = "container:OBD2-Swift-lib-example.xcodeproj">
BlueprintIdentifier = "607FACCF1AFB9204008FA782"
BuildableName = "OBD2-Swift_Example.app"
BlueprintName = "OBD2-Swift_Example"
ReferencedContainer = "container:OBD2-Swift.xcodeproj">
</BuildableReference>
</BuildActionEntry>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForProfiling = "NO"
buildForArchiving = "NO"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "9258F2E61EAF45E7006B7580"
BuildableName = "OBD2Swift.framework"
BlueprintName = "OBD2Swift"
ReferencedContainer = "container:../OBD2-Swift/OBD2Swift.xcodeproj">
</BuildableReference>
</BuildActionEntry>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "9258F3201EAF4664006B7580"
BuildableName = "OBD2-Swift-lib-exampleTests.xctest"
BlueprintName = "OBD2-Swift-lib-exampleTests"
ReferencedContainer = "container:OBD2-Swift-lib-example.xcodeproj">
</BuildableReference>
</BuildActionEntry>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "9258F2EF1EAF45E7006B7580"
BuildableName = "OBD2SwiftTests.xctest"
BlueprintName = "OBD2SwiftTests"
ReferencedContainer = "container:../OBD2-Swift/OBD2Swift.xcodeproj">
BlueprintIdentifier = "607FACE41AFB9204008FA782"
BuildableName = "OBD2-Swift_Tests.xctest"
BlueprintName = "OBD2-Swift_Tests"
ReferencedContainer = "container:OBD2-Swift.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
Expand All @@ -70,14 +42,24 @@
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES">
<Testables>
<TestableReference
skipped = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "607FACE41AFB9204008FA782"
BuildableName = "OBD2-Swift_Tests.xctest"
BlueprintName = "OBD2-Swift_Tests"
ReferencedContainer = "container:OBD2-Swift.xcodeproj">
</BuildableReference>
</TestableReference>
</Testables>
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "9258F3091EAF4664006B7580"
BuildableName = "OBD2-Swift-lib-example.app"
BlueprintName = "OBD2-Swift-lib-example"
ReferencedContainer = "container:OBD2-Swift-lib-example.xcodeproj">
BlueprintIdentifier = "607FACCF1AFB9204008FA782"
BuildableName = "OBD2-Swift_Example.app"
BlueprintName = "OBD2-Swift_Example"
ReferencedContainer = "container:OBD2-Swift.xcodeproj">
</BuildableReference>
</MacroExpansion>
<AdditionalOptions>
Expand All @@ -97,10 +79,10 @@
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "9258F3091EAF4664006B7580"
BuildableName = "OBD2-Swift-lib-example.app"
BlueprintName = "OBD2-Swift-lib-example"
ReferencedContainer = "container:OBD2-Swift-lib-example.xcodeproj">
BlueprintIdentifier = "607FACCF1AFB9204008FA782"
BuildableName = "OBD2-Swift_Example.app"
BlueprintName = "OBD2-Swift_Example"
ReferencedContainer = "container:OBD2-Swift.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
<AdditionalOptions>
Expand All @@ -116,10 +98,10 @@
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "9258F3091EAF4664006B7580"
BuildableName = "OBD2-Swift-lib-example.app"
BlueprintName = "OBD2-Swift-lib-example"
ReferencedContainer = "container:OBD2-Swift-lib-example.xcodeproj">
BlueprintIdentifier = "607FACCF1AFB9204008FA782"
BuildableName = "OBD2-Swift_Example.app"
BlueprintName = "OBD2-Swift_Example"
ReferencedContainer = "container:OBD2-Swift.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</ProfileAction>
Expand Down
10 changes: 10 additions & 0 deletions Example/OBD2-Swift.xcworkspace/contents.xcworkspacedata

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

46 changes: 46 additions & 0 deletions Example/OBD2-Swift/AppDelegate.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
//
// AppDelegate.swift
// OBD2-Swift
//
// Created by overswift on 06/21/2017.
// Copyright (c) 2017 overswift. All rights reserved.
//

import UIKit

@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {

var window: UIWindow?


func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
// Override point for customization after application launch.
return true
}

func applicationWillResignActive(_ application: UIApplication) {
// Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
// Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game.
}

func applicationDidEnterBackground(_ application: UIApplication) {
// Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
// If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
}

func applicationWillEnterForeground(_ application: UIApplication) {
// Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background.
}

func applicationDidBecomeActive(_ application: UIApplication) {
// Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
}

func applicationWillTerminate(_ application: UIApplication) {
// Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
}


}

41 changes: 41 additions & 0 deletions Example/OBD2-Swift/Base.lproj/LaunchScreen.xib
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="6214" systemVersion="14A314h" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES">
<dependencies>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="6207"/>
<capability name="Constraints with non-1.0 multipliers" minToolsVersion="5.1"/>
</dependencies>
<objects>
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/>
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
<view contentMode="scaleToFill" id="iN0-l3-epB">
<rect key="frame" x="0.0" y="0.0" width="480" height="480"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text=" Copyright (c) 2015 CocoaPods. All rights reserved." textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" minimumFontSize="9" translatesAutoresizingMaskIntoConstraints="NO" id="8ie-xW-0ye">
<rect key="frame" x="20" y="439" width="441" height="21"/>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="OBD2-Swift" textAlignment="center" lineBreakMode="middleTruncation" baselineAdjustment="alignBaselines" minimumFontSize="18" translatesAutoresizingMaskIntoConstraints="NO" id="kId-c2-rCX">
<rect key="frame" x="20" y="140" width="441" height="43"/>
<fontDescription key="fontDescription" type="boldSystem" pointSize="36"/>
<color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
<nil key="highlightedColor"/>
</label>
</subviews>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
<constraints>
<constraint firstItem="kId-c2-rCX" firstAttribute="centerY" secondItem="iN0-l3-epB" secondAttribute="bottom" multiplier="1/3" constant="1" id="5cJ-9S-tgC"/>
<constraint firstAttribute="centerX" secondItem="kId-c2-rCX" secondAttribute="centerX" id="Koa-jz-hwk"/>
<constraint firstAttribute="bottom" secondItem="8ie-xW-0ye" secondAttribute="bottom" constant="20" id="Kzo-t9-V3l"/>
<constraint firstItem="8ie-xW-0ye" firstAttribute="leading" secondItem="iN0-l3-epB" secondAttribute="leading" constant="20" symbolic="YES" id="MfP-vx-nX0"/>
<constraint firstAttribute="centerX" secondItem="8ie-xW-0ye" secondAttribute="centerX" id="ZEH-qu-HZ9"/>
<constraint firstItem="kId-c2-rCX" firstAttribute="leading" secondItem="iN0-l3-epB" secondAttribute="leading" constant="20" symbolic="YES" id="fvb-Df-36g"/>
</constraints>
<nil key="simulatedStatusBarMetrics"/>
<freeformSimulatedSizeMetrics key="simulatedDestinationMetrics"/>
<point key="canvasLocation" x="548" y="455"/>
</view>
</objects>
</document>
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<!--View Controller-->
<scene sceneID="uG5-F0-oZQ">
<objects>
<viewController id="xnq-SC-kDT" customClass="ViewController" customModule="OBD2_Swift_lib_example" customModuleProvider="target" sceneMemberID="viewController">
<viewController id="xnq-SC-kDT" customClass="ViewController" customModule="OBD2_Swift_Example" customModuleProvider="target" sceneMemberID="viewController">
<layoutGuides>
<viewControllerLayoutGuide type="top" id="NvE-v0-A0r"/>
<viewControllerLayoutGuide type="bottom" id="weB-S4-GPk"/>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,5 @@
{
"images" : [
{
"idiom" : "iphone",
"size" : "20x20",
"scale" : "2x"
},
{
"idiom" : "iphone",
"size" : "20x20",
"scale" : "3x"
},
{
"idiom" : "iphone",
"size" : "29x29",
Expand Down Expand Up @@ -45,4 +35,4 @@
"version" : 1,
"author" : "xcode"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,6 @@
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
</dict>
<key>CFBundleDevelopmentRegion</key>
<string>en</string>
<key>CFBundleExecutable</key>
Expand All @@ -21,6 +16,8 @@
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>1</string>
<key>LSRequiresIPhoneOS</key>
Expand All @@ -37,7 +34,6 @@
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
</dict>
</plist>
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
//

import UIKit
import OBD2Swift
import OBD2_Swift

class ViewController: UIViewController {
static var host = "192.168.0.10"
Expand Down Expand Up @@ -100,7 +100,7 @@ class ViewController: UIViewController {


@IBAction func requestSpeed( _ sender : UIButton) {

let command = Command.Mode01.pid(number: 12)
if obd.isRepeating(repeat: command) {
sender.setTitle("Start repeat speed", for: .normal)
Expand Down
11 changes: 11 additions & 0 deletions Example/Podfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
use_frameworks!

target 'OBD2-Swift_Example' do
pod 'OBD2-Swift', :path => '../'

target 'OBD2-Swift_Tests' do
inherit! :search_paths


end
end
16 changes: 16 additions & 0 deletions Example/Podfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
PODS:
- OBD2-Swift (0.1.0)

DEPENDENCIES:
- OBD2-Swift (from `../`)

EXTERNAL SOURCES:
OBD2-Swift:
:path: ../

SPEC CHECKSUMS:
OBD2-Swift: e67d5ab722ac375e5a7555e11be5f9010d8ec4e9

PODFILE CHECKSUM: 14654a87cf1d0cfa9665269d5c812a7ce0140cee

COCOAPODS: 1.2.1
22 changes: 22 additions & 0 deletions Example/Pods/Local Podspecs/OBD2-Swift.podspec.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 78a4704

Please sign in to comment.