Fixed web example, Fixed export library
This commit is contained in:
parent
8955cd2433
commit
30d041283b
|
@ -1,3 +1,8 @@
|
|||
## 6.0.0-beta.2
|
||||
|
||||
- Fixed web example
|
||||
- Fixed export library
|
||||
|
||||
## 6.0.0-beta.1
|
||||
|
||||
- Deprecated old classes/properties/methods to make them eventually compatible with other Platforms and WebView engines.
|
||||
|
|
|
@ -62,7 +62,7 @@ To make it work properly on the Web platform, you need to add the `web_support.j
|
|||
```html
|
||||
<head>
|
||||
<!-- ... -->
|
||||
<script src="/packages/flutter_inappwebview/assets/web/web_support.js" defer></script>
|
||||
<script type="application/javascript" src="/assets/packages/flutter_inappwebview/assets/web/web_support.js" defer></script>
|
||||
<!-- ... -->
|
||||
</head>
|
||||
```
|
||||
|
|
|
@ -1,18 +0,0 @@
|
|||
//
|
||||
// Generated file. Do not edit.
|
||||
//
|
||||
|
||||
// ignore_for_file: directives_ordering
|
||||
// ignore_for_file: lines_longer_than_80_chars
|
||||
|
||||
import 'package:flutter_inappwebview/flutter_inappwebview_web.dart';
|
||||
import 'package:url_launcher_web/url_launcher_web.dart';
|
||||
|
||||
import 'package:flutter_web_plugins/flutter_web_plugins.dart';
|
||||
|
||||
// ignore: public_member_api_docs
|
||||
void registerPlugins(Registrar registrar) {
|
||||
FlutterInAppWebViewWebPlatform.registerWith(registrar);
|
||||
UrlLauncherPlugin.registerWith(registrar);
|
||||
registrar.registerMessageHandler();
|
||||
}
|
|
@ -33,7 +33,7 @@
|
|||
<link rel="manifest" href="manifest.json">
|
||||
|
||||
<!-- Load flutter_inappwebview web_support js library -->
|
||||
<script src="/packages/flutter_inappwebview/assets/web/web_support.js" defer></script>
|
||||
<script type="application/javascript" src="/assets/packages/flutter_inappwebview/assets/web/web_support.js" defer></script>
|
||||
</head>
|
||||
<body>
|
||||
<!-- This script installs service_worker.js to provide PWA functionality to
|
||||
|
|
|
@ -22,3 +22,4 @@
|
|||
library flutter_inappwebview;
|
||||
|
||||
export 'src/main.dart';
|
||||
export 'src/web/main_stub.dart' if (dart.library.html) 'src/web/main.dart';
|
|
@ -1,25 +0,0 @@
|
|||
/*
|
||||
*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one
|
||||
* or more contributor license agreements. See the NOTICE file
|
||||
* distributed with this work for additional information
|
||||
* regarding copyright ownership. The ASF licenses this file
|
||||
* to you under the Apache License, Version 2.0 (the
|
||||
* "License"); you may not use this file except in compliance
|
||||
* with the License. You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*
|
||||
*/
|
||||
|
||||
library flutter_inappwebview;
|
||||
|
||||
export 'src/main.dart';
|
||||
export 'src/web/main_stub.dart' if (dart.library.html) 'src/web/main.dart';
|
|
@ -1,6 +1,6 @@
|
|||
name: flutter_inappwebview
|
||||
description: A Flutter plugin that allows you to add an inline webview, to use an headless webview, and to open an in-app browser window.
|
||||
version: 6.0.0-beta.1
|
||||
version: 6.0.0-beta.2
|
||||
homepage: https://inappwebview.dev/
|
||||
repository: https://github.com/pichillilorenzo/flutter_inappwebview
|
||||
issue_tracker: https://github.com/pichillilorenzo/flutter_inappwebview/issues
|
||||
|
@ -41,7 +41,7 @@ flutter:
|
|||
pluginClass: InAppWebViewFlutterPlugin
|
||||
web:
|
||||
pluginClass: FlutterInAppWebViewWebPlatform
|
||||
fileName: flutter_inappwebview_web.dart
|
||||
fileName: flutter_inappwebview.dart
|
||||
|
||||
assets:
|
||||
- packages/flutter_inappwebview/assets/t_rex_runner/t-rex.html
|
||||
|
|
Loading…
Reference in New Issue