Skip to content

Proj davinci dev #9

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 192 commits into
base: proj-davinci-dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
192 commits
Select commit Hold shift + click to select a range
d8acd90
fix(android): Added fallback poster image to prevent crashes (#1036)
Nov 26, 2019
5b0c634
fix(build): Android build errors when using Gradle 6.0 (#1037)
ShotSkydiver Nov 26, 2019
5ddd6c6
chore(release): 7.5.2 [skip ci]
semantic-release-bot Nov 26, 2019
604495e
feat(iOS): new prop injectedJavaScriptBeforeContentLoaded (#1038)
SRandazzo Dec 6, 2019
88b6498
fix(ios): Make allowFileAccessFromFileURLs work in iOS. (#1061)
StasD Dec 6, 2019
c400133
chore(release): 7.6.0 [skip ci]
semantic-release-bot Dec 6, 2019
3615296
feat(ios): Generate history API events on iOS (#1082)
safaiyeh Dec 16, 2019
ce565f4
chore(release): 8.0.0 [skip ci]
semantic-release-bot Dec 16, 2019
adb5608
fix(iOS): Ignore WebKitDomainError 101 (#961)
BenWildeman Dec 17, 2019
7ba1bc5
chore(release): 8.0.1 [skip ci]
semantic-release-bot Dec 17, 2019
4f4644f
fix(iOS): WKWebView RetainCycle (#1096)
sunzhongliangde Dec 27, 2019
8a9836c
chore(docs): Add 8.0.0 to Breaking History on README (#1085)
safaiyeh Dec 27, 2019
c4f8a74
chore(release): 8.0.2 [skip ci]
semantic-release-bot Dec 27, 2019
07a8713
chore(deps): bump npm from 6.11.3 to 6.13.4 (#1079)
dependabot[bot] Dec 27, 2019
13ae8c9
chore(README): Lean Core badge
Naturalclar Jan 7, 2020
0442126
fix(whitelisted origins): Prevent handling of un-whitelisted URLs
aarondail Jan 8, 2020
f0cb28f
chore(release): 8.0.3 [skip ci]
semantic-release-bot Jan 8, 2020
5e8b4d5
chore(iOS): Extract wkWebViewConfig setup to setUpWkWebViewConfig fun…
shirakaba Jan 8, 2020
3a92180
chore(example): Added example app
Naturalclar Jan 16, 2020
e6edc6d
fix(iOS): Meta method 'UIScrollViewContentInsetAdjustmentBehavior:' c…
tido64 Jan 20, 2020
a466c0f
chore(release): 8.0.4 [skip ci]
semantic-release-bot Jan 20, 2020
bf1d645
chore(example): Added three test examples: Alerts, Scrolling, and Bac…
tom-un Jan 21, 2020
acf1ad7
fix(Android): Redirected URLs now redirect correctly. (#991)
hanlh1 Jan 26, 2020
d4efa1e
chore(release): 8.0.5 [skip ci]
semantic-release-bot Jan 26, 2020
344aab5
fix(Android): Revert "Redirected URLs now redirect correctly. (#991)"…
dvicory Jan 30, 2020
31d015b
chore(release): 8.0.6 [skip ci]
semantic-release-bot Jan 30, 2020
1e57231
feat(macOS): macOS Support (#1164)
tom-un Feb 12, 2020
f65783d
chore(release): 8.1.0 [skip ci]
semantic-release-bot Feb 12, 2020
e6241cb
chore(Android): Convert RNCWebViewPackage to Kotlin (#1194)
dulmandakh Feb 13, 2020
327bc6b
chore(docs): Update cookie links (#1149)
safaiyeh Feb 13, 2020
6c8b8fc
chore(docs): Update Android assets path (#1173)
Feb 14, 2020
5024295
chore(docs): Fix Getting Started Guide link in Breaking History (#1213)
allanzi Feb 17, 2020
4093682
fix(Android): Don't show camera options for a file upload when they c…
dvicory Feb 19, 2020
1186632
chore(release): 8.1.1 [skip ci]
semantic-release-bot Feb 19, 2020
2470245
fix(Android): Don't log the cookie when downloading file. (#1224)
trcoffman Feb 21, 2020
19896fc
chore(release): 8.1.2 [skip ci]
semantic-release-bot Feb 21, 2020
86c4458
chore(docs): Update React Native links to reactnative.dev (#1233)
lucianomlima Feb 26, 2020
ffee0d4
feat(Windows): Windows support! (#1220)
kaiguo Mar 17, 2020
5f7f4a1
chore(release): 8.2.0 [skip ci]
semantic-release-bot Mar 17, 2020
91064ab
fix(deps): Update React Native Windows version to ^0.61.0-beta.58 (#1…
Mar 17, 2020
e9ad1df
chore(release): 8.2.1 [skip ci]
semantic-release-bot Mar 17, 2020
9cb2f6e
feat(iOS): WKUserScripts (e.g. injectedJavaScript) can now update upo…
shirakaba Mar 17, 2020
bff88f8
chore(release): 9.0.0 [skip ci]
semantic-release-bot Mar 17, 2020
9732d65
fix(deps): Update lock file (#1257)
safaiyeh Mar 17, 2020
2555297
chore(release): 9.0.1 [skip ci]
semantic-release-bot Mar 17, 2020
3c06d78
fix(types): Remove readonly definition in WebViewTypes.ts (#1272)
GiovanniMontenegro Mar 27, 2020
9fbcedd
chore(release): 9.0.2 [skip ci]
semantic-release-bot Mar 27, 2020
c88e380
feat(Android): Implement direct communication between Android code an…
ivari Apr 6, 2020
fda1794
chore(release): 9.1.0 [skip ci]
semantic-release-bot Apr 6, 2020
571fb8d
fix(iOS): injectedJavaScriptBeforeContentLoaded now runs when messagi…
SRandazzo Apr 7, 2020
8a46bb9
chore(release): 9.1.1 [skip ci]
semantic-release-bot Apr 7, 2020
04f9fb2
fix(Android): Ensure each mounted WebView binds their personal onMess…
ivari Apr 9, 2020
c8dc85d
chore(release): 9.1.2 [skip ci]
semantic-release-bot Apr 9, 2020
d16746c
fix(Windows): Move rnpm-plugin-windows to devDependencies. (#1266)
jmheik Apr 9, 2020
c6ad1f9
chore(release): 9.1.3 [skip ci]
semantic-release-bot Apr 9, 2020
5d88af4
fix(Android): Workaround for chromium bugs 1023678 and 1050635. (#1221)
trcoffman Apr 10, 2020
f6d54c2
chore(release): 9.1.4 [skip ci]
semantic-release-bot Apr 10, 2020
d4ab332
feat(iOS): Add Hardware Silence (#1218)
redpandatronicsuk Apr 13, 2020
5c6d137
chore(release): 9.2.0 [skip ci]
semantic-release-bot Apr 13, 2020
2b4d752
fix(iOS): Adds missing silent hardware declaration to header file (#1…
redpandatronicsuk Apr 14, 2020
c6a39e9
chore(release): 9.2.1 [skip ci]
semantic-release-bot Apr 14, 2020
438e292
fix(Android): Resolve crypto error with uuid usage (#1334)
artyorsh Apr 21, 2020
7d29883
chore(release): 9.2.2 [skip ci]
semantic-release-bot Apr 21, 2020
2d9b080
feat(macOS): Make podspec compatible with macOS (#1328)
alloy Apr 24, 2020
694b07f
chore(release): 9.3.0 [skip ci]
semantic-release-bot Apr 24, 2020
a6010d9
feat(iOS): Add onFileDownload callback (#1214)
trcoffman Apr 29, 2020
b10b976
chore(release): 9.4.0 [skip ci]
semantic-release-bot Apr 29, 2020
81e0360
fix(windows): Fixes ScriptNotify and InvokeScript (#1354 by @benhamlin)
May 8, 2020
ef3ceb2
chore(windows): Set up Windows CI (#1358 by @kaiguo)
May 8, 2020
20a3f90
fix(windows): Fix windows local asset path (#1335 by @kaiguo)
May 15, 2020
9240536
fix(iOS): Trigger _onContentProcessDidTerminate when removing webview…
pmusaraj May 26, 2020
2639d52
fix(gradle): Load Android Gradle Plugin conditionally (#1230 by @Saee…
SaeedZhiany May 26, 2020
4f0f0af
fix(android): add missing null check for fileTypes (#1368 by @bengy)
bengy May 26, 2020
da31ab5
chore(release): 10.0.0 [skip ci]
semantic-release-bot May 26, 2020
89886c8
fix(android): Fix several Android file upload issues (#1302 by @hojas…
hojason117 May 27, 2020
228f10d
feat(compatibility): Support React Native 0.62 (#1364 by @jussikinnul…
jussikinnula May 27, 2020
938e622
chore(release): 10.1.0 [skip ci]
semantic-release-bot May 27, 2020
7ab2afb
fix(android): Broken build due to conditional import of kotlin (#1412)
Titozzz May 28, 2020
3cbf149
chore(release): 10.1.1 [skip ci]
semantic-release-bot May 28, 2020
91df544
feat(webview): Allow javascript to open windows automatically (#1409 …
trcoffman May 28, 2020
d9c73e0
chore(docs): Update Guide.md (#1305 by @bovesan)
bovesan May 28, 2020
03dbcb8
fix(android): Updated permissions for Android Q and above (#1384 by @…
May 28, 2020
749add1
chore(release): 10.2.0 [skip ci]
semantic-release-bot May 28, 2020
131dd9e
chore(docs): Update link in custom-android docs (#1382 by @ColinRTaylor)
ColinRTaylor May 28, 2020
79eb905
chore(docs): Update brazilian translation and reference in main readm…
akinncar May 28, 2020
b97d16c
fix(android): Improve onLoadProgress consistency (#1373 by @hojason117)
hojason117 May 29, 2020
0317a4b
fix(android): Fixes black screen on back button press (#1298 by @mich…
michan85 May 29, 2020
d55b25c
chore(release): 10.2.1 [skip ci]
semantic-release-bot May 29, 2020
2f8c4c5
fix(android): duplicate `setWebChromeClient()` overwrite (#1417)
jacobmllr95 May 29, 2020
1789b79
chore(release): 10.2.2 [skip ci]
semantic-release-bot May 29, 2020
e402e73
fix(windows): Add postMessage for Windows WebView (#1263 by @kaiguo)
May 29, 2020
b482bbd
chore(release): 10.2.3 [skip ci]
semantic-release-bot May 29, 2020
ab9d584
Merge pull request #6 from react-native-community/master
Ryan007008 Jun 8, 2020
ac4e05e
feat(android): Add support for injectedJavaScriptBeforeContentLoaded …
SRandazzo Jun 13, 2020
357bc04
chore(release): 10.3.0 [skip ci]
semantic-release-bot Jun 13, 2020
1bd5961
fix(android): Add SSL error handling for Android WebView (#1450 by @t…
alesandroortiz Jun 13, 2020
dce30be
chore(release): 10.3.1 [skip ci]
semantic-release-bot Jun 13, 2020
a2029d2
chore(docs): Fix broken link in docs/Guide.md (#1436 by @Sappphire64)
Sapphire64 Jun 13, 2020
b0ac0c1
chore(windows): Add a .gitattributes to fix line endings across myria…
trcoffman Jun 16, 2020
5f823bb
fix(android sdk 28): build issue (#1469)
rinku-k Jun 26, 2020
6f6e572
chore(release): 10.3.2 [skip ci]
semantic-release-bot Jun 26, 2020
97aaf89
docs(reference): add links to top with jump2header (#1528 by @strdr4605)
strdr4605 Jul 24, 2020
91295e5
fix(types): Add missing applicationNameForUserAgent type in WebViewSh…
TheAlmightyBob Jul 29, 2020
8081443
chore(release): 10.3.3 [skip ci]
semantic-release-bot Jul 29, 2020
8a8b7ce
feat(android): WebView crash handling (#1480)
cristianoccazinsp Aug 6, 2020
096002e
chore(release): 10.4.0 [skip ci]
semantic-release-bot Aug 6, 2020
05c1d8f
fix(iOS): file picker crash (#1567)
jxm2004 Aug 13, 2020
5baacdb
chore(release): 10.4.1 [skip ci]
semantic-release-bot Aug 13, 2020
7513f19
chore(ci): Cleanup windows ci (#1558)
Aug 14, 2020
63c584c
fix(incognito): Ensures that incognito doesn't clear cookies when not…
jasonkellydk Aug 15, 2020
22038cc
chore(release): 10.4.2 [skip ci]
semantic-release-bot Aug 15, 2020
8b69452
feat(ios): Add iOS contentMode property (#1538 by @TheAlmightyBob)
TheAlmightyBob Aug 15, 2020
4624489
chore(release): 10.5.0 [skip ci]
semantic-release-bot Aug 15, 2020
621d2df
chore(docs): Add a debugging note (#1517 by @BryanStearns)
bryanstearns Aug 15, 2020
6a9116f
feat(events): Add isTopFrame to shouldStartLoadForRequest (#1537)
TheAlmightyBob Aug 15, 2020
2451c00
chore(release): 10.6.0 [skip ci]
semantic-release-bot Aug 15, 2020
a02d88f
feat(iOS): Add the pull to refresh (#1265)
svbutko Aug 17, 2020
2a95296
chore(release): 10.7.0 [skip ci]
semantic-release-bot Aug 17, 2020
9ffca8f
feat(android): Add androidLayerType as prop (#1588)
oliviacaraiman Aug 24, 2020
6598325
chore(release): 10.8.0 [skip ci]
semantic-release-bot Aug 24, 2020
db529e2
Updated Guide.md for using injectedJavaScript (#1578)
lrusso Aug 25, 2020
2cb2113
fix(iOS): changed the way the top view controller is obtained. (#1592)
cristianoccazinsp Aug 25, 2020
a48c981
fix(ts): Convert ContentInsetAdjustmentBehavior from an enum back to …
TheAlmightyBob Aug 25, 2020
c2395bf
chore(release): 10.8.1 [skip ci]
semantic-release-bot Aug 25, 2020
8dd9969
fix(deps): Update package.json (#1583)
safaiyeh Aug 25, 2020
3a6d966
chore(release): 10.8.2 [skip ci]
semantic-release-bot Aug 25, 2020
4d4b5e2
Synchronously decide if Android WebView should load a URL or not. (#1…
dvicory Aug 26, 2020
9dcd108
fix(types): Update Typescript definition file (#1597)
mathieubruguier Aug 31, 2020
4840eeb
chore(release): 10.8.3 [skip ci]
semantic-release-bot Aug 31, 2020
4c4399c
Fix(types): Update Typescript definition file, declaring WebView clas…
iou90 Sep 5, 2020
4081410
chore(docs): remove hash url change note (#1622)
dominictwlee Sep 8, 2020
22a60fd
feat(iOS): Add prop autoManageStatusBarEnabled (#914)
kesha-antonov Sep 15, 2020
a482a74
chore(release): 10.9.0 [skip ci]
semantic-release-bot Sep 15, 2020
a83596e
chore(docs): Add other breaking changes to README
jamonholmgren Sep 25, 2020
08b7099
fix(ios): Xcode 12 compatibility (#1643)
radko93 Sep 29, 2020
2d24131
chore(release): 10.9.1 [skip ci]
semantic-release-bot Sep 29, 2020
f204195
fix(podspec): Lowered deployment target for MacOS to 10.13 (#1673)
qmatteoq Oct 5, 2020
dbf4659
fix(macOS): Don't include iOS pull-to-refresh control (#1636)
bralax Oct 5, 2020
4d8a76f
chore(release): 10.9.2 [skip ci]
semantic-release-bot Oct 5, 2020
1bc38da
docs: update injectedJavascript ios docs (#1704 bu @Crisfole)
Crisfole Oct 21, 2020
ef48d35
fix(android): Update SSL error handling (#1466)
alesandroortiz Oct 22, 2020
6398415
chore(release): 10.9.3 [skip ci]
semantic-release-bot Oct 22, 2020
b930e25
feat(windows): JS-WebView messaging bridge & multiple WebViews fixes …
tero-paananen Oct 26, 2020
74872a1
chore(release): 10.10.0 [skip ci]
semantic-release-bot Oct 26, 2020
8bd0b41
fix(windows): Resolve Missing Deploy Target (#1716 by @chiaramooney)
chiaramooney Nov 6, 2020
4ec290d
chore(release): 10.10.1 [skip ci]
semantic-release-bot Nov 6, 2020
c95c0ea
fix(android): Unset mWebChromeClient on WebViewManager rather than We…
hchokshi Nov 6, 2020
1b009dd
chore(release): 10.10.2 [skip ci]
semantic-release-bot Nov 6, 2020
194c6a2
feat(android): Introduce setSupportMultipleWindows to mitigate CVE-20…
kelset Nov 24, 2020
aaf7881
chore(release): 11.0.0 [skip ci]
semantic-release-bot Nov 24, 2020
187dd0a
Update stale.yml
Titozzz Nov 27, 2020
321d9bd
Update windows-ci.yml
Titozzz Nov 27, 2020
d08d000
Update windows-ci.yml
Titozzz Nov 27, 2020
84b7177
fix(ts): onScroll event type (#1631)
Dec 5, 2020
f1e7f3d
chore(release): 11.0.1 [skip ci]
semantic-release-bot Dec 5, 2020
53c0382
fix(android): changed initial value of nextLockIdentifier from 0 to 1…
inf123 Dec 8, 2020
816c4a4
chore(release): 11.0.2 [skip ci]
semantic-release-bot Dec 8, 2020
d338cae
fix(iOS): restore cookie handling for iOS <= 10 (#1728)
jacobmllr95 Jan 13, 2021
6880289
chore(release): 11.0.3 [skip ci]
semantic-release-bot Jan 13, 2021
cf1f3a9
chore(docs): Fix link to v2.0.0 (#1806)
inokawa Jan 20, 2021
808762f
chore(docs): Update README.md (#1788)
ralph-dev Jan 20, 2021
43443d8
chore(docs): Update Custom-Android.md (#1787)
kvntzn Jan 20, 2021
4b479d6
chore(docs): update repo references with new repo location (#1657)
josmithua Jan 20, 2021
d46a6d3
feat(iOS 13+): automaticallyAdjustsScrollIndicatorInsets prop (#1077)
billxie1988 Jan 20, 2021
b2f9ed2
chore(release): 11.1.0 [skip ci]
semantic-release-bot Jan 20, 2021
8d098ef
feat(iOS & MacOS): allowUniversalAccessFromFileURLs property(#1730)
RecianuCiprian Jan 20, 2021
359ef90
chore(release): 11.2.0 [skip ci]
semantic-release-bot Jan 20, 2021
283fe12
fix(ios): error on iOS < 13(#1843)
billxie1988 Jan 25, 2021
36c21b0
chore(release): 11.2.1 [skip ci]
semantic-release-bot Jan 25, 2021
c5ae919
chore(ci): Upgrade react-native-windows to 0.62.17 (#1768)
jamonholmgren Jan 25, 2021
ad702f5
fix(windows): Resolve Deploy Issue (#1850)
chiaramooney Feb 10, 2021
83af1b6
chore(release): 11.2.2 [skip ci]
semantic-release-bot Feb 10, 2021
4f469ee
fix(android): Fix full=screen video when in modals (#1748 by @cristia…
cristianoccazinsp Feb 11, 2021
dd315bc
chore(release): 11.2.3 [skip ci]
semantic-release-bot Feb 11, 2021
1f089ba
fix(iOS): Send cookies with resource requests (#1803)
nikitawani07 Mar 10, 2021
099087f
chore(release): 11.2.4 [skip ci]
semantic-release-bot Mar 10, 2021
30a53d9
fix(iOS): webview retain cycle (#1916)
sunzhongliangde Mar 15, 2021
f7504cc
chore(docs): fixed "postMessage" url in Reference.md (#1913)
bhrg3se Mar 15, 2021
9c51a17
chore(docs): Clarify that navigationType and isTopFrame is iOS only (…
erkie Mar 15, 2021
4c71ff2
chore(release): 11.2.5 [skip ci]
semantic-release-bot Mar 15, 2021
85dfca8
fix(ios): Add missing nullability specifiers; fix if block warning (#…
newyankeecodeshop Mar 16, 2021
2aa8cee
chore(release): 11.2.6 [skip ci]
semantic-release-bot Mar 16, 2021
7decc5c
feat(ios): Add support for `limitsNavigationsToAppBoundDomains` (#1662)
ivari Mar 16, 2021
06ffafc
chore(release): 11.3.0 [skip ci]
semantic-release-bot Mar 16, 2021
65cc83c
fix(android:) enable DRM protected content (#1862)
crasyboy42 Mar 16, 2021
ac8eb97
fix(windows): Check UAP contract version before calling FrameworkElem…
asklar Mar 16, 2021
991f6b7
chore(release): 11.3.1 [skip ci]
semantic-release-bot Mar 16, 2021
a529e9a
Merge branch 'original_master'
uspython Mar 17, 2021
b45505f
Merge branch 'master' into proj-davinci-dev
uspython Mar 17, 2021
c76e515
update RNCWebview
uspython Mar 17, 2021
6ac0283
fix java webview build error
uspython Mar 24, 2021
e3e98ff
Android 31 Build Pass
uspython Jan 25, 2023
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: 1 addition & 1 deletion .all-contributorsrc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"projectName": "react-native-webview",
"projectOwner": "react-native-community",
"projectOwner": "react-native-webview",
"repoType": "github",
"repoHost": "https://github.com",
"files": [
Expand Down
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
- node_modules-{{ arch }}-{{ checksum "yarn.lock" }}

- run:
name: Run Tests
name: Lint checks
command: yarn ci

publish:
Expand Down
12 changes: 12 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
* text=auto

*.bat text eol=crlf
*.def text eol=crlf
*.filters text eol=crlf
*.idl text eol=crlf
*.props text eol=crlf
*.ps1 text eol=crlf
*.sln text eol=crlf
*.vcxproj text eol=crlf
*.xaml text eol=crlf

2 changes: 1 addition & 1 deletion .github/workflows/detox.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: 'Detox CI Tests'
on: [push]
on: [pull_request]

jobs:
tests:
Expand Down
108 changes: 108 additions & 0 deletions .github/workflows/scripts/install-vs-features.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
param (
[Parameter(Mandatory=$true)]
[string[]] $Components,

[uri] $InstallerUri = "https://download.visualstudio.microsoft.com/download/pr/c4fef23e-cc45-4836-9544-70e213134bc8/1ee5717e9a1e05015756dff77eb27d554a79a6db91f2716d836df368381af9a1/vs_Enterprise.exe",

[string] $VsInstaller = "${env:System_DefaultWorkingDirectory}\vs_Enterprise.exe",

[string] $VsInstallOutputDir = "${env:System_DefaultWorkingDirectory}\vs",

[System.IO.FileInfo] $VsInstallPath = "${env:ProgramFiles(x86)}\Microsoft Visual Studio\2019\Enterprise",

[System.IO.FileInfo] $VsInstallerPath = "${env:ProgramFiles(x86)}\Microsoft Visual Studio\Installer",

[switch] $Collect = $false,

[switch] $Cleanup = $false,

[switch] $UseWebInstaller = $false
)

$Components | ForEach-Object {
$componentList += '--add', $_
}

$LocalVsInstaller = "$VsInstallerPath\vs_installershell.exe"

$UseWebInstaller = $UseWebInstaller -or -not (Test-Path -Path "$LocalVsInstaller")

if ($UseWebInstaller) {
Write-Host "Downloading web installer..."

Invoke-WebRequest -Method Get `
-Uri $InstallerUri `
-OutFile $VsInstaller

New-Item -ItemType directory -Path $VsInstallOutputDir

Write-Host "Running web installer to download requested components..."

Start-Process `
-FilePath "$VsInstaller" `
-ArgumentList ( `
'--layout', "$VsInstallOutputDir",
'--wait',
'--norestart',
'--quiet' + `
$componentList
) `
-Wait `
-PassThru

Write-Host "Running downloaded VS installer to add requested components..."

Start-Process `
-FilePath "$VsInstallOutputDir\vs_Enterprise.exe" `
-ArgumentList (
'modify',
'--installPath', "`"$VsInstallPath`"" ,
'--wait',
'--norestart',
'--quiet' + `
$componentList
) `
-Wait `
-PassThru `
-OutVariable returnCode

if ($Cleanup) {
Write-Host "Cleaning up..."

Remove-Item -Path $VsInstaller
Remove-Item -Path $VsInstallOutputDir -Recurse
}

} else {
Write-Host "Running local installer to add requested components..."

Start-Process `
-FilePath "$LocalVsInstaller" `
-ArgumentList (
'modify',
'--installPath', "`"$VsInstallPath`"" ,
'--norestart',
'--quiet' + `
$componentList
) `
-Wait `
-OutVariable returnCode
}

if ($Collect) {
Invoke-WebRequest -Method Get `
-Uri 'https://download.microsoft.com/download/8/3/4/834E83F6-C377-4DCE-A757-69A418B6C6DF/Collect.exe' `
-OutFile ${env:System_DefaultWorkingDirectory}\Collect.exe

# Should generate ${env:Temp}\vslogs.zip
Start-Process `
-FilePath "${env:System_DefaultWorkingDirectory}\Collect.exe" `
-Wait `
-PassThru

New-Item -ItemType Directory -Force ${env:System_DefaultWorkingDirectory}\vslogs
Expand-Archive -Path ${env:TEMP}\vslogs.zip -DestinationPath ${env:System_DefaultWorkingDirectory}\vslogs\

Write-Host "VC versions after installation:"
Get-ChildItem -Name "$VsInstallPath\VC\Tools\MSVC\"
}
3 changes: 2 additions & 1 deletion .github/workflows/stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,11 @@ jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v1
- uses: actions/stale@v3.0.14
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
stale-issue-message: 'Hello 👋, this issue has been opened for more than 2 months with no activity on it. If the issue is still here, please keep in mind that we need community support and help to fix it! Just comment something like _still searching for solutions_ and if you found one, please open a pull request! You have 7 days until this gets closed automatically'
stale-pr-message: 'Hello 👋, this PR has been opened for more than 2 months with no activity on it. If you think this is a mistake please comment and ping a maintainer to get this merged ASAP! Thanks for contributing! You have 7 days until this gets closed automatically'
exempt-issue-label: 'Keep opened'
exempt-pr-label: 'Keep opened'
remove-stale-when-updated: true
59 changes: 59 additions & 0 deletions .github/workflows/windows-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
name: Windows CI
on: [pull_request]

jobs:
run-windows-tests:
name: Build & run tests
runs-on: windows-2019

steps:
- uses: actions/checkout@v2
name: Checkout Code

- name: Setup Node.js
uses: actions/setup-node@v1
with:
node-version: '12.9.1'

- name: Setup MSBuild
uses: microsoft/[email protected]

- name: Check node modules cache
uses: actions/cache@v1
id: yarn-cache
with:
path: ./node_modules
key: ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-

- name: Install node modules
if: steps.yarn-cache.outputs.cache-hit != 'true'
run: yarn --pure-lockfile

- name: yarn build
if: steps.yarn-cache.outputs.cache-hit == 'true'
run: |
yarn build
yarn tsc

- name: Build x64 release
shell: powershell
run: npx react-native run-windows --root example --arch x64 --release --no-packager --no-deploy --logging

# Workaround for a bug in package searching during deploy.
# The deploy script only searches windows/{*/bin/x64/Release,Release/*}, but the build step above placed the pakcages at windows/x64/Release.
# Copy the packages to Windows/Release before deploying.
- name: Deploy
shell: powershell
run: |
cd example
Copy-Item -Path windows\x64\Release -Recurse -Destination windows\
npx react-native run-windows --arch x64 --release --no-build --no-packager

- name: Start Appium server
shell: powershell
run: Start-Process PowerShell -ArgumentList "yarn appium"

- name: Run tests
run: yarn test:windows
7 changes: 6 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,9 @@ android/gradle
android/gradlew
android/gradlew.bat

lib/
lib/
.classpath
.project
.settings/
msbuild.binlog
example/msbuild.binlog
39 changes: 22 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
# React Native WebView - a Modern, Cross-Platform WebView for React Native

[![star this repo](http://githubbadges.com/star.svg?user=react-native-community&repo=react-native-webview&style=flat)](https://github.com/react-native-community/react-native-webview)
[![star this repo](http://githubbadges.com/star.svg?user=react-native-webview&repo=react-native-webview&style=flat)](https://github.com/react-native-webview/react-native-webview)
[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](http://makeapullrequest.com)
[![All Contributors](https://img.shields.io/badge/all_contributors-16-orange.svg?style=flat-square)](#contributors)
[![Known Vulnerabilities](https://snyk.io/test/github/react-native-community/react-native-webview/badge.svg?style=flat-square)](https://snyk.io/test/github/react-native-community/react-native-webview)
<a href="https://www.npmjs.com/package/react-native-webview"><img src="https://img.shields.io/npm/v/react-native-webview.svg"></a>
[![Known Vulnerabilities](https://snyk.io/test/github/react-native-webview/react-native-webview/badge.svg?style=flat-square)](https://snyk.io/test/github/react-native-webview/react-native-webview)
[![NPM Version](https://img.shields.io/npm/v/react-native-webview.svg?style=flat-square)](https://www.npmjs.com/package/react-native-webview)
[![Lean Core Extracted](https://img.shields.io/badge/Lean%20Core-Extracted-brightgreen.svg?style=flat-square)][lean-core-issue]

**React Native WebView** is a modern, well-supported, and cross-platform WebView for React Native. It is intended to be a replacement for the built-in WebView (which will be [removed from core](https://github.com/react-native-community/discussions-and-proposals/pull/3)).

Expand All @@ -19,6 +20,8 @@ _This project is maintained for free by these people using both their free time

- [x] iOS
- [x] Android
- [x] macOS
- [x] Windows

_Note: Expo support for React Native WebView started with [Expo SDK v33.0.0](https://blog.expo.io/expo-sdk-v33-0-0-is-now-available-52d1c99dfe4c)._

Expand All @@ -34,18 +37,20 @@ This project follows [semantic versioning](https://semver.org/). We do not hesit

Current Version: ![version](https://img.shields.io/npm/v/react-native-webview.svg)

- [7.0.1](https://github.com/react-native-community/react-native-webview/releases/tag/v7.0.1) - Removed UIWebView

- [6.0.**2**](https://github.com/react-native-community/react-native-webview/releases/tag/v6.0.2) - Update to AndroidX. Make sure to enable it in your project's `android/gradle.properties`. See [Getting Started Guide](docs/Getting-Started.md).

- [5.0.**1**](https://github.com/react-native-community/react-native-webview/releases/tag/v5.0.0) - Refactored the old postMessage implementation for communication from webview to native.
- [4.0.0](https://github.com/react-native-community/react-native-webview/releases/tag/v4.0.0) - Added cache (enabled by default).
- [3.0.0](https://github.com/react-native-community/react-native-webview/releases/tag/v3.0.0) - WKWebview: Add shared process pool so cookies and localStorage are shared across webviews in iOS (enabled by default).
- [2.0.0](https://github.com/react-native-community/react-native-webview/releases/tag/v2.0.0) - First release this is a replica of the core webview component
- [11.0.0](https://github.com/react-native-webview/react-native-webview/releases/tag/v11.0.0) - Android setSupportMultipleWindows.
- [10.0.0](https://github.com/react-native-webview/react-native-webview/releases/tag/v10.0.0) - Android Gradle plugin is only required when opening the project stand-alone
- [9.0.0](https://github.com/react-native-webview/react-native-webview/releases/tag/v9.0.0) - props updates to injectedJavaScript are no longer immutable.
- [8.0.0](https://github.com/react-native-webview/react-native-webview/releases/tag/v8.0.0) - onNavigationStateChange now triggers with hash url changes
- [7.0.1](https://github.com/react-native-webview/react-native-webview/releases/tag/v7.0.1) - Removed UIWebView
- [6.0.**2**](https://github.com/react-native-webview/react-native-webview/releases/tag/v6.0.2) - Update to AndroidX. Make sure to enable it in your project's `android/gradle.properties`. See [Getting Started Guide](docs/Getting-Started.md).
- [5.0.**1**](https://github.com/react-native-webview/react-native-webview/releases/tag/v5.0.0) - Refactored the old postMessage implementation for communication from webview to native.
- [4.0.0](https://github.com/react-native-webview/react-native-webview/releases/tag/v4.0.0) - Added cache (enabled by default).
- [3.0.0](https://github.com/react-native-webview/react-native-webview/releases/tag/v3.0.0) - WKWebview: Add shared process pool so cookies and localStorage are shared across webviews in iOS (enabled by default).
- [2.0.0](https://github.com/react-native-webview/react-native-webview/releases/tag/v2.0.0) - First release this is a replica of the core webview component

**Upcoming:**

- this.webView.postMessage() removal (never documented and less flexible than injectJavascript) -> [how to migrate](https://github.com/react-native-community/react-native-webview/issues/809)
- this.webView.postMessage() removal (never documented and less flexible than injectJavascript) -> [how to migrate](https://github.com/react-native-webview/react-native-webview/issues/809)
- Kotlin rewrite
- Maybe Swift rewrite

Expand All @@ -61,9 +66,7 @@ import { WebView } from 'react-native-webview';
// ...
class MyWebComponent extends Component {
render() {
return (
<WebView source={{ uri: 'https://facebook.github.io/react-native/' }} />
);
return <WebView source={{ uri: 'https://reactnative.dev/' }} />;
}
}
```
Expand All @@ -76,7 +79,7 @@ For more, read the [API Reference](./docs/Reference.md) and [Guide](./docs/Guide

## Contributing

See [Contributing.md](https://github.com/react-native-community/react-native-webview/blob/master/docs/Contributing.md)
See [Contributing.md](https://github.com/react-native-webview/react-native-webview/blob/master/docs/Contributing.md)

## Contributors

Expand All @@ -94,8 +97,10 @@ This project follows the [all-contributors](https://github.com/all-contributors/

MIT

## Traduções
## Translations

This readme is available in:

- [Brazilian portuguese](docs/README.portuguese.md)

[lean-core-issue]: https://github.com/facebook/react-native/issues/23313
31 changes: 31 additions & 0 deletions __tests__/Alert.test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*/

import { driver, By2 } from 'selenium-appium'
import { until } from 'selenium-webdriver';

const setup = require('../jest-setups/jest.setup');
jest.setTimeout(50000);

beforeAll(() => {
return driver.startWithCapabilities(setup.capabilites);
});

afterAll(() => {
return driver.quit();
});

describe('Alert Tests', () => {

test('Show Alert', async () => {
const showAlertButton = await driver.wait(until.elementLocated(By2.nativeName('Show alert')));
await showAlertButton.click();
await driver.wait(until.elementLocated(By2.nativeName('Hello! I am an alert box!')));
await By2.nativeName('OK').click();
const dismissMessage = await driver.wait(until.elementLocated(By2.nativeName('Alert dismissed!')));
expect(dismissMessage).not.toBeNull();
});

});
Loading