From aac64a63ae94307fb3562185b7b031d58a6ca0b4 Mon Sep 17 00:00:00 2001 From: Paul Beusterien Date: Tue, 6 Jun 2017 17:00:20 -0700 Subject: Add Foundation import so TARGET_OS_IOS or other TARGET_OS_* gets defined (#71) --- Example/Auth/Tests/FIRAuthTests.m | 2 ++ Example/Auth/Tests/FIRUserTests.m | 2 ++ Firebase/Auth/Source/FIRAuth.m | 2 ++ Firebase/Auth/Source/FIRUser.m | 2 ++ Firebase/Auth/Source/FirebaseAuth.h | 2 ++ Firebase/Auth/Source/Private/FIRAuth_Internal.h | 2 ++ Firebase/Auth/Source/RPCs/FIRAuthBackend.m | 2 ++ Firebase/Core/FIRAppEnvironmentUtil.m | 2 +- Firebase/Core/FIRNetworkURLSession.m | 2 ++ Firebase/Core/FIRReachabilityChecker.m | 2 ++ Firebase/Database/Core/FPersistentConnection.m | 1 + Firebase/Database/Core/FRepo.m | 2 ++ Firebase/Database/Persistence/FLevelDBStorageEngine.m | 2 ++ Firebase/Database/Realtime/FWebSocketConnection.m | 2 ++ Firebase/Database/third_party/SocketRocket/FSRWebSocket.m | 2 ++ Firebase/Storage/FIRStorageUtils.m | 2 ++ 16 files changed, 30 insertions(+), 1 deletion(-) diff --git a/Example/Auth/Tests/FIRAuthTests.m b/Example/Auth/Tests/FIRAuthTests.m index f891728..f6793cb 100644 --- a/Example/Auth/Tests/FIRAuthTests.m +++ b/Example/Auth/Tests/FIRAuthTests.m @@ -14,6 +14,8 @@ * limitations under the License. */ +#import + #import #import "FIRAppInternal.h" diff --git a/Example/Auth/Tests/FIRUserTests.m b/Example/Auth/Tests/FIRUserTests.m index c90da44..efb7c1b 100644 --- a/Example/Auth/Tests/FIRUserTests.m +++ b/Example/Auth/Tests/FIRUserTests.m @@ -14,6 +14,8 @@ * limitations under the License. */ +#import + #import #import "EmailPassword/FIREmailAuthProvider.h" diff --git a/Firebase/Auth/Source/FIRAuth.m b/Firebase/Auth/Source/FIRAuth.m index 1fe47b6..1d5a30f 100644 --- a/Firebase/Auth/Source/FIRAuth.m +++ b/Firebase/Auth/Source/FIRAuth.m @@ -14,6 +14,8 @@ * limitations under the License. */ +#import + #import "Private/FIRAuth_Internal.h" #import "FIRAppAssociationRegistration.h" diff --git a/Firebase/Auth/Source/FIRUser.m b/Firebase/Auth/Source/FIRUser.m index 69d76e9..64c29a8 100644 --- a/Firebase/Auth/Source/FIRUser.m +++ b/Firebase/Auth/Source/FIRUser.m @@ -14,6 +14,8 @@ * limitations under the License. */ +#import + #import "Private/FIRUser_Internal.h" #import "AuthProviders/EmailPassword/FIREmailPasswordAuthCredential.h" diff --git a/Firebase/Auth/Source/FirebaseAuth.h b/Firebase/Auth/Source/FirebaseAuth.h index d2e9494..ef4aca6 100644 --- a/Firebase/Auth/Source/FirebaseAuth.h +++ b/Firebase/Auth/Source/FirebaseAuth.h @@ -14,6 +14,8 @@ * limitations under the License. */ +#import + #import "FIREmailAuthProvider.h" #import "FIRFacebookAuthProvider.h" #import "FIRGitHubAuthProvider.h" diff --git a/Firebase/Auth/Source/Private/FIRAuth_Internal.h b/Firebase/Auth/Source/Private/FIRAuth_Internal.h index afcd899..94363a1 100644 --- a/Firebase/Auth/Source/Private/FIRAuth_Internal.h +++ b/Firebase/Auth/Source/Private/FIRAuth_Internal.h @@ -14,6 +14,8 @@ * limitations under the License. */ +#import + #import "FIRAuth.h" #if TARGET_OS_IOS diff --git a/Firebase/Auth/Source/RPCs/FIRAuthBackend.m b/Firebase/Auth/Source/RPCs/FIRAuthBackend.m index 3b899f0..f208dae 100644 --- a/Firebase/Auth/Source/RPCs/FIRAuthBackend.m +++ b/Firebase/Auth/Source/RPCs/FIRAuthBackend.m @@ -14,6 +14,8 @@ * limitations under the License. */ +#import + #import "FIRAuthBackend.h" #import "../AuthProviders/Phone/FIRPhoneAuthCredential_Internal.h" diff --git a/Firebase/Core/FIRAppEnvironmentUtil.m b/Firebase/Core/FIRAppEnvironmentUtil.m index b3c6913..aee0258 100644 --- a/Firebase/Core/FIRAppEnvironmentUtil.m +++ b/Firebase/Core/FIRAppEnvironmentUtil.m @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. - +#import #import "Private/FIRAppEnvironmentUtil.h" diff --git a/Firebase/Core/FIRNetworkURLSession.m b/Firebase/Core/FIRNetworkURLSession.m index 967ffe2..0e023e6 100644 --- a/Firebase/Core/FIRNetworkURLSession.m +++ b/Firebase/Core/FIRNetworkURLSession.m @@ -12,6 +12,8 @@ // See the License for the specific language governing permissions and // limitations under the License. +#import + #import "Private/FIRNetworkURLSession.h" #import "Private/FIRMutableDictionary.h" diff --git a/Firebase/Core/FIRReachabilityChecker.m b/Firebase/Core/FIRReachabilityChecker.m index 4817e4e..bc21a52 100644 --- a/Firebase/Core/FIRReachabilityChecker.m +++ b/Firebase/Core/FIRReachabilityChecker.m @@ -12,6 +12,8 @@ // See the License for the specific language governing permissions and // limitations under the License. +#import + #import "Private/FIRReachabilityChecker.h" #import "Private/FIRReachabilityChecker+Internal.h" diff --git a/Firebase/Database/Core/FPersistentConnection.m b/Firebase/Database/Core/FPersistentConnection.m index 9298f6d..dc5877f 100644 --- a/Firebase/Database/Core/FPersistentConnection.m +++ b/Firebase/Database/Core/FPersistentConnection.m @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ +#import #import #import diff --git a/Firebase/Database/Core/FRepo.m b/Firebase/Database/Core/FRepo.m index f04d0f1..17e7480 100644 --- a/Firebase/Database/Core/FRepo.m +++ b/Firebase/Database/Core/FRepo.m @@ -14,6 +14,8 @@ * limitations under the License. */ +#import + #import #import "FRepo.h" #import "FSnapshotUtilities.h" diff --git a/Firebase/Database/Persistence/FLevelDBStorageEngine.m b/Firebase/Database/Persistence/FLevelDBStorageEngine.m index e887c08..ef924c4 100644 --- a/Firebase/Database/Persistence/FLevelDBStorageEngine.m +++ b/Firebase/Database/Persistence/FLevelDBStorageEngine.m @@ -14,6 +14,8 @@ * limitations under the License. */ +#import + #import "FLevelDBStorageEngine.h" #import "APLevelDB.h" diff --git a/Firebase/Database/Realtime/FWebSocketConnection.m b/Firebase/Database/Realtime/FWebSocketConnection.m index ea64795..d728bdd 100644 --- a/Firebase/Database/Realtime/FWebSocketConnection.m +++ b/Firebase/Database/Realtime/FWebSocketConnection.m @@ -16,6 +16,8 @@ // Targetted compilation is ONLY for testing. UIKit is weak-linked in actual release build. +#import + #import "FWebSocketConnection.h" #import "FConstants.h" #import "FIRDatabaseReference.h" diff --git a/Firebase/Database/third_party/SocketRocket/FSRWebSocket.m b/Firebase/Database/third_party/SocketRocket/FSRWebSocket.m index 54fcf27..f96d863 100644 --- a/Firebase/Database/third_party/SocketRocket/FSRWebSocket.m +++ b/Firebase/Database/third_party/SocketRocket/FSRWebSocket.m @@ -14,6 +14,8 @@ // limitations under the License. // +#import + #import "FSRWebSocket.h" #if TARGET_OS_IOS diff --git a/Firebase/Storage/FIRStorageUtils.m b/Firebase/Storage/FIRStorageUtils.m index 5c6a1fa..216b4b6 100644 --- a/Firebase/Storage/FIRStorageUtils.m +++ b/Firebase/Storage/FIRStorageUtils.m @@ -12,6 +12,8 @@ // See the License for the specific language governing permissions and // limitations under the License. +#import + #if TARGET_OS_IOS #import #elif TARGET_OS_OSX -- cgit v1.2.3