Skip to content

Commit

Permalink
Merge pull request #1546 from firebase/nc/rename-2
Browse files Browse the repository at this point in the history
[Infra] Rename references to 'master' branch
  • Loading branch information
ncooke3 authored Dec 20, 2023
2 parents 3df121f + 404a07e commit ac1fa34
Show file tree
Hide file tree
Showing 27 changed files with 47 additions and 47 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/abtesting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: A/B Testing

on:
push:
branches: [ master ]
branches: [ main ]
paths:
- '.github/workflows/abtesting.yml'
- 'abtesting/**'
Expand All @@ -11,7 +11,7 @@ on:
- '!abtesting/*.md'
- '!abtesting/Design/**'
pull_request:
branches: [ master ]
branches: [ main ]
paths:
- '.github/workflows/abtesting.yml'
- 'abtesting/**'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/admob.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ name: AdMob

on:
push:
branches: [ master ]
branches: [ main ]
paths:
- '.github/workflows/admob.yml'
- 'admob/**'
- 'scripts/*'
- 'scripts/admob.sh'
pull_request:
branches: [ master ]
branches: [ main ]
paths:
- '.github/workflows/admob.yml'
- 'admob/**'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/analytics.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ name: Analytics

on:
push:
branches: [ master ]
branches: [ main ]
paths:
- '.github/workflows/analytics.yml'
- 'analytics/**'
- 'scripts/*'
- 'scripts/analytics.sh'
pull_request:
branches: [ master ]
branches: [ main ]
paths:
- '.github/workflows/analytics.yml'
- 'analytics/**'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/authentication.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ name: Authentication

on:
push:
branches: [ master ]
branches: [ main ]
paths:
- '.github/workflows/authentication.yml'
- 'authentication/**'
- 'scripts/*'
- 'scripts/authentication.sh'
pull_request:
branches: [ master ]
branches: [ main ]
paths:
- '.github/workflows/authentication.yml'
- 'authentication/**'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: check
on:
pull_request:
push:
branches: master
branches: main

jobs:
check:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ name: Remote Config

on:
push:
branches: [ master ]
branches: [ main ]
paths:
- '.github/workflows/config.yml'
- 'config/**'
- 'scripts/*'
- 'scripts/config.sh'
pull_request:
branches: [ master ]
branches: [ main ]
paths:
- '.github/workflows/config.yml'
- 'config/**'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/crashlytics.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ name: Crashlytics

on:
push:
branches: [ master ]
branches: [ main ]
paths:
- '.github/workflows/crashlytics.yml'
- 'crashlytics/**'
- 'scripts/*'
- 'scripts/crashlytics.sh'
pull_request:
branches: [ master ]
branches: [ main ]
paths:
- '.github/workflows/crashlytics.yml'
- 'crashlytics/**'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/database.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ name: Database

on:
push:
branches: [ master ]
branches: [ main ]
paths:
- '.github/workflows/database.yml'
- 'database/**'
- 'scripts/*'
- 'scripts/database.sh'
pull_request:
branches: [ master ]
branches: [ main ]
paths:
- '.github/workflows/database.yml'
- 'database/**'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/dynamiclinks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ name: DynamicLinks

on:
push:
branches: [ master ]
branches: [ main ]
paths:
- '.github/workflows/dynamiclinks.yml'
- 'dynamiclinks/**'
- 'scripts/*'
- 'scripts/dynamiclinks.sh'
pull_request:
branches: [ master ]
branches: [ main ]
paths:
- '.github/workflows/dynamiclinks.yml'
- 'dynamiclinks/**'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/firestore.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ name: Firestore

on:
push:
branches: [ master ]
branches: [ main ]
paths:
- '.github/workflows/firestore.yml'
- 'firestore/**'
- 'scripts/*'
- 'scripts/firestore.sh'
pull_request:
branches: [ master ]
branches: [ main ]
paths:
- '.github/workflows/firestore.yml'
- 'firestore/**'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/functions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ name: Functions

on:
push:
branches: [ master ]
branches: [ main ]
paths:
- '.github/workflows/functions.yml'
- 'functions/**'
- 'scripts/*'
- 'scripts/functions.sh'
pull_request:
branches: [ master ]
branches: [ main ]
paths:
- '.github/workflows/functions.yml'
- 'functions/**'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/inappmessaging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ name: InAppMessaging

on:
push:
branches: [ master ]
branches: [ main ]
paths:
- '.github/workflows/inappmessaging.yml'
- 'inappmessaging/**'
- 'scripts/*'
- 'scripts/inappmessaging.sh'
pull_request:
branches: [ master ]
branches: [ main ]
paths:
- '.github/workflows/inappmessaging.yml'
- 'inappmessaging/**'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/installations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ name: Installations

on:
push:
branches: [ master ]
branches: [ main ]
paths:
- '.github/workflows/installations.yml'
- 'installations/**'
- 'scripts/*'
- 'scripts/installations.sh'
pull_request:
branches: [ master ]
branches: [ main ]
paths:
- '.github/workflows/installations.yml'
- 'installations/**'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/messaging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ name: Messaging

on:
push:
branches: [ master ]
branches: [ main ]
paths:
- '.github/workflows/messaging.yml'
- 'messaging/**'
- 'scripts/*'
- 'scripts/messaging.sh'
pull_request:
branches: [ master ]
branches: [ main ]
paths:
- '.github/workflows/messaging.yml'
- 'messaging/**'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/performance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Performance

on:
push:
branches: [ master ]
branches: [ main ]
paths:
- '.github/workflows/performance.yml'
- 'performance/**'
Expand All @@ -11,7 +11,7 @@ on:
- '!performance/SwiftUIPerformanceQuickstart/PerformanceExample/*.md'
- '!performance/SwiftUIPerformanceQuickstart/PerformanceExample/Design/**'
pull_request:
branches: [ master ]
branches: [ main ]
paths:
- '.github/workflows/performance.yml'
- 'performance/**'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/storage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ name: Storage

on:
push:
branches: [ master ]
branches: [ main ]
paths:
- '.github/workflows/storage.yml'
- 'storage/**'
- 'scripts/*'
- 'scripts/storage.sh'
pull_request:
branches: [ master ]
branches: [ main ]
paths:
- '.github/workflows/storage.yml'
- 'storage/**'
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ to the root directory of the sample you wish to run.
### Code Formatting

To ensure that the code is formatted consistently, run the script
[./scripts/style.sh](https://github.com/firebase/quickstart-ios/blob/master/scripts/style.sh)
[./scripts/style.sh](https://github.com/firebase/quickstart-ios/blob/main/scripts/style.sh)
before creating a PR.

GitHub Actions will verify that any code changes are done in a style compliant
Expand Down
2 changes: 1 addition & 1 deletion analytics/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ versions are powered by SwiftUI. Note that Catalyst, macOS, and tvOS support for
Analytics for Firebase are in beta as of version 8.9.0.

To view the older Objective-C and Swift quickstarts, view the
[`LegacyAnalyticsQuickstart`](https://github.com/firebase/quickstart-ios/blob/master/analytics/LegacyAnalyticsQuickstart)
[`LegacyAnalyticsQuickstart`](https://github.com/firebase/quickstart-ios/blob/main/analytics/LegacyAnalyticsQuickstart)
directory.

## Getting Started
Expand Down
12 changes: 6 additions & 6 deletions authentication/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

This Firebase quickstart is written in Swift and aims to showcase how Firebase Auth can help manage user authentication. You can read more about Firebase Auth [here](https://firebase.google.com/docs/auth)!

To view the older Objective-C and Swift quickstarts, view the [`LegacyAuthQuickstart`](https://github.com/firebase/quickstart-ios/blob/master/authentication/LegacyAuthQuickstart) directory.
To view the older Objective-C and Swift quickstarts, view the [`LegacyAuthQuickstart`](https://github.com/firebase/quickstart-ios/blob/main/authentication/LegacyAuthQuickstart) directory.

## Getting Started

Expand Down Expand Up @@ -164,7 +164,7 @@ We have already included the **`FBSDKLoginKit`** CocoaPod in the quickstart's `P
- Click **Facebook** and turn on the **Enable** switch, then click **Save**.
- Enter your Facebook **App Id** and **App Secret** and click **Save**.
- To finish configuring the Facebook Login Flow:
- Replace the value of `kFacebookAppID` at the top of [AuthViewController.swift](https://github.com/firebase/quickstart-ios/blob/master/authentication/AuthenticationExample/ViewControllers/AuthViewController.swift) with your Facebook App Id
- Replace the value of `kFacebookAppID` at the top of [AuthViewController.swift](https://github.com/firebase/quickstart-ios/blob/main/authentication/AuthenticationExample/ViewControllers/AuthViewController.swift) with your Facebook App Id
- Note, you can also configure Facebook Login in the quickstart's `Info.plist`
- In Xcode, [add a custom URL scheme for your Facebook App Id](https://developers.google.com/identity/sign-in/ios/start-integrating#add_a_url_scheme_to_your_project).
- The **URL Scheme** should be in the format of `'fb' + the Facebook App Id`
Expand Down Expand Up @@ -213,7 +213,7 @@ As we mentioned above, we will need to configure dynamic links for this auth flo
- Configure the following steps as you please and then hit **Create**!

- Dynamic links use your app's bundle identifier as a url scheme by default. In Xcode, [add a custom URL scheme for your **bundle identifier**](https://developers.google.com/identity/sign-in/ios/start-integrating#add_a_url_scheme_to_your_project).
- Last todo! Navigate to [`sendSignInLink()`](https://github.com/firebase/quickstart-ios/blob/master/authentication/AuthenticationExample/View%20Controllers/Other%20Auth%20Method%20Controllers/PasswordlessViewController.swift#L39) in [`PasswordlessViewController.swift`](https://github.com/firebase/quickstart-ios/blob/master/authentication/AuthenticationExample/View%20Controllers/Other%20Auth%20Method%20Controllers/PasswordlessViewController.swift). Within the method, there is a `stringURL` constant. Paste in the long deeplink you created from the steps above for the `authroizedDomain` property above the method. It should look something like:
- Last todo! Navigate to [`sendSignInLink()`](https://github.com/firebase/quickstart-ios/blob/main/authentication/AuthenticationExample/View%20Controllers/Other%20Auth%20Method%20Controllers/PasswordlessViewController.swift#L39) in [`PasswordlessViewController.swift`](https://github.com/firebase/quickstart-ios/blob/main/authentication/AuthenticationExample/View%20Controllers/Other%20Auth%20Method%20Controllers/PasswordlessViewController.swift). Within the method, there is a `stringURL` constant. Paste in the long deeplink you created from the steps above for the `authroizedDomain` property above the method. It should look something like:
```swift
let stringURL = "https://\(authorizedDomain).firebaseapp.com/login?email=\(email)"
```
Expand All @@ -227,12 +227,12 @@ See the [Getting Started with Email Link/Passwordless Sign In guide](https://fir

### So how does this work?

We will start by taking a look at [`PasswordlessViewController.swift`](https://github.com/firebase/quickstart-ios/blob/master/authentication/AuthenticationExample/View%20Controllers/Other%20Auth%20Method%20Controllers/PasswordlessViewController.swift). If you are currently running the quickstart app, select the "Email Link/Passwordless" authentication option.
We will start by taking a look at [`PasswordlessViewController.swift`](https://github.com/firebase/quickstart-ios/blob/main/authentication/AuthenticationExample/View%20Controllers/Other%20Auth%20Method%20Controllers/PasswordlessViewController.swift). If you are currently running the quickstart app, select the "Email Link/Passwordless" authentication option.

The user is prompted for an email to be used in the verification process. When the **Send Sign In Link** button is tapped, we configure our verification link by adding the user's email to the dynamic link we created earlier. Then we send a send the link to the user's email. You can edit the format of these verification emails on the [Firebase Console](https://console.firebase.google.com/).


When the user receives the verification email, they can open the link contained in the email to be redirected back to the app (using the power of [Dynamic Links](https://firebase.google.com/docs/dynamic-links) 😎. On apps using the [`SceneDelegate`](https://developer.apple.com/documentation/uikit/uiscenedelegate) API, opening the incoming dynamic link will be handled in `UIWindowSceneDelegate`'s `func scene(_ scene: UIScene, continue userActivity: NSUserActivity)` method. This method can be implemented in `SceneDelegate.swift`. Since the quickstart uses the `SceneDelegate` API, you can check out the implementation [here](https://github.com/firebase/quickstart-ios/blob/master/authentication/AuthenticationExample/SceneDelegate.swift#L53). We basically pass the incoming link to a helper method that will do a few things:
When the user receives the verification email, they can open the link contained in the email to be redirected back to the app (using the power of [Dynamic Links](https://firebase.google.com/docs/dynamic-links) 😎. On apps using the [`SceneDelegate`](https://developer.apple.com/documentation/uikit/uiscenedelegate) API, opening the incoming dynamic link will be handled in `UIWindowSceneDelegate`'s `func scene(_ scene: UIScene, continue userActivity: NSUserActivity)` method. This method can be implemented in `SceneDelegate.swift`. Since the quickstart uses the `SceneDelegate` API, you can check out the implementation [here](https://github.com/firebase/quickstart-ios/blob/main/authentication/AuthenticationExample/SceneDelegate.swift#L53). We basically pass the incoming link to a helper method that will do a few things:



Expand Down Expand Up @@ -262,7 +262,7 @@ private func handleIncomingDynamicLink(_ incomingURL: URL) {

If the incoming dynamic link is a sign-in link, then we post a notification that pretty much says: "Hey! A user just opened a verification dynamic link that we emailed them and we need to complete the authentication!"

This takes us back to our `PasswordlessViewController.swift`, where [we registered for this exact notification](https://github.com/firebase/quickstart-ios/blob/master/authentication/AuthenticationExample/View%20Controllers/Other%20Auth%20Method%20Controllers/PasswordlessViewController.swift#L26)! When the notification is posted, we will receive it here and call the `passwordlessSignIn()` method to complete the authentication. In this method, we used Firebase Auth's `Auth.auth().signIn(withEmail: String, link: String)` which, behind the scenes, checks that this link was the link we originally sent to the associated email and if so, signs in the user! 🥳
This takes us back to our `PasswordlessViewController.swift`, where [we registered for this exact notification](https://github.com/firebase/quickstart-ios/blob/main/authentication/AuthenticationExample/View%20Controllers/Other%20Auth%20Method%20Controllers/PasswordlessViewController.swift#L26)! When the notification is posted, we will receive it here and call the `passwordlessSignIn()` method to complete the authentication. In this method, we used Firebase Auth's `Auth.auth().signIn(withEmail: String, link: String)` which, behind the scenes, checks that this link was the link we originally sent to the associated email and if so, signs in the user! 🥳


### Phone Number
Expand Down
2 changes: 1 addition & 1 deletion config/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ When you open the quickstart, you'll notice a label that greets you near the top
#### Recipe View - Configuring Complex entities using JSON
Imagine your are building an app where each day, you display a "Recipe of the Day" to your users. Rather than configure lots of individual config keys and values, we can group a recipe's data together in one JSON object.

In this quickstart, we provide you with a folder of JSON files called [JSON Recipes](https://github.com/firebase/quickstart-ios/tree/master/config/ConfigExample/JSON%20Recipes). Copy one on the recipes and navigate to the Remote Config tab of the Firebase Console. Let's add a parameter for the recipe. For the **Parameter Key**, enter `typedRecipeKey` and for the value, click the **{}** button on the right of the **Default Value** text box. Paste the JSON recipe you copied earlier into this box and click **Save**. To make these changes live so our app can fetch them, click **Publish Changes** in the top right corner of the console.
In this quickstart, we provide you with a folder of JSON files called [JSON Recipes](https://github.com/firebase/quickstart-ios/tree/main/config/ConfigExample/JSON%20Recipes). Copy one on the recipes and navigate to the Remote Config tab of the Firebase Console. Let's add a parameter for the recipe. For the **Parameter Key**, enter `typedRecipeKey` and for the value, click the **{}** button on the right of the **Default Value** text box. Paste the JSON recipe you copied earlier into this box and click **Save**. To make these changes live so our app can fetch them, click **Publish Changes** in the top right corner of the console.

Now that there is a recipe on to be fetched. Tap **Fetch & Activate Config** and the recipe you entered on the Firebase console will display on the device!

Expand Down
2 changes: 1 addition & 1 deletion crashlytics/OUTLINE.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Guide to understanding Firebase Crashlytics SwiftUI Quickstart sample.

## Context
This document presents the design for the SwiftUI version of the [Firebase Crashlytics
Quickstart](https://github.com/firebase/quickstart-ios/tree/master/crashlytics), an app that
Quickstart](https://github.com/firebase/quickstart-ios/tree/main/crashlytics), an app that
demonstrates the use of [Firebase Crashlytics](https://firebase.google.com/docs/crashlytics). It is
available on all Apple platforms (iOS, macOS, tvOS, watchOS). This SwiftUI version of the Quickstart
is made using Apple’s latest frameworks and tools (SwiftUI, Swift Package Manager) that are rapidly
Expand Down
2 changes: 1 addition & 1 deletion crashlytics/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ to those crashes. You can read more about Firebase Crashlytics
[here](https://firebase.google.com/docs/crashlytics/)!

To view the older Objective-C and Swift quickstarts, view the
[`LegacyCrashlyticsQuickstart`](https://github.com/firebase/quickstart-ios/tree/master/crashlytics/LegacyCrashlyticsQuickstart)
[`LegacyCrashlyticsQuickstart`](https://github.com/firebase/quickstart-ios/tree/main/crashlytics/LegacyCrashlyticsQuickstart)
directory.

Getting Started
Expand Down
2 changes: 1 addition & 1 deletion database/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Data is synced across all clients in realtime, and remains available when the ap
can read more about Firebase Realtime Database [here](https://firebase.google.com/docs/database/)!

To view the SwiftUI quickstart, view the
[`DatabaseExampleSwiftUI/DatabaseExample`](https://github.com/firebase/quickstart-ios/tree/master/database/DatabaseExampleSwiftUI/DatabaseExample)
[`DatabaseExampleSwiftUI/DatabaseExample`](https://github.com/firebase/quickstart-ios/tree/main/database/DatabaseExampleSwiftUI/DatabaseExample)
directory.

Getting Started
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ image, further demonstrating Firebase use while not relying on some other third
the same time, Storage provides
[FirebaseStorageSwift](https://firebase.google.com/docs/ios/learn-more#swift_extensions), which
[exposes
](https://github.com/firebase/firebase-ios-sdk/blob/master/FirebaseStorageSwift/CHANGELOG.md) the
](https://github.com/firebase/firebase-ios-sdk/blob/main/FirebaseStorageSwift/CHANGELOG.md) the
[Result](https://developer.apple.com/documentation/swift/result) type for [better handling of
asynchronous code
](https://developer.apple.com/documentation/swift/result/writing_failable_asynchronous_apis) such
Expand Down
2 changes: 1 addition & 1 deletion storage/LegacyStorageQuickstart/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Getting Started

- [Add Firebase to your iOS Project](https://firebase.google.com/docs/ios/setup). The package name you'll use is `com.google.firebase.quickstart.StorageExample`.
- Enable Anonymous auth in the **Auth > SIGN IN METHOD** tab.
![Alt text](https://github.com/firebase/quickstart-js/blob/master/storage/pics/enable.png?raw=true "Enable auth")
![Alt text](https://github.com/firebase/quickstart-js/blob/main/storage/pics/enable.png?raw=true "Enable auth")
- Run the sample on your iOS device or simulator.


Expand Down
2 changes: 1 addition & 1 deletion storage/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Getting Started

- [Add Firebase to your iOS Project](https://firebase.google.com/docs/ios/setup). The package name you'll use is `com.google.firebase.quickstart.StorageExample`.
- Enable Anonymous auth in the **Auth > SIGN IN METHOD** tab.
![Alt text](https://github.com/firebase/quickstart-js/blob/master/storage/pics/enable.png?raw=true "Enable auth")
![Alt text](https://github.com/firebase/quickstart-js/blob/main/storage/pics/enable.png?raw=true "Enable auth")
- Run the sample on your iOS/macOS/tvOS device or simulator.


Expand Down
Loading

0 comments on commit ac1fa34

Please sign in to comment.