Skip to content

Commit 573553c

Browse files
bwikbsseungsoo47
andcommitted
[webview_flutter] Add webview_flutter_tizen package
* This PR is created from the PR below: 2bfc038 [webview_flutter] Update README and pubspec (#53) bdd6a15 [webview_flutter] Enable intergation test (#52) 18da2a6 [webview_flutter] Update code by flutter version-up (#49) 1b6eeed [webview_flutter] Handle CompositionEvent (#47) 791511e [webview_flutter] Optimize tbm allocation (#42) 7059ce2 [webview_flutter] Add cookie and scroll APIs (#40) c5a8930 Add some APIs (#37) 3feae1d [webview_flutter] Add NavigationDelegate and onWebResourceError (#36) 42b63f8 [webview_flutter] Add removeJavascriptChannels API and Callbacks (#31) 749930e [webview_flutter] Update LWE (#28) 9e26386 [webview_flutter] Implement addJavascriptChannels() (#27) 6a34ae0 [webview_flutter] Update LWE (#26) a438093 [webview_flutter] Add evaluateJavascript() function (#25) 0d2c271 [webview_flutter] Update webview to be focused (#19) b02b245 Enable IMF on Webview (#17) 571fa4a [webview_flutter_dev] Change webview interface && embedding lwe.so file (#15) 3413964 [webview_flutter_dev] Enable gl compositor at LWE (#14) e988cf0 Change method name's first letter (#13) cb8ee9b Handle key events for tizen webview (#11) 44987de [webview_flutter] Add webview_flutter initial package (#7) Co-authored-by: MuHong Byun <[email protected]> Co-authored-by: Seungsoo Lee <[email protected]>
1 parent 6342185 commit 573553c

35 files changed

+4542
-0
lines changed

packages/webview_flutter/.gitignore

+7
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/

packages/webview_flutter/.metadata

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# This file tracks properties of this Flutter project.
2+
# Used by Flutter tool to assess capabilities and perform upgrades etc.
3+
#
4+
# This file should be version controlled and should not be manually edited.
5+
6+
version:
7+
revision: 8b3760638a189741cd9ca881aa2dd237c1df1be5
8+
channel: unknown
9+
10+
project_type: plugin

packages/webview_flutter/CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
## 0.0.1
2+
3+
* TODO: Describe initial release.

packages/webview_flutter/LICENSE

+26
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.

packages/webview_flutter/README.md

+52
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
# webview_flutter_tizen
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+
## Usage
12+
13+
```yaml
14+
dependencies:
15+
webview_flutter: ^1.0.6
16+
webview_flutter_tizen: ^1.0.0
17+
```
18+
19+
To enable tizen implementation, set `WebView.platform = TizenWebView();` in `initState()`.
20+
For example:
21+
22+
```dart
23+
import 'dart:io';
24+
25+
import 'package:webview_flutter/webview_flutter.dart';
26+
import 'package:webview_flutter_tizen/webview_flutter_tizen.dart';
27+
28+
class WebViewExample extends StatefulWidget {
29+
@override
30+
WebViewExampleState createState() => WebViewExampleState();
31+
}
32+
33+
class WebViewExampleState extends State<WebViewExample> {
34+
@override
35+
void initState() {
36+
super.initState();
37+
WebView.platform = TizenWebView();
38+
}
39+
40+
@override
41+
Widget build(BuildContext context) {
42+
return WebView(
43+
initialUrl: 'https://flutter.dev',
44+
);
45+
}
46+
}
47+
```
48+
49+
## Limitations
50+
- This plugin is only supported on **Galaxy Watch and TV** devices running Tizen 5.5 or later.
51+
- This is an initial webview plugin for Tizen and is implemented based on Tizen Lightweight Web Engine (LWE). If you would like to know detailed specifications that the LWE supports, please refer to the following link :
52+
https://review.tizen.org/gerrit/gitweb?p=platform/upstream/lightweight-web-engine.git;a=blob;f=docs/Spec.md;h=ecb8f437c5a1facc77d3435e1a8aad6a267f12f3;hb=refs/heads/tizen
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
+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# This file tracks properties of this Flutter project.
2+
# Used by Flutter tool to assess capabilities and perform upgrades etc.
3+
#
4+
# This file should be version controlled and should not be manually edited.
5+
6+
version:
7+
revision: 8b3760638a189741cd9ca881aa2dd237c1df1be5
8+
channel: unknown
9+
10+
project_type: app
+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# webview_flutter_tizen_example
2+
3+
Demonstrates how to use the webview_flutter_tizen plugin.
4+
5+
## Getting Started
6+
7+
This project is a starting point for a Flutter application.
8+
9+
A few resources to get you started if this is your first Flutter project:
10+
11+
- [Lab: Write your first Flutter app](https://flutter.dev/docs/get-started/codelab)
12+
- [Cookbook: Useful Flutter samples](https://flutter.dev/docs/cookbook)
13+
14+
For help getting started with Flutter, view our
15+
[online documentation](https://flutter.dev/docs), which offers tutorials,
16+
samples, guidance on mobile development, and a full API reference.
Binary file not shown.

0 commit comments

Comments
 (0)