1
0
mirror of https://github.com/flutter/samples.git synced 2025-11-08 13:58:47 +00:00
Files
samples/infinite_list/codelab_rebuild.yaml
Brett Morgan e5ec08fccd Update Samples for 3.16 (#2085)
*Replace this paragraph with a description of what this PR is changing
or adding, and why. Consider including before/after screenshots.*

*List which issues are fixed by this PR. For larger changes, raising an
issue first helps
reduce redundant work.*

## Pre-launch Checklist

- [ ] I read the [Flutter Style Guide] _recently_, and have followed its
advice.
- [ ] I signed the [CLA].
- [ ] I read the [Contributors Guide].
- [ ] I updated/added relevant documentation (doc comments with `///`).
- [ ] All existing and new tests are passing.

If you need help, consider asking for advice on the #hackers-devrel
channel on [Discord].

<!-- Links -->
[Flutter Style Guide]:
https://github.com/flutter/flutter/wiki/Style-guide-for-Flutter-repo
[CLA]: https://cla.developers.google.com/
[Discord]: https://github.com/flutter/flutter/wiki/Chat
[Contributors Guide]:
https://github.com/flutter/samples/blob/main/CONTRIBUTING.md
2023-11-16 08:55:44 +10:00

53 lines
1.6 KiB
YAML

# Run with tooling from https://github.com/flutter/codelabs/tree/main/tooling/codelab_rebuild
name: Infinite List rebuild script
steps:
- name: Remove runners
rmdirs:
- android
- ios
- macos
- linux
- windows
- web
- name: Recreate runners
flutter: create --org dev.flutter .
- name: Patch macos/Runner/DebugProfile.entitlements
path: macos/Runner/DebugProfile.entitlements
patch-u: |
--- b/macos/Runner/DebugProfile.entitlements
+++ a/macos/Runner/DebugProfile.entitlements
@@ -6,6 +6,10 @@
<true/>
<key>com.apple.security.cs.allow-jit</key>
<true/>
+ <key>com.apple.security.files.user-selected.read-write</key>
+ <true/>
+ <key>com.apple.security.network.client</key>
+ <true/>
<key>com.apple.security.network.server</key>
<true/>
</dict>
- name: Patch macos/Runner/Release.entitlements
path: macos/Runner/Release.entitlements
patch-u: |
--- b/macos/Runner/Release.entitlements
+++ a/macos/Runner/Release.entitlements
@@ -4,5 +4,9 @@
<dict>
<key>com.apple.security.app-sandbox</key>
<true/>
+ <key>com.apple.security.files.user-selected.read-write</key>
+ <true/>
+ <key>com.apple.security.network.client</key>
+ <true/>
</dict>
</plist>
- name: Remove widget_test.dart
rm: test/widget_test.dart
- name: Flutter upgrade
flutter: pub upgrade --major-versions
- name: Flutter build macOS
flutter: build macos
- name: Flutter build macOS
flutter: build ios --simulator