diff --git a/.circleci/config.yml b/.circleci/config.yml deleted file mode 100644 index 7c0dca1a..00000000 --- a/.circleci/config.yml +++ /dev/null @@ -1,11 +0,0 @@ -version: 2.1 -jobs: - build: - docker: - - image: circleci/flutter:2.10.0 - steps: - - checkout - - run: flutter doctor -v - - run: flutter analyze - - run: flutter test --coverage --coverage-path=lcov.info - - run: bash <(curl -s https://codecov.io/bash) diff --git a/.travis.yml b/.travis.yml deleted file mode 100755 index 9671b403..00000000 --- a/.travis.yml +++ /dev/null @@ -1,30 +0,0 @@ -os: - - linux -sudo: false -branches: - # Build all branches - only: - - /.*/ -addons: - apt: - # Flutter depends on /usr/lib/x86_64-linux-gnu/libstdc++.so.6 version GLIBCXX_3.4.18 - sources: - - ubuntu-toolchain-r-test # if we don't specify this, the libstdc++6 we get is the wrong version - packages: - - libstdc++6 -before_script: - - git clone --branch stable --depth 1 https://github.com/flutter/flutter.git - - export PATH=`pwd`/flutter/bin:`pwd`/flutter/bin/cache/dart-sdk/bin:$PATH - - flutter doctor -script: - - flutter packages get - - flutter analyze --no-pub --no-current-package ./lib ./test ./example - - dart format --set-exit-if-changed ./lib ./test ./example || travis_terminate 1 - - flutter test --coverage --coverage-path=lcov.info -after_success: - - bash <(curl -s https://codecov.io/bash) - -# Avoid re-downloading packages across different builds if possible. -cache: - directories: - - $HOME/.pub-cache diff --git a/CHANGELOG.md b/CHANGELOG.md index 4ff6b218..c8c55300 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,7 @@ ## 11.2.0 - [432] On CupertinoAlertDialog configured CupertinoActionButton isDefaultAction property for the Update button. Thanks to @lukemmtt for the change. +- Removed old travis.yaml CI file. ## 11.1.0 diff --git a/README.md b/README.md index 7d89677b..9e30dfa6 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,5 @@ # Upgrader -[![Build Status](https://travis-ci.com/larryaasen/upgrader.svg?branch=master)](https://app.travis-ci.com/github/larryaasen/upgrader) [![codecov](https://codecov.io/gh/larryaasen/upgrader/branch/master/graph/badge.svg)](https://app.codecov.io/gh/larryaasen/upgrader) [![pub package](https://img.shields.io/pub/v/upgrader.svg)](https://pub.dartlang.org/packages/upgrader) [![GitHub Stars](https://img.shields.io/github/stars/larryaasen/upgrader.svg)](https://github.com/larryaasen/upgrader/stargazers) @@ -11,7 +10,7 @@ A Flutter package for prompting users to upgrade when there is a newer version of the app in the store. -## Overview +## Overview When a newer app version is available in the app store, a simple alert prompt or card is displayed. @@ -47,7 +46,8 @@ Tapping the UPDATE NOW button takes the user to the App Store (iOS) or Google Pl ## Alert Example -Just wrap your home widget in the `UpgradeAlert` widget, and it will handle the rest. +Just wrap your home widget in the `UpgradeAlert` widget, and it will handle the rest. Make sure `UpgradeAlert` +is below `MaterialApp` in the widget tree. ```dart class MyApp extends StatelessWidget { const MyApp({super.key}); @@ -225,7 +225,7 @@ description field. ## Go Router When using GoRouter (package go_router) with upgrader, you may need to provide -a navigatorKey to the ```UpgradeAlert``` widget so that the correct route +a navigatorKey to the ```UpgradeAlert``` widget so that the correct route context is used. Below is part of the code you will need for this. Also, checkout the [example/lib/main-gorouter.dart](example/lib/main-gorouter.dart) example for a more complete example. @@ -613,10 +613,6 @@ Please sponsor or donate to the creator of `upgrader` on [Flattr](https://flattr ## Builds -[![Build Status](https://travis-ci.com/larryaasen/upgrader.svg?branch=master)](https://app.travis-ci.com/github/larryaasen/upgrader) - [![Codemagic](https://api.codemagic.io/apps/5ffb7888eb8402dcd1928753/flutter-package/status_badge.svg)](https://codemagic.io/apps/5ffb7888eb8402dcd1928753/flutter-package/latest_build) -[![CircleCI](https://dl.circleci.com/status-badge/img/gh/larryaasen/upgrader/tree/master.svg?style=shield)](https://dl.circleci.com/status-badge/redirect/gh/larryaasen/upgrader/tree/master) - [![GitHub main workflow](https://github.com/larryaasen/upgrader/actions/workflows/main.yml/badge.svg)](https://github.com/larryaasen/upgrader/actions/workflows/main.yml)