Fix beta CI (#1311)

pull/1312/head
Brett Morgan 3 years ago committed by GitHub
parent e4d4d0f48d
commit a6bb4d1c20
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -83,15 +83,12 @@ class _SongsTabState extends State<SongsTab> {
}
void _togglePlatform() {
TargetPlatform _getOppositePlatform() {
if (defaultTargetPlatform == TargetPlatform.iOS) {
return TargetPlatform.android;
} else {
return TargetPlatform.iOS;
}
if (defaultTargetPlatform == TargetPlatform.iOS) {
debugDefaultTargetPlatformOverride = TargetPlatform.android;
} else {
debugDefaultTargetPlatformOverride = TargetPlatform.iOS;
}
debugDefaultTargetPlatformOverride = _getOppositePlatform();
// This rebuilds the application. This should obviously never be
// done in a real app but it's done here since this app
// unrealistically toggles the current platform for demonstration

@ -11,8 +11,6 @@ import 'common.dart';
void main() async {
final packageDirs = listPackageDirs(Directory.current)
.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();
print('Package dirs:\n${packageDirs.map((path) => ' $path').join('\n')}');

Loading…
Cancel
Save