Commit Graph

665 Commits

Author SHA1 Message Date
Sampo Juustila 768092bba7
fix(android): read minSdkVersion from root project (#1960) 2021-04-21 01:03:41 +02:00
semantic-release-bot 71ca0fb787 chore(release): 11.4.1 [skip ci]
## [11.4.1](https://github.com/react-native-webview/react-native-webview/compare/v11.4.0...v11.4.1) (2021-04-20)

### Bug Fixes

* **android:** Adding mavenCentral() as jcenter() is shutting down ([#1961](https://github.com/react-native-webview/react-native-webview/issues/1961)) ([015054c](015054c2f5))
2021-04-20 14:28:13 +00:00
Mrinal Maheshwari 015054c2f5
fix(android): Adding mavenCentral() as jcenter() is shutting down (#1961)
Adding mavenCentral() as jcenter() is shutting down
2021-04-20 16:25:27 +02:00
semantic-release-bot d6672c87eb chore(release): 11.4.0 [skip ci]
# [11.4.0](https://github.com/react-native-webview/react-native-webview/compare/v11.3.2...v11.4.0) (2021-04-13)

### Features

* **windows:** Add POST requests, fixes Windows CI issues, and other QOL ([#1926](https://github.com/react-native-webview/react-native-webview/issues/1926)) ([d352d14](d352d147bd))
2021-04-13 23:44:21 +00:00
John Kennedy Mumo d352d147bd
feat(windows): Add POST requests, fixes Windows CI issues, and other QOL (#1926)
* Added POST request support for Windows.

* Cleanup formatting for docs

* Updated test certificate

* Reverted publisher name and fixed password mismatch

* Fixes to Windows tests

* Remove winappdriver install

* Run react-native server in background

* Added url encoded form support

* Added support for custom headers

Co-authored-by: Kennedy Mumo <kemumo@microsoft.com>
2021-04-14 01:40:49 +02:00
semantic-release-bot 69e56c7911 chore(release): 11.3.2 [skip ci]
## [11.3.2](https://github.com/react-native-webview/react-native-webview/compare/v11.3.1...v11.3.2) (2021-03-24)

### Bug Fixes

* **refactor:** Converting dispatchEvent static method to non static method ([#1939](https://github.com/react-native-webview/react-native-webview/issues/1939)) ([344ccce](344ccce3ee))
2021-03-24 20:30:34 +00:00
Gaurav Gupta 344ccce3ee
fix(refactor): Converting dispatchEvent static method to non static method (#1939)
* converting static method dispatch event to non static

* removing typo

* removing typo

Co-authored-by: Gaurav Gupta <gaurkum@microsoft.com>
2021-03-24 21:28:20 +01:00
Chiara Mooney 9d9fda87fa
chore(docs): Update Instructions for Windows WebView Scrolling (#1927)
* Update with Windows Scroll with Touch Requirements

* Rephrase
2021-03-22 16:01:18 +01:00
Daniel Winkler 2973a50d7e
chore(docs): Add multiDex error to the common issues section (#1921) 2021-03-17 23:23:57 +01:00
semantic-release-bot 991f6b7902 chore(release): 11.3.1 [skip ci]
## [11.3.1](https://github.com/react-native-webview/react-native-webview/compare/v11.3.0...v11.3.1) (2021-03-16)

### Bug Fixes

* **windows:** Check UAP contract version before calling FrameworkElement.IsLoaded ([#1858](https://github.com/react-native-webview/react-native-webview/issues/1858)) ([ac8eb97](ac8eb97910))
2021-03-16 23:42:08 +00:00
Alexander Sklar ac8eb97910
fix(windows): Check UAP contract version before calling FrameworkElement.IsLoaded (#1858)
Co-authored-by: Thibault Malbranche <thibault.malbranche@epitech.eu>
2021-03-17 00:40:31 +01:00
crasyboy42 65cc83c21a
fix(android:) enable DRM protected content (#1862) 2021-03-17 00:32:14 +01:00
semantic-release-bot 06ffafc1bc chore(release): 11.3.0 [skip ci]
# [11.3.0](https://github.com/react-native-webview/react-native-webview/compare/v11.2.6...v11.3.0) (2021-03-16)

### Features

* **ios:** Add support for `limitsNavigationsToAppBoundDomains` ([#1662](https://github.com/react-native-webview/react-native-webview/issues/1662)) ([7decc5c](7decc5cff1))
2021-03-16 23:31:36 +00:00
Ivari Tölp 7decc5cff1
feat(ios): Add support for `limitsNavigationsToAppBoundDomains` (#1662)
* Add support for iOS-specific prop `limitsNavigationsToAppBoundDomains`

* Add check for `limitsNavigationsToAppBoundDomains` property

Turns out that @available is simply bugged right
now in Xcode and will pretty much always return
`true`. Adding a check for the property actually
existing as well will avoid iOS <14 crashing horribly.

* Improve documentation

Co-authored-by: Thibault Malbranche <thibault.malbranche@epitech.eu>
2021-03-17 00:29:40 +01:00
semantic-release-bot 2aa8cee5ee chore(release): 11.2.6 [skip ci]
## [11.2.6](https://github.com/react-native-webview/react-native-webview/compare/v11.2.5...v11.2.6) (2021-03-16)

### Bug Fixes

* **ios:** Add missing nullability specifiers; fix if block warning ([#1898](https://github.com/react-native-webview/react-native-webview/issues/1898)) ([85dfca8](85dfca894f))
2021-03-16 23:25:21 +00:00
Andrew Goodale 85dfca894f
fix(ios): Add missing nullability specifiers; fix if block warning (#1898) 2021-03-17 00:23:46 +01:00
semantic-release-bot 4c71ff2d93 chore(release): 11.2.5 [skip ci]
## [11.2.5](https://github.com/react-native-webview/react-native-webview/compare/v11.2.4...v11.2.5) (2021-03-15)

### Bug Fixes

* **iOS:** webview retain cycle ([#1916](https://github.com/react-native-webview/react-native-webview/issues/1916)) ([30a53d9](30a53d9480))
2021-03-15 09:23:13 +00:00
Erik Rothoff Andersson 9c51a17040
chore(docs): Clarify that navigationType and isTopFrame is iOS only (#1880) 2021-03-15 10:21:35 +01:00
Bhargab f7504ccead
chore(docs): fixed "postMessage" url in Reference.md (#1913) 2021-03-15 10:20:57 +01:00
sunzhongliang 30a53d9480
fix(iOS): webview retain cycle (#1916)
Co-authored-by: sunzhongliang <sunzhongliang@innotechx.com>
2021-03-15 10:19:45 +01:00
semantic-release-bot 099087f8d9 chore(release): 11.2.4 [skip ci]
## [11.2.4](https://github.com/react-native-webview/react-native-webview/compare/v11.2.3...v11.2.4) (2021-03-10)

### Bug Fixes

* **iOS:** Send cookies with resource requests ([#1803](https://github.com/react-native-webview/react-native-webview/issues/1803)) ([1f089ba](1f089baa40))
2021-03-10 09:14:30 +00:00
nikitawani07 1f089baa40
fix(iOS): Send cookies with resource requests (#1803)
* iOS cookie available for resource requests

* Missig brace added

Co-authored-by: niwani <niwani@microsoft.com>
2021-03-10 10:11:09 +01:00
semantic-release-bot dd315bcf87 chore(release): 11.2.3 [skip ci]
## [11.2.3](https://github.com/react-native-webview/react-native-webview/compare/v11.2.2...v11.2.3) (2021-02-11)

### Bug Fixes

* **android:** Fix full=screen video when in modals ([#1748](https://github.com/react-native-webview/react-native-webview/issues/1748) by [@cristianoccazinsp](https://github.com/cristianoccazinsp)) ([4f469ee](4f469ee9aa))
2021-02-11 05:11:02 +00:00
Cristiano Coelho 4f469ee9aa
fix(android): Fix full=screen video when in modals (#1748 by @cristianoccazinsp)
Co-authored-by: Cristiano Coelho <cristianocca@hotmail.com>
Co-authored-by: Thibault Malbranche <thibault.malbranche@epitech.eu>
2021-02-10 21:09:09 -08:00
semantic-release-bot 83af1b6d93 chore(release): 11.2.2 [skip ci]
## [11.2.2](https://github.com/react-native-webview/react-native-webview/compare/v11.2.1...v11.2.2) (2021-02-10)

### Bug Fixes

* **windows:** Resolve Deploy Issue ([#1850](https://github.com/react-native-webview/react-native-webview/issues/1850)) ([ad702f5](ad702f57f1))
2021-02-10 12:01:53 +00:00
Chiara Mooney ad702f57f1
fix(windows): Resolve Deploy Issue (#1850) 2021-02-10 12:59:13 +01:00
Jamon Holmgren c5ae9193bd
chore(ci): Upgrade react-native-windows to 0.62.17 (#1768)
* Upgrade react-native-windows to 0.63.11

* Downgrade to 0.62.17
2021-01-25 22:01:27 +01:00
semantic-release-bot 36c21b0042 chore(release): 11.2.1 [skip ci]
## [11.2.1](https://github.com/react-native-webview/react-native-webview/compare/v11.2.0...v11.2.1) (2021-01-25)

### Bug Fixes

* **ios:** error on iOS < 13([#1843](https://github.com/react-native-webview/react-native-webview/issues/1843)) ([283fe12](283fe124b3))
2021-01-25 12:59:40 +00:00
Bill Xie 283fe124b3
fix(ios): error on iOS < 13(#1843)
* fix:iOS13  scrollView.automaticallyAdjustsScrollIndicatorInsets default value YES which make the webview vertical indicator position in wrong offset

* added types and doc

* fix: breaking bug for props not include under iOS13

Co-authored-by: BillHsieh <xietian@meitunmama.com>
Co-authored-by: xietian <xietian@innotechx.com>
Co-authored-by: Thibault Malbranche <thibault.malbranche@epitech.eu>
Co-authored-by: Thibault Malbranche <malbranche.thibault@gmail.com>
2021-01-25 13:54:42 +01:00
semantic-release-bot 359ef90ddc chore(release): 11.2.0 [skip ci]
# [11.2.0](https://github.com/react-native-webview/react-native-webview/compare/v11.1.0...v11.2.0) (2021-01-20)

### Features

* **iOS & MacOS:** allowUniversalAccessFromFileURLs property([#1730](https://github.com/react-native-webview/react-native-webview/issues/1730)) ([8d098ef](8d098efce7))
2021-01-20 18:34:49 +00:00
RecianuCiprian 8d098efce7
feat(iOS & MacOS): allowUniversalAccessFromFileURLs property(#1730)
* Added allowUniversalAccessFromFileURLs property to iOS and macOS
Updated the types to include allowUniversalAccessFromFileURLs and allowFileAccessFromFileURLs for iOS and macOS
Updated the Reference.md to include in the allowUniversalAccessFromFileURLs section iOS and macOS

* Updated platform in the type definition
2021-01-20 19:31:42 +01:00
semantic-release-bot b2f9ed228e chore(release): 11.1.0 [skip ci]
# [11.1.0](https://github.com/react-native-webview/react-native-webview/compare/v11.0.3...v11.1.0) (2021-01-20)

### Features

* **iOS 13+:** automaticallyAdjustsScrollIndicatorInsets prop ([#1077](https://github.com/react-native-webview/react-native-webview/issues/1077)) ([d46a6d3](d46a6d3c69))
2021-01-20 18:12:08 +00:00
Bill Xie d46a6d3c69
feat(iOS 13+): automaticallyAdjustsScrollIndicatorInsets prop (#1077)
* fix:iOS13  scrollView.automaticallyAdjustsScrollIndicatorInsets default value YES which make the webview vertical indicator position in wrong offset

* added types and doc

Co-authored-by: BillHsieh <xietian@meitunmama.com>
Co-authored-by: xietian <xietian@innotechx.com>
Co-authored-by: Thibault Malbranche <thibault.malbranche@epitech.eu>
Co-authored-by: Thibault Malbranche <malbranche.thibault@gmail.com>
2021-01-20 19:09:27 +01:00
Joshua Smith 4b479d6d3f
chore(docs): update repo references with new repo location (#1657)
Co-authored-by: Thibault Malbranche <thibault.malbranche@epitech.eu>
2021-01-20 18:49:11 +01:00
Kevin Tuazon 43443d8ca8
chore(docs): Update Custom-Android.md (#1787)
Updates ReactWebViewClient to RNCWebViewClient
2021-01-20 18:45:45 +01:00
Ralph Maamari 808762f8bb
chore(docs): Update README.md (#1788)
Updated README for V11
2021-01-20 18:45:17 +01:00
inokawa cf1f3a9917
chore(docs): Fix link to v2.0.0 (#1806) 2021-01-20 18:44:49 +01:00
semantic-release-bot 6880289796 chore(release): 11.0.3 [skip ci]
## [11.0.3](https://github.com/react-native-community/react-native-webview/compare/v11.0.2...v11.0.3) (2021-01-13)

### Bug Fixes

* **iOS:** restore cookie handling for iOS <= 10 ([#1728](https://github.com/react-native-community/react-native-webview/issues/1728)) ([d338cae](d338cae57a))
2021-01-13 14:01:19 +00:00
Jacob Müller d338cae57a
fix(iOS): restore cookie handling for iOS <= 10 (#1728) 2021-01-13 14:55:36 +01:00
semantic-release-bot 816c4a4038 chore(release): 11.0.2 [skip ci]
## [11.0.2](https://github.com/react-native-community/react-native-webview/compare/v11.0.1...v11.0.2) (2020-12-08)

### Bug Fixes

* **android:** changed initial value of nextLockIdentifier from 0 to 1 ([#1689](https://github.com/react-native-community/react-native-webview/issues/1689)) ([53c0382](53c0382cd0))
2020-12-08 04:01:49 +00:00
Christian Nilsson 53c0382cd0
fix(android): changed initial value of nextLockIdentifier from 0 to 1 (#1689)
Co-authored-by: Jamon Holmgren <jamonholmgren@gmail.com>
2020-12-08 04:56:28 +01:00
semantic-release-bot f1e7f3dc4a chore(release): 11.0.1 [skip ci]
## [11.0.1](https://github.com/react-native-community/react-native-webview/compare/v11.0.0...v11.0.1) (2020-12-05)

### Bug Fixes

* **ts:** onScroll event type ([#1631](https://github.com/react-native-community/react-native-webview/issues/1631)) ([84b7177](84b7177d21))
2020-12-05 19:32:13 +00:00
Nizomiddin Toshpulatov 84b7177d21
fix(ts): onScroll event type (#1631)
* Fix onScroll event type

* Update documentation

* Address PR feedback
2020-12-05 20:29:37 +01:00
Thibault Malbranche d08d000a54
Update windows-ci.yml 2020-11-27 17:56:01 +01:00
Thibault Malbranche 321d9bdfb6
Update windows-ci.yml 2020-11-27 12:51:41 +01:00
Thibault Malbranche 187dd0a835
Update stale.yml 2020-11-27 12:39:21 +01:00
semantic-release-bot aaf788169b chore(release): 11.0.0 [skip ci]
# [11.0.0](https://github.com/react-native-community/react-native-webview/compare/v10.10.2...v11.0.0) (2020-11-24)

### Features

* **android:** Introduce setSupportMultipleWindows to mitigate CVE-2020-6506 ([#1747](https://github.com/react-native-community/react-native-webview/issues/1747) by [@mrcoinbase](https://github.com/mrcoinbase) and [@kelset](https://github.com/kelset) -- THANK YOU!) ([194c6a2](194c6a2335))

### BREAKING CHANGES

* **android:** This release introduces the `setSupportMultipleWindows` prop for Android. This sets the underlying Android WebView setting `setSupportMultipleWindows`. This prop defaults to `true` (previously `false`), and serves to mitigate the security advisory [CVE-2020-6506](https://github.com/react-native-webview/react-native-webview/security/advisories/GHSA-36j3-xxf7-4pqg).

The primary way this new behavior changes existing React Native WebView implementations on Android is that links that open in new tabs/windows (such as `<a target="_blank">`) will now prompt to open in the system browser, rather than re-using the current WebView.

If this behavior is not desirable, you can set this new prop to `false`, but be aware that this exposes your app to the security vulnerability listed above. Make sure you have read and understand the whole advisory and relevant links.

iOS & Windows are unaffected.

```jsx
<WebView
  // ...
  setSupportMultipleWindows={true} // default: true
/>
```

Thanks to @mrcoinbase, @kelset, and @Titozzz for their work on this.
2020-11-24 17:20:20 +00:00
Lorenzo Sciandra 194c6a2335
feat(android): Introduce setSupportMultipleWindows to mitigate CVE-2020-6506 (#1747 by @mrcoinbase and @kelset -- THANK YOU!)
BREAKING CHANGE:

This release introduces the `setSupportMultipleWindows` prop for Android. This sets the underlying Android WebView setting `setSupportMultipleWindows`. This prop defaults to `true` (previously `false`), and serves to mitigate the security advisory [CVE-2020-6506](https://github.com/react-native-webview/react-native-webview/security/advisories/GHSA-36j3-xxf7-4pqg).

The primary way this new behavior changes existing React Native WebView implementations on Android is that links that open in new tabs/windows (such as `<a target="_blank">`) will now prompt to open in the system browser, rather than re-using the current WebView.

If this behavior is not desirable, you can set this new prop to `false`, but be aware that this exposes your app to the security vulnerability listed above. Make sure you have read and understand the whole advisory and relevant links.

iOS & Windows are unaffected.

```jsx
<WebView
  // ...
  setSupportMultipleWindows={true} // default: true
/>
```

Thanks to @mrcoinbase, @kelset, and @Titozzz for their work on this.
2020-11-24 09:15:19 -08:00
semantic-release-bot 1b009dd746 chore(release): 10.10.2 [skip ci]
## [10.10.2](https://github.com/react-native-community/react-native-webview/compare/v10.10.1...v10.10.2) (2020-11-06)

### Bug Fixes

* **android:** Unset mWebChromeClient on WebViewManager rather than WebView ([#1720](https://github.com/react-native-community/react-native-webview/issues/1720)) ([c95c0ea](c95c0ea923))
2020-11-06 23:08:39 +00:00
Harsh Chokshi c95c0ea923
fix(android): Unset mWebChromeClient on WebViewManager rather than WebView (#1720) 2020-11-07 00:05:18 +01:00