forked from uber/ios-snapshot-test-case
-
Notifications
You must be signed in to change notification settings - Fork 1
/
iOSSnapshotTestCase.podspec
35 lines (35 loc) · 1.81 KB
/
iOSSnapshotTestCase.podspec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
Pod::Spec.new do |s|
s.name = "iOSSnapshotTestCase"
s.module_name = "FBSnapshotTestCase"
s.version = "6.2.0"
s.summary = "Snapshot view unit tests for iOS"
s.description = <<-DESC
A "snapshot test case" takes a configured UIView or CALayer
and uses the renderInContext: method to get an image snapshot
of its contents. It compares this snapshot to a "reference image"
stored in your source code repository and fails the test if the
two images don't match.
DESC
s.homepage = "https://github.com/uber/ios-snapshot-test-case"
s.license = 'MIT'
s.author = 'Uber'
s.source = { :git => "https://github.com/uber/ios-snapshot-test-case.git",
:tag => s.version.to_s }
s.ios.deployment_target = '10.0'
s.tvos.deployment_target = '10.0'
s.swift_version = '5.1'
s.requires_arc = true
s.frameworks = 'XCTest','UIKit','Foundation','QuartzCore'
s.pod_target_xcconfig = { 'ENABLE_BITCODE' => 'NO' }
s.user_target_xcconfig = { 'FRAMEWORK_SEARCH_PATHS' => '$(PLATFORM_DIR)/Developer/Library/Frameworks' }
s.default_subspecs = 'SwiftSupport'
s.subspec 'Core' do |cs|
cs.source_files = 'FBSnapshotTestCase/**/*.{h,m}', 'FBSnapshotTestCase/*.{h,m}'
cs.public_header_files = 'FBSnapshotTestCase/FBSnapshotTestCase.h','FBSnapshotTestCase/FBSnapshotTestCasePlatform.h','FBSnapshotTestCase/FBSnapshotTestController.h'
cs.private_header_files = 'FBSnapshotTestCase/Categories/UIImage+Compare.h','FBSnapshotTestCase/Categories/UIImage+Diff.h','FBSnapshotTestCase/Categories/UIImage+Snapshot.h'
end
s.subspec 'SwiftSupport' do |cs|
cs.dependency 'iOSSnapshotTestCase/Core'
cs.source_files = 'FBSnapshotTestCase/**/*.swift'
end
end