Skip to content

Commit

Permalink
Update sample project for Xcode 9 and Swift 4.0 (#9)
Browse files Browse the repository at this point in the history
* update pods and tests for xcode 9

* update Swift version to 4.0

* update test images

* update reference snapshots

* convert StyledText to Swift 4

* pods swift version => 4.0

* back to nimble 7.0.2
  • Loading branch information
huebnerob authored Dec 5, 2017
1 parent a73d528 commit 1933521
Show file tree
Hide file tree
Showing 216 changed files with 5,396 additions and 3,099 deletions.
24 changes: 20 additions & 4 deletions Example/Podfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,29 @@
use_frameworks!

platform :ios, '9.0'

target 'StyledText_Example' do
pod 'StyledText', :path => '../'
pod 'Nimble', '~> 5.1.1'

target 'StyledText_Tests' do
inherit! :search_paths
pod 'Quick', '~> 1.0.0'
pod 'FBSnapshotTestCase'
pod 'Nimble-Snapshots'
pod 'Quick', '~> 1.2.0'
pod 'Nimble', '= 7.0.2'
pod 'FBSnapshotTestCase', '~> 2.0'
pod 'Nimble-Snapshots', '~> 6.3.0'
end
end

# Hack until `swift_version` is added to the podspec https://github.com/CocoaPods/CocoaPods/issues/7134
swift4 = ['Quick', 'Nimble', 'FBSnapshotTestCase', 'Nimble-Snapshots']

post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['PROVISIONING_PROFILE_SPECIFIER'] = ''
if swift4.include?(target.name)
config.build_settings['SWIFT_VERSION'] = swift_version = '4.0'
end
end
end
end
35 changes: 17 additions & 18 deletions Example/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,20 @@ PODS:
- FBSnapshotTestCase/Core (2.1.4)
- FBSnapshotTestCase/SwiftSupport (2.1.4):
- FBSnapshotTestCase/Core
- Nimble (5.1.1)
- Nimble-Snapshots (4.4.0):
- Nimble-Snapshots/Core (= 4.4.0)
- Nimble-Snapshots/Core (4.4.0):
- Nimble (7.0.2)
- Nimble-Snapshots (6.3.0):
- Nimble-Snapshots/Core (= 6.3.0)
- Nimble-Snapshots/Core (6.3.0):
- FBSnapshotTestCase (~> 2.0)
- Nimble
- Quick
- Quick (1.0.0)
- StyledText (0.1.0)
- Nimble (~> 7.0)
- Quick (1.2.0)
- StyledText (1.0.0)

DEPENDENCIES:
- FBSnapshotTestCase
- Nimble (~> 5.1.1)
- Nimble-Snapshots
- Quick (~> 1.0.0)
- FBSnapshotTestCase (~> 2.0)
- Nimble (= 7.0.2)
- Nimble-Snapshots (~> 6.3.0)
- Quick (~> 1.2.0)
- StyledText (from `../`)

EXTERNAL SOURCES:
Expand All @@ -27,11 +26,11 @@ EXTERNAL SOURCES:

SPEC CHECKSUMS:
FBSnapshotTestCase: 094f9f314decbabe373b87cc339bea235a63e07a
Nimble: 415e3aa3267e7bc2c96b05fa814ddea7bb686a29
Nimble-Snapshots: e743439f26c2fa99d8f7e0d7c01c99bcb40aa6f2
Quick: 8024e4a47e6cc03a9d5245ef0948264fc6d27cff
StyledText: 26298547ea0cf16417af826903b61e359ef9f474
Nimble: bfe1f814edabba69ff145cb1283e04ed636a67f2
Nimble-Snapshots: f5459b5b091678dc942d03ec4741cacb58ba4a52
Quick: 58d203b1c5e27fff7229c4c1ae445ad7069a7a08
StyledText: 98e993a39e4ee351912033e1a495f1cdc02dfdfa

PODFILE CHECKSUM: 63185942349bf29b5010096b57ff6b02aaaffc6c
PODFILE CHECKSUM: 93ee1fefce57920b1899c41d81505138743fcfac

COCOAPODS: 1.2.1
COCOAPODS: 1.3.1
17 changes: 9 additions & 8 deletions Example/Pods/Local Podspecs/StyledText.podspec.json

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

35 changes: 17 additions & 18 deletions Example/Pods/Manifest.lock

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

38 changes: 38 additions & 0 deletions Example/Pods/Nimble-Snapshots/CurrentTestCaseTracker.swift

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

Loading

0 comments on commit 1933521

Please sign in to comment.