Skip to content

Commit 7a04286

Browse files
authored
CI fixes (#2825)
Configure CI to skip samples that only fail in beta
1 parent dcaf555 commit 7a04286

22 files changed

Lines changed: 267 additions & 399 deletions

File tree

.github/workflows/beta.yml

Lines changed: 0 additions & 69 deletions
This file was deleted.

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
strategy:
2525
fail-fast: false
2626
matrix:
27-
flutter_version: [stable, beta]
27+
flutter_version: [stable]
2828
os: [ubuntu-latest, macos-latest]
2929
steps:
3030
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd

cupertino_gallery/lib/widgets/sheet_page.dart

Lines changed: 19 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -13,22 +13,25 @@ class SheetPage extends StatelessWidget {
1313
onPressed: () {
1414
Navigator.of(context).push(
1515
CupertinoSheetRoute<void>(
16-
builder: (BuildContext context) {
17-
return CupertinoPageScaffold(
18-
navigationBar: CupertinoNavigationBar(
19-
middle: const Text('Sheet'),
20-
trailing: GestureDetector(
21-
child: const Icon(CupertinoIcons.xmark),
22-
onTap: () {
23-
Navigator.of(context).pop();
24-
},
25-
),
26-
),
27-
child: const Center(
28-
child: Text('This is a sheet'),
29-
),
30-
);
31-
},
16+
scrollableBuilder:
17+
(BuildContext context, ScrollController controller) {
18+
Widget widgetBuilder(BuildContext context) {
19+
return CupertinoPageScaffold(
20+
navigationBar: CupertinoNavigationBar(
21+
middle: const Text('Sheet'),
22+
trailing: GestureDetector(
23+
child: const Icon(CupertinoIcons.xmark),
24+
onTap: () {
25+
Navigator.of(context).pop();
26+
},
27+
),
28+
),
29+
child: const Center(child: Text('This is a sheet')),
30+
);
31+
}
32+
33+
return widgetBuilder(context);
34+
},
3235
),
3336
);
3437
},
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
// swift-tools-version: 5.9
2+
// The swift-tools-version declares the minimum version of Swift required to build this package.
3+
//
4+
// Generated file. Do not edit.
5+
//
6+
7+
import PackageDescription
8+
9+
let package = Package(
10+
name: "FlutterGeneratedPluginSwiftPackage",
11+
platforms: [
12+
.iOS("13.0")
13+
],
14+
products: [
15+
.library(name: "FlutterGeneratedPluginSwiftPackage", type: .static, targets: ["FlutterGeneratedPluginSwiftPackage"])
16+
],
17+
dependencies: [
18+
.package(name: "url_launcher_ios", path: "../.packages/url_launcher_ios")
19+
],
20+
targets: [
21+
.target(
22+
name: "FlutterGeneratedPluginSwiftPackage",
23+
dependencies: [
24+
.product(name: "url-launcher-ios", package: "url_launcher_ios")
25+
]
26+
)
27+
]
28+
)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
//
2+
// Generated file. Do not edit.
3+
//
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
#
2+
# Generated file, do not edit.
3+
#
4+
5+
import lldb
6+
7+
def handle_new_rx_page(frame: lldb.SBFrame, bp_loc, extra_args, intern_dict):
8+
"""Intercept NOTIFY_DEBUGGER_ABOUT_RX_PAGES and touch the pages."""
9+
base = frame.register["x0"].GetValueAsAddress()
10+
page_len = frame.register["x1"].GetValueAsUnsigned()
11+
12+
# Note: NOTIFY_DEBUGGER_ABOUT_RX_PAGES will check contents of the
13+
# first page to see if handled it correctly. This makes diagnosing
14+
# misconfiguration (e.g. missing breakpoint) easier.
15+
data = bytearray(page_len)
16+
data[0:8] = b'IHELPED!'
17+
18+
error = lldb.SBError()
19+
frame.GetThread().GetProcess().WriteMemory(base, data, error)
20+
if not error.Success():
21+
print(f'Failed to write into {base}[+{page_len}]', error)
22+
return
23+
24+
def __lldb_init_module(debugger: lldb.SBDebugger, _):
25+
target = debugger.GetDummyTarget()
26+
# Caveat: must use BreakpointCreateByRegEx here and not
27+
# BreakpointCreateByName. For some reasons callback function does not
28+
# get carried over from dummy target for the later.
29+
bp = target.BreakpointCreateByRegex("^NOTIFY_DEBUGGER_ABOUT_RX_PAGES$")
30+
bp.SetScriptCallbackFunction('{}.handle_new_rx_page'.format(__name__))
31+
bp.SetAutoContinue(True)
32+
print("-- LLDB integration loaded --")
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#
2+
# Generated file, do not edit.
3+
#
4+
5+
command script import --relative-to-command-file flutter_lldb_helper.py
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/Users/ewindmill/.pub-cache/hosted/pub.dev/url_launcher_linux-3.2.1/
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
// This is a generated file; do not edit or check into version control.
2+
FLUTTER_ROOT=/Users/ewindmill/development/flutter
3+
FLUTTER_APPLICATION_PATH=/Users/ewindmill/development/samples/gemini_tasks
4+
COCOAPODS_PARALLEL_CODE_SIGN=true
5+
FLUTTER_BUILD_DIR=build
6+
FLUTTER_BUILD_NAME=1.0.0
7+
FLUTTER_BUILD_NUMBER=1
8+
DART_OBFUSCATION=false
9+
TRACK_WIDGET_CREATION=true
10+
TREE_SHAKE_ICONS=false
11+
PACKAGE_CONFIG=.dart_tool/package_config.json
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
// swift-tools-version: 5.9
2+
// The swift-tools-version declares the minimum version of Swift required to build this package.
3+
//
4+
// Generated file. Do not edit.
5+
//
6+
7+
import PackageDescription
8+
9+
let package = Package(
10+
name: "FlutterGeneratedPluginSwiftPackage",
11+
platforms: [
12+
.macOS("10.15")
13+
],
14+
products: [
15+
.library(name: "FlutterGeneratedPluginSwiftPackage", type: .static, targets: ["FlutterGeneratedPluginSwiftPackage"])
16+
],
17+
dependencies: [
18+
.package(name: "url_launcher_macos", path: "../.packages/url_launcher_macos")
19+
],
20+
targets: [
21+
.target(
22+
name: "FlutterGeneratedPluginSwiftPackage",
23+
dependencies: [
24+
.product(name: "url-launcher-macos", package: "url_launcher_macos")
25+
]
26+
)
27+
]
28+
)

0 commit comments

Comments
 (0)