From 5a439ac3dc3f8d4effe119548cc518b32536fbe2 Mon Sep 17 00:00:00 2001 From: Lawrence Forooghian Date: Wed, 12 Apr 2023 11:06:58 -0300 Subject: [PATCH] Replace usage of #include with #import MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit I can’t think of any reason why these should be #include (#import is normally always used in Objective-C code), so let’s be consistent with the rest of the codebase. --- Source/ARTTime.m | 4 ++-- Source/ARTTokenParams.m | 4 ++-- Source/PrivateHeaders/Ably/ARTEventEmitter+Private.h | 4 ++-- Source/PrivateHeaders/Ably/ARTFallback+Private.h | 2 +- Test/AblyTests-Bridging-Header.h | 6 +++--- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/Source/ARTTime.m b/Source/ARTTime.m index e91789269..79e56b67a 100644 --- a/Source/ARTTime.m +++ b/Source/ARTTime.m @@ -1,6 +1,6 @@ #import "ARTTime.h" -#include -#include +#import +#import @implementation ARTTime diff --git a/Source/ARTTokenParams.m b/Source/ARTTokenParams.m index 7657c6c3e..3c5f7a069 100644 --- a/Source/ARTTokenParams.m +++ b/Source/ARTTokenParams.m @@ -1,7 +1,7 @@ #import "ARTTokenParams+Private.h" -#include -#include +#import +#import #import "ARTDefault.h" #import "ARTEncoder.h" diff --git a/Source/PrivateHeaders/Ably/ARTEventEmitter+Private.h b/Source/PrivateHeaders/Ably/ARTEventEmitter+Private.h index cd3b2459a..8fd4d8d89 100644 --- a/Source/PrivateHeaders/Ably/ARTEventEmitter+Private.h +++ b/Source/PrivateHeaders/Ably/ARTEventEmitter+Private.h @@ -1,5 +1,5 @@ -#include -#include +#import +#import NS_ASSUME_NONNULL_BEGIN diff --git a/Source/PrivateHeaders/Ably/ARTFallback+Private.h b/Source/PrivateHeaders/Ably/ARTFallback+Private.h index d7ef0496d..9261e3030 100644 --- a/Source/PrivateHeaders/Ably/ARTFallback+Private.h +++ b/Source/PrivateHeaders/Ably/ARTFallback+Private.h @@ -1,4 +1,4 @@ -#include +#import NS_ASSUME_NONNULL_BEGIN diff --git a/Test/AblyTests-Bridging-Header.h b/Test/AblyTests-Bridging-Header.h index ab07523fa..343e66adb 100644 --- a/Test/AblyTests-Bridging-Header.h +++ b/Test/AblyTests-Bridging-Header.h @@ -1,3 +1,3 @@ -#include -#include "NSObject+TestSuite.h" -#include "ARTGCD.h" +#import +#import "NSObject+TestSuite.h" +#import "ARTGCD.h"