-
Notifications
You must be signed in to change notification settings - Fork 0
/
MSAL.podspec
53 lines (47 loc) · 3 KB
/
MSAL.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
Pod::Spec.new do |s|
s.name = "MSAL"
s.version = "1.2.21"
s.summary = "Microsoft Authentication Library (MSAL) for iOS"
s.description = <<-DESC
The MSAL library for iOS gives your app the ability to begin using the Microsoft Cloud by supporting Microsoft Azure Active Directory and Microsoft Accounts in a converged experience using industry standard OAuth2 and OpenID Connect. The library also supports Microsoft Azure B2C for those using our hosted identity management service.
DESC
s.homepage = "https://github.com/AzureAD/microsoft-authentication-library-for-objc"
s.license = {
:type => "MIT",
:file => "LICENSE"
}
s.authors = { "Microsoft" => "[email protected]" }
s.social_media_url = "https://twitter.com/azuread"
s.platform = :ios, :osx
s.ios.deployment_target = "14.0"
s.osx.deployment_target = "10.13"
s.source = {
:git => "https://github.com/AzureAD/microsoft-authentication-library-for-objc.git",
:tag => s.version.to_s,
:submodules => true
}
s.pod_target_xcconfig = { 'CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF' => 'NO', 'HEADER_SEARCH_PATHS' => "$SRCROOT/MSAL"}
s.default_subspecs ='app-lib'
s.prefix_header_file = "MSAL/src/MSAL.pch"
s.header_dir = "MSAL"
s.subspec 'app-lib' do |app|
app.source_files = "MSAL/src/**/*.{h,m}", "MSAL/src/native_auth/**/*.{h,m,swift}", "MSAL/IdentityCore/IdentityCore/src/**/*.{h,m}", "MSAL/module.modulemap"
app.ios.public_header_files = "MSAL/src/public/*.h","MSAL/src/public/ios/**/*.h", "MSAL/src/public/configuration/**/*.h", "MSAL/src/native_auth/public/*.h"
app.osx.public_header_files = "MSAL/src/public/mac/*.h","MSAL/src/public/*.h", "MSAL/src/public/configuration/**/*.h"
app.ios.exclude_files = "MSAL/src/**/mac/*", "MSAL/IdentityCore/IdentityCore/src/**/mac/*"
app.osx.exclude_files = "MSAL/src/**/ios/*", "MSAL/IdentityCore/IdentityCore/src/**/ios/*", "MSAL/src/native_auth/**/*", "MSAL/module.modulemap"
app.requires_arc = true
end
# Note, MSAL has limited support for running in app extensions.
s.subspec 'extension' do |ext|
ext.compiler_flags = '-DADAL_EXTENSION_SAFE=1'
ext.source_files = "MSAL/src/**/*.{h,m}", "MSAL/src/native_auth/**/*.{h,m,swift}", "MSAL/IdentityCore/IdentityCore/src/**/*.{h,m}", "MSAL/module.modulemap"
ext.ios.public_header_files = "MSAL/src/public/*.h","MSAL/src/public/ios/**/*.h", "MSAL/src/public/configuration/**/*.h", "MSAL/src/native_auth/public/*.h"
ext.osx.public_header_files = "MSAL/src/public/mac/*.h","MSAL/src/public/*.h", "MSAL/src/public/configuration/**/*.h"
# There is currently a bug in CocoaPods where it doesn't combine the public headers
# for both the platform and overall.
ext.ios.exclude_files = "MSAL/src/**/mac/*", "MSAL/IdentityCore/IdentityCore/src/**/mac/*"
ext.osx.exclude_files = "MSAL/src/**/ios/*", "MSAL/IdentityCore/IdentityCore/src/**/ios/*", "MSAL/src/native_auth/**/*", "MSAL/module.modulemap"
ext.requires_arc = true
end
end