Move to Samples
MODIFY
.travis.yml
.travis.yml
@@ -262,15 +262,16 @@ matrix:
- bundle exec pod install
- language: swift
- name: "Swift - WorkflowSplitScreenContainer Snapshot Tests - Cocoapods (Xcode 10.2)"
+ name: "Swift - SplitScreenContainer Snapshot Tests - Cocoapods (Xcode 10.2)"
os: osx
osx_image: xcode10.2
- xcode_workspace: WorkflowSplitScreenContainer.xcworkspace
- xcode_scheme: WorkflowSplitScreenContainer-Unit-SnapshotTests
+ xcode_workspace: SplitScreenContainer.xcworkspace
+ xcode_scheme: SplitScreenContainer-Unit-SnapshotTests
xcode_destination: platform=iOS Simulator,OS=12.2,name=iPad Pro (9.7-inch)
before_install:
- yes | gem update --system
- gem install bundler
+ - cd swift/Samples/SplitScreenContainer
- bundle install
- - WORKFLOW_VERSION=$(git describe --tags $(git rev-list --tags --max-count=1) | sed s/v//) pod gen WorkflowSplitScreenContainer.podspec
- - cd gen/WorkflowSplitScreenContainer
+ - pod gen SplitScreenContainer.podspec
+ - cd gen/SplitScreenContainer

DELETE
WorkflowSplitScreenContainer.podspec
-Pod::Spec.new do |s|
- s.name = 'WorkflowSplitScreenContainer'
- s.version = '0.23.0'
- s.summary = 'See the README.'
- s.homepage = 'https://www.github.com/square/workflow'
- s.license = 'Apache License, Version 2.0'
- s.author = 'Square'
- s.source = { :git => 'https://github.com/square/workflow.git', :tag => "v#{s.version}" }
-
- # 1.7 is needed for `swift_versions` support
- s.cocoapods_version = '>= 1.7.0.beta.1'
-
- s.swift_versions = ['5.0']
- s.ios.deployment_target = '9.3'
-
- s.source_files = 'swift/WorkflowSplitScreenContainer/Sources/**/*.swift'
-
- s.dependency 'Workflow', "#{ENV['WORKFLOW_VERSION'] || s.version}"
- s.dependency 'WorkflowUI', "#{ENV['WORKFLOW_VERSION'] || s.version}"
-
- s.app_spec 'DemoApp' do |app_spec|
- app_spec.source_files = 'swift/WorkflowSplitScreenContainer/DemoApp/**/*.swift'
- end
-
- s.test_spec 'SnapshotTests' do |test_spec|
- test_spec.requires_app_host = true
- test_spec.source_files = 'swift/WorkflowSplitScreenContainer/SnapshotTests/**/*.swift'
-
- test_spec.framework = 'XCTest'
-
- test_spec.dependency 'iOSSnapshotTestCase'
-
- test_spec.scheme = {
- environment_variables: {
- 'FB_REFERENCE_IMAGE_DIR' => '$PODS_TARGET_SRCROOT/swift/WorkflowSplitScreenContainer/SnapshotTests/ReferenceImages',
- 'IMAGE_DIFF_DIR' => '$PODS_TARGET_SRCROOT/swift/WorkflowSplitScreenContainer/SnapshotTests/FailureDiffs'
- }
- }
- end
-
-end

RENAME
swift/WorkflowSplitScreenContainer/DemoApp/AppDelegate.swift
swift/Samples/SplitScreenContainer/DemoApp/AppDelegate.swift
RENAME
swift/WorkflowSplitScreenContainer/DemoApp/BaseScreen.swift
swift/Samples/SplitScreenContainer/DemoApp/BaseScreen.swift
RENAME
swift/WorkflowSplitScreenContainer/DemoApp/DemoWorkflow.swift
swift/Samples/SplitScreenContainer/DemoApp/DemoWorkflow.swift
*/
import Workflow
import WorkflowUI
-import WorkflowSplitScreenContainer
+import SplitScreenContainer
// MARK: Input and Output

RENAME
swift/WorkflowSplitScreenContainer/README.md
swift/Samples/SplitScreenContainer/README.md
-# WorkflowSplitScreenContainer
+# SplitScreenContainer
Container to display two screens side by side.

RENAME
swift/WorkflowSplitScreenContainer/SnapshotTests/ReferenceImages_64/WorkflowSplitScreenContainer_Unit_SnapshotTests.SplitScreenContainerScreenSnapshotTests/test_splitRatio_custom@2x.png
swift/Samples/SplitScreenContainer/SnapshotTests/ReferenceImages_64/SplitScreenContainer_Unit_SnapshotTests.SplitScreenContainerScreenSnapshotTests/test_splitRatio_custom@2x.png
RENAME
swift/WorkflowSplitScreenContainer/SnapshotTests/ReferenceImages_64/WorkflowSplitScreenContainer_Unit_SnapshotTests.SplitScreenContainerScreenSnapshotTests/test_splitRatio_half@2x.png
swift/Samples/SplitScreenContainer/SnapshotTests/ReferenceImages_64/SplitScreenContainer_Unit_SnapshotTests.SplitScreenContainerScreenSnapshotTests/test_splitRatio_half@2x.png
RENAME
swift/WorkflowSplitScreenContainer/SnapshotTests/ReferenceImages_64/WorkflowSplitScreenContainer_Unit_SnapshotTests.SplitScreenContainerScreenSnapshotTests/test_splitRatio_quarter@2x.png
swift/Samples/SplitScreenContainer/SnapshotTests/ReferenceImages_64/SplitScreenContainer_Unit_SnapshotTests.SplitScreenContainerScreenSnapshotTests/test_splitRatio_quarter@2x.png
RENAME
swift/WorkflowSplitScreenContainer/SnapshotTests/ReferenceImages_64/WorkflowSplitScreenContainer_Unit_SnapshotTests.SplitScreenContainerScreenSnapshotTests/test_splitRatio_third@2x.png
swift/Samples/SplitScreenContainer/SnapshotTests/ReferenceImages_64/SplitScreenContainer_Unit_SnapshotTests.SplitScreenContainerScreenSnapshotTests/test_splitRatio_third@2x.png
RENAME
swift/WorkflowSplitScreenContainer/SnapshotTests/SplitScreenContainerScreenSnapshotTests.swift
swift/Samples/SplitScreenContainer/SnapshotTests/SplitScreenContainerScreenSnapshotTests.swift
@@ -2,7 +2,7 @@ import Workflow
import WorkflowUI
import XCTest
import FBSnapshotTestCase
-@testable import WorkflowSplitScreenContainer
+@testable import SplitScreenContainer
class SplitScreenContainerScreenSnapshotTests: FBSnapshotTestCase {

RENAME
swift/WorkflowSplitScreenContainer/Sources/SplitScreenContainerScreen.swift
swift/Samples/SplitScreenContainer/Sources/SplitScreenContainerScreen.swift
RENAME
swift/WorkflowSplitScreenContainer/Sources/SplitScreenContainerViewController.swift
swift/Samples/SplitScreenContainer/Sources/SplitScreenContainerViewController.swift
ADD
swift/Samples/SplitScreenContainer/SplitScreenContainer.podspec
+Pod::Spec.new do |s|
+ s.name = 'SplitScreenContainer'
+ s.version = '1.0.0.LOCAL'
+ s.summary = 'See the README.'
+ s.homepage = 'https://www.github.com/square/workflow'
+ s.license = 'Apache License, Version 2.0'
+ s.author = 'Square'
+ s.source = { git: 'Not Published', tag: "podify/#{s.version}" }
+
+ # 1.7 is needed for `swift_versions` support
+ s.cocoapods_version = '>= 1.7.0.beta.1'
+
+ s.swift_versions = ['5.0']
+ s.ios.deployment_target = '9.3'
+
+ s.source_files = 'Sources/**/*.swift'
+
+ s.dependency 'Workflow'
+ s.dependency 'WorkflowUI'
+
+ s.app_spec 'DemoApp' do |app_spec|
+ app_spec.source_files = 'DemoApp/**/*.swift'
+ end
+
+ s.test_spec 'SnapshotTests' do |test_spec|
+ test_spec.requires_app_host = true
+ test_spec.source_files = 'SnapshotTests/**/*.swift'
+
+ test_spec.framework = 'XCTest'
+
+ test_spec.dependency 'iOSSnapshotTestCase'
+
+ test_spec.scheme = {
+ environment_variables: {
+ 'FB_REFERENCE_IMAGE_DIR' => '$PODS_TARGET_SRCROOT/SnapshotTests/ReferenceImages',
+ 'IMAGE_DIFF_DIR' => '$PODS_TARGET_SRCROOT/SnapshotTests/FailureDiffs'
+ }
+ }
+ end
+
+end

Move to Samples