|
|
3 ani în urmă | |
|---|---|---|
| .. | ||
| ApiTests | 9f39fdccc3 Style Auth Integration Tests (#9229) | 4 ani în urmă |
| AuthSample.xcodeproj | a3a942b997 Add Swift API coverage tests for Auth (#9255) | 4 ani în urmă |
| E2eTests | 1358e34825 modified url for app engine test-app (#10113) | 3 ani în urmă |
| Sample | 1358e34825 modified url for app engine test-app (#10113) | 3 ani în urmă |
| SwiftApiTests | c148216344 Fix import bug (#9624) | 4 ani în urmă |
| Podfile | 43c62f0526 [Infra] Remove CoreDiagnostics library and references (#10259) | 3 ani în urmă |
| README.md | e8f99a5297 Fix 404s and remove missing SwiftSample references (#9517) | 4 ani în urmă |
In order to run this application, you'll need to follow the following steps!
You'll need valid GoogleService-Info.plist files for those samples. To get your own
GoogleService-Info.plist files:
com.google.FirebaseExperimental1.dev)GoogleService-Info.plist and place it in the
Sample/ directoryGoogleService_Info.plist file. This can be in the
same Firebase project as the one above, or a different one. Use a different app bundle identifier
(e.g. com.google.FirebaseExperimental2.dev).GoogleService-Info_multi.plist in
the Sample/ directory.
This enables testing that FirebaseAuth continues to work after switching the Firebase App in the
runtime.Please follow the instructions in Sample/AuthCredentialsTemplate.h to generate the AuthCredentials.h file.
Generate the Sample/Application.plist file from
Sample/ApplicationTemplate.plist by replacing $BUNDLE_ID and
$REVERSED_CLIENT_ID with their values from GoogleService-Info.plist and
$REVERSED_CLIENT_MULTI_ID with its value from GoogleService-Info_multi.plist.
This could be done in bash via something like this from within the Sample directory:
$ BUNDLE_ID=`xmllint --xpath "/plist/dict/key[.='BUNDLE_ID']/following-sibling::string[1]/text()" GoogleService-Info.plist`
$ REVERSED_CLIENT_ID=`xmllint --xpath "/plist/dict/key[.='REVERSED_CLIENT_ID']/following-sibling::string[1]/text()" GoogleService-Info.plist`
$ REVERSED_CLIENT_MULTI_ID=`xmllint --xpath "/plist/dict/key[.='REVERSED_CLIENT_ID']/following-sibling::string[1]/text()" GoogleService-Info_multi.plist`
$ sed \
-e 's/\$BUNDLE_ID/'$BUNDLE_ID'/g' \
-e 's/\$REVERSED_CLIENT_ID/'$REVERSED_CLIENT_ID'/g' \
-e 's/\$REVERSED_CLIENT_MULTI_ID/'$REVERSED_CLIENT_MULTI_ID'/g' \
ApplicationTemplate.plist > Application.plist
In order to test the "Reset Password In App" feature you will need to create a dynamic link for your
Firebase project in the Dynamic Links section of the Firebase Console. Once the link is created,
please copy the contents of
Sample/SampleTemplate.entitlements
into a file named Sample/Sample.entitlements and replace $KAPP_LINKS_DOMAIN with your own
relevant appLinks domain. Your appLinks domains are domains that your app will handle as universal
links, in this particular case you can obtain this domain from the aforementioned Dynamic Links
section of the Firebase Console.
In order to run the API tests, you'll need to follow the following steps!
Please follow the instructions in ApiTests/AuthCredentialsTemplate.h to generate the AuthCredentials.h file.
In the Firebase conosle for your test project, you'll need to enable the following auth providers:
You'll also need to create a user with email
user+email_existing_user@example.com and password of password.
$ pod update
$ open Firebase.xcworkspace
Then select an Auth scheme and run.