Skip to content

Commit

Permalink
Update to 6.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
alanzeino committed Jan 22, 2019
1 parent cf53b4c commit b5aa496
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 18 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

All notable changes to this project will be documented in this file.

## 6.0.0

- We deleted the `agnosticOptions` and `deviceAgnostic` properties. We didn't want to do this initially but we thought it was good to make a clean break from the old properties that had incorrect naming, as well as adding a new property (`fileNameOptions`) that includes screen scale as an option, so users of the library can choose to omit the screen scale from their file names.
- Deployment Target set to iOS 10.0. For our own sanity, we only want to support three major versions of iOS at a time. If you need to support iOS 8 and/or 9, you need to use version 5.0 of the library.

## 5.0.2

- Adds the ability to allow color changes for pixels. You can now set a 'pixel tolerance', which is a percentage for how much of a shift from any given color you allow on a per pixel basis. This can be useful for Xcode upgrades, when you change the iOS version (Base SDK) you use in your Simulator, or even to allow tests to run on multiple iOS versions at the same time. It can be used with `FBSnapshotVerifyViewWithPixelOptions` and `FBSnapshotVerifyLayerWithPixelOptions` (Thanks to @JerryTheIntern).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 8.1;
IPHONEOS_DEPLOYMENT_TARGET = 10.0;
MTL_ENABLE_DEBUG_INFO = YES;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = iphoneos;
Expand Down Expand Up @@ -458,7 +458,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 8.1;
IPHONEOS_DEPLOYMENT_TARGET = 10.0;
MTL_ENABLE_DEBUG_INFO = NO;
SDKROOT = iphoneos;
SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
Expand All @@ -473,7 +473,7 @@
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = "Brand Assets";
INFOPLIST_FILE = "FBSnapshotTestCaseDemo/FBSnapshotTestCaseDemo-Info.plist";
IPHONEOS_DEPLOYMENT_TARGET = 8.1;
IPHONEOS_DEPLOYMENT_TARGET = 10.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.${PRODUCT_NAME:rfc1034identifier}";
PRODUCT_NAME = "$(TARGET_NAME)";
Expand All @@ -488,7 +488,7 @@
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = "Brand Assets";
INFOPLIST_FILE = "FBSnapshotTestCaseDemo/FBSnapshotTestCaseDemo-Info.plist";
IPHONEOS_DEPLOYMENT_TARGET = 8.1;
IPHONEOS_DEPLOYMENT_TARGET = 10.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.${PRODUCT_NAME:rfc1034identifier}";
PRODUCT_NAME = "$(TARGET_NAME)";
Expand All @@ -511,6 +511,7 @@
"$(inherited)",
);
INFOPLIST_FILE = "FBSnapshotTestCaseDemoTests/FBSnapshotTestCaseDemoTests-Info.plist";
IPHONEOS_DEPLOYMENT_TARGET = 10.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.${PRODUCT_NAME:rfc1034identifier}";
PRODUCT_NAME = "$(TARGET_NAME)";
Expand All @@ -531,6 +532,7 @@
"$(inherited)",
);
INFOPLIST_FILE = "FBSnapshotTestCaseDemoTests/FBSnapshotTestCaseDemoTests-Info.plist";
IPHONEOS_DEPLOYMENT_TARGET = 10.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.${PRODUCT_NAME:rfc1034identifier}";
PRODUCT_NAME = "$(TARGET_NAME)";
Expand Down
2 changes: 1 addition & 1 deletion FBSnapshotTestCaseDemo/Podfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.1'
platform :ios, '10.0'

use_frameworks!

Expand Down
12 changes: 6 additions & 6 deletions FBSnapshotTestCaseDemo/Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
PODS:
- iOSSnapshotTestCase (5.0.2):
- iOSSnapshotTestCase/SwiftSupport (= 5.0.2)
- iOSSnapshotTestCase/Core (5.0.2)
- iOSSnapshotTestCase/SwiftSupport (5.0.2):
- iOSSnapshotTestCase (6.0.0):
- iOSSnapshotTestCase/SwiftSupport (= 6.0.0)
- iOSSnapshotTestCase/Core (6.0.0)
- iOSSnapshotTestCase/SwiftSupport (6.0.0):
- iOSSnapshotTestCase/Core

DEPENDENCIES:
Expand All @@ -13,8 +13,8 @@ EXTERNAL SOURCES:
:path: ".."

SPEC CHECKSUMS:
iOSSnapshotTestCase: 19a0a2b60338674225648fcb7e51a7daa4ef6741
iOSSnapshotTestCase: 9b95a8aa68d62c1000c39776961caef32f82b57b

PODFILE CHECKSUM: a061ccaab7eb93ce08d3ae9762dd084a5d79c5ca
PODFILE CHECKSUM: 3cfb4936a589aa465c6539dd9821f63a5df59343

COCOAPODS: 1.5.3
11 changes: 6 additions & 5 deletions docs/HowToRelease.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
= How to Release =
1. Update the CHANGELOG.md
2. Tag the commit in master with `git tag version-number`; e.g., `git tag 0.0.1`
3. Push the tag with `git push --tags`
4. `pod trunk push iOSSnapshotTestCase.podspec`
5. `carthage build --archive --configuration Debug`
2. Upload the `FBSnapshotTestCase.framework.zip` to the tagged release on Github for the version number
2. Update iOSSnapshotTestCase.podspec
3. Tag the commit in master with `git tag version-number`; e.g., `git tag 0.0.1`
4. Push the tag with `git push --tags`
5. `pod trunk push iOSSnapshotTestCase.podspec`
6. `carthage build --archive --configuration Debug`
7. Upload the `FBSnapshotTestCase.framework.zip` to the tagged release on Github for the version number
4 changes: 2 additions & 2 deletions iOSSnapshotTestCase.podspec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Pod::Spec.new do |s|
s.name = "iOSSnapshotTestCase"
s.module_name = "FBSnapshotTestCase"
s.version = "5.0.2"
s.version = "6.0.0"
s.summary = "Snapshot view unit tests for iOS"
s.description = <<-DESC
A "snapshot test case" takes a configured UIView or CALayer
Expand All @@ -15,7 +15,7 @@ Pod::Spec.new do |s|
s.author = 'Uber'
s.source = { :git => "https://github.com/uber/ios-snapshot-test-case.git",
:tag => s.version.to_s }
s.ios.deployment_target = '8.1'
s.ios.deployment_target = '10.0'
s.tvos.deployment_target = '9.0'
s.requires_arc = true
s.frameworks = 'XCTest','UIKit','Foundation','QuartzCore'
Expand Down

0 comments on commit b5aa496

Please sign in to comment.