Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
58 commits
Select commit Hold shift + click to select a range
b1e7a22
finish pigeon apis
bparrishMines Oct 15, 2021
768fd4c
update android webview and code gen
bparrishMines Oct 15, 2021
2199127
make apis testable
bparrishMines Oct 15, 2021
4a082eb
finish basic implementation of api impls
bparrishMines Oct 15, 2021
e8e6d51
finish api documentation
bparrishMines Oct 16, 2021
d902acb
finish dart documentation
bparrishMines Oct 16, 2021
7e0f5a7
android impl
bparrishMines Oct 18, 2021
7d30dd4
test instance manager and formatting
bparrishMines Oct 18, 2021
ff4b6cf
add dart files
bparrishMines Oct 18, 2021
4659d4d
ingore deprecated and add license
bparrishMines Oct 18, 2021
df0034a
add tests
bparrishMines Oct 18, 2021
cf1529c
add license
bparrishMines Oct 18, 2021
e5ecf8b
license again
bparrishMines Oct 18, 2021
ef3e702
remove test file
bparrishMines Oct 19, 2021
5010487
use generated flutter api for testing
bparrishMines Oct 19, 2021
2e1b590
formatting and remove circle reference
bparrishMines Oct 19, 2021
916ca2a
add avoid_relative_lib_imports to generated test file
bparrishMines Oct 19, 2021
484cce0
remove unused file
bparrishMines Oct 19, 2021
61c668b
Merge branch 'webview_pigeon_dart' into webview_pigeon
bparrishMines Oct 19, 2021
a6ffb48
webview and websettings api tests
bparrishMines Oct 20, 2021
31cf7af
finish tests
bparrishMines Oct 21, 2021
470ce8b
formatting
bparrishMines Oct 21, 2021
be2770d
licensing and style
bparrishMines Oct 21, 2021
a9b6fa2
java portion
bparrishMines Oct 21, 2021
a4e919c
add instance manager
bparrishMines Oct 21, 2021
2fbd130
change method name
bparrishMines Oct 25, 2021
8fe8aa6
add longsparsearray cheat
bparrishMines Oct 25, 2021
d5b0338
Merge branch 'webview_pigeon_java' into webview_pigeon
bparrishMines Oct 25, 2021
bf2203e
start of impl in dart
bparrishMines Oct 26, 2021
4ec084b
add webchromeclient support
bparrishMines Oct 26, 2021
337b1fa
more work to finalize
bparrishMines Oct 26, 2021
8525231
fix most bugs
bparrishMines Oct 27, 2021
731971a
almost finish impl
bparrishMines Oct 27, 2021
fe735b9
fix javascriptenabled and hybrid composition
bparrishMines Oct 27, 2021
4304c0c
fix another buggit statusgit statusgit status sadness
bparrishMines Oct 27, 2021
b3f3f3c
fix infinite bug
bparrishMines Oct 27, 2021
1a9bc3a
resort test file
bparrishMines Oct 27, 2021
8935f17
fix rest of the bugs and revert pubspec
bparrishMines Oct 27, 2021
621da9a
Merge branch 'master' of github.com:flutter/plugins into webview_pigeon
bparrishMines Oct 27, 2021
1ba3973
bersion vump
bparrishMines Oct 27, 2021
5fcb878
change dependency for testing
bparrishMines Oct 27, 2021
0c123e8
setup plugin again after reattached
bparrishMines Oct 27, 2021
7c210ea
license and callback
bparrishMines Oct 27, 2021
e540be3
delete old stuff
bparrishMines Oct 27, 2021
97d199a
remove unused file and update changelog
bparrishMines Oct 27, 2021
0064fba
version bump
bparrishMines Oct 27, 2021
f8eb4ec
some testing
bparrishMines Oct 28, 2021
4c02c7d
use mocks for tests
bparrishMines Oct 28, 2021
d289db1
dart unit tests
bparrishMines Oct 28, 2021
b71ecaa
null return values
bparrishMines Oct 28, 2021
43e42df
set hard version for android. Unit tests now fail because of channels
bparrishMines Oct 28, 2021
023ef08
Merge branch 'master' of github.com:flutter/plugins into webview_pigeon
bparrishMines Oct 28, 2021
8bbe077
add zoom support
bparrishMines Oct 28, 2021
c13520b
set hard version
bparrishMines Oct 28, 2021
110645e
move burden of maintaining callback classes to java
bparrishMines Oct 28, 2021
f2495ee
license and version
bparrishMines Oct 28, 2021
622425e
fix resize test
bparrishMines Oct 29, 2021
08582f0
release tests
bparrishMines Oct 29, 2021
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
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 2.1.1

* Replace platform implementation with API built with pigeon.

## 2.1.0

* Add `zoomEnabled` functionality.
Expand All @@ -8,7 +12,7 @@

## 2.0.14

* Update example App so navigation menu loads immediatly but only becomes available when `WebViewController` is available (same behavior as example App in webview_flutter package).
* Update example App so navigation menu loads immediately but only becomes available when `WebViewController` is available (same behavior as example App in webview_flutter package).

## 2.0.13

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,40 @@ class DownloadListenerHostApiImpl implements GeneratedAndroidWebView.DownloadLis
private final DownloadListenerCreator downloadListenerCreator;
private final GeneratedAndroidWebView.DownloadListenerFlutterApi downloadListenerFlutterApi;

static class DownloadListenerImpl implements DownloadListener, Releasable {
private final Long instanceId;
private final DownloadListenerFlutterApi flutterApi;
private boolean ignoreCallbacks = false;

DownloadListenerImpl(Long instanceId, DownloadListenerFlutterApi downloadListenerFlutterApi) {
this.instanceId = instanceId;
this.flutterApi = downloadListenerFlutterApi;
}

@Override
public void onDownloadStart(
String url,
String userAgent,
String contentDisposition,
String mimetype,
long contentLength) {
if (!ignoreCallbacks) {
flutterApi.onDownloadStart(
instanceId, url, userAgent, contentDisposition, mimetype, contentLength, reply -> {});
}
}

@Override
public void release() {
ignoreCallbacks = true;
flutterApi.dispose(instanceId, reply -> {});
}
}

static class DownloadListenerCreator {
DownloadListener createDownloadListener(
Long instanceId, DownloadListenerFlutterApi downloadListenerFlutterApi) {
return (url, userAgent, contentDisposition, mimetype, contentLength) ->
downloadListenerFlutterApi.onDownloadStart(
instanceId, url, userAgent, contentDisposition, mimetype, contentLength, reply -> {});
Long instanceId, DownloadListenerFlutterApi flutterApi) {
return new DownloadListenerImpl(instanceId, flutterApi);
}
}

Expand All @@ -36,9 +64,4 @@ public void create(Long instanceId) {
downloadListenerCreator.createDownloadListener(instanceId, downloadListenerFlutterApi);
instanceManager.addInstance(downloadListener, instanceId);
}

@Override
public void dispose(Long instanceId) {
instanceManager.removeInstance(instanceId);
}
}

This file was deleted.

Loading