forked from atlassian/IDZSwiftCommonCrypto
-
Notifications
You must be signed in to change notification settings - Fork 0
/
IDZSwiftCommonCrypto.podspec
48 lines (38 loc) · 1.61 KB
/
IDZSwiftCommonCrypto.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
36
37
38
39
40
41
42
43
44
45
46
47
48
Pod::Spec.new do |s|
s.name = "IDZSwiftCommonCrypto"
s.version = "0.7.2"
s.summary = "A wrapper for Apple's Common Crypto library written in Swift."
s.homepage = "https://github.com/iosdevzone/IDZSwiftCommonCrypto"
s.license = "MIT"
s.author = { "iOSDevZone" => "[email protected]" }
s.social_media_url = "http://twitter.com/iOSDevZone"
s.osx.deployment_target = '10.10'
s.ios.deployment_target = '8.0'
s.tvos.deployment_target = '9.0'
s.watchos.deployment_target = '2.0'
s.source = { :git => "https://github.com/iosdevzone/IDZSwiftCommonCrypto.git", :tag => s.version.to_s }
#
# Create the dummy CommonCrypto.framework structures
#
s.prepare_command = <<-CMD
touch prepare_command.txt
echo 'Running prepare_command'
pwd
echo Running GenerateCommonCryptoModule
swift ./GenerateCommonCryptoModule.swift macosx .
swift ./GenerateCommonCryptoModule.swift iphonesimulator .
swift ./GenerateCommonCryptoModule.swift iphoneos .
swift ./GenerateCommonCryptoModule.swift appletvsimulator .
swift ./GenerateCommonCryptoModule.swift appletvos .
swift ./GenerateCommonCryptoModule.swift watchsimulator .
swift ./GenerateCommonCryptoModule.swift watchos .
CMD
s.source_files = "IDZSwiftCommonCrypto"
# Stop CocoaPods from deleting dummy frameworks
s.preserve_paths = "Frameworks"
# Make sure we can find the dummy frameworks
s.xcconfig = {
"SWIFT_INCLUDE_PATHS" => "${PODS_ROOT}/IDZSwiftCommonCrypto/Frameworks/$(PLATFORM_NAME)",
"FRAMEWORK_SEARCH_PATHS" => "${PODS_ROOT}/IDZSwiftCommonCrypto/Frameworks/$(PLATFORM_NAME)"
}
end