Skip to content
Open
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
12 changes: 5 additions & 7 deletions Example/Podfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
source 'https://github.com/CocoaPods/Specs.git'
use_frameworks!

target 'SCForceUpdater', :exclusive => true do
pod "SCForceUpdater", :path => "../"
end
platform :ios, '8.0'

target 'Tests', :exclusive => true do
pod "SCForceUpdater", :path => "../"
target 'Example' do
pod 'SCForceUpdate', :path => '../'
pod 'SwiftLint'
end

19 changes: 14 additions & 5 deletions Example/Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,14 +1,23 @@
PODS:
- SCForceUpdater (1.0.0)
- SCForceUpdate (1.1.1)
- SwiftLint (0.26.0)

DEPENDENCIES:
- SCForceUpdater (from `../`)
- SCForceUpdate (from `../`)
- SwiftLint

SPEC REPOS:
https://github.com/cocoapods/specs.git:
- SwiftLint

EXTERNAL SOURCES:
SCForceUpdater:
SCForceUpdate:
:path: "../"

SPEC CHECKSUMS:
SCForceUpdater: 5316b97ea8ffc9222734ea5b972e1d2cf3aa95ed
SCForceUpdate: dace1acd6e5c2a0fb1d880d6eba02123bf0857c7
SwiftLint: f6b83e8d95ee1e91e11932d843af4fdcbf3fc764

PODFILE CHECKSUM: b4642bc25768fc7b606e7d71232c82511b96a639

COCOAPODS: 0.39.0
COCOAPODS: 1.5.3
442 changes: 442 additions & 0 deletions Example/SCForceUpdate.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 = "0600"
LastUpgradeVersion = "0940"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
Expand All @@ -14,75 +14,94 @@
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "6003F589195388D20070C39A"
BuildableName = "SCForceUpdater.app"
BlueprintName = "SCForceUpdater"
ReferencedContainer = "container:SCForceUpdater.xcodeproj">
BlueprintIdentifier = "607FACCF1AFB9204008FA782"
BuildableName = "Example.app"
BlueprintName = "Example"
ReferencedContainer = "container:SCForceUpdate.xcodeproj">
</BuildableReference>
</BuildActionEntry>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "NO"
buildForArchiving = "NO"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "607FACE41AFB9204008FA782"
BuildableName = "Tests.xctest"
BlueprintName = "Tests"
ReferencedContainer = "container:SCForceUpdate.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES"
buildConfiguration = "Debug">
shouldUseLaunchSchemeArgsEnv = "YES">
<Testables>
<TestableReference
skipped = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "6003F5AD195388D20070C39A"
BlueprintIdentifier = "607FACE41AFB9204008FA782"
BuildableName = "Tests.xctest"
BlueprintName = "Tests"
ReferencedContainer = "container:SCForceUpdater.xcodeproj">
ReferencedContainer = "container:SCForceUpdate.xcodeproj">
</BuildableReference>
</TestableReference>
</Testables>
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "6003F589195388D20070C39A"
BuildableName = "SCForceUpdater.app"
BlueprintName = "SCForceUpdater"
ReferencedContainer = "container:SCForceUpdater.xcodeproj">
BlueprintIdentifier = "607FACCF1AFB9204008FA782"
BuildableName = "Example.app"
BlueprintName = "Example"
ReferencedContainer = "container:SCForceUpdate.xcodeproj">
</BuildableReference>
</MacroExpansion>
<AdditionalOptions>
</AdditionalOptions>
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
buildConfiguration = "Debug"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
allowLocationSimulation = "YES">
<BuildableProductRunnable>
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "6003F589195388D20070C39A"
BuildableName = "SCForceUpdater.app"
BlueprintName = "SCForceUpdater"
ReferencedContainer = "container:SCForceUpdater.xcodeproj">
BlueprintIdentifier = "607FACCF1AFB9204008FA782"
BuildableName = "Example.app"
BlueprintName = "Example"
ReferencedContainer = "container:SCForceUpdate.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
<AdditionalOptions>
</AdditionalOptions>
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
buildConfiguration = "Release"
debugDocumentVersioning = "YES">
<BuildableProductRunnable>
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "6003F589195388D20070C39A"
BuildableName = "SCForceUpdater.app"
BlueprintName = "SCForceUpdater"
ReferencedContainer = "container:SCForceUpdater.xcodeproj">
BlueprintIdentifier = "607FACCF1AFB9204008FA782"
BuildableName = "Example.app"
BlueprintName = "Example"
ReferencedContainer = "container:SCForceUpdate.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</ProfileAction>
Expand Down
28 changes: 28 additions & 0 deletions Example/SCForceUpdate/AppDelegate.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
//
// AppDelegate.swift
// SCForceUpdate
//
// Created by Bruno Muniz on 08/07/2018.
// Copyright (c) 2018 Bruno Muniz. All rights reserved.
//

import UIKit
import SCForceUpdate

@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {
var window: UIWindow?

func application(_ application: UIApplication,
didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {

SCForceUpdater.sharedUpdater.set(itunesAppId: "iTunesAppId",
baseURL: "http://localhost:4567",
versionAPIEndpoint: "versions/ios")
return true
}

func applicationDidBecomeActive(_ application: UIApplication) {
SCForceUpdater.sharedUpdater.checkForUpdate()
}
}
46 changes: 46 additions & 0 deletions Example/SCForceUpdate/Base.lproj/LaunchScreen.xib
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="13771" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" colorMatched="YES">
<device id="retina4_7" orientation="portrait">
<adaptation id="fullscreen"/>
</device>
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="13772"/>
<capability name="Constraints with non-1.0 multipliers" minToolsVersion="5.1"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</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="SCForceUpdate" 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" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<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
@@ -1,47 +1,43 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="6751" systemVersion="13F34" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" initialViewController="vXZ-lx-hvc">
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="14113" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES" initialViewController="vXZ-lx-hvc">
<device id="retina4_7" orientation="portrait">
<adaptation id="fullscreen"/>
</device>
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="6736"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="14088"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<scenes>
<!--View Controller-->
<scene sceneID="ufC-wZ-h7g">
<objects>
<viewController id="vXZ-lx-hvc" customClass="SCViewController" sceneMemberID="viewController">
<viewController id="vXZ-lx-hvc" customClass="ViewController" customModule="SCForceUpdate_Example" customModuleProvider="target" sceneMemberID="viewController">
<layoutGuides>
<viewControllerLayoutGuide type="top" id="jyV-Pf-zRb"/>
<viewControllerLayoutGuide type="bottom" id="2fi-mo-0CV"/>
</layoutGuides>
<view key="view" contentMode="scaleToFill" id="kh9-bI-dsS">
<rect key="frame" x="0.0" y="0.0" width="320" height="568"/>
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<subviews>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="thH-1C-kwE">
<rect key="frame" x="97" y="269" width="126" height="30"/>
<state key="normal" title="Check For Update">
<color key="titleShadowColor" white="0.5" alpha="1" colorSpace="calibratedWhite"/>
</state>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="Hr8-f1-RLd">
<rect key="frame" x="124" y="318.5" width="127" height="30"/>
<state key="normal" title="Check for updates"/>
<connections>
<action selector="checkForUpdateButtonClicked:" destination="vXZ-lx-hvc" eventType="touchUpInside" id="gjN-Vh-549"/>
<action selector="checkForUpdates" destination="vXZ-lx-hvc" eventType="touchUpInside" id="vFQ-Mt-1a1"/>
</connections>
</button>
</subviews>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<constraints>
<constraint firstAttribute="centerY" secondItem="thH-1C-kwE" secondAttribute="centerY" id="fbA-fM-yDt"/>
<constraint firstAttribute="centerX" secondItem="thH-1C-kwE" secondAttribute="centerX" id="oCa-2t-TKg"/>
<constraint firstItem="Hr8-f1-RLd" firstAttribute="centerX" secondItem="kh9-bI-dsS" secondAttribute="centerX" id="b8O-cu-RQq"/>
<constraint firstItem="Hr8-f1-RLd" firstAttribute="centerY" secondItem="kh9-bI-dsS" secondAttribute="centerY" id="f82-P1-QjS"/>
</constraints>
</view>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="x5A-6p-PRh" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="248" y="83"/>
</scene>
</scenes>
<simulatedMetricsContainer key="defaultSimulatedMetrics">
<simulatedStatusBarMetrics key="statusBar"/>
<simulatedOrientationMetrics key="orientation"/>
<simulatedScreenMetrics key="destination" type="retina4"/>
</simulatedMetricsContainer>
</document>
Original file line number Diff line number Diff line change
Expand Up @@ -2,48 +2,48 @@
"images" : [
{
"idiom" : "iphone",
"size" : "29x29",
"size" : "20x20",
"scale" : "2x"
},
{
"idiom" : "iphone",
"size" : "40x40",
"scale" : "2x"
"size" : "20x20",
"scale" : "3x"
},
{
"idiom" : "iphone",
"size" : "60x60",
"size" : "29x29",
"scale" : "2x"
},
{
"idiom" : "ipad",
"idiom" : "iphone",
"size" : "29x29",
"scale" : "1x"
"scale" : "3x"
},
{
"idiom" : "ipad",
"size" : "29x29",
"idiom" : "iphone",
"size" : "40x40",
"scale" : "2x"
},
{
"idiom" : "ipad",
"idiom" : "iphone",
"size" : "40x40",
"scale" : "1x"
"scale" : "3x"
},
{
"idiom" : "ipad",
"size" : "40x40",
"idiom" : "iphone",
"size" : "60x60",
"scale" : "2x"
},
{
"idiom" : "ipad",
"size" : "76x76",
"scale" : "1x"
"idiom" : "iphone",
"size" : "60x60",
"scale" : "3x"
},
{
"idiom" : "ipad",
"size" : "76x76",
"scale" : "2x"
"idiom" : "ios-marketing",
"size" : "1024x1024",
"scale" : "1x"
}
],
"info" : {
Expand Down
Loading