Commit Graph
131 Commits
Author SHA1 Message Date
Marek Gilbert 360f7bed25 Result of clang-format with AllowShortFunctionsOnASingleLine: None 2017-08-02 11:07:57 -07:00
Marek Gilbert e4af03818c Formatting updates based on the latest clang-format
clang-format version 5.0.0 (tags/google/stable/2017-06-22)
2017-08-02 09:52:48 -07:00
Xiangtian Dai e5524db414 APNs token handling improvements. (#157)
* APNs token handling improvements.

- Calls VerifyClient without token anyway if the APNs token cannot be retrieved.
  This allows server to use discretion if needed in future. The developer will
  receive the same error as before.
- Moves token formatting code to the token class itself to make the main logic
  in the provider class more clear. This also eliminates duplicated code in the
  sample app.

* Adds a comment about a string constant used in test.
2017-07-28 17:44:46 -07:00
Xiangtian Dai 925a1cc0a2 Merge from private/auth-master (#159)
* Adds passing state and continue URL in OOBCodes actions. (#82)

* Adds actionCodeSettings class (#83)

* Adds FIRActionCodeSettings class

* Removes iOSAppStoreId to reflect update spec.

* Adds “reset password in app” to sample app (#84)

* Adds “reset password in app” to sample app

* Addresses comments

* Addresses comments

* Adds @param documentation for actionCodeSettings (#85)

Adds @param documentation for actionCodeSettings in FIRGetOOBConfirmationCodeRequest.

* Adds request configuration class

Adds a class that will comprise of all configurations needed to make a request to the Firebase Auth backend; including APIKey and Language code in the future.

* Addresses comments.

* Adds Setting Language

Add Setting Language Feature to Firebase Auth.

- Only adds support for two languages (English and Spanish) in this change. (Also supports two languages in test), more to come after this change is accepted.

- For now sample app tests language setting only when using “reset password in app” option, the email sent will be in the current app language.  Additional tests to come after change is accepted.

* Amends code for unit tests

Will add more comprehensive testing when code accepted.

* Ecodes strings files in UTF-8

* Addresses comments

* Addresses comments

* Remove comments in .strings

* Adds remaining TC languages to Firebase Auth.

* Add line break to .strings files

* remove language code english fallback

Remove the fallback that sends “en” as the language code to the backend if no language code is specified.

* addresses comment

* Fixes FIRSecureToken Crash

Integrates FIRSecureTokenService and FIRSecureTokenRequest with FIRAuthRequestConfiguration.

* Addresses comment

* Add auth language input

Adds Auth language input to the Sample App in preparation for manual testing.

* removes unnecessary comment

* address comments

* Add app language option

Allow user to set the current app language code as the auth language code.  This is in preparation for manual testing before release.

* Addresses Comment

* Adds missing continue URI

Adds missing continue URL to Firebear error handling.

* Remove unused line

Removes unused line from FIRPhoneAuthProvider.m

* Moves the new public header to the right place.

* Fixes broken macOS build.

* Removes trailing spaces.

* Addresses review comments.
2017-07-28 17:43:33 -07:00
Paul Beusterien 0abd344434 Add clang-format options and script; apply to FirebaseCore (#151) 2017-07-27 11:02:39 -07:00
Paul Beusterien dec86df553 Disable another test that depended on broken pre-iOS 11 small doubles (#152) 2017-07-26 14:32:28 -07:00
Sebastian Schmidt 4a22dc2a18 Purge persistence cache if we can't load from it (#153)
* Purge persistence cache if we can't load from it

* Adding unit test

* Review comments
2017-07-26 13:50:34 -07:00
davidair f7fc2bb573 Moving sMessageCodeRegex initialization into #ifdef DEBUG to remove the init cost, adding [FIRApp configure] to the Core example (#150) 2017-07-25 11:28:17 -04:00
Sebastian Schmidt f1fbbf3adb Disabling NSJSON edge case test on iOS 11 (#148)
* Disabling NSJSON edge case test on iOS 11

* Adding check for iOS

* Fix formatting

* Using TARGET_OS_IOS instead of TARGET_OS_IPHONE
2017-07-20 14:20:07 -07:00
Ryan Wilson 11d004105e Add method to check if defaultApp is configured. (#139)
This lets other SDKs check if the default `FIRApp` is set up without
accessing it, which causes unnecessary log messages to appear.
2017-07-17 14:31:01 -04:00
Paul Beusterien 053b2f11ea Use modulemap to fix exposure of FirebaseCore's internal headers (#121) 2017-07-10 14:57:03 -07:00
davidair bf5ef4be6d Removing a backspace character (#132) 2017-07-10 15:09:09 -04:00
Paul Beusterien 9792bec7e3 Disable failing FIRLogger test until Issue 128 is fixed (#129) 2017-07-10 08:51:26 -07:00
Sebastian Schmidt 3db59eabbc Adding size to Storage's NSDictionary representation (#120)
* Adding size to Storage's NSDictionary representation

* Review comments

* Remove trailing whitespace
2017-07-04 22:19:50 -07:00
Paul Beusterien ddbfd4cc66 Add travis trailing whitespace check (#116)
* Add travis trailing whitespace check

* Remove trailing white space
2017-06-30 13:47:37 -04:00
Paul Beusterien 6761901507 Remove Auth/Source/Private - restoring headers to original location (#113) 2017-06-29 15:12:13 -07:00
Paul Beusterien c33bdff405 Group public headers into Public directories (#112) 2017-06-29 12:03:45 -07:00
Sebastian Schmidt c67a8bdc58 Fixing parsing for double numbers (#107)
NSJSONSerialization parses long values as doubles and returns NSNumber that are backed by doubles to the users. For NSNumbers that can be stored as longs, we can overwrite this behavior by re-running the initialization step.
2017-06-27 10:04:47 -07:00
Paul Beusterien 0297375121 Rename FirebaseDev to FirebaseCommunity (#98) 2017-06-22 13:08:35 -07:00
Zsika Phillip 58959a676a Adds NSSecureCoding unit tests for FIRUser (#74)
* Adds unit tests for NSSecureCoding for FIRUser
2017-06-07 14:32:02 -07:00
Paul Beusterien aac64a63ae Add Foundation import so TARGET_OS_IOS or other TARGET_OS_* gets defined (#71) 2017-06-06 17:00:20 -07:00
Riz 23e3cf6e2f Restore bundle id and dev team for Messaging iOS (#60)
This got lost in the transfer to new Xcode targets. The reasons why Messaging iOS has a specific bundle id is that this bundle is whitelisted for internal Google development, making it easier for folks that work on FCM to test with this app.
2017-06-02 12:20:33 -07:00
Paul Beusterien e2159ea882 Fix build break from macOS - Auth merge (#59) 2017-06-02 11:08:36 -07:00
Mathew Huusko V 5c59342e6e macOS (#38)
* Example/Core: create macOS app/tests target

* Example/Core: Core_Example/Tests -> Core_Example/Tests_iOS

* Example/Core: macOS building/tests passing

* Example/Database: separate iOS/macOS targets

* BuildFrameworks: macOS

* .travis.yml, test.sh: AllUnitTests -> AllUnitTests_iOS

* test.sh: add AllUnitTests_macOS

* Example/Storage: Example/Tests->_iOS

* Example/Storage: macOS

* test.sh: try to prevent double error 65

* test.sh: build before test

* Example/Auth|Messaging: -> _iOS

* Example/Auth: macOS build

* Example/Auth: macOS passing

* Example/Firebase: pod de/re-integrate; fix static DerivedData references; copy phase for OCMock

* Example/Firebase: manually copied OCMock, Products Dir vs. Frameworks

* Example/Firebase: copied OCMock, prevent header removal

* Example/Storage: integration tests sdk fix

* Example/Auth: macOS exclude FIRAuthAppCredentialManager; cleanup

* Firebase/Core: remove nullability annotation

* Firebase/Core|Database: correct TARGET_X usage for correctness and anticipation of OS_WATCH|TV branches

* build.swift: style fix

* Firebase/Core: FIRLogger: fix macOS intermittent va_list error
2017-06-02 10:42:17 -07:00
Zsika Phillip 439c29108e Handle missing email error (#54)
Adds appropriate error handling for missing email in the createUserWithEmail:password:completion: flow.

Also fixes a few typos.
2017-06-01 18:12:09 -07:00
Ibrahim Ulukaya 5d4b7cd5d5 Remove team value from targets (#44) 2017-05-31 13:22:22 -07:00
Xiangtian Dai af8b54f03c Adds GoogleService-Info_multi.plist to the Auth Sample (#33)
* Adds GoogleService-Info_multi.plist to the Auth Sample so it no longer crashes on the settings view.
* Also relaxes requirement of time differences in unit tests because Travis is slower.

* Relaxes requirement of time difference because unit tests executes slower on Travis.

* Applies the same relaxation on all time comparisons.
2017-05-25 18:20:22 -07:00
Riz 2c133b34b0 Clean up logging and configuration in Messaging (#28)
* Remove mostly unused code from FIRMessagingLogger

This cleans up some left-over old logging logic from before we moved to FIRLogger in Firebase Core. We no longer need this logging functionality.

* Delete FIRMessagingConfig.{h,m}

We no longer need a config class to store an unused log level filter (that filter is no longer needed).
2017-05-24 17:29:09 -07:00
Riz ed1b609852 Enable direct channel in the sample app (#7)
This shows the simple property, shouldEstablishDirectChannel, to open a new channel, and how to show incoming messages with the iOS 10 delegate handler
2017-05-19 10:43:03 -07:00
Paul Beusterien 678b1bc545 Add three files in repo despite .gitignore 2017-05-15 17:43:04 -07:00
Paul Beusterien 98ba64449a Initial 2017-05-15 12:27:07 -07:00