mirror of
https://github.com/flutter/samples.git
synced 2025-11-09 06:18:49 +00:00
Fix beta CI (#1311)
This commit is contained in:
@@ -83,15 +83,12 @@ class _SongsTabState extends State<SongsTab> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void _togglePlatform() {
|
void _togglePlatform() {
|
||||||
TargetPlatform _getOppositePlatform() {
|
|
||||||
if (defaultTargetPlatform == TargetPlatform.iOS) {
|
if (defaultTargetPlatform == TargetPlatform.iOS) {
|
||||||
return TargetPlatform.android;
|
debugDefaultTargetPlatformOverride = TargetPlatform.android;
|
||||||
} else {
|
} else {
|
||||||
return TargetPlatform.iOS;
|
debugDefaultTargetPlatformOverride = TargetPlatform.iOS;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
debugDefaultTargetPlatformOverride = _getOppositePlatform();
|
|
||||||
// This rebuilds the application. This should obviously never be
|
// This rebuilds the application. This should obviously never be
|
||||||
// done in a real app but it's done here since this app
|
// done in a real app but it's done here since this app
|
||||||
// unrealistically toggles the current platform for demonstration
|
// unrealistically toggles the current platform for demonstration
|
||||||
|
|||||||
@@ -11,8 +11,6 @@ import 'common.dart';
|
|||||||
void main() async {
|
void main() async {
|
||||||
final packageDirs = listPackageDirs(Directory.current)
|
final packageDirs = listPackageDirs(Directory.current)
|
||||||
.map((path) => p.relative(path, from: Directory.current.path))
|
.map((path) => p.relative(path, from: Directory.current.path))
|
||||||
// TODO: remove this when `slide_puzzle` is removed from samples repo
|
|
||||||
.where((path) => !path.contains('slide_puzzle'))
|
|
||||||
.toList();
|
.toList();
|
||||||
|
|
||||||
print('Package dirs:\n${packageDirs.map((path) => ' $path').join('\n')}');
|
print('Package dirs:\n${packageDirs.map((path) => ' $path').join('\n')}');
|
||||||
|
|||||||
Reference in New Issue
Block a user