Alesandro Ortiz
1bd5961255
fix(android): Add SSL error handling for Android WebView (#1450 by @thephpjedi )
Based on PR #668 . Fixes #259 .
il y a 4 ans
semantic-release-bot
357bc0432a
chore(release): 10.3.0 [skip ci]
# [10.3.0](https://github.com/react-native-community/react-native-webview/compare/v10.2.3...v10.3.0 ) (2020-06-13)
### Features
* **android:** Add support for injectedJavaScriptBeforeContentLoaded on Android ([#1099 ](https://github.com/react-native-community/react-native-webview/issues/1099 ) by @SRandazzo and @ [@shirakaba ](https://github.com/shirakaba )) ([ac4e05e ](ac4e05e0f2/))
il y a 4 ans
Salvatore Randazzo
ac4e05e0f2
feat(android): Add support for injectedJavaScriptBeforeContentLoaded on Android (#1099 by @SRandazzo and @ @shirakaba )
il y a 4 ans
semantic-release-bot
b482bbd3a3
chore(release): 10.2.3 [skip ci]
## [10.2.3](https://github.com/react-native-community/react-native-webview/compare/v10.2.2...v10.2.3 ) (2020-05-29)
### Bug Fixes
* **windows:** Add postMessage for Windows WebView ([#1263 ](https://github.com/react-native-community/react-native-webview/issues/1263 ) by [@kaiguo ](https://github.com/kaiguo )) ([e402e73 ](e402e739ea/))
il y a 4 ans
Kai Guo
e402e739ea
fix(windows): Add postMessage for Windows WebView (#1263 by @kaiguo )
il y a 4 ans
semantic-release-bot
1789b79064
chore(release): 10.2.2 [skip ci]
## [10.2.2](https://github.com/react-native-community/react-native-webview/compare/v10.2.1...v10.2.2 ) (2020-05-29)
### Bug Fixes
* **android:** duplicate `setWebChromeClient()` overwrite ([#1417 ](https://github.com/react-native-community/react-native-webview/issues/1417 )) ([2f8c4c5 ](2f8c4c5067/))
il y a 4 ans
Jacob Müller
2f8c4c5067
fix(android): duplicate `setWebChromeClient()` overwrite (#1417 )
il y a 4 ans
semantic-release-bot
d55b25c09e
chore(release): 10.2.1 [skip ci]
## [10.2.1](https://github.com/react-native-community/react-native-webview/compare/v10.2.0...v10.2.1 ) (2020-05-29)
### Bug Fixes
* **android:** Fixes black screen on back button press ([#1298 ](https://github.com/react-native-community/react-native-webview/issues/1298 ) by [@michan85 ](https://github.com/michan85 )) ([0317a4b ](0317a4b4a5/))
* **android:** Improve onLoadProgress consistency ([#1373 ](https://github.com/react-native-community/react-native-webview/issues/1373 ) by [@hojason117 ](https://github.com/hojason117 )) ([b97d16c ](b97d16c23d/))
il y a 4 ans
michael hancock
0317a4b4a5
fix(android): Fixes black screen on back button press (#1298 by @michan85 )
Co-authored-by: michael hancock <michael.hancock@24.com >
Co-authored-by: Jamon Holmgren <jamonholmgren@gmail.com >
il y a 4 ans
Jason Chia-Hsien Ho
b97d16c23d
fix(android): Improve onLoadProgress consistency (#1373 by @hojason117 )
[skip ci]
Co-authored-by: Tyler Coffman <tyler.coffman@appfolio.com >
Co-authored-by: Jamon Holmgren <jamonholmgren@gmail.com >
il y a 4 ans
Akinn Rosa
79eb905a97
chore(docs): Update brazilian translation and reference in main readme.. (#1332 by @akinncar )
[skip ci]
il y a 4 ans
Colin
131dd9ebe8
chore(docs): Update link in custom-android docs (#1382 by @ColinRTaylor )
[skip ci]
il y a 4 ans
semantic-release-bot
749add1d87
chore(release): 10.2.0 [skip ci]
# [10.2.0](https://github.com/react-native-community/react-native-webview/compare/v10.1.1...v10.2.0 ) (2020-05-28)
### Bug Fixes
* **android:** Updated permissions for Android Q and above ([#1384 ](https://github.com/react-native-community/react-native-webview/issues/1384 ) by @Karthz ) ([03dbcb8 ](03dbcb870e/))
### Features
* **webview:** Allow javascript to open windows automatically ([#1409 ](https://github.com/react-native-community/react-native-webview/issues/1409 ) by [@trcoffman ](https://github.com/trcoffman )) ([91df544 ](91df544fae/))
il y a 4 ans
Karthik Subramaniam
03dbcb870e
fix(android): Updated permissions for Android Q and above (#1384 by @Karthz )
il y a 4 ans
Bengt Ove Sannes
d9c73e0f6f
chore(docs): Update Guide.md (#1305 by @bovesan )
[skip ci]
il y a 4 ans
trcoffman
91df544fae
feat(webview): Allow javascript to open windows automatically (#1409 by @trcoffman )
[skip ci]
il y a 4 ans
semantic-release-bot
3cbf1490f4
chore(release): 10.1.1 [skip ci]
## [10.1.1](https://github.com/react-native-community/react-native-webview/compare/v10.1.0...v10.1.1 ) (2020-05-28)
### Bug Fixes
* **android:** Broken build due to conditional import of kotlin ([#1412 ](https://github.com/react-native-community/react-native-webview/issues/1412 )) ([7ab2afb ](7ab2afbab7/))
il y a 4 ans
Thibault Malbranche
7ab2afbab7
fix(android): Broken build due to conditional import of kotlin (#1412 )
il y a 4 ans
semantic-release-bot
938e62296a
chore(release): 10.1.0 [skip ci]
# [10.1.0](https://github.com/react-native-community/react-native-webview/compare/v10.0.0...v10.1.0 ) (2020-05-27)
### Bug Fixes
* **android:** Fix several Android file upload issues ([#1302 ](https://github.com/react-native-community/react-native-webview/issues/1302 ) by [@hojason117 ](https://github.com/hojason117 )) ([89886c8 ](89886c820d/))
### Features
* **compatibility:** Support React Native 0.62 ([#1364 ](https://github.com/react-native-community/react-native-webview/issues/1364 ) by [@jussikinnula ](https://github.com/jussikinnula ) and [@kaiguo ](https://github.com/kaiguo )) ([228f10d ](228f10d917/))
il y a 4 ans
Jussi Kinnula
228f10d917
feat(compatibility): Support React Native 0.62 (#1364 by @jussikinnula and @kaiguo )
Co-authored-by: Kai Guo <kaigu@microsoft.com >
Co-authored-by: Jamon Holmgren <jamonholmgren@gmail.com >
il y a 4 ans
Jason Chia-Hsien Ho
89886c820d
fix(android): Fix several Android file upload issues (#1302 by @hojason117 )
[skip ci]
il y a 4 ans
semantic-release-bot
da31ab56f0
chore(release): 10.0.0 [skip ci]
# [10.0.0](https://github.com/react-native-community/react-native-webview/compare/v9.4.0...v10.0.0 ) (2020-05-26)
### Bug Fixes
* **android:** add missing null check for fileTypes ([#1368 ](https://github.com/react-native-community/react-native-webview/issues/1368 ) by [@bengy ](https://github.com/bengy )) ([4f0f0af ](4f0f0afe70/))
* **gradle:** Load Android Gradle Plugin conditionally ([#1230 ](https://github.com/react-native-community/react-native-webview/issues/1230 ) by @SaeedZhiany ) ([2639d52 ](2639d523e9/))
* **iOS:** Trigger _onContentProcessDidTerminate when removing webview from superview ([#1378 ](https://github.com/react-native-community/react-native-webview/issues/1378 ) by [@pmusaraj ](https://github.com/pmusaraj )) ([9240536 ](9240536afa/))
* **windows:** Fix windows local asset path ([#1335 ](https://github.com/react-native-community/react-native-webview/issues/1335 ) by [@kaiguo ](https://github.com/kaiguo )) ([20a3f90 ](20a3f90c0f/))
* **windows:** Fixes ScriptNotify and InvokeScript ([#1354 ](https://github.com/react-native-community/react-native-webview/issues/1354 ) by [@benhamlin ](https://github.com/benhamlin )) ([81e0360 ](81e0360ede/))
### BREAKING CHANGES
* **gradle:** The Android Gradle plugin is only required when opening the project stand-alone, not when it is included as a dependency. By doing this, the project opens correctly in Android Studio, and it can also be consumed as a native module dependency from an application project without affecting the app project (avoiding unnecessary downloads/conflicts/etc).
Also moved getExtOrDefault to buildScript block to able to use everywhere in the file
This change shouldn't break any apps, but we are marking it as a breaking change in case there are some use cases we've missed.
[skip ci]
il y a 4 ans
Benjamin Rau
4f0f0afe70
fix(android): add missing null check for fileTypes (#1368 by @bengy )
il y a 4 ans
SaeedZhiany
2639d523e9
fix(gradle): Load Android Gradle Plugin conditionally (#1230 by @SaeedZhiany )
BREAKING CHANGE:
The Android Gradle plugin is only required when opening the project stand-alone, not when it is included as a dependency. By doing this, the project opens correctly in Android Studio, and it can also be consumed as a native module dependency from an application project without affecting the app project (avoiding unnecessary downloads/conflicts/etc).
Also moved getExtOrDefault to buildScript block to able to use everywhere in the file
This change shouldn't break any apps, but we are marking it as a breaking change in case there are some use cases we've missed.
[skip ci]
il y a 4 ans
Penar Musaraj
9240536afa
fix(iOS): Trigger _onContentProcessDidTerminate when removing webview from superview (#1378 by @pmusaraj )
[skip ci]
il y a 4 ans
Kai Guo
20a3f90c0f
fix(windows): Fix windows local asset path (#1335 by @kaiguo )
[skip ci]
il y a 4 ans
Kai Guo
ef3ceb24d1
chore(windows): Set up Windows CI (#1358 by @kaiguo )
[skip ci]
il y a 4 ans
Ben Hamlin
81e0360ede
fix(windows): Fixes ScriptNotify and InvokeScript (#1354 by @benhamlin )
[skip ci]
il y a 4 ans
semantic-release-bot
b10b97646b
chore(release): 9.4.0 [skip ci]
# [9.4.0](https://github.com/react-native-community/react-native-webview/compare/v9.3.0...v9.4.0 ) (2020-04-29)
### Features
* **iOS:** Add onFileDownload callback ([#1214 ](https://github.com/react-native-community/react-native-webview/issues/1214 )) ([a6010d9 ](https://github.com/react-native-community/react-native-webview/commit/ a6010d9 ))
il y a 4 ans
trcoffman
a6010d93e0
feat(iOS): Add onFileDownload callback (#1214 )
`onFileDownload` is called with the URL that you can use to download the file.
When RNCWebView detects that the HTTP response should result in a file download,
`onFileDownload` is called. The client can then provide code to download
the file.
RNCWebView determines that a file download should take place if either of the
following is true:
1. The HTTP response contains a `Content-Disposition` header that is of type
'attachment'
2. The MIME type of the response cannot be rendered by the iOS WebView
il y a 4 ans
semantic-release-bot
694b07faa8
chore(release): 9.3.0 [skip ci]
# [9.3.0](https://github.com/react-native-community/react-native-webview/compare/v9.2.2...v9.3.0 ) (2020-04-24)
### Features
* **macOS:** Make podspec compatible with macOS ([#1328 ](https://github.com/react-native-community/react-native-webview/issues/1328 )) ([2d9b080 ](https://github.com/react-native-community/react-native-webview/commit/ 2d9b080 ))
il y a 4 ans
Eloy Durán
2d9b0803e0
feat(macOS): Make podspec compatible with macOS (#1328 )
* [apple] Move iOS/macOS src into common apple dir
* [apple] Enable macOS as platform in podspec
* [example] Use CocoaPods & auto-linking on macOS
* [docs] Update setup for macOS
* [package] Include apple dir in distribution
il y a 4 ans
semantic-release-bot
7d29883f3e
chore(release): 9.2.2 [skip ci]
## [9.2.2](https://github.com/react-native-community/react-native-webview/compare/v9.2.1...v9.2.2 ) (2020-04-21)
### Bug Fixes
* **Android:** Resolve crypto error with uuid usage ([#1334 ](https://github.com/react-native-community/react-native-webview/issues/1334 )) ([438e292 ](https://github.com/react-native-community/react-native-webview/commit/ 438e292 ))
il y a 4 ans
Artur Yorsh
438e29298b
fix(Android): Resolve crypto error with uuid usage (#1334 )
* fix(Android): uuid generation issue
* chore: remove redundant types/uuid dependency
* refactor(Android): replace uuid function with unique instance counter
il y a 4 ans
semantic-release-bot
c6a39e9f1c
chore(release): 9.2.1 [skip ci]
## [9.2.1](https://github.com/react-native-community/react-native-webview/compare/v9.2.0...v9.2.1 ) (2020-04-14)
### Bug Fixes
* **iOS:** Adds missing silent hardware declaration to header file ([#1319 ](https://github.com/react-native-community/react-native-webview/issues/1319 )) ([2b4d752 ](https://github.com/react-native-community/react-native-webview/commit/ 2b4d752 )), closes [#1140 ](https://github.com/react-native-community/react-native-webview/issues/1140 )
il y a 4 ans
RedPandaTronics
2b4d752c32
fix(iOS): Adds missing silent hardware declaration to header file (#1319 )
* Fixes Issue #1140
Fixes https://github.com/react-native-community/react-native-webview/issues/1140
Based on a solution found at: https://stackoverflow.com/questions/ 56460362 /how-to-force-wkwebview-to-ignore-hardware-silent-switch-on-ios
I changed the code found in the linked source from Swift to Objective-C, as required by this project. WARNING: I haven't used Swift before and very limited experience with Objective-C.
- For me this seems to work, but it is not the cleanest solution in my opinion.
- It might also be possible to play generated sound (i.e. using oscillator) instead of hardcoding the silent base64 mp3 data.
- Maybe ignoring silence switch should only be done if a parameter is supplied
* fixes import path
* adds documentation for ignoreSilentHardwareSwitch
* adds ignoreSilentHardwareSwitch parameter
* reverting back to old import path
* Update Guide.md
* adds missing variable
Co-authored-by: Dominik Beste <dominik.beste@gmail.com >
il y a 4 ans
semantic-release-bot
5c6d137067
chore(release): 9.2.0 [skip ci]
# [9.2.0](https://github.com/react-native-community/react-native-webview/compare/v9.1.4...v9.2.0 ) (2020-04-13)
### Features
* **iOS:** Add Hardware Silence ([#1218 ](https://github.com/react-native-community/react-native-webview/issues/1218 )) ([d4ab332 ](https://github.com/react-native-community/react-native-webview/commit/ d4ab332 )), closes [#1140 ](https://github.com/react-native-community/react-native-webview/issues/1140 )
il y a 4 ans
RedPandaTronics
d4ab332891
feat(iOS): Add Hardware Silence (#1218 )
* Fixes Issue #1140
Fixes https://github.com/react-native-community/react-native-webview/issues/1140
Based on a solution found at: https://stackoverflow.com/questions/ 56460362 /how-to-force-wkwebview-to-ignore-hardware-silent-switch-on-ios
I changed the code found in the linked source from Swift to Objective-C, as required by this project. WARNING: I haven't used Swift before and very limited experience with Objective-C.
- For me this seems to work, but it is not the cleanest solution in my opinion.
- It might also be possible to play generated sound (i.e. using oscillator) instead of hardcoding the silent base64 mp3 data.
- Maybe ignoring silence switch should only be done if a parameter is supplied
* fixes import path
* adds documentation for ignoreSilentHardwareSwitch
* adds ignoreSilentHardwareSwitch parameter
* reverting back to old import path
* Update Guide.md
Co-authored-by: Dominik Beste <dominik.beste@gmail.com >
il y a 4 ans
semantic-release-bot
f6d54c2b14
chore(release): 9.1.4 [skip ci]
## [9.1.4](https://github.com/react-native-community/react-native-webview/compare/v9.1.3...v9.1.4 ) (2020-04-10)
### Bug Fixes
* **Android:** Workaround for chromium bugs 1023678 and 1050635 . ([#1221 ](https://github.com/react-native-community/react-native-webview/issues/1221 )) ([5d88af4 ](https://github.com/react-native-community/react-native-webview/commit/ 5d88af4 ))
il y a 4 ans
trcoffman
5d88af44fa
fix(Android): Workaround for chromium bugs 1023678 and 1050635 . (#1221 )
There is a bug in the WebView that causes a spurious call to onReceivedError
whenever you download a file.
This commit is a workaround for that bug. The idea here is to try and detect
these spurious errors and drop them before they cause problems.
This commit should be reverted once those chromium bugs are fixed.
il y a 4 ans
semantic-release-bot
c6ad1f9ed0
chore(release): 9.1.3 [skip ci]
## [9.1.3](https://github.com/react-native-community/react-native-webview/compare/v9.1.2...v9.1.3 ) (2020-04-09)
### Bug Fixes
* **Windows:** Move rnpm-plugin-windows to devDependencies. ([#1266 ](https://github.com/react-native-community/react-native-webview/issues/1266 )) ([d16746c ](https://github.com/react-native-community/react-native-webview/commit/ d16746c ))
il y a 4 ans
jmheik
d16746c8ea
fix(Windows): Move rnpm-plugin-windows to devDependencies. (#1266 )
il y a 4 ans
semantic-release-bot
c8dc85d66e
chore(release): 9.1.2 [skip ci]
## [9.1.2](https://github.com/react-native-community/react-native-webview/compare/v9.1.1...v9.1.2 ) (2020-04-09)
### Bug Fixes
* **Android:** Ensure each mounted WebView binds their personal onMessage handler ([#1301 ](https://github.com/react-native-community/react-native-webview/issues/1301 )) ([04f9fb2 ](https://github.com/react-native-community/react-native-webview/commit/ 04f9fb2 ))
il y a 4 ans
ivari
04f9fb23ba
fix(Android): Ensure each mounted WebView binds their personal onMessage handler (#1301 )
* Ensure each mounted WebView binds their personal onMessage handler
* Changed unique ref generation to uuid
Uses `uuid` npm package.
Dashes are removed from the ref for sanity.
il y a 4 ans
semantic-release-bot
8a46bb9453
chore(release): 9.1.1 [skip ci]
## [9.1.1](https://github.com/react-native-community/react-native-webview/compare/v9.1.0...v9.1.1 ) (2020-04-07)
### Bug Fixes
* **iOS:** injectedJavaScriptBeforeContentLoaded now runs when messaging is not enabled ([#1286 ](https://github.com/react-native-community/react-native-webview/issues/1286 )) ([571fb8d ](https://github.com/react-native-community/react-native-webview/commit/ 571fb8d ))
il y a 4 ans
Salvatore Randazzo
571fb8df79
fix(iOS): injectedJavaScriptBeforeContentLoaded now runs when messaging is not enabled (#1286 )
il y a 4 ans
semantic-release-bot
fda1794035
chore(release): 9.1.0 [skip ci]
# [9.1.0](https://github.com/react-native-community/react-native-webview/compare/v9.0.2...v9.1.0 ) (2020-04-06)
### Features
* **Android:** Implement direct communication between Android code and JS ([#1203 ](https://github.com/react-native-community/react-native-webview/issues/1203 )) ([c88e380 ](https://github.com/react-native-community/react-native-webview/commit/ c88e380 ))
il y a 4 ans
ivari
c88e380762
feat(Android): Implement direct communication between Android code and JS (#1203 )
il y a 4 ans
semantic-release-bot
9fbcedd6b8
chore(release): 9.0.2 [skip ci]
## [9.0.2](https://github.com/react-native-community/react-native-webview/compare/v9.0.1...v9.0.2 ) (2020-03-27)
### Bug Fixes
* **types:** Remove readonly definition in WebViewTypes.ts ([#1272 ](https://github.com/react-native-community/react-native-webview/issues/1272 )) ([3c06d78 ](https://github.com/react-native-community/react-native-webview/commit/ 3c06d78 ))
il y a 4 ans
Giovanni Montenegro
3c06d78239
fix(types): Remove readonly definition in WebViewTypes.ts (#1272 )
Co-authored-by: Giovanni Montenegro <giovanni.montenegro@fincons.com >
il y a 4 ans