Skip to content

Commit 06939f1

Browse files
committed
[webview_flutter] Introduce webview_flutter base on chromium engine(ewk)
* Rename webview_flutter base on lwe (webview_flutter_tizen -> webview_flutter_tizen_lwe) * Add webview_flutter_tizen_ewk Signed-off-by: MuHong Byun <mh.byun@samsung.com>
1 parent 5d85ebd commit 06939f1

File tree

190 files changed

+33434
-1
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

190 files changed

+33434
-1
lines changed

packages/webview_flutter/CHANGELOG.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,7 @@
1515
## 0.2.2
1616
* Update lightweight web engine binary & header file (6263be6c888d5cb9dcca5466dfc3941a70b424eb)
1717
* Activate resizing function
18-
* Apply embedder's texture APIs change
18+
* Apply embedder's texture APIs change
19+
20+
## 0.3
21+
* Change name : webview_flutter_tizen -> webview_flutter_tizen_lwe
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
.DS_Store
2+
.dart_tool/
3+
4+
.packages
5+
.pub/
6+
7+
build/
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
## 0.1.0
2+
3+
* Initial release
4+
5+
## 0.2.0
6+
* Update Dart and Flutter SDK constraints
7+
* Update Flutter and Samsung copyright information
8+
* Update webview_flutter_tizen to use platform view interface
9+
* Update example and integration_test
10+
* Update webivew_flutter to 2.0.4
11+
12+
## 0.2.1
13+
* Add lightweight web engine binary for arm64
14+
15+
## 0.2.2
16+
* Update lightweight web engine binary & header file (6263be6c888d5cb9dcca5466dfc3941a70b424eb)
17+
* Activate resizing function
18+
* Apply embedder's texture APIs change

packages/webview_flutter_ewk/LICENSE

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
Copyright (c) 2020 Samsung Electronics Co., Ltd. All rights reserved.
2+
Copyright (c) 2017 The Chromium Authors. All rights reserved.
3+
4+
Redistribution and use in source and binary forms, with or without modification,
5+
are permitted provided that the following conditions are met:
6+
7+
* Redistributions of source code must retain the above copyright
8+
notice, this list of conditions and the following disclaimer.
9+
* Redistributions in binary form must reproduce the above
10+
copyright notice, this list of conditions and the following
11+
disclaimer in the documentation and/or other materials provided
12+
with the distribution.
13+
* Neither the names of the copyright holders nor the names of the
14+
contributors may be used to endorse or promote products derived
15+
from this software without specific prior written permission.
16+
17+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
18+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
19+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
20+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
21+
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
22+
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
23+
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
24+
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
26+
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
# webview_flutter_tizen_ewk
2+
3+
The Tizen implementation of [`webview_flutter`](https://github.com/flutter/plugins/tree/master/packages/webview_flutter).
4+
5+
## Supported devices
6+
7+
This plugin is available on these types of devices:
8+
9+
- Galaxy Watch or TV (running Tizen 5.5 or later)
10+
11+
## Required privileges
12+
13+
To use this plugin, add below lines under the `<manifest>` section in your `tizen-manifest.xml` file,
14+
15+
```xml
16+
<privileges>
17+
<privilege>http://tizen.org/privilege/internet</privilege>
18+
</privileges>
19+
```
20+
21+
## Usage
22+
23+
This package is not an _endorsed_ implementation of `webview_flutter`. Therefore, you have to include `webview_flutter_tizen_ewk` alongside `webview_flutter` as dependencies in your `pubspec.yaml` file.
24+
25+
```yaml
26+
dependencies:
27+
webview_flutter: ^1.0.6
28+
webview_flutter_tizen_ewk: ^0.1.0
29+
```
30+
31+
## Example
32+
33+
```dart
34+
import 'dart:io';
35+
import 'package:webview_flutter/webview_flutter.dart';
36+
37+
class WebViewExample extends StatefulWidget {
38+
@override
39+
WebViewExampleState createState() => WebViewExampleState();
40+
}
41+
42+
class WebViewExampleState extends State<WebViewExample> {
43+
@override
44+
void initState() {
45+
super.initState();
46+
}
47+
48+
@override
49+
Widget build(BuildContext context) {
50+
return WebView(
51+
initialUrl: 'https://flutter.dev',
52+
);
53+
}
54+
}
55+
```
56+
57+
## Limitations
58+
- This plugin is only supported on **Galaxy Watch and TV** devices running Tizen 5.5 or later.
59+
- This is an initial webview plugin for Tizen and is implemented based on Tizen Chromium-EWK engine.
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# Miscellaneous
2+
*.class
3+
*.log
4+
*.pyc
5+
*.swp
6+
.DS_Store
7+
.atom/
8+
.buildlog/
9+
.history
10+
.svn/
11+
12+
# IntelliJ related
13+
*.iml
14+
*.ipr
15+
*.iws
16+
.idea/
17+
18+
# The .vscode folder contains launch configuration and tasks you configure in
19+
# VS Code which you may wish to be included in version control, so this line
20+
# is commented out by default.
21+
#.vscode/
22+
23+
# Flutter/Dart/Pub related
24+
**/doc/api/
25+
**/ios/Flutter/.last_build_id
26+
.dart_tool/
27+
.flutter-plugins
28+
.flutter-plugins-dependencies
29+
.packages
30+
.pub-cache/
31+
.pub/
32+
/build/
33+
34+
# Web related
35+
lib/generated_plugin_registrant.dart
36+
37+
# Symbolication related
38+
app.*.symbols
39+
40+
# Obfuscation related
41+
app.*.map.json
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# webview_flutter_tizen_ewk_example
2+
3+
Demonstrates how to use the webview_flutter_tizen_ewk plugin.
4+
5+
## Getting Started
6+
7+
To run this app on your Tizen device, use [flutter-tizen](https://github.com/flutter-tizen/flutter-tizen).

0 commit comments

Comments
 (0)