Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
Flutter Inappwebview
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
李增强
Flutter Inappwebview
Commits
bb0e7f70
Commit
bb0e7f70
authored
Nov 10, 2019
by
Lorenzo Pichilli
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed InAppWebViewOptions error, fixed javascript error for ajax requests
parent
0c17e032
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
148 additions
and
120 deletions
+148
-120
.idea/workspace.xml
.idea/workspace.xml
+114
-97
android/src/main/java/com/pichillilorenzo/flutter_inappbrowser/InAppWebView/InAppWebView.java
...renzo/flutter_inappbrowser/InAppWebView/InAppWebView.java
+1
-1
android/src/main/java/com/pichillilorenzo/flutter_inappbrowser/InAppWebView/InAppWebViewOptions.java
...lutter_inappbrowser/InAppWebView/InAppWebViewOptions.java
+23
-18
example/lib/inline_example.screen.dart
example/lib/inline_example.screen.dart
+3
-3
ios/Classes/InAppWebView.swift
ios/Classes/InAppWebView.swift
+1
-1
lib/src/content_blocker.dart
lib/src/content_blocker.dart
+6
-0
No files found.
.idea/workspace.xml
View file @
bb0e7f70
...
...
@@ -16,14 +16,10 @@
<component
name=
"ChangeListManager"
>
<list
default=
"true"
id=
"9b41f7a2-a71e-4923-91fb-249d7815b3e7"
name=
"Default"
comment=
""
>
<change
beforePath=
"$PROJECT_DIR$/.idea/workspace.xml"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/.idea/workspace.xml"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/android/src/main/java/com/pichillilorenzo/flutter_inappbrowser/InAppWebView/InAppWebView.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/android/src/main/java/com/pichillilorenzo/flutter_inappbrowser/InAppWebView/InAppWebView.java"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/android/src/main/java/com/pichillilorenzo/flutter_inappbrowser/InAppWebView/InAppWebViewOptions.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/android/src/main/java/com/pichillilorenzo/flutter_inappbrowser/InAppWebView/InAppWebViewOptions.java"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/android/src/main/java/com/pichillilorenzo/flutter_inappbrowser/Options.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/android/src/main/java/com/pichillilorenzo/flutter_inappbrowser/Options.java"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/ios/Classes/InAppWebView.swift"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/ios/Classes/InAppWebView.swift"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/lib/src/in_app_browser.dart"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/lib/src/in_app_browser.dart"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/example/lib/inline_example.screen.dart"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/example/lib/inline_example.screen.dart"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/lib/src/content_blocker.dart"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/lib/src/content_blocker.dart"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/lib/src/in_app_webview.dart"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/lib/src/in_app_webview.dart"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/lib/src/types.dart"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/lib/src/types.dart"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/lib/src/webview_options.dart"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/lib/src/webview_options.dart"
afterDir=
"false"
/>
</list>
<ignored
path=
"$PROJECT_DIR$/.dart_tool/"
/>
<ignored
path=
"$PROJECT_DIR$/.idea/"
/>
...
...
@@ -43,11 +39,11 @@
<component
name=
"ExecutionTargetManager"
SELECTED_TARGET=
"Pixel_3_XL_API_24"
/>
<component
name=
"FileEditorManager"
>
<leaf
SIDE_TABS_SIZE_LIMIT_KEY=
"300"
>
<file
pinned=
"false"
current-in-tab=
"
fals
e"
>
<file
pinned=
"false"
current-in-tab=
"
tru
e"
>
<entry
file=
"file://$PROJECT_DIR$/lib/src/in_app_webview.dart"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
200
"
>
<caret
line=
"
214"
column=
"18"
selection-start-line=
"214"
selection-start-column=
"6"
selection-end-line=
"214"
selection-end-column=
"18
"
/>
<state
relative-caret-position=
"
65
"
>
<caret
line=
"
590"
column=
"27"
selection-start-line=
"590"
selection-start-column=
"27"
selection-end-line=
"590"
selection-end-column=
"27
"
/>
<folding>
<element
signature=
"e#0#17#0"
expanded=
"true"
/>
</folding>
...
...
@@ -55,11 +51,11 @@
</provider>
</entry>
</file>
<file
pinned=
"false"
current-in-tab=
"
tru
e"
>
<entry
file=
"file://$PROJECT_DIR$/lib/src/
types
.dart"
>
<file
pinned=
"false"
current-in-tab=
"
fals
e"
>
<entry
file=
"file://$PROJECT_DIR$/lib/src/
http_auth_credentials_database
.dart"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
209
"
>
<caret
line=
"
1155"
column=
"33"
lean-forward=
"true"
selection-start-line=
"1155"
selection-start-column=
"33"
selection-end-line=
"1155"
selection-end-column=
"33
"
/>
<state
relative-caret-position=
"
45
"
>
<caret
line=
"
6"
column=
"32"
selection-start-line=
"6"
selection-start-column=
"6"
selection-end-line=
"6"
selection-end-column=
"32
"
/>
<folding>
<element
signature=
"e#0#20#0"
expanded=
"true"
/>
</folding>
...
...
@@ -68,22 +64,31 @@
</entry>
</file>
<file
pinned=
"false"
current-in-tab=
"false"
>
<entry
file=
"file://$PROJECT_DIR$/lib/src/
http_auth_credentials_database
.dart"
>
<entry
file=
"file://$PROJECT_DIR$/lib/src/
content_blocker
.dart"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"-569"
>
<caret
line=
"6"
column=
"32"
selection-start-line=
"6"
selection-start-column=
"6"
selection-end-line=
"6"
selection-end-column=
"32"
/>
<state
relative-caret-position=
"90"
>
<caret
line=
"6"
selection-start-line=
"6"
selection-end-line=
"6"
/>
</state>
</provider>
</entry>
</file>
<file
pinned=
"false"
current-in-tab=
"false"
>
<entry
file=
"file://$PROJECT_DIR$/lib/src/webview_options.dart"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"205"
>
<caret
line=
"41"
column=
"34"
selection-start-line=
"41"
selection-start-column=
"7"
selection-end-line=
"41"
selection-end-column=
"34"
/>
<folding>
<element
signature=
"e#0#
20
#0"
expanded=
"true"
/>
<element
signature=
"e#0#
17
#0"
expanded=
"true"
/>
</folding>
</state>
</provider>
</entry>
</file>
<file
pinned=
"false"
current-in-tab=
"false"
>
<entry
file=
"file://$PROJECT_DIR$/
lib/src/content_blocker.dart
"
>
<entry
file=
"file://$PROJECT_DIR$/
example/assets/index.html
"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"15"
>
<caret
line=
"
128"
column=
"36"
selection-start-line=
"128"
selection-start-column=
"18"
selection-end-line=
"128"
selection-end-column=
"36
"
/>
<state>
<caret
line=
"
88"
column=
"53"
lean-forward=
"true"
selection-start-line=
"88"
selection-start-column=
"53"
selection-end-line=
"88"
selection-end-column=
"53
"
/>
</state>
</provider>
</entry>
...
...
@@ -91,7 +96,7 @@
<file
pinned=
"false"
current-in-tab=
"false"
>
<entry
file=
"file://$PROJECT_DIR$/lib/src/cookie_manager.dart"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
31
5"
>
<state
relative-caret-position=
"
28
5"
>
<caret
line=
"21"
column=
"9"
selection-start-line=
"21"
selection-start-column=
"9"
selection-end-line=
"21"
selection-end-column=
"9"
/>
<folding>
<element
signature=
"e#0#20#0"
expanded=
"true"
/>
...
...
@@ -100,10 +105,22 @@
</provider>
</entry>
</file>
<file
pinned=
"false"
current-in-tab=
"false"
>
<entry
file=
"file://$PROJECT_DIR$/example/lib/inline_example.screen.dart"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"24"
>
<caret
line=
"289"
column=
"28"
selection-start-line=
"289"
selection-start-column=
"28"
selection-end-line=
"289"
selection-end-column=
"28"
/>
<folding>
<element
signature=
"e#0#20#0"
expanded=
"true"
/>
</folding>
</state>
</provider>
</entry>
</file>
<file
pinned=
"false"
current-in-tab=
"false"
>
<entry
file=
"file://$PROJECT_DIR$/lib/src/chrome_safari_browser.dart"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
1065
"
>
<state
relative-caret-position=
"
960
"
>
<caret
line=
"71"
column=
"133"
selection-start-line=
"71"
selection-start-column=
"28"
selection-end-line=
"71"
selection-end-column=
"133"
/>
<folding>
<element
signature=
"e#0#20#0"
expanded=
"true"
/>
...
...
@@ -124,10 +141,6 @@
</component>
<component
name=
"FindInProjectRecents"
>
<findStrings>
<find>
mediaPlaybackRequiresUserGesture
</find>
<find>
onDow
</find>
<find>
toolbarTopFixedTitle
</find>
<find>
resourceCustomSchemes
</find>
<find>
JsAlertResponse
</find>
<find>
JsConfirmResponse
</find>
<find>
InAppWebViewUserPreferredContentMode
</find>
...
...
@@ -152,8 +165,12 @@
<find>
method
</find>
<find>
AjaxRequestEvent
</find>
<find>
withCredentials
</find>
<find>
FetchRequest
</find>
<find>
current
</find>
<find>
FetchRequest
</find>
<find>
my-special-custom-scheme
</find>
<find>
should
</find>
<find>
resourceCustomSchemes
</find>
<find>
shouldInterceptAjaxRequest
</find>
</findStrings>
<replaceStrings>
<replace>
activity.getPreferences(0)
</replace>
...
...
@@ -217,19 +234,19 @@
<option
value=
"$PROJECT_DIR$/lib/t_rex_runner/t-rex.css"
/>
<option
value=
"$PROJECT_DIR$/example/lib/test.dart"
/>
<option
value=
"$PROJECT_DIR$/example/lib/webview_example.screen.dart"
/>
<option
value=
"$PROJECT_DIR$/lib/src/content_blocker.dart"
/>
<option
value=
"$PROJECT_DIR$/lib/src/chrome_safari_browser.dart"
/>
<option
value=
"$PROJECT_DIR$/example/lib/chrome_safari_example.screen.dart"
/>
<option
value=
"$PROJECT_DIR$/example/pubspec.yaml"
/>
<option
value=
"$PROJECT_DIR$/ios/flutter_inappbrowser.podspec"
/>
<option
value=
"$PROJECT_DIR$/nodejs_server_test_auth_basic_and_ssl/index.js"
/>
<option
value=
"$PROJECT_DIR$/example/assets/index.html"
/>
<option
value=
"$PROJECT_DIR$/example/lib/inline_example.screen.dart"
/>
<option
value=
"$PROJECT_DIR$/CHANGELOG.md"
/>
<option
value=
"$PROJECT_DIR$/lib/src/in_app_browser.dart"
/>
<option
value=
"$PROJECT_DIR$/lib/src/webview_options.dart"
/>
<option
value=
"$PROJECT_DIR$/lib/src/in_app_webview.dart"
/>
<option
value=
"$PROJECT_DIR$/lib/src/types.dart"
/>
<option
value=
"$PROJECT_DIR$/lib/src/content_blocker.dart"
/>
<option
value=
"$PROJECT_DIR$/example/lib/inline_example.screen.dart"
/>
<option
value=
"$PROJECT_DIR$/lib/src/in_app_webview.dart"
/>
</list>
</option>
</component>
...
...
@@ -244,6 +261,35 @@
<foldersAlwaysOnTop
value=
"true"
/>
</navigator>
<panes>
<pane
id=
"AndroidView"
>
<subPane>
<expand>
<path>
<item
name=
"flutter_inappbrowser"
type=
"1abcf292:AndroidViewProjectNode"
/>
<item
name=
"flutter_inappbrowser_android"
type=
"e9137016:NonAndroidModuleNode"
/>
</path>
<path>
<item
name=
"flutter_inappbrowser"
type=
"1abcf292:AndroidViewProjectNode"
/>
<item
name=
"flutter_inappbrowser_android"
type=
"e9137016:NonAndroidModuleNode"
/>
<item
name=
"java"
type=
"f7eae187:NonAndroidSourceTypeNode"
/>
</path>
<path>
<item
name=
"flutter_inappbrowser"
type=
"1abcf292:AndroidViewProjectNode"
/>
<item
name=
"flutter_inappbrowser_android"
type=
"e9137016:NonAndroidModuleNode"
/>
<item
name=
"java"
type=
"f7eae187:NonAndroidSourceTypeNode"
/>
<item
name=
"flutter_inappbrowser"
type=
"462c0819:PsiDirectoryNode"
/>
</path>
<path>
<item
name=
"flutter_inappbrowser"
type=
"1abcf292:AndroidViewProjectNode"
/>
<item
name=
"flutter_inappbrowser_android"
type=
"e9137016:NonAndroidModuleNode"
/>
<item
name=
"java"
type=
"f7eae187:NonAndroidSourceTypeNode"
/>
<item
name=
"flutter_inappbrowser"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"InAppWebView"
type=
"462c0819:PsiDirectoryNode"
/>
</path>
</expand>
<select
/>
</subPane>
</pane>
<pane
id=
"ProjectPane"
>
<subPane>
<expand>
...
...
@@ -281,35 +327,7 @@
<select
/>
</subPane>
</pane>
<pane
id=
"AndroidView"
>
<subPane>
<expand>
<path>
<item
name=
"flutter_inappbrowser"
type=
"1abcf292:AndroidViewProjectNode"
/>
<item
name=
"flutter_inappbrowser_android"
type=
"e9137016:NonAndroidModuleNode"
/>
</path>
<path>
<item
name=
"flutter_inappbrowser"
type=
"1abcf292:AndroidViewProjectNode"
/>
<item
name=
"flutter_inappbrowser_android"
type=
"e9137016:NonAndroidModuleNode"
/>
<item
name=
"java"
type=
"f7eae187:NonAndroidSourceTypeNode"
/>
</path>
<path>
<item
name=
"flutter_inappbrowser"
type=
"1abcf292:AndroidViewProjectNode"
/>
<item
name=
"flutter_inappbrowser_android"
type=
"e9137016:NonAndroidModuleNode"
/>
<item
name=
"java"
type=
"f7eae187:NonAndroidSourceTypeNode"
/>
<item
name=
"flutter_inappbrowser"
type=
"462c0819:PsiDirectoryNode"
/>
</path>
<path>
<item
name=
"flutter_inappbrowser"
type=
"1abcf292:AndroidViewProjectNode"
/>
<item
name=
"flutter_inappbrowser_android"
type=
"e9137016:NonAndroidModuleNode"
/>
<item
name=
"java"
type=
"f7eae187:NonAndroidSourceTypeNode"
/>
<item
name=
"flutter_inappbrowser"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"InAppWebView"
type=
"462c0819:PsiDirectoryNode"
/>
</path>
</expand>
<select
/>
</subPane>
</pane>
<pane
id=
"PackagesPane"
/>
<pane
id=
"Scope"
>
<subPane
subId=
"Project Files"
>
<expand>
...
...
@@ -321,7 +339,6 @@
<select
/>
</subPane>
</pane>
<pane
id=
"PackagesPane"
/>
</panes>
</component>
<component
name=
"PropertiesComponent"
>
...
...
@@ -475,7 +492,7 @@
<frame
x=
"0"
y=
"23"
width=
"1920"
height=
"1057"
extended-state=
"0"
/>
<editor
active=
"true"
/>
<layout>
<window_info
active=
"true"
content_ui=
"combo"
id=
"Project"
order=
"0"
sideWeight=
"0.6529745"
visible=
"true"
weight=
"0.15867944"
/>
<window_info
content_ui=
"combo"
id=
"Project"
order=
"0"
sideWeight=
"0.6529745"
visible=
"true"
weight=
"0.15867944"
/>
<window_info
id=
"Structure"
order=
"1"
sideWeight=
"0.34702548"
side_tool=
"true"
weight=
"0.15867944"
/>
<window_info
id=
"Designer"
order=
"2"
/>
<window_info
id=
"Build Variants"
order=
"3"
side_tool=
"true"
/>
...
...
@@ -486,7 +503,7 @@
<window_info
id=
"Resources Explorer"
order=
"8"
/>
<window_info
anchor=
"bottom"
id=
"Message"
order=
"0"
/>
<window_info
anchor=
"bottom"
id=
"Find"
order=
"1"
weight=
"0.32642487"
/>
<window_info
a
nchor=
"bottom"
id=
"Run"
order=
"2"
sideWeight=
"0.49574015"
weight=
"0.59792745
"
/>
<window_info
a
ctive=
"true"
anchor=
"bottom"
id=
"Run"
order=
"2"
sideWeight=
"0.49574015"
visible=
"true"
weight=
"0.5647668
"
/>
<window_info
anchor=
"bottom"
id=
"Debug"
order=
"3"
weight=
"0.34196892"
/>
<window_info
anchor=
"bottom"
id=
"Cvs"
order=
"4"
weight=
"0.25"
/>
<window_info
anchor=
"bottom"
id=
"Inspection"
order=
"5"
weight=
"0.4"
/>
...
...
@@ -494,7 +511,7 @@
<window_info
anchor=
"bottom"
id=
"Android Profiler"
order=
"7"
show_stripe_button=
"false"
/>
<window_info
anchor=
"bottom"
id=
"Event Log"
order=
"8"
sideWeight=
"0.50692225"
side_tool=
"true"
weight=
"0.38445595"
/>
<window_info
anchor=
"bottom"
id=
"Version Control"
order=
"9"
weight=
"0.32953367"
/>
<window_info
anchor=
"bottom"
id=
"Terminal"
order=
"10"
sideWeight=
"0.49533224"
visible=
"true"
weight=
"0.307772"
/>
<window_info
anchor=
"bottom"
id=
"Terminal"
order=
"10"
sideWeight=
"0.49533224"
weight=
"0.307772"
/>
<window_info
anchor=
"bottom"
id=
"Messages"
order=
"11"
weight=
"0.3253886"
/>
<window_info
anchor=
"bottom"
id=
"Dependency Viewer"
order=
"12"
weight=
"0.32800853"
/>
<window_info
anchor=
"bottom"
id=
"Logcat"
order=
"13"
weight=
"0.32953367"
/>
...
...
@@ -688,13 +705,6 @@
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/example/assets/index.html"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"558"
>
<caret
line=
"67"
column=
"37"
selection-start-line=
"67"
selection-start-column=
"37"
selection-end-line=
"67"
selection-end-column=
"37"
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/nodejs_server_test_auth_basic_and_ssl/index.js"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"580"
>
...
...
@@ -712,43 +722,43 @@
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/
lib/src/content_blocker.dart
"
>
<entry
file=
"file://$PROJECT_DIR$/
CHANGELOG.md
"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"15"
>
<caret
line=
"
128"
column=
"36"
selection-start-line=
"128"
selection-start-column=
"18"
selection-end-line=
"128"
selection-end-column=
"36
"
/>
<state
relative-caret-position=
"
3
15"
>
<caret
line=
"
21"
column=
"54"
lean-forward=
"true"
selection-start-line=
"21"
selection-start-column=
"54"
selection-end-line=
"21"
selection-end-column=
"54
"
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/lib/src/
webview_option
s.dart"
>
<entry
file=
"file://$PROJECT_DIR$/lib/src/
type
s.dart"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
-48
"
>
<caret
line=
"
687"
column=
"38"
selection-start-line=
"687"
selection-start-column=
"38"
selection-end-line=
"687"
selection-end-column=
"38
"
/>
<state
relative-caret-position=
"
17325
"
>
<caret
line=
"
1155"
column=
"33"
lean-forward=
"true"
selection-start-line=
"1155"
selection-start-column=
"33"
selection-end-line=
"1155"
selection-end-column=
"33
"
/>
<folding>
<element
signature=
"e#0#
17
#0"
expanded=
"true"
/>
<element
signature=
"e#0#
20
#0"
expanded=
"true"
/>
</folding>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/
example/lib/inline_example.screen
.dart"
>
<entry
file=
"file://$PROJECT_DIR$/
lib/src/http_auth_credentials_database
.dart"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
207
"
>
<caret
line=
"
295"
column=
"18"
selection-start-line=
"295"
selection-start-column=
"18"
selection-end-line=
"295"
selection-end-column=
"18
"
/>
<state
relative-caret-position=
"
45
"
>
<caret
line=
"
6"
column=
"32"
selection-start-line=
"6"
selection-start-column=
"6"
selection-end-line=
"6"
selection-end-column=
"32
"
/>
<folding>
<element
signature=
"e#0#20#0"
expanded=
"true"
/>
</folding>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/
CHANGELOG.md
"
>
<entry
file=
"file://$PROJECT_DIR$/
lib/src/content_blocker.dart
"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
315
"
>
<caret
line=
"
21"
column=
"54"
lean-forward=
"true"
selection-start-line=
"21"
selection-start-column=
"54"
selection-end-line=
"21"
selection-end-column=
"54
"
/>
<state
relative-caret-position=
"
90
"
>
<caret
line=
"
6"
selection-start-line=
"6"
selection-end-line=
"6
"
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/lib/src/cookie_manager.dart"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
31
5"
>
<state
relative-caret-position=
"
28
5"
>
<caret
line=
"21"
column=
"9"
selection-start-line=
"21"
selection-start-column=
"9"
selection-end-line=
"21"
selection-end-column=
"9"
/>
<folding>
<element
signature=
"e#0#20#0"
expanded=
"true"
/>
...
...
@@ -758,7 +768,7 @@
</entry>
<entry
file=
"file://$PROJECT_DIR$/lib/src/chrome_safari_browser.dart"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
1065
"
>
<state
relative-caret-position=
"
960
"
>
<caret
line=
"71"
column=
"133"
selection-start-line=
"71"
selection-start-column=
"28"
selection-end-line=
"71"
selection-end-column=
"133"
/>
<folding>
<element
signature=
"e#0#20#0"
expanded=
"true"
/>
...
...
@@ -766,32 +776,39 @@
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/lib/src/
http_auth_credentials_database
.dart"
>
<entry
file=
"file://$PROJECT_DIR$/lib/src/
webview_options
.dart"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
-569
"
>
<caret
line=
"
6"
column=
"32"
selection-start-line=
"6"
selection-start-column=
"6"
selection-end-line=
"6"
selection-end-column=
"32
"
/>
<state
relative-caret-position=
"
205
"
>
<caret
line=
"
41"
column=
"34"
selection-start-line=
"41"
selection-start-column=
"7"
selection-end-line=
"41"
selection-end-column=
"34
"
/>
<folding>
<element
signature=
"e#0#
20
#0"
expanded=
"true"
/>
<element
signature=
"e#0#
17
#0"
expanded=
"true"
/>
</folding>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/
lib/src/in_app_webview.dart
"
>
<entry
file=
"file://$PROJECT_DIR$/
example/assets/index.html
"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"200"
>
<caret
line=
"214"
column=
"18"
selection-start-line=
"214"
selection-start-column=
"6"
selection-end-line=
"214"
selection-end-column=
"18"
/>
<state>
<caret
line=
"88"
column=
"53"
lean-forward=
"true"
selection-start-line=
"88"
selection-start-column=
"53"
selection-end-line=
"88"
selection-end-column=
"53"
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/example/lib/inline_example.screen.dart"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"24"
>
<caret
line=
"289"
column=
"28"
selection-start-line=
"289"
selection-start-column=
"28"
selection-end-line=
"289"
selection-end-column=
"28"
/>
<folding>
<element
signature=
"e#0#
17
#0"
expanded=
"true"
/>
<element
signature=
"e#0#
20
#0"
expanded=
"true"
/>
</folding>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/lib/src/
types
.dart"
>
<entry
file=
"file://$PROJECT_DIR$/lib/src/
in_app_webview
.dart"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
209
"
>
<caret
line=
"
1155"
column=
"33"
lean-forward=
"true"
selection-start-line=
"1155"
selection-start-column=
"33"
selection-end-line=
"1155"
selection-end-column=
"33
"
/>
<state
relative-caret-position=
"
65
"
>
<caret
line=
"
590"
column=
"27"
selection-start-line=
"590"
selection-start-column=
"27"
selection-end-line=
"590"
selection-end-column=
"27
"
/>
<folding>
<element
signature=
"e#0#
20
#0"
expanded=
"true"
/>
<element
signature=
"e#0#
17
#0"
expanded=
"true"
/>
</folding>
</state>
</provider>
...
...
android/src/main/java/com/pichillilorenzo/flutter_inappbrowser/InAppWebView/InAppWebView.java
View file @
bb0e7f70
...
...
@@ -161,7 +161,7 @@ final public class InAppWebView extends InputAwareWebView {
" event: {"
+
" type: e.type,"
+
" loaded: e.loaded,"
+
" lengthComputable: e.lengthComputable"
+
" lengthComputable: e.lengthComputable
,
"
+
" total: e.total"
+
" }"
+
" };"
+
...
...
android/src/main/java/com/pichillilorenzo/flutter_inappbrowser/InAppWebView/InAppWebViewOptions.java
View file @
bb0e7f70
...
...
@@ -84,17 +84,20 @@ public class InAppWebViewOptions extends Options {
@Override
public
Object
onParse
(
Map
.
Entry
<
String
,
Object
>
pair
)
{
if
(
pair
.
getKey
().
equals
(
"layoutAlgorithm"
))
{
switch
((
String
)
pair
.
getValue
())
{
case
"NORMAL"
:
pair
.
setValue
(
NORMAL
);
return
pair
;
case
"TEXT_AUTOSIZING"
:
if
(
Build
.
VERSION
.
SDK_INT
>=
Build
.
VERSION_CODES
.
KITKAT
)
{
return
pair
.
setValue
(
WebSettings
.
LayoutAlgorithm
.
TEXT_AUTOSIZING
);
}
else
{
String
value
=
(
String
)
pair
.
getValue
();
if
(
value
!=
null
)
{
switch
(
value
)
{
case
"NORMAL"
:
pair
.
setValue
(
NORMAL
);
}
return
pair
;
return
pair
;
case
"TEXT_AUTOSIZING"
:
if
(
Build
.
VERSION
.
SDK_INT
>=
Build
.
VERSION_CODES
.
KITKAT
)
{
return
pair
.
setValue
(
WebSettings
.
LayoutAlgorithm
.
TEXT_AUTOSIZING
);
}
else
{
pair
.
setValue
(
NORMAL
);
}
return
pair
;
}
}
}
return
super
.
onParse
(
pair
);
...
...
@@ -105,14 +108,16 @@ public class InAppWebViewOptions extends Options {
if
(
field
.
getName
().
equals
(
"layoutAlgorithm"
))
{
try
{
WebSettings
.
LayoutAlgorithm
value
=
(
WebSettings
.
LayoutAlgorithm
)
field
.
get
(
this
);
switch
(
value
)
{
case
NORMAL:
return
"NORMAL"
;
default
:
if
(
Build
.
VERSION
.
SDK_INT
>=
Build
.
VERSION_CODES
.
KITKAT
&&
value
.
equals
(
WebSettings
.
LayoutAlgorithm
.
TEXT_AUTOSIZING
))
{
return
"TEXT_AUTOSIZING"
;
}
return
"NORMAL"
;
if
(
value
!=
null
)
{
switch
(
value
)
{
case
NORMAL:
return
"NORMAL"
;
default
:
if
(
Build
.
VERSION
.
SDK_INT
>=
Build
.
VERSION_CODES
.
KITKAT
&&
value
.
equals
(
WebSettings
.
LayoutAlgorithm
.
TEXT_AUTOSIZING
))
{
return
"TEXT_AUTOSIZING"
;
}
return
"NORMAL"
;
}
}
}
catch
(
IllegalAccessException
e
)
{
Log
.
d
(
LOG_TAG
,
e
.
getMessage
());
...
...
example/lib/inline_example.screen.dart
View file @
bb0e7f70
...
...
@@ -288,7 +288,7 @@ class _InlineExampleScreenState extends State<InlineExampleScreen> {
print
(
"Current highlighted:
$activeMatchOrdinal
, Number of matches found:
$numberOfMatches
, find operation completed:
$isDoneCounting
"
);
},
shouldInterceptAjaxRequest:
(
InAppWebViewController
controller
,
AjaxRequest
ajaxRequest
)
async
{
//
print("AJAX REQUEST: ${ajaxRequest.method} - ${ajaxRequest.url}, DATA: ${ajaxRequest.data}");
print
(
"AJAX REQUEST:
${ajaxRequest.method}
-
${ajaxRequest.url}
, DATA:
${ajaxRequest.data}
"
);
// ajaxRequest.method = "GET";
// ajaxRequest.url = "http://192.168.1.20:8082/test-download-file";
// ajaxRequest.headers = {
...
...
@@ -298,11 +298,11 @@ class _InlineExampleScreenState extends State<InlineExampleScreen> {
return
null
;
},
onAjaxReadyStateChange:
(
InAppWebViewController
controller
,
AjaxRequest
ajaxRequest
)
async
{
//
print("AJAX READY STATE CHANGE: ${ajaxRequest.method} - ${ajaxRequest.url}, ${ajaxRequest.status}, ${ajaxRequest.readyState}, ${ajaxRequest.responseType}, ${ajaxRequest.responseText}, ${ajaxRequest.responseHeaders}");
print
(
"AJAX READY STATE CHANGE:
${ajaxRequest.method}
-
${ajaxRequest.url}
,
${ajaxRequest.status}
,
${ajaxRequest.readyState}
,
${ajaxRequest.responseType}
,
${ajaxRequest.responseText}
,
${ajaxRequest.responseHeaders}
"
);
return
AjaxRequestAction
.
PROCEED
;
},
onAjaxProgress:
(
InAppWebViewController
controller
,
AjaxRequest
ajaxRequest
)
async
{
//
print("AJAX EVENT: ${ajaxRequest.method} - ${ajaxRequest.url}, ${ajaxRequest.event.type}, LOADED: ${ajaxRequest.event.loaded}, ${ajaxRequest.responseHeaders}");
print
(
"AJAX EVENT:
${ajaxRequest.method}
-
${ajaxRequest.url}
,
${ajaxRequest.event.type}
, LOADED:
${ajaxRequest.event.loaded}
,
${ajaxRequest.responseHeaders}
"
);
return
AjaxRequestAction
.
PROCEED
;
},
shouldInterceptFetchRequest:
(
InAppWebViewController
controller
,
FetchRequest
fetchRequest
)
async
{
...
...
ios/Classes/InAppWebView.swift
View file @
bb0e7f70
...
...
@@ -311,7 +311,7 @@ let interceptAjaxRequestsJS = """
event: {
type: e.type,
loaded: e.loaded,
lengthComputable: e.lengthComputable
lengthComputable: e.lengthComputable
,
total: e.total
}
};
...
...
lib/src/content_blocker.dart
View file @
bb0e7f70
///
class
ContentBlocker
{
ContentBlockerTrigger
trigger
;
ContentBlockerAction
action
;
...
...
@@ -23,6 +24,7 @@ class ContentBlocker {
}
}
///
class
ContentBlockerTriggerResourceType
{
final
String
_value
;
const
ContentBlockerTriggerResourceType
.
_internal
(
this
.
_value
);
...
...
@@ -42,6 +44,7 @@ class ContentBlockerTriggerResourceType {
static
const
RAW
=
const
ContentBlockerTriggerResourceType
.
_internal
(
'raw'
);
}
///
class
ContentBlockerTriggerLoadType
{
final
String
_value
;
const
ContentBlockerTriggerLoadType
.
_internal
(
this
.
_value
);
...
...
@@ -54,6 +57,7 @@ class ContentBlockerTriggerLoadType {
static
const
THIRD_PARTY
=
const
ContentBlockerTriggerLoadType
.
_internal
(
'third-party'
);
}
///
class
ContentBlockerTrigger
{
String
urlFilter
;
bool
urlFilterIsCaseSensitive
;
...
...
@@ -136,6 +140,7 @@ class ContentBlockerTrigger {
}
}
///
class
ContentBlockerActionType
{
final
String
_value
;
const
ContentBlockerActionType
.
_internal
(
this
.
_value
);
...
...
@@ -149,6 +154,7 @@ class ContentBlockerActionType {
static
const
MAKE_HTTPS
=
const
ContentBlockerActionType
.
_internal
(
'make-https'
);
}
///
class
ContentBlockerAction
{
ContentBlockerActionType
type
;
String
selector
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment