aboutsummaryrefslogtreecommitdiffhomepage
path: root/Example
diff options
context:
space:
mode:
Diffstat (limited to 'Example')
-rw-r--r--Example/Auth/ApiTests/FirebaseAuthApiTests.m16
-rw-r--r--Example/Firebase.xcodeproj/project.pbxproj40
2 files changed, 48 insertions, 8 deletions
diff --git a/Example/Auth/ApiTests/FirebaseAuthApiTests.m b/Example/Auth/ApiTests/FirebaseAuthApiTests.m
index 741814c..d4f4da2 100644
--- a/Example/Auth/ApiTests/FirebaseAuthApiTests.m
+++ b/Example/Auth/ApiTests/FirebaseAuthApiTests.m
@@ -130,7 +130,7 @@ static NSTimeInterval const kExpectationsTimeout = 10;
[self expectationWithDescription:@"Created account with email and password."];
[auth createUserWithEmail:kTestingEmailToCreateUser
password:@"password"
- completion:^(FIRUser *user, NSError *error) {
+ completion:^(FIRAuthDataResult *result, NSError *error) {
if (error) {
NSLog(@"createUserWithEmail has error: %@", error);
}
@@ -163,7 +163,7 @@ static NSTimeInterval const kExpectationsTimeout = 10;
[self expectationWithDescription:@"Created account with email and password."];
[auth createUserWithEmail:kTestingEmailToCreateUser
password:@"password"
- completion:^(FIRUser *user, NSError *error) {
+ completion:^(FIRAuthDataResult *user, NSError *error) {
apiError = error;
[expectation fulfill];
}];
@@ -240,7 +240,7 @@ static NSTimeInterval const kExpectationsTimeout = 10;
[self expectationWithDescription:@"Signed in existing account with email and password."];
[auth signInWithEmail:kExistingTestingEmailToSignIn
password:@"password"
- completion:^(FIRUser *user, NSError *error) {
+ completion:^(FIRAuthDataResult *user, NSError *error) {
if (error) {
NSLog(@"Signing in existing account has error: %@", error);
}
@@ -277,7 +277,7 @@ static NSTimeInterval const kExpectationsTimeout = 10;
[self expectationWithDescription:@"CustomAuthToken sign-in finished."];
[auth signInWithCustomToken:customToken
- completion:^(FIRUser *_Nullable user, NSError *_Nullable error) {
+ completion:^(FIRAuthDataResult *_Nullable result, NSError *_Nullable error) {
if (error) {
NSLog(@"Valid token sign in error: %@", error);
}
@@ -314,7 +314,7 @@ static NSTimeInterval const kExpectationsTimeout = 10;
__block NSError *apiError;
[auth signInWithCustomToken:customToken
- completion:^(FIRUser *_Nullable user, NSError *_Nullable error) {
+ completion:^(FIRAuthDataResult *_Nullable result, NSError *_Nullable error) {
if (error) {
apiError = error;
}
@@ -349,7 +349,7 @@ static NSTimeInterval const kExpectationsTimeout = 10;
[self expectationWithDescription:@"CustomAuthToken sign-in finished."];
__block NSError *rpcError;
[auth signInWithCustomToken:customToken
- completion:^(FIRUser *_Nullable user, NSError *_Nullable error) {
+ completion:^(FIRAuthDataResult *_Nullable result, NSError *_Nullable error) {
if (error) {
rpcError = error;
}
@@ -390,7 +390,7 @@ static NSTimeInterval const kExpectationsTimeout = 10;
[self expectationWithDescription:@"Invalid CustomAuthToken sign-in finished."];
[auth signInWithCustomToken:kInvalidCustomToken
- completion:^(FIRUser *_Nullable user, NSError *_Nullable error) {
+ completion:^(FIRAuthDataResult *_Nullable result, NSError *_Nullable error) {
XCTAssertEqualObjects(error.localizedDescription, kInvalidTokenErrorMessage);
[expectation fulfill];
@@ -583,7 +583,7 @@ static NSTimeInterval const kExpectationsTimeout = 10;
XCTestExpectation *expectation =
[self expectationWithDescription:@"Anonymousy sign-in finished."];
- [auth signInAnonymouslyWithCompletion:^(FIRUser *user, NSError *error) {
+ [auth signInAnonymouslyWithCompletion:^(FIRAuthDataResult *result, NSError *error) {
if (error) {
NSLog(@"Anonymousy sign in error: %@", error);
}
diff --git a/Example/Firebase.xcodeproj/project.pbxproj b/Example/Firebase.xcodeproj/project.pbxproj
index 26e0c33..f924ed4 100644
--- a/Example/Firebase.xcodeproj/project.pbxproj
+++ b/Example/Firebase.xcodeproj/project.pbxproj
@@ -4707,6 +4707,10 @@
INFOPLIST_FILE = "Messaging/Sample/iOS/Messaging-Info.plist";
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
MTL_ENABLE_DEBUG_INFO = YES;
+ OTHER_LDFLAGS = (
+ "$(inherited)",
+ "-all_load",
+ );
PRODUCT_BUNDLE_IDENTIFIER = com.google.FirebaseMessagingSample.dev;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
@@ -4732,6 +4736,10 @@
INFOPLIST_FILE = "Messaging/Sample/iOS/Messaging-Info.plist";
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
MTL_ENABLE_DEBUG_INFO = NO;
+ OTHER_LDFLAGS = (
+ "$(inherited)",
+ "-all_load",
+ );
PRODUCT_BUNDLE_IDENTIFIER = com.google.FirebaseMessagingSample.dev;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
@@ -5929,6 +5937,10 @@
INFOPLIST_FILE = "$(SRCROOT)/Database/App/iOS/Database-Info.plist";
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
MTL_ENABLE_DEBUG_INFO = YES;
+ OTHER_LDFLAGS = (
+ "$(inherited)",
+ "-all_load",
+ );
PRODUCT_BUNDLE_IDENTIFIER = "com.google.Database-Example-iOS";
PRODUCT_NAME = "$(TARGET_NAME)";
};
@@ -5948,6 +5960,10 @@
INFOPLIST_FILE = "$(SRCROOT)/Database/App/iOS/Database-Info.plist";
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
MTL_ENABLE_DEBUG_INFO = NO;
+ OTHER_LDFLAGS = (
+ "$(inherited)",
+ "-all_load",
+ );
PRODUCT_BUNDLE_IDENTIFIER = "com.google.Database-Example-iOS";
PRODUCT_NAME = "$(TARGET_NAME)";
};
@@ -6047,6 +6063,10 @@
INFOPLIST_FILE = "$(SRCROOT)/Auth/App/iOS/Auth-Info.plist";
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
MTL_ENABLE_DEBUG_INFO = YES;
+ OTHER_LDFLAGS = (
+ "$(inherited)",
+ "-all_load",
+ );
PRODUCT_BUNDLE_IDENTIFIER = "com.google.Auth-Example-iOS";
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
@@ -6069,6 +6089,10 @@
INFOPLIST_FILE = "$(SRCROOT)/Auth/App/iOS/Auth-Info.plist";
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
MTL_ENABLE_DEBUG_INFO = NO;
+ OTHER_LDFLAGS = (
+ "$(inherited)",
+ "-all_load",
+ );
PRODUCT_BUNDLE_IDENTIFIER = "com.google.Auth-Example-iOS";
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
@@ -6461,6 +6485,10 @@
);
INFOPLIST_FILE = "$(SRCROOT)/Storage/App/iOS/Storage-Info.plist";
MODULE_NAME = ExampleApp;
+ OTHER_LDFLAGS = (
+ "$(inherited)",
+ "-all_load",
+ );
PRODUCT_BUNDLE_IDENTIFIER = "com.google.Storage-Example-iOS";
PRODUCT_NAME = "$(TARGET_NAME)";
WRAPPER_EXTENSION = app;
@@ -6482,6 +6510,10 @@
);
INFOPLIST_FILE = "$(SRCROOT)/Storage/App/iOS/Storage-Info.plist";
MODULE_NAME = ExampleApp;
+ OTHER_LDFLAGS = (
+ "$(inherited)",
+ "-all_load",
+ );
PRODUCT_BUNDLE_IDENTIFIER = "com.google.Storage-Example-iOS";
PRODUCT_NAME = "$(TARGET_NAME)";
WRAPPER_EXTENSION = app;
@@ -6543,6 +6575,10 @@
INFOPLIST_FILE = "$(SRCROOT)/Core/App/iOS/Core-Info.plist";
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
MTL_ENABLE_DEBUG_INFO = YES;
+ OTHER_LDFLAGS = (
+ "$(inherited)",
+ "-all_load",
+ );
PRODUCT_BUNDLE_IDENTIFIER = "com.google.Core-Example-iOS";
PRODUCT_NAME = "$(TARGET_NAME)";
};
@@ -6560,6 +6596,10 @@
INFOPLIST_FILE = "$(SRCROOT)/Core/App/iOS/Core-Info.plist";
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
MTL_ENABLE_DEBUG_INFO = NO;
+ OTHER_LDFLAGS = (
+ "$(inherited)",
+ "-all_load",
+ );
PRODUCT_BUNDLE_IDENTIFIER = "com.google.Core-Example-iOS";
PRODUCT_NAME = "$(TARGET_NAME)";
};