Skip to content
This repository has been archived by the owner on Jan 17, 2023. It is now read-only.

Use module import if available #132

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion AFOAuth2Manager/AFHTTPRequestSerializer+OAuth2.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,11 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.

#import <AFNetworking/AFURLRequestSerialization.h>
#if __has_feature(modules)
@import AFNetworking;
#else
#import <AFNetworking/AFURLRequestSerialization.h>
#endif

@class AFOAuthCredential;

Expand Down
9 changes: 7 additions & 2 deletions AFOAuth2Manager/AFOAuth2Manager.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,15 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE

#import <Foundation/Foundation.h>
#if __has_feature(modules)
@import Foundation;
@import AFNetworking;
#else
#import <Foundation/Foundation.h>
#import <AFNetworking/AFHTTPSessionManager.h>
#endif
#import "AFOAuthCredential.h"
#import "AFHTTPRequestSerializer+OAuth2.h"
#import <AFNetworking/AFHTTPSessionManager.h>

NS_ASSUME_NONNULL_BEGIN

Expand Down
6 changes: 5 additions & 1 deletion AFOAuth2Manager/AFOAuthCredential.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,11 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.

#import <Foundation/Foundation.h>
#if __has_feature(modules)
@import Foundation;
#else
#import <Foundation/Foundation.h>
#endif

NS_ASSUME_NONNULL_BEGIN

Expand Down