From c8bf110147cf775b6d029f61418985ddda6de42d Mon Sep 17 00:00:00 2001 From: Jon Hanson Date: Tue, 20 Apr 2021 19:31:27 -0400 Subject: [PATCH] Reverted converting to a flutter platform package as it caused problems and required extra complication. --- .travis.yml | 5 ----- CHANGELOG.md | 3 +-- README.md | 2 +- lib/flutter_native_splash.dart | 3 +-- pubspec.yaml | 18 ++---------------- 5 files changed, 5 insertions(+), 26 deletions(-) diff --git a/.travis.yml b/.travis.yml index c2d12ad..58fabee 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,9 +1,4 @@ language: dart -install: - - git clone https://github.com/flutter/flutter.git -b stable - - ./flutter/bin/flutter doctor - - ./flutter/bin/flutter pub get - dart: - dev diff --git a/CHANGELOG.md b/CHANGELOG.md index b452910..8c92235 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,6 @@ -## [1.1.8+3] - (2021-Apr-20) +## [1.1.8+4] - (2021-Apr-20) * Fixed bug that was preventing copying of dark background. Fixes [#163](https://github.com/jonbhanson/flutter_native_splash/issues/163). -* Updated pubspec.yaml to show which platforms are supported. ## [1.1.7+1] - (2021-Apr-02) diff --git a/README.md b/README.md index 70f7331..dc0862d 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ First, add `flutter_native_splash` as a dev dependency in your pubspec.yaml file ```yaml dev_dependencies: - flutter_native_splash: ^1.1.8+3 + flutter_native_splash: ^1.1.8+4 ``` Don't forget to `flutter pub get`. diff --git a/lib/flutter_native_splash.dart b/lib/flutter_native_splash.dart index 15e91a2..45c47b6 100644 --- a/lib/flutter_native_splash.dart +++ b/lib/flutter_native_splash.dart @@ -3,10 +3,9 @@ /// This is the main entry point for the Flutter Native Splash package. library flutter_native_splash; -import 'dart:io'; - import 'package:image/image.dart'; import 'package:meta/meta.dart'; +import 'package:universal_io/io.dart'; import 'package:xml/xml.dart'; import 'package:yaml/yaml.dart'; diff --git a/pubspec.yaml b/pubspec.yaml index e4860ad..cbcfa3a 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,23 +1,10 @@ name: flutter_native_splash description: Generates native code to customize Flutter's default white native splash screen with background color and splash image. Supports dark mode, full screen, and more. -version: 1.1.8+3 +version: 1.1.8+4 homepage: https://github.com/jonbhanson/flutter_native_splash -flutter: - plugin: - platforms: - android: - package: net.jonhanson.flutter_native_splash - pluginClass: FlutterNativeSplash - ios: - pluginClass: FlutterNativeSplash - web: - pluginClass: FlutterNativeSplash - fileName: web.dart - environment: sdk: '>=2.12.0 <3.0.0' - flutter: ">=1.20.0" dependencies: image: ^3.0.2 @@ -25,9 +12,8 @@ dependencies: path: ^1.8.0 xml: ^5.1.0 yaml: ^3.1.0 + universal_io: ^2.0.4 dev_dependencies: pedantic: ^1.11.0 - flutter_test: - sdk: flutter test: any