Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[flutter_local_notifications] re-add imports needed for Flutter 3.0 and add build tasks that use Flutter 3.0 #1811

Merged
merged 2 commits into from Nov 26, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
55 changes: 51 additions & 4 deletions .cirrus.yml
@@ -1,5 +1,5 @@
task:
name: Build Android example app
name: Build Android example app (stable channel)
container:
image: cirrusci/flutter:stable
pub_cache:
Expand All @@ -12,7 +12,20 @@ task:
- melos run build:example_android

task:
name: Build iOS example app
name: Build Android example app (3.0.0)
container:
image: cirrusci/flutter:3.0.0
pub_cache:
folder: ~/.pub-cache
install_melos_script:
- dart pub global activate melos
build_script:
- export PATH="$PATH":"$HOME/.pub-cache/bin"
- melos bootstrap
- melos run build:example_android

task:
name: Build iOS example app (stable channel)
osx_instance:
image: monterey-xcode
pub_cache:
Expand All @@ -28,7 +41,7 @@ task:
- melos run build:example_ios

task:
name: Build macOS example app
name: Build macOS example app (stable channel)
osx_instance:
image: monterey-xcode
pub_cache:
Expand All @@ -46,7 +59,24 @@ task:
- melos run build:example_macos

task:
name: Build Linux example app
name: Build Linux example app (3.0.0)
container:
image: cirrusci/flutter:3.0.0
pub_cache:
folder: ~/.pub-cache
setup_script:
- apt update
- apt install cmake ninja-build clang pkg-config libgtk-3-dev -y
- flutter config --enable-linux-desktop
install_melos_script:
- dart pub global activate melos
build_script:
- export PATH="$PATH":"$HOME/.pub-cache/bin"
- melos bootstrap
- melos run build:example_linux

task:
name: Build Linux example app (stable channel)
container:
image: cirrusci/flutter:stable
pub_cache:
Expand All @@ -62,6 +92,23 @@ task:
- melos bootstrap
- melos run build:example_linux

task:
name: Build Linux example app (3.0.0)
container:
image: cirrusci/flutter:3.0.0
pub_cache:
folder: ~/.pub-cache
setup_script:
- apt update
- apt install cmake ninja-build clang pkg-config libgtk-3-dev -y
- flutter config --enable-linux-desktop
install_melos_script:
- dart pub global activate melos
build_script:
- export PATH="$PATH":"$HOME/.pub-cache/bin"
- melos bootstrap
- melos run build:example_linux

task:
name: Run all unit tests (Dart)
container:
Expand Down
1 change: 1 addition & 0 deletions flutter_local_notifications/example/lib/main.dart
@@ -1,6 +1,7 @@
import 'dart:async';
import 'dart:convert';
import 'dart:io';
import 'dart:typed_data';

import 'package:device_info_plus/device_info_plus.dart';
import 'package:flutter/cupertino.dart';
Expand Down
@@ -1,3 +1,5 @@
import 'dart:typed_data';

import 'package:clock/clock.dart';
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
Expand Down