Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@
- packages/wakelock/**/*
"p: wearable_rotary":
- packages/wearable_rotary/**/*
"p: webview_flutter":
- packages/webview_flutter/**/*
"p: webview_flutter_lwe":
- packages/webview_flutter_lwe/**/*

Expand Down
1 change: 1 addition & 0 deletions .github/recipe.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ plugins:
camera: []
google_maps_flutter: []
network_info_plus: []
webview_flutter: []
webview_flutter_lwe: []

# No tests.
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,5 +84,6 @@ The _"non-endorsed"_ status means that the plugin is not endorsed by the origina
| [**video_player_tizen**](packages/video_player) | 4.0 | ✔️ | ✔️ | ⚠️ | ❌ | Functional limitations,<br>TV emulator issue |
| [**wakelock_tizen**](packages/wakelock) | 4.0 | ✔️ | ✔️ | ❌ | ❌ | Cannot override system settings |
| [**wearable_rotary**](packages/wearable_rotary) | 4.0 | ✔️ | ✔️ | ❌ | ❌ | Not applicable for TV |
| [**webview_flutter_tizen**](packages/webview_flutter) | 5.5 | ❌ | ❌ | ✔️ | ❌ |
| [**webview_flutter_lwe**](packages/webview_flutter_lwe) | 5.5 | ✔️ | ✔️ | ✔️ | ✔️ | Not for production use |

7 changes: 7 additions & 0 deletions packages/webview_flutter/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
.DS_Store
.dart_tool/

.packages
.pub/

build/
134 changes: 134 additions & 0 deletions packages/webview_flutter/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,134 @@
## 0.6.0

* Change the backing web engine from LWE to EFL WebKit (EWK).

## 0.5.6

* Update LWE binary (9af6ea4101d173935fe6e6cd3f2c91ca17ed451e).

## 0.5.5

* Update README.
* Add `-Wl,-rpath=$ORIGIN` linker option.

## 0.5.4

* Change the project type to sharedLib.

## 0.5.3

* Apply new texture APIs.

## 0.5.2

* Add back key handling.

## 0.5.1

* Apply PlatformView API change.
* Code refactoring.

## 0.5.0

* Code refactoring.
* Update the example app and integration_test.
* Sync with the latest framework code.
* Migrate to new analysis options.
* Update LWE binary (f0ca15ee41d2fc96b59fd57b63b6c32cf6c1906b).

## 0.4.4

* Update LWE binary (645719ed084d899ec7d53de1758db71a8974e446).

## 0.4.3

* Remove unused things.
* Fix build warnings.

## 0.4.2

* Support background color.

## 0.4.1

* Apply texture api change.

## 0.4.0

* Support emulator.
* Update LWE binary (b22fd0c4e50cde2b9203150d80e9d0bd1a1b0602).
* Update webivew_flutter to 3.0.1.

## 0.3.11

* Organize includes.

## 0.3.10

* Apply `PlatformView` and `PlatformViewFactory` API changes.

## 0.3.9

* Update LWE binary (6bae13cb915bd41c5aac4aaaae72865f20924c03).

## 0.3.8

* Update webivew_flutter to 2.3.0.

## 0.3.7

* Update webivew_flutter to 2.1.1.

## 0.3.6

* Update LWE binary (3dff8724bfb4b2b0b9e7c4e3976a9b02e74ee13c).
* Fix various issues.

## 0.3.5

* Update LWE binary (b2fad69f50d693c86abc45b363a39b0625f5e95f).
* Fix crash issue.

## 0.3.4

* Fix buffer synchronization issue.

## 0.3.3

* Update LWE binary (c57d045a513455115a8a4c66517e5e51f5a4dfbd).
* Fix issue of multiple webviews.

## 0.3.2

* Update LWE binary (2226c28429391407d7c875c3af7531f5e1d5dfa7) for supporting google_map_flutter_tizen.

## 0.3.1

* Update lightweight web engine binary (ad0e77631f96180e19a11c3dc80b6b72c32bdffb).
* Fix bug on handling parameter of `loadUrl` API.

## 0.3.0

* Apply `PlatformView` and `PlatformViewFactory` API changes.

## 0.2.2

* Update lightweight web engine binary & header file (6263be6c888d5cb9dcca5466dfc3941a70b424eb).
* Activate resizing function.
* Apply embedder's texture API changes.

## 0.2.1

* Add lightweight web engine binary for arm64.

## 0.2.0

* Update Dart and Flutter SDK constraints.
* Update Flutter and Samsung copyright information.
* Update webview_flutter_tizen to use platform view interface.
* Update example and integration_test.
* Update webivew_flutter to 2.0.4.

## 0.1.0

* Initial release.
26 changes: 26 additions & 0 deletions packages/webview_flutter/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
Copyright (c) 2021 Samsung Electronics Co., Ltd. All rights reserved.
Copyright (c) 2017 The Chromium Authors. All rights reserved.

Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:

* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above
copyright notice, this list of conditions and the following
disclaimer in the documentation and/or other materials provided
with the distribution.
* Neither the names of the copyright holders nor the names of the
contributors may be used to endorse or promote products derived
from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
50 changes: 50 additions & 0 deletions packages/webview_flutter/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# webview_flutter_tizen

[![pub package](https://img.shields.io/pub/v/webview_flutter_tizen.svg)](https://pub.dev/packages/webview_flutter_tizen)

The Tizen implementation of [`webview_flutter`](https://github.com/flutter/plugins/tree/main/packages/webview_flutter) only for Tizen TV devices.
The WebView widget is backed by the EFL WebKit (EWK) on Tizen.

## Required privileges

To use this plugin, add below lines under the `<manifest>` section in your `tizen-manifest.xml` file.

```xml
<privileges>
<privilege>http://tizen.org/privilege/internet</privilege>
</privileges>
```

## Usage

This package is not an _endorsed_ implementation of `webview_flutter`. Therefore, you have to include `webview_flutter_tizen` alongside `webview_flutter` as dependencies in your `pubspec.yaml` file.

```yaml
dependencies:
webview_flutter: ^3.0.4
webview_flutter_tizen: ^0.6.0
```

## Example

```dart
import 'package:webview_flutter/webview_flutter.dart';

class WebViewExample extends StatefulWidget {
const WebViewExample({Key? key}) : super(key: key);

@override
WebViewExampleState createState() => WebViewExampleState();
}

class WebViewExampleState extends State<WebViewExample> {
@override
Widget build(BuildContext context) {
return WebView(initialUrl: 'https://flutter.dev');
}
}
```

## Supported devices

This plugin is supported on Tizen TV devices running Tizen 5.5 or later.
41 changes: 41 additions & 0 deletions packages/webview_flutter/example/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# Miscellaneous
*.class
*.log
*.pyc
*.swp
.DS_Store
.atom/
.buildlog/
.history
.svn/

# IntelliJ related
*.iml
*.ipr
*.iws
.idea/

# The .vscode folder contains launch configuration and tasks you configure in
# VS Code which you may wish to be included in version control, so this line
# is commented out by default.
#.vscode/

# Flutter/Dart/Pub related
**/doc/api/
**/ios/Flutter/.last_build_id
.dart_tool/
.flutter-plugins
.flutter-plugins-dependencies
.packages
.pub-cache/
.pub/
/build/

# Web related
lib/generated_plugin_registrant.dart

# Symbolication related
app.*.symbols

# Obfuscation related
app.*.map.json
7 changes: 7 additions & 0 deletions packages/webview_flutter/example/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# webview_flutter_tizen_example

Demonstrates how to use the webview_flutter_tizen plugin.

## Getting Started

To run this app on your Tizen device, use [flutter-tizen](https://github.com/flutter-tizen/flutter-tizen).
Binary file not shown.
Binary file not shown.
20 changes: 20 additions & 0 deletions packages/webview_flutter/example/assets/www/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<!DOCTYPE html>
<!-- Copyright 2013 The Flutter Authors. All rights reserved.
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file. -->
<html lang="en">
<head>
<title>Load file or HTML string example</title>
<link rel="stylesheet" href="styles/style.css" />
</head>
<body>

<h1>Local demo page</h1>
<p>
This is an example page used to demonstrate how to load a local file or HTML
string using the <a href="https://pub.dev/packages/webview_flutter">Flutter
webview</a> plugin.
</p>

</body>
</html>
3 changes: 3 additions & 0 deletions packages/webview_flutter/example/assets/www/styles/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
h1 {
color: blue;
}
Loading