@@ -14,12 +14,13 @@ Pod::Spec.new do |s|
14
14
s . social_media_url = "https://twitter.com/azuread"
15
15
s . platform = :ios , :osx
16
16
s . ios . deployment_target = "14.0"
17
- s . osx . deployment_target = "10.13 "
17
+ s . osx . deployment_target = "10.15 "
18
18
s . source = {
19
19
:git => "https://github.com/AzureAD/microsoft-authentication-library-for-objc.git" ,
20
20
:tag => s . version . to_s ,
21
21
:submodules => true
22
22
}
23
+ s . swift_versions = '5.0'
23
24
s . resource_bundles = { "MSAL" => [ "MSAL/PrivacyInfo.xcprivacy" ] }
24
25
s . default_subspecs = 'app-lib'
25
26
@@ -29,20 +30,20 @@ Pod::Spec.new do |s|
29
30
s . subspec 'app-lib' do |app |
30
31
app . pod_target_xcconfig = { 'CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF' => 'NO' }
31
32
app . source_files = "MSAL/src/**/*.{h,m}" , "MSAL/IdentityCore/IdentityCore/src/**/*.{h,m}"
32
- 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"
33
- app . osx . public_header_files = "MSAL/src/public/mac/*.h" , "MSAL/src/public/*.h" , "MSAL/src/public/configuration/**/*.h"
33
+ app . ios . public_header_files = "MSAL/src/public/ios/**/* .h" , "MSAL/src/public/*.h" , "MSAL/src/public/configuration/**/*.h" , "MSAL/src/native_auth/public/*.h"
34
+ app . osx . public_header_files = "MSAL/src/public/mac/**/* .h" , "MSAL/src/public/*.h" , "MSAL/src/public/configuration/**/*.h" , "MSAL/src/native_auth/public /*.h"
34
35
app . ios . exclude_files = "MSAL/src/**/mac/*" , "MSAL/IdentityCore/IdentityCore/src/**/mac/*"
35
- app . osx . exclude_files = "MSAL/src/**/ios/*" , "MSAL/IdentityCore/IdentityCore/src/**/ios/*" , "MSAL/src/native_auth/**/*"
36
+ app . osx . exclude_files = "MSAL/src/**/ios/*" , "MSAL/IdentityCore/IdentityCore/src/**/ios/*"
36
37
app . requires_arc = true
37
38
end
38
39
39
40
s . subspec 'native-auth' do |nat |
40
41
nat . pod_target_xcconfig = { 'CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF' => 'NO' , 'HEADER_SEARCH_PATHS' => "$SRCROOT/MSAL" }
41
42
nat . source_files = "MSAL/src/**/*.{h,m}" , "MSAL/src/native_auth/**/*.{h,m,swift}" , "MSAL/IdentityCore/IdentityCore/src/**/*.{h,m}" , "MSAL/module.modulemap"
42
43
nat . ios . public_header_files = "MSAL/src/public/*.h" , "MSAL/src/public/ios/**/*.h" , "MSAL/src/public/configuration/**/*.h" , "MSAL/src/native_auth/public/*.h"
43
- nat . osx . public_header_files = "MSAL/src/public/mac/ *.h" , "MSAL/src/public/* .h" , "MSAL/src/public/configuration/**/*.h"
44
+ nat . osx . public_header_files = "MSAL/src/public/*.h" , "MSAL/src/public/mac/**/* .h" , "MSAL/src/public/configuration/**/*.h" , "MSAL/src/native_auth/public /*.h"
44
45
nat . ios . exclude_files = "MSAL/src/**/mac/*" , "MSAL/IdentityCore/IdentityCore/src/**/mac/*"
45
- nat . osx . exclude_files = "MSAL/src/**/ios/*" , "MSAL/IdentityCore/IdentityCore/src/**/ios/*" , "MSAL/src/native_auth/**/*" , "MSAL/module.modulemap"
46
+ nat . osx . exclude_files = "MSAL/src/**/ios/*" , "MSAL/IdentityCore/IdentityCore/src/**/ios/*"
46
47
nat . requires_arc = true
47
48
end
48
49
@@ -51,13 +52,13 @@ Pod::Spec.new do |s|
51
52
ext . pod_target_xcconfig = { 'CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF' => 'NO' }
52
53
ext . compiler_flags = '-DADAL_EXTENSION_SAFE=1'
53
54
ext . source_files = "MSAL/src/**/*.{h,m}" , "MSAL/IdentityCore/IdentityCore/src/**/*.{h,m}"
54
- 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"
55
- ext . osx . public_header_files = "MSAL/src/public/mac/ *.h" , "MSAL/src/public/* .h" , "MSAL/src/public/configuration/**/*.h"
55
+ 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"
56
+ ext . osx . public_header_files = "MSAL/src/public/*.h" , "MSAL/src/public/mac/**/* .h" , "MSAL/src/public/configuration/**/*.h" , "MSAL/src/native_auth/public /*.h"
56
57
57
58
# There is currently a bug in CocoaPods where it doesn't combine the public headers
58
59
# for both the platform and overall.
59
60
ext . ios . exclude_files = "MSAL/src/**/mac/*" , "MSAL/IdentityCore/IdentityCore/src/**/mac/*"
60
- ext . osx . exclude_files = "MSAL/src/**/ios/*" , "MSAL/IdentityCore/IdentityCore/src/**/ios/*" , "MSAL/src/native_auth/**/*"
61
+ ext . osx . exclude_files = "MSAL/src/**/ios/*" , "MSAL/IdentityCore/IdentityCore/src/**/ios/*"
61
62
ext . requires_arc = true
62
63
end
63
64
0 commit comments