forked from AzureAD/azure-activedirectory-library-for-objc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathADAL.podspec
72 lines (60 loc) · 3.4 KB
/
ADAL.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
Pod::Spec.new do |s|
s.name = "ADAL"
s.module_name = "ADAL"
s.version = "2.2.0"
s.summary = "The ADAL SDK for iOS gives you the ability to add Azure Identity authentication to your application"
s.description = <<-DESC
The Azure Identity Library for Objective C. This library gives you the ability to add support for Work Accounts to your iOS and OS X applications with just a few lines of additional code. This SDK gives your application the full functionality of Microsoft Azure AD, including industry standard protocol support for OAuth2, Web API integration with user level consent, and two factor authentication support.
DESC
s.homepage = "https://github.com/AzureAD/azure-activedirectory-library-for-objc"
s.license = {
:type => "MIT",
:file => "LICENSE.txt"
}
s.authors = { "Brandon Werner" => "[email protected]" }
s.social_media_url = "https://twitter.com/azuread"
s.platform = :ios, :osx
s.ios.deployment_target = "8.0"
s.osx.deployment_target = "10.10"
s.source = {
:git => "https://github.com/AzureAD/azure-activedirectory-library-for-objc.git",
:tag => s.version.to_s
}
s.header_dir = "ADAL"
s.prefix_header_file = "ADAL/src/ADAL.pch"
s.source_files = "ADAL/src/**/*.{h,m}"
s.public_header_files = "ADAL/src/public/*.h"
# There is currently a bug in CocoaPods where it doesn't combine the public headers
# for both the platform and overall.
s.ios.public_header_files = "ADAL/src/public/*.h","ADAL/src/public/ios/*.h"
s.ios.exclude_files = "ADAL/src/**/mac/*"
s.osx.public_header_files = "ADAL/src/public/mac/*.h","ADAL/src/public/*.h"
s.osx.exclude_files = "ADAL/src/**/ios/*"
s.module_map = "ADAL/resources/mac/adal_mac.modulemap"
s.osx.resources = "ADAL/resources/mac/ADCredentialViewController.xib"
s.exclude_files = "ADAL/src/broker/ios/ADBrokerKeyHelper.m","ADAL/src/cache/ios/ADKeychainTokenCache.m","ADAL/src/workplacejoin/ios/ADWorkPlaceJoinUtil.m"
s.requires_arc = true
# This is a hack because one of the headers is public on mac but private on ios
s.subspec 'tokencacheheader' do |ph|
ph.platform = :ios
ph.ios.source_files = "ADAL/src/public/mac/ADTokenCache.h","ADAL/src/public/ios/*.h"
# This extra nonsense is so that it doesn't make ADTokenCache.h a public header on iOS
# And also doesn't generate a podspec warning
ph.ios.public_header_files = "ADAL/src/public/*.h","ADAL/src/public/ios/*.h"
end
s.subspec 'iosinternalheaders' do |hds|
hds.platform = :osx
hds.osx.source_files = "ADAL/src/workplacejoin/ios/ADWorkplaceJoinConstants.h","ADAL/src/broker/ios/*.h","ADAL/src/public/mac/*.h"
hds.osx.public_header_files = "ADAL/src/public/*.h","ADAL/src/public/mac/*.h"
end
# This is the only way cocoapods has of dealing with a handful of files that don't use
# ARC. Why they make this significantly more difficult, I don't know.
s.subspec 'no-arc' do |noarc|
noarc.platform = :ios
noarc.ios.source_files = "ADAL/src/**/*.h","ADAL/src/broker/ios/ADBrokerKeyHelper.m","ADAL/src/cache/ios/ADKeychainTokenCache.m","ADAL/src/workplacejoin/ios/ADWorkPlaceJoinUtil.m"
noarc.ios.public_header_files = "ADAL/src/public/*.h","ADAL/src/public/*.h"
noarc.ios.public_header_files = "ADAL/src/public/*.h","ADAL/src/public/ios/*.h"
noarc.ios.exclude_files = "ADAL/src/**/mac/*"
noarc.requires_arc = false
end
end