Skip to content

Commit b5aa496

Browse files
committed
Update to 6.0.0
1 parent cf53b4c commit b5aa496

File tree

6 files changed

+26
-18
lines changed

6 files changed

+26
-18
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

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

5+
## 6.0.0
6+
7+
- 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.
8+
- 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.
9+
510
## 5.0.2
611

712
- 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).

FBSnapshotTestCaseDemo/FBSnapshotTestCaseDemo.xcodeproj/project.pbxproj

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@
411411
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
412412
GCC_WARN_UNUSED_FUNCTION = YES;
413413
GCC_WARN_UNUSED_VARIABLE = YES;
414-
IPHONEOS_DEPLOYMENT_TARGET = 8.1;
414+
IPHONEOS_DEPLOYMENT_TARGET = 10.0;
415415
MTL_ENABLE_DEBUG_INFO = YES;
416416
ONLY_ACTIVE_ARCH = YES;
417417
SDKROOT = iphoneos;
@@ -458,7 +458,7 @@
458458
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
459459
GCC_WARN_UNUSED_FUNCTION = YES;
460460
GCC_WARN_UNUSED_VARIABLE = YES;
461-
IPHONEOS_DEPLOYMENT_TARGET = 8.1;
461+
IPHONEOS_DEPLOYMENT_TARGET = 10.0;
462462
MTL_ENABLE_DEBUG_INFO = NO;
463463
SDKROOT = iphoneos;
464464
SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
@@ -473,7 +473,7 @@
473473
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
474474
ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = "Brand Assets";
475475
INFOPLIST_FILE = "FBSnapshotTestCaseDemo/FBSnapshotTestCaseDemo-Info.plist";
476-
IPHONEOS_DEPLOYMENT_TARGET = 8.1;
476+
IPHONEOS_DEPLOYMENT_TARGET = 10.0;
477477
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
478478
PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.${PRODUCT_NAME:rfc1034identifier}";
479479
PRODUCT_NAME = "$(TARGET_NAME)";
@@ -488,7 +488,7 @@
488488
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
489489
ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = "Brand Assets";
490490
INFOPLIST_FILE = "FBSnapshotTestCaseDemo/FBSnapshotTestCaseDemo-Info.plist";
491-
IPHONEOS_DEPLOYMENT_TARGET = 8.1;
491+
IPHONEOS_DEPLOYMENT_TARGET = 10.0;
492492
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
493493
PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.${PRODUCT_NAME:rfc1034identifier}";
494494
PRODUCT_NAME = "$(TARGET_NAME)";
@@ -511,6 +511,7 @@
511511
"$(inherited)",
512512
);
513513
INFOPLIST_FILE = "FBSnapshotTestCaseDemoTests/FBSnapshotTestCaseDemoTests-Info.plist";
514+
IPHONEOS_DEPLOYMENT_TARGET = 10.0;
514515
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
515516
PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.${PRODUCT_NAME:rfc1034identifier}";
516517
PRODUCT_NAME = "$(TARGET_NAME)";
@@ -531,6 +532,7 @@
531532
"$(inherited)",
532533
);
533534
INFOPLIST_FILE = "FBSnapshotTestCaseDemoTests/FBSnapshotTestCaseDemoTests-Info.plist";
535+
IPHONEOS_DEPLOYMENT_TARGET = 10.0;
534536
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
535537
PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.${PRODUCT_NAME:rfc1034identifier}";
536538
PRODUCT_NAME = "$(TARGET_NAME)";

FBSnapshotTestCaseDemo/Podfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
source 'https://github.com/CocoaPods/Specs.git'
2-
platform :ios, '8.1'
2+
platform :ios, '10.0'
33

44
use_frameworks!
55

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
PODS:
2-
- iOSSnapshotTestCase (5.0.2):
3-
- iOSSnapshotTestCase/SwiftSupport (= 5.0.2)
4-
- iOSSnapshotTestCase/Core (5.0.2)
5-
- iOSSnapshotTestCase/SwiftSupport (5.0.2):
2+
- iOSSnapshotTestCase (6.0.0):
3+
- iOSSnapshotTestCase/SwiftSupport (= 6.0.0)
4+
- iOSSnapshotTestCase/Core (6.0.0)
5+
- iOSSnapshotTestCase/SwiftSupport (6.0.0):
66
- iOSSnapshotTestCase/Core
77

88
DEPENDENCIES:
@@ -13,8 +13,8 @@ EXTERNAL SOURCES:
1313
:path: ".."
1414

1515
SPEC CHECKSUMS:
16-
iOSSnapshotTestCase: 19a0a2b60338674225648fcb7e51a7daa4ef6741
16+
iOSSnapshotTestCase: 9b95a8aa68d62c1000c39776961caef32f82b57b
1717

18-
PODFILE CHECKSUM: a061ccaab7eb93ce08d3ae9762dd084a5d79c5ca
18+
PODFILE CHECKSUM: 3cfb4936a589aa465c6539dd9821f63a5df59343
1919

2020
COCOAPODS: 1.5.3

docs/HowToRelease.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
= How to Release =
22
1. Update the CHANGELOG.md
3-
2. Tag the commit in master with `git tag version-number`; e.g., `git tag 0.0.1`
4-
3. Push the tag with `git push --tags`
5-
4. `pod trunk push iOSSnapshotTestCase.podspec`
6-
5. `carthage build --archive --configuration Debug`
7-
2. Upload the `FBSnapshotTestCase.framework.zip` to the tagged release on Github for the version number
3+
2. Update iOSSnapshotTestCase.podspec
4+
3. Tag the commit in master with `git tag version-number`; e.g., `git tag 0.0.1`
5+
4. Push the tag with `git push --tags`
6+
5. `pod trunk push iOSSnapshotTestCase.podspec`
7+
6. `carthage build --archive --configuration Debug`
8+
7. Upload the `FBSnapshotTestCase.framework.zip` to the tagged release on Github for the version number

iOSSnapshotTestCase.podspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Pod::Spec.new do |s|
22
s.name = "iOSSnapshotTestCase"
33
s.module_name = "FBSnapshotTestCase"
4-
s.version = "5.0.2"
4+
s.version = "6.0.0"
55
s.summary = "Snapshot view unit tests for iOS"
66
s.description = <<-DESC
77
A "snapshot test case" takes a configured UIView or CALayer
@@ -15,7 +15,7 @@ Pod::Spec.new do |s|
1515
s.author = 'Uber'
1616
s.source = { :git => "https://github.com/uber/ios-snapshot-test-case.git",
1717
:tag => s.version.to_s }
18-
s.ios.deployment_target = '8.1'
18+
s.ios.deployment_target = '10.0'
1919
s.tvos.deployment_target = '9.0'
2020
s.requires_arc = true
2121
s.frameworks = 'XCTest','UIKit','Foundation','QuartzCore'

0 commit comments

Comments
 (0)