Skip to content

Commit 1598dac

Browse files
authored
fix: get the callouts working again (#351)
1 parent 3bbf5ba commit 1598dac

24 files changed

+412
-176
lines changed

src/content/docs/Code Push/Continuous Integration/_authentication.mdx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,5 +36,9 @@ export SHOREBIRD_TOKEN="$SHOREBIRD_TOKEN" && shorebird patch android
3636

3737
{/* cSpell:enable */}
3838

39-
:::caution The `SHOREBIRD_TOKEN` is a secret and should not be checked in to
40-
your source control or shared publicly. :::
39+
:::caution
40+
41+
The `SHOREBIRD_TOKEN` is a secret and should not be checked in to your source
42+
control or shared publicly.
43+
44+
:::

src/content/docs/Code Push/Continuous Integration/fastlane.mdx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ To run this, execute the following command:
5555
bundle exec fastlane release_shorebird
5656
```
5757

58-
{/* prettier-ignore */}
5958
:::note
6059

6160
To upload to TestFlight, you will need to create an Apple app-specific password.

src/content/docs/Code Push/Continuous Integration/github.mdx

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ Action allows you to integrate Shorebird into your existing GitHub Workflows.
1919

2020
✅ You are logged into a Shorebird account.
2121

22-
{/* prettier-ignore */}
2322
:::note
2423

2524
Refer to the [getting started](/) instructions for more information.
@@ -134,7 +133,9 @@ jobs:
134133
platform: android # or 'ios'
135134
```
136135

137-
:::tip The `shorebird-release` action also outputs the release version:
136+
:::tip
137+
138+
The `shorebird-release` action also outputs the release version:
138139

139140
```yaml
140141
- name: 🚀 Shorebird Release
@@ -191,7 +192,9 @@ jobs:
191192
platform: android # or 'ios'
192193
```
193194
194-
:::tip The `shorebird-patch` action also outputs the patch number:
195+
:::
196+
197+
tip The `shorebird-patch` action also outputs the patch number:
195198

196199
```yaml
197200
- name: 🚀 Shorebird Patch

src/content/docs/Code Push/Guides/Flavors/android.mdx

Lines changed: 23 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,13 @@ instructions for more information.
1818

1919
## Create a Project
2020

21-
:::note In this guide, we'll go through the process of creating a new project
22-
from scratch. To apply these changes to an existing project, skip this step and
23-
read ahead. :::
21+
:::note
22+
23+
In this guide, we'll go through the process of creating a new project from
24+
scratch. To apply these changes to an existing project, skip this step and read
25+
ahead.
26+
27+
:::
2428

2529
Create a new project using `flutter create flavors`.
2630

@@ -60,8 +64,12 @@ Lastly, edit `android/app/src/main/AndroidManifest.xml` to use the
6064
+ <application android:label="${applicationLabel}" android:name="${applicationName}" android:icon="@mipmap/ic_launcher">
6165
```
6266

63-
:::note To learn more about configuring `productFlavors` refer to the
67+
{/* prettier-ignore */}
68+
:::note
69+
70+
To learn more about configuring `productFlavors` refer to the
6471
[Android Developer documentation](https://developer.android.com/build/build-variants#product-flavors).
72+
6573
:::
6674

6775
## Initialize Shorebird
@@ -184,7 +192,11 @@ class MyApp extends StatelessWidget {
184192
}
185193
```
186194

187-
:::note Typically `shorebird patch` should be used to fix critical bugs. :::
195+
:::note
196+
197+
Typically `shorebird patch` should be used to fix critical bugs.
198+
199+
:::
188200

189201
Now that we've applied the changes, let's patch the `internal` variant:
190202

@@ -196,8 +208,12 @@ We can validate the patch by visiting
196208
[Shorebird console](https://console.shorebird.dev/) then select the internal
197209
release or re-launching the internal release.
198210

199-
:::note If you are testing locally, you don't need to re-run `shorebird preview`
200-
– just re-launch the app from the device or emulator directly. :::
211+
:::note
212+
213+
If you are testing locally, you don't need to re-run `shorebird preview` – just
214+
re-launch the app from the device or emulator directly.
215+
216+
:::
201217

202218
The first time the app is re-launched, we should still see the purple theme and
203219
shorebird will detect and install the patch in the background. Kill and

src/content/docs/Code Push/Guides/Flavors/ios.mdx

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,13 @@ instructions for more information.
2121

2222
## Create a Project
2323

24-
:::note In this guide, we'll go through the process of creating a new project
25-
from scratch. To apply these changes to an existing project, skip this step and
26-
read ahead. :::
24+
:::note
25+
26+
In this guide, we'll go through the process of creating a new project from
27+
scratch. To apply these changes to an existing project, skip this step and read
28+
ahead.
29+
30+
:::
2731

2832
Create a new project using `flutter create flavors`.
2933

@@ -59,8 +63,12 @@ flavors:
5963
Since the project contains flavors, `shorebird init` generates an app per
6064
flavor.
6165

62-
:::tip You can view your apps at
63-
[console.shorebird.dev](https://console.shorebird.dev). :::
66+
:::tip
67+
68+
You can view your apps at
69+
[console.shorebird.dev](https://console.shorebird.dev).
70+
71+
:::
6472

6573
## Create a release
6674

@@ -164,8 +172,12 @@ We can validate the patch by visiting
164172
[Shorebird console](https://console.shorebird.dev/) then select the internal
165173
release or re-launching the internal release.
166174

167-
:::note If you are testing locally, you don't need to re-run `shorebird preview`
168-
-- just re-launch the app from the device or emulator directly. :::
175+
:::note
176+
177+
If you are testing locally, you don't need to re-run `shorebird preview` -- just
178+
re-launch the app from the device or emulator directly.
179+
180+
:::
169181

170182
The first time the app is re-launched, we should still see the purple theme and
171183
Shorebird will detect and install the patch in the background. Kill and

src/content/docs/Code Push/Guides/Hybrid Apps/android.mdx

Lines changed: 40 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,12 @@ sidebar:
99
This guide explains how to use Shorebird in an Android hybrid app scenario (that
1010
is, your app embeds Flutter UI in non-Flutter UI).
1111

12-
:::note If your app is a pure Flutter app, follow the
13-
[standard code push guide](/code-push/initialize) instead. :::
12+
:::note
13+
14+
If your app is a pure Flutter app, follow the
15+
[standard code push guide](/code-push/initialize) instead.
16+
17+
:::
1418

1519
## Prerequisites
1620

@@ -44,19 +48,27 @@ The `release-version` parameter needs to match the version of the Android app
4448
that uses this module (i.e., `versionName+versionCode` from the app's
4549
`app/build.gradle` file).
4650

47-
:::note Because Shorebird only works with release builds, this will only produce
48-
a release version of your archive. This is similar to running
49-
`flutter build aar --no-debug --no-profile`. :::
51+
:::note
52+
53+
Because Shorebird only works with release builds, this will only produce a
54+
release version of your archive. This is similar to running
55+
`flutter build aar --no-debug --no-profile`.
5056

51-
:::note This command creates an `aar` with a build number of `1.0`. As with the
57+
:::
58+
59+
:::note
60+
61+
This command creates an `aar` with a build number of `1.0`. As with the
5262
`flutter build aar` command, you may optionally provide a different build number
5363
using the `--build-number` argument, although this is not necessary. The build
5464
number is used to identify the Flutter module in your app's `build.gradle` file,
5565
as you can see
5666
[below](#update-your-android-app-to-use-this-version-of-the-flutter-module).
5767

5868
Shorebird does not use the build number, but **it should remain consistent
59-
between a release and patches to that release**. :::
69+
between a release and patches to that release**.
70+
71+
:::
6072

6173
## Update your Android app to use the `download.shorebird.dev` Maven repository
6274

@@ -81,12 +93,15 @@ dependencyResolutionManagement {
8193
}
8294
```
8395

84-
:::note Even though we are replacing
85-
https://storage.googleapis.com/download.flutter.io. with
86-
https://download.shorebird.dev/download.flutter.io, any Flutter dependencies
87-
that are not unique to Shorebird will still be downloaded from
96+
:::note
97+
98+
Even though we are replacing https://storage.googleapis.com/download.flutter.io.
99+
with https://download.shorebird.dev/download.flutter.io, any Flutter
100+
dependencies that are not unique to Shorebird will still be downloaded from
88101
https://storage.googleapis.com/download.flutter.io. This will only work for
89-
versions of Flutter that Shorebird supports. :::
102+
versions of Flutter that Shorebird supports.
103+
104+
:::
90105

91106
## Update your Android app to use this version of the Flutter module
92107

@@ -124,8 +139,12 @@ the lower left corner of Android Studio. Then select "release" from the "Active
124139
Build Variant" dropdown.
125140
![Screenshot 2023-10-06 at 1 15 14 PM](https://github.com/shorebirdtech/docs/assets/581764/91b68c2c-7cee-44f1-a78a-eec443c353a3)
126141

127-
:::warning Attempting to build with a non-release build variant will not be able
128-
to resolve Flutter symbols in your app. :::
142+
:::warning
143+
144+
Attempting to build with a non-release build variant will not be able to resolve
145+
Flutter symbols in your app.
146+
147+
:::
129148

130149
## Submit your app to the Play Store
131150

@@ -141,9 +160,13 @@ Make an edit to the code in your Flutter module. Then run:
141160
shorebird patch aar --release-version 1.2.3+1
142161
```
143162

144-
:::note If you provided a build number to the `shorebird release aar` command
145-
using the `--build-number` argument, you must also provide that same build
146-
number to the `shorebird patch aar` command. :::
163+
:::note
164+
165+
If you provided a build number to the `shorebird release aar` command using the
166+
`--build-number` argument, you must also provide that same build number to the
167+
`shorebird patch aar` command.
168+
169+
:::
147170

148171
As with the `release` command, the release version should be the version of the
149172
Android app that uses this module.

src/content/docs/Code Push/Guides/Hybrid Apps/ios.mdx

Lines changed: 33 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,12 @@ sidebar:
99
This guide explains how to use Shorebird in an iOS hybrid app scenario (that is,
1010
your app embeds Flutter UI in non-Flutter UI).
1111

12-
:::note If your app is a pure Flutter app, follow the
13-
[standard code push guide](/code-push/initialize) instead. :::
12+
:::note
13+
14+
If your app is a pure Flutter app, follow the
15+
[standard code push guide](/code-push/initialize) instead.
16+
17+
:::
1418

1519
## Prerequisites
1620

@@ -58,25 +62,37 @@ The `ShorebirdFlutter.xcframework` and `App.xcframework` artifacts produced by
5862
the `shorebird release` command will be placed in the `release` directory in the
5963
root of your Flutter module.
6064

61-
:::note Because Shorebird only works with release builds, this will only produce
62-
a release version of your archive. This is similar to running
63-
`flutter build ios-framework --no-debug --no-profile`. :::
65+
:::note
66+
67+
Because Shorebird only works with release builds, this will only produce a
68+
release version of your archive. This is similar to running
69+
`flutter build ios-framework --no-debug --no-profile`.
70+
71+
:::
6472

6573
## Embed the Flutter module in your iOS app
6674

6775
While there are multiple ways to embed a Flutter module in an iOS app, Shorebird
6876
requires that your Flutter module be embedded in your iOS app as an
6977
.xcframework.
7078

71-
:::note The steps to do this are the same as the
79+
:::note
80+
81+
The steps to do this are the same as the
7282
[option B in the official instructions](https://docs.flutter.dev/add-to-app/ios/project-setup#option-b---embed-frameworks-in-xcode),
7383
so in the event of a conflict between the docs here and the official docs, defer
74-
to the official docs. :::
84+
to the official docs.
7585

76-
:::note `ShorebirdFlutter.xcframework` is nearly identically to
77-
`Flutter.xcframework` from Google, but as part of compliance with Apple's
78-
signing requirements, we've renamed the framework when applying Shorebird
79-
(legally Code Town, Inc's) digital signature. :::
86+
:::
87+
88+
:::note
89+
90+
`ShorebirdFlutter.xcframework` is nearly identically to `Flutter.xcframework`
91+
from Google, but as part of compliance with Apple's signing requirements, we've
92+
renamed the framework when applying Shorebird (legally Code Town, Inc's) digital
93+
signature.
94+
95+
:::
8096

8197
### Add the path to your .xcframeworks to Framework Search Paths
8298

@@ -101,8 +117,12 @@ Content" section. Make sure to select "Embed & Sign" for both frameworks.
101117

102118
![Xcode embed frameworks](https://github.com/shorebirdtech/shorebird/assets/581764/fe5911bd-046b-47f9-a4d8-d8548e651bd6)
103119

104-
:::note You may also see that `ShorebirdFlutter.xcframework` is signed by Code
105-
Town Inc. That's us 🙂 :::
120+
:::note
121+
122+
You may also see that `ShorebirdFlutter.xcframework` is signed by Code Town Inc.
123+
That's us 🙂
124+
125+
:::
106126

107127
## Verify that your app runs
108128

src/content/docs/Code Push/Guides/Submitting/app-store.mdx

Lines changed: 19 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -99,21 +99,28 @@ To upload to the App Store, do one of the following:
9999
See "man altool" for details about how to authenticate with the App Store Connect API key.
100100
```
101101

102-
:::note If you perform your own code signing and do not want Shorebird to
103-
codesign your app, you can pass the `--no-codesign` flag to the
104-
`shorebird release ios` command. Because only signed code can be run on iOS
105-
devices, **releases created this way will not be previewable using the
106-
`shorebird preview` command.** You can still download and run these releases
107-
through TestFlight. :::
108-
109-
:::note Shorebird uses the Release configuration to package your app. If you
110-
need to provide custom settings for archiving your app (e.g., provisioning
111-
profiles), you can do this by providing an exportOptions.plist file to the
112-
release command using the `--export-options-plist` flag.
102+
:::note
103+
104+
If you perform your own code signing and do not want Shorebird to codesign your
105+
app, you can pass the `--no-codesign` flag to the `shorebird release ios`
106+
command. Because only signed code can be run on iOS devices, **releases created
107+
this way will not be previewable using the `shorebird preview` command.** You
108+
can still download and run these releases through TestFlight.
109+
110+
:::
111+
112+
:::note
113+
114+
Shorebird uses the Release configuration to package your app. If you need to
115+
provide custom settings for archiving your app (e.g., provisioning profiles),
116+
you can do this by providing an exportOptions.plist file to the release command
117+
using the `--export-options-plist` flag.
113118

114119
To view a list of settings that can be controlled by an `exportOptions.plist`,
115120
run `xcodebuild --help` and look under the
116-
`Available keys for -exportOptionsPlist` heading. :::
121+
`Available keys for -exportOptionsPlist` heading.
122+
123+
:::
117124

118125
## Upload to the App Store
119126

src/content/docs/Code Push/Guides/Submitting/play-store.mdx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,4 +260,8 @@ git branch -D v1.0.3+6-patch1
260260
git push origin --delete v1.0.3+6-patch1
261261
```
262262

263-
:::note This change is still accessible via the `v1.0.3+6-patch1` tag. :::
263+
:::note
264+
265+
This change is still accessible via the `v1.0.3+6-patch1` tag.
266+
267+
:::

src/content/docs/Code Push/Guides/development-workflow.mdx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,9 @@ distributed to customers via the appropriate channels.
100100

101101
![Release Workflow](https://github.com/user-attachments/assets/7c9cf689-bd07-40c0-ad0b-e08935cb4424)
102102

103-
:::note For more information about configuring signing refer to the following
104-
links:
103+
:::note
104+
105+
For more information about configuring signing refer to the following links:
105106

106107
- [Create an Upload Keystore (Android)](https://docs.flutter.dev/deployment/android#create-an-upload-keystore)
107108
- [Installing an Apple Certificate on MacOS Runners (iOS)](https://docs.github.com/en/actions/use-cases-and-examples/deploying/installing-an-apple-certificate-on-macos-runners-for-xcode-development)

0 commit comments

Comments
 (0)