Skip to content

Commit

Permalink
Merge pull request #619 from AzureAD/oldalton/flip_cocoapods_flags
Browse files Browse the repository at this point in the history
Flip legacy accounts flag
  • Loading branch information
oldalton authored Jul 31, 2019
2 parents fce2fc6 + 7ecf6b1 commit 69b7d2f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions MSAL.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ Pod::Spec.new do |s|

app.osx.exclude_files = "MSAL/src/**/ios/*", "MSAL/IdentityCore/IdentityCore/src/**/ios/*"
app.requires_arc = true
app.prefix_header_contents = "#define MSAL_LEGACY_ACCOUNTS_DISABLED 1"
end

# Note, MSAL has limited support for running in app extensions.
Expand All @@ -50,7 +51,7 @@ Pod::Spec.new do |s|
# 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/*"
ext.prefix_header_contents = "#define MSAL_LEGACY_ACCOUNTS_DISABLED 1"
ext.requires_arc = true
end

Expand All @@ -64,7 +65,6 @@ Pod::Spec.new do |s|

legacyapp.osx.exclude_files = "MSAL/src/**/ios/*", "MSAL/IdentityCore/IdentityCore/src/**/ios/*", "MSAL/src-internal/public/ios/*"
legacyapp.requires_arc = true
legacyapp.compiler_flags = '-DMSAL_LEGACY_ENABLED=1'

end

Expand Down
2 changes: 1 addition & 1 deletion MSAL/src/public/MSAL.h
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,6 @@ FOUNDATION_EXPORT const unsigned char MSAL__Framework_VersionString[];
#import <MSAL/MSALAccountEnumerationParameters.h>
#import <MSAL/MSALExternalAccountProviding.h>
#import <MSAL/MSALSerializedADALCacheProvider.h>
#ifdef MSAL_LEGACY_ENABLED
#ifndef MSAL_LEGACY_ACCOUNTS_DISABLED
#import <MSAL/MSALLegacySharedAccountsProvider.h>
#endif

0 comments on commit 69b7d2f

Please sign in to comment.