From 154131f9f36fd5b659f8879df606ad6ee068a9fe Mon Sep 17 00:00:00 2001 From: moepoi Date: Wed, 2 Dec 2020 10:31:57 +0700 Subject: [PATCH] Fix Streaming --- info.json | 2 +- lib/components/initializer.dart | 2 +- lib/pages/episode-detail.dart | 3 +++ pubspec.lock | 38 ++++++++++++++++----------------- 4 files changed, 24 insertions(+), 21 deletions(-) diff --git a/info.json b/info.json index 5f988d8..4202deb 100644 --- a/info.json +++ b/info.json @@ -1,5 +1,5 @@ { - "version": "1.0.2", + "version": "1.0.3", "update_url": "https://s.id/neonime-app", "message": { "enable": false, diff --git a/lib/components/initializer.dart b/lib/components/initializer.dart index 921d1fc..e5a7a95 100644 --- a/lib/components/initializer.dart +++ b/lib/components/initializer.dart @@ -1,7 +1,7 @@ import 'dart:convert'; import 'package:http/http.dart' as http; -final appVersion = '1.0.2'; +final appVersion = '1.0.3'; dynamic initializer() async { final urlConfig = 'https://gitlab.com/moepoi/neonime-app/-/raw/master/info.json'; diff --git a/lib/pages/episode-detail.dart b/lib/pages/episode-detail.dart index 8eb7805..c780634 100644 --- a/lib/pages/episode-detail.dart +++ b/lib/pages/episode-detail.dart @@ -68,6 +68,9 @@ class _EpisodeDetailState extends State { child: Center( child: InAppWebView( initialUrl: currentServer, + initialHeaders: { + 'Referer': postUrl + }, onWebViewCreated: (InAppWebViewController controller) { webView = controller; diff --git a/pubspec.lock b/pubspec.lock index b0d5baf..f0af3cd 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -21,7 +21,7 @@ packages: name: async url: "https://pub.dartlang.org" source: hosted - version: "2.5.0-nullsafety" + version: "2.5.0-nullsafety.3" async_loader: dependency: "direct main" description: @@ -35,7 +35,7 @@ packages: name: boolean_selector url: "https://pub.dartlang.org" source: hosted - version: "2.1.0-nullsafety" + version: "2.1.0-nullsafety.3" cached_network_image: dependency: "direct main" description: @@ -49,28 +49,28 @@ packages: name: characters url: "https://pub.dartlang.org" source: hosted - version: "1.1.0-nullsafety.2" + version: "1.1.0-nullsafety.5" charcode: dependency: transitive description: name: charcode url: "https://pub.dartlang.org" source: hosted - version: "1.2.0-nullsafety" + version: "1.2.0-nullsafety.3" clock: dependency: transitive description: name: clock url: "https://pub.dartlang.org" source: hosted - version: "1.1.0-nullsafety" + version: "1.1.0-nullsafety.3" collection: dependency: transitive description: name: collection url: "https://pub.dartlang.org" source: hosted - version: "1.15.0-nullsafety.2" + version: "1.15.0-nullsafety.5" convert: dependency: transitive description: @@ -105,7 +105,7 @@ packages: name: fake_async url: "https://pub.dartlang.org" source: hosted - version: "1.1.0-nullsafety" + version: "1.2.0-nullsafety.3" file: dependency: transitive description: @@ -185,14 +185,14 @@ packages: name: matcher url: "https://pub.dartlang.org" source: hosted - version: "0.12.10-nullsafety" + version: "0.12.10-nullsafety.3" meta: dependency: transitive description: name: meta url: "https://pub.dartlang.org" source: hosted - version: "1.3.0-nullsafety.2" + version: "1.3.0-nullsafety.6" mime: dependency: transitive description: @@ -206,7 +206,7 @@ packages: name: path url: "https://pub.dartlang.org" source: hosted - version: "1.8.0-nullsafety" + version: "1.8.0-nullsafety.3" path_provider: dependency: transitive description: @@ -288,7 +288,7 @@ packages: name: source_span url: "https://pub.dartlang.org" source: hosted - version: "1.8.0-nullsafety" + version: "1.8.0-nullsafety.4" sqflite: dependency: transitive description: @@ -309,21 +309,21 @@ packages: name: stack_trace url: "https://pub.dartlang.org" source: hosted - version: "1.10.0-nullsafety" + version: "1.10.0-nullsafety.6" stream_channel: dependency: transitive description: name: stream_channel url: "https://pub.dartlang.org" source: hosted - version: "2.1.0-nullsafety" + version: "2.1.0-nullsafety.3" string_scanner: dependency: transitive description: name: string_scanner url: "https://pub.dartlang.org" source: hosted - version: "1.1.0-nullsafety" + version: "1.1.0-nullsafety.3" synchronized: dependency: transitive description: @@ -337,21 +337,21 @@ packages: name: term_glyph url: "https://pub.dartlang.org" source: hosted - version: "1.2.0-nullsafety" + version: "1.2.0-nullsafety.3" test_api: dependency: transitive description: name: test_api url: "https://pub.dartlang.org" source: hosted - version: "0.2.19-nullsafety" + version: "0.2.19-nullsafety.6" typed_data: dependency: transitive description: name: typed_data url: "https://pub.dartlang.org" source: hosted - version: "1.3.0-nullsafety.2" + version: "1.3.0-nullsafety.5" uuid: dependency: transitive description: @@ -365,7 +365,7 @@ packages: name: vector_math url: "https://pub.dartlang.org" source: hosted - version: "2.1.0-nullsafety.2" + version: "2.1.0-nullsafety.5" xdg_directories: dependency: transitive description: @@ -388,5 +388,5 @@ packages: source: hosted version: "2.2.1" sdks: - dart: ">=2.10.0-0.0.dev <2.10.0" + dart: ">=2.12.0-0.0 <3.0.0" flutter: ">=1.12.13+hotfix.5 <2.0.0"