diff --git a/example/.flutter-plugins-dependencies b/example/.flutter-plugins-dependencies new file mode 100644 index 0000000..238fd7f --- /dev/null +++ b/example/.flutter-plugins-dependencies @@ -0,0 +1 @@ +{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"path_provider","path":"/Users/vitaliishcherbyna/.pub-cache/hosted/pub.dartlang.org/path_provider-1.1.2/","dependencies":[]},{"name":"sqflite","path":"/Users/vitaliishcherbyna/.pub-cache/hosted/pub.dartlang.org/sqflite-1.1.3/","dependencies":[]},{"name":"flutter_plugin_pdf_viewer","path":"/Users/vitaliishcherbyna/KanapkaMan/flutter_plugin_pdf_viewer/","dependencies":["path_provider"]}],"android":[{"name":"path_provider","path":"/Users/vitaliishcherbyna/.pub-cache/hosted/pub.dartlang.org/path_provider-1.1.2/","dependencies":[]},{"name":"sqflite","path":"/Users/vitaliishcherbyna/.pub-cache/hosted/pub.dartlang.org/sqflite-1.1.3/","dependencies":[]},{"name":"flutter_plugin_pdf_viewer","path":"/Users/vitaliishcherbyna/KanapkaMan/flutter_plugin_pdf_viewer/","dependencies":["path_provider"]}],"macos":[],"linux":[],"windows":[],"web":[]},"dependencyGraph":[{"name":"path_provider","dependencies":[]},{"name":"sqflite","dependencies":[]},{"name":"flutter_plugin_pdf_viewer","dependencies":["path_provider"]}],"date_created":"2020-12-13 12:40:07.851434","version":"1.22.0"} \ No newline at end of file diff --git a/example/ios/Flutter/flutter_export_environment.sh b/example/ios/Flutter/flutter_export_environment.sh new file mode 100755 index 0000000..d7864dc --- /dev/null +++ b/example/ios/Flutter/flutter_export_environment.sh @@ -0,0 +1,15 @@ +#!/bin/sh +# This is a generated file; do not edit or check into version control. +export "FLUTTER_ROOT=/Users/vitaliishcherbyna/flutter" +export "FLUTTER_APPLICATION_PATH=/Users/vitaliishcherbyna/KanapkaMan/flutter_plugin_pdf_viewer/example" +export "FLUTTER_TARGET=lib/main.dart" +export "FLUTTER_BUILD_DIR=build" +export "SYMROOT=${SOURCE_ROOT}/../build/ios" +export "OTHER_LDFLAGS=$(inherited) -framework Flutter" +export "FLUTTER_FRAMEWORK_DIR=/Users/vitaliishcherbyna/flutter/bin/cache/artifacts/engine/ios" +export "FLUTTER_BUILD_NAME=1.0.0" +export "FLUTTER_BUILD_NUMBER=1" +export "DART_OBFUSCATION=false" +export "TRACK_WIDGET_CREATION=false" +export "TREE_SHAKE_ICONS=false" +export "PACKAGE_CONFIG=.packages" diff --git a/example/pubspec.lock b/example/pubspec.lock index 13d20a0..9a9e524 100644 --- a/example/pubspec.lock +++ b/example/pubspec.lock @@ -7,28 +7,42 @@ packages: name: async url: "https://pub.dartlang.org" source: hosted - version: "2.2.0" + version: "2.5.0-nullsafety.1" boolean_selector: dependency: transitive description: name: boolean_selector url: "https://pub.dartlang.org" source: hosted - version: "1.0.4" + version: "2.1.0-nullsafety.1" + characters: + dependency: transitive + description: + name: characters + url: "https://pub.dartlang.org" + source: hosted + version: "1.1.0-nullsafety.3" charcode: dependency: transitive description: name: charcode url: "https://pub.dartlang.org" source: hosted - version: "1.1.2" + version: "1.2.0-nullsafety.1" + clock: + dependency: transitive + description: + name: clock + url: "https://pub.dartlang.org" + source: hosted + version: "1.1.0-nullsafety.1" collection: dependency: transitive description: name: collection url: "https://pub.dartlang.org" source: hosted - version: "1.14.11" + version: "1.15.0-nullsafety.3" convert: dependency: transitive description: @@ -50,6 +64,13 @@ packages: url: "https://pub.dartlang.org" source: hosted version: "0.1.2" + fake_async: + dependency: transitive + description: + name: fake_async + url: "https://pub.dartlang.org" + source: hosted + version: "1.2.0-nullsafety.1" flutter: dependency: "direct main" description: flutter @@ -115,14 +136,14 @@ packages: name: matcher url: "https://pub.dartlang.org" source: hosted - version: "0.12.5" + version: "0.12.10-nullsafety.1" meta: dependency: transitive description: name: meta url: "https://pub.dartlang.org" source: hosted - version: "1.1.6" + version: "1.3.0-nullsafety.3" numberpicker: dependency: transitive description: @@ -136,7 +157,7 @@ packages: name: path url: "https://pub.dartlang.org" source: hosted - version: "1.6.2" + version: "1.8.0-nullsafety.1" path_drawing: dependency: transitive description: @@ -158,13 +179,6 @@ packages: url: "https://pub.dartlang.org" source: hosted version: "1.1.2" - pedantic: - dependency: transitive - description: - name: pedantic - url: "https://pub.dartlang.org" - source: hosted - version: "1.7.0" petitparser: dependency: transitive description: @@ -172,20 +186,13 @@ packages: url: "https://pub.dartlang.org" source: hosted version: "2.1.1" - quiver: - dependency: transitive - description: - name: quiver - url: "https://pub.dartlang.org" - source: hosted - version: "2.0.3" rxdart: dependency: transitive description: name: rxdart url: "https://pub.dartlang.org" source: hosted - version: "0.21.0" + version: "0.24.1" sky_engine: dependency: transitive description: flutter @@ -197,7 +204,7 @@ packages: name: source_span url: "https://pub.dartlang.org" source: hosted - version: "1.5.5" + version: "1.8.0-nullsafety.2" sqflite: dependency: transitive description: @@ -211,21 +218,21 @@ packages: name: stack_trace url: "https://pub.dartlang.org" source: hosted - version: "1.9.3" + version: "1.10.0-nullsafety.1" stream_channel: dependency: transitive description: name: stream_channel url: "https://pub.dartlang.org" source: hosted - version: "2.0.0" + version: "2.1.0-nullsafety.1" string_scanner: dependency: transitive description: name: string_scanner url: "https://pub.dartlang.org" source: hosted - version: "1.0.4" + version: "1.1.0-nullsafety.1" synchronized: dependency: transitive description: @@ -239,21 +246,21 @@ packages: name: term_glyph url: "https://pub.dartlang.org" source: hosted - version: "1.1.0" + version: "1.2.0-nullsafety.1" test_api: dependency: transitive description: name: test_api url: "https://pub.dartlang.org" source: hosted - version: "0.2.5" + version: "0.2.19-nullsafety.2" typed_data: dependency: transitive description: name: typed_data url: "https://pub.dartlang.org" source: hosted - version: "1.1.6" + version: "1.3.0-nullsafety.3" uuid: dependency: transitive description: @@ -267,7 +274,7 @@ packages: name: vector_math url: "https://pub.dartlang.org" source: hosted - version: "2.0.8" + version: "2.1.0-nullsafety.3" xml: dependency: transitive description: @@ -276,5 +283,5 @@ packages: source: hosted version: "3.3.1" sdks: - dart: ">=2.2.2 <3.0.0" + dart: ">=2.10.0-110 <2.11.0" flutter: ">=1.6.0 <2.0.0" diff --git a/lib/src/document.dart b/lib/src/document.dart index 4844297..62df6c0 100644 --- a/lib/src/document.dart +++ b/lib/src/document.dart @@ -5,7 +5,6 @@ import 'package:flutter/services.dart'; import 'package:flutter_cache_manager/flutter_cache_manager.dart'; import 'package:flutter_plugin_pdf_viewer/src/page.dart'; import 'package:path_provider/path_provider.dart'; -import 'package:rxdart/rxdart.dart'; class PDFDocument { static const MethodChannel _channel = @@ -86,7 +85,7 @@ class PDFDocument { } // Stream all pages - Observable getAll() { + Stream getAll() { return Future.forEach(List(count), (i) async { print(i); final data = await _channel diff --git a/pubspec.lock b/pubspec.lock index 3a13e9c..2038338 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -8,6 +8,13 @@ packages: url: "https://pub.dartlang.org" source: hosted version: "2.2.0" + characters: + dependency: transitive + description: + name: characters + url: "https://pub.dartlang.org" + source: hosted + version: "1.1.0-nullsafety.3" charcode: dependency: transitive description: @@ -21,7 +28,7 @@ packages: name: collection url: "https://pub.dartlang.org" source: hosted - version: "1.14.11" + version: "1.15.0-nullsafety.3" convert: dependency: transitive description: @@ -89,7 +96,7 @@ packages: name: meta url: "https://pub.dartlang.org" source: hosted - version: "1.1.6" + version: "1.3.0-nullsafety.3" numberpicker: dependency: "direct main" description: @@ -145,7 +152,7 @@ packages: name: rxdart url: "https://pub.dartlang.org" source: hosted - version: "0.21.0" + version: "0.24.1" sky_engine: dependency: transitive description: flutter @@ -192,7 +199,7 @@ packages: name: typed_data url: "https://pub.dartlang.org" source: hosted - version: "1.1.6" + version: "1.3.0-nullsafety.3" uuid: dependency: transitive description: @@ -206,7 +213,7 @@ packages: name: vector_math url: "https://pub.dartlang.org" source: hosted - version: "2.0.8" + version: "2.1.0-nullsafety.3" xml: dependency: transitive description: @@ -215,5 +222,5 @@ packages: source: hosted version: "3.5.0" sdks: - dart: ">=2.4.0 <3.0.0" + dart: ">=2.10.0-110 <2.11.0" flutter: ">=1.6.0 <2.0.0" diff --git a/pubspec.yaml b/pubspec.yaml index 3b97efd..5df6000 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -12,11 +12,11 @@ dependencies: sdk: flutter flutter_cache_manager: ^1.0.0 path_provider: ^1.1.0 - rxdart: ^0.21.0 + rxdart: ^0.24.1 numberpicker: ^1.0.0 flutter_advanced_networkimage: ^0.5.0 flutter: plugin: androidPackage: pt.tribeiro.flutter_plugin_pdf_viewer - pluginClass: FlutterPluginPdfViewerPlugin \ No newline at end of file + pluginClass: FlutterPluginPdfViewerPlugin