aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Paul Beusterien <paulbeusterien@google.com>2017-06-06 17:00:20 -0700
committerGravatar GitHub <noreply@github.com>2017-06-06 17:00:20 -0700
commitaac64a63ae94307fb3562185b7b031d58a6ca0b4 (patch)
treeca87c49451c36016a79fdbed5307972c99f429aa
parent6bf24632ed11d1291e88a046465ffcf504156537 (diff)
Add Foundation import so TARGET_OS_IOS or other TARGET_OS_* gets defined (#71)
-rw-r--r--Example/Auth/Tests/FIRAuthTests.m2
-rw-r--r--Example/Auth/Tests/FIRUserTests.m2
-rw-r--r--Firebase/Auth/Source/FIRAuth.m2
-rw-r--r--Firebase/Auth/Source/FIRUser.m2
-rw-r--r--Firebase/Auth/Source/FirebaseAuth.h2
-rw-r--r--Firebase/Auth/Source/Private/FIRAuth_Internal.h2
-rw-r--r--Firebase/Auth/Source/RPCs/FIRAuthBackend.m2
-rw-r--r--Firebase/Core/FIRAppEnvironmentUtil.m2
-rw-r--r--Firebase/Core/FIRNetworkURLSession.m2
-rw-r--r--Firebase/Core/FIRReachabilityChecker.m2
-rw-r--r--Firebase/Database/Core/FPersistentConnection.m1
-rw-r--r--Firebase/Database/Core/FRepo.m2
-rw-r--r--Firebase/Database/Persistence/FLevelDBStorageEngine.m2
-rw-r--r--Firebase/Database/Realtime/FWebSocketConnection.m2
-rw-r--r--Firebase/Database/third_party/SocketRocket/FSRWebSocket.m2
-rw-r--r--Firebase/Storage/FIRStorageUtils.m2
16 files changed, 30 insertions, 1 deletions
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 <Foundation/Foundation.h>
+
#import <XCTest/XCTest.h>
#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 <Foundation/Foundation.h>
+
#import <XCTest/XCTest.h>
#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 <Foundation/Foundation.h>
+
#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 <Foundation/Foundation.h>
+
#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 <Foundation/Foundation.h>
+
#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 <Foundation/Foundation.h>
+
#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 <Foundation/Foundation.h>
+
#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 <Foundation/Foundation.h>
#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 <Foundation/Foundation.h>
+
#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 <Foundation/Foundation.h>
+
#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 <Foundation/Foundation.h>
#import <SystemConfiguration/SystemConfiguration.h>
#import <netinet/in.h>
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 <Foundation/Foundation.h>
+
#import <dlfcn.h>
#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 <Foundation/Foundation.h>
+
#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 <Foundation/Foundation.h>
+
#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 <Foundation/Foundation.h>
+
#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 <Foundation/Foundation.h>
+
#if TARGET_OS_IOS
#import <MobileCoreServices/MobileCoreServices.h>
#elif TARGET_OS_OSX