forked from livekit/react-native-webrtc
-
Notifications
You must be signed in to change notification settings - Fork 3
chore: merge with upstream #61
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
santhoshvai
wants to merge
39
commits into
master
Choose a base branch
from
sync-upstream
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
39 commits
Select commit
Hold shift + click to select a range
bc486df
build(deps-dev): bump minimatch from 3.1.2 to 3.1.5 (#1791)
dependabot[bot] fdc4771
build(deps-dev): bump @babel/plugin-transform-modules-systemjs (#1809)
dependabot[bot] 7f851d5
build(deps-dev): bump js-yaml from 4.1.0 to 4.1.1 (#1773)
dependabot[bot] 3655418
fix: preserve facing mode in applyConstraints
naveenkirugulige 1e99057
ci: pinact (#84)
davidliu bfb1b73
chore(pinact): pin/update GitHub Actions (#85)
davidliu 287fca2
android: bump libwebrtc to 144.7559.05 (#83)
davidliu 7713a83
release: 144.1.0 (#86)
davidliu e5d8781
ios: fix trigger broadcast picker on new arch
Calinteodor 196cbb3
fix(ios): bound AudioDeviceModuleObserver JS waits to break the deadl…
hiroshihorie c751bd6
ios: bump WebRTC-SDK to 144.7559.10 (#92)
hiroshihorie a95d57d
fix(ios): skip AudioDeviceModule JS round-trips when no handler is re…
hiroshihorie d315093
release: 144.1.1 (#93)
davidliu c4ea2d3
build(deps-dev): bump js-yaml from 4.1.1 to 4.2.0 (#1818)
dependabot[bot] 0c63622
registerGlobals: don't set RTCRtpSender/RTCRtpReceiver twice
fippo e8face3
dispose the peer connection after signalingState changes to "closed" …
fippo 3537d38
build(deps-dev): bump @babel/core in /examples/GumTestApp_macOS (#1817)
dependabot[bot] 5892a0f
ios(RCTWebRTC): enable Center Stage for devices that support it
Calinteodor 0a89cc0
ci(ios): pin runner to macos-15 (Xcode 16.4)
Calinteodor 78904d2
android: fix race condition in getDisplayMedia
saghul b9b5ded
release: 124.0.8
saghul cf6101c
build(deps-dev): bump js-yaml from 4.2.0 to 4.3.0
dependabot[bot] a312ef9
feat(ios): configure the default audio session natively in the observ…
hiroshihorie 2edc2f0
release: 144.1.2 (#97)
davidliu 0483cc8
android: release intermediate video effect frames
HanSeonWoo 78d3094
fix(android): guard against duplicate onActivityResult in screen capture
014a8cf
build: ship the vendored declarations in the typescript build
saghul 9a5a928
dispose the peer connection after signalingState changes to "closed" …
fippo b95c41c
registerGlobals: don't set RTCRtpSender/RTCRtpReceiver twice
fippo 7694cad
fix: preserve facing mode in applyConstraints
naveenkirugulige 9bfe18a
fix(android): guard against duplicate onActivityResult in screen capture
5785bca
ios: fix trigger broadcast picker on new arch
Calinteodor e9eaa8f
ios(RCTWebRTC): enable Center Stage for devices that support it
Calinteodor 4754c5f
build: ship the vendored declarations in the typescript build
saghul 5b08af1
merge: sync merge-base with rn-webrtc/master
santhoshvai e167503
merge: sync merge-base with livekit/master
santhoshvai 6aadb83
style: clang-format the Center Stage changes
santhoshvai aefbef7
fix: don't mutate the caller's constraints in applyConstraints
santhoshvai b1c0b91
Merge branch 'master' into sync-upstream
santhoshvai File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,67 @@ | ||
| #!/usr/bin/env node | ||
|
|
||
| /** | ||
| * Fixes up the bob build output for the declaration files which are shipped as-is | ||
| * (currently the ones for the vendored event-target-shim). bob mishandles them in | ||
| * both directions, so for every .d.ts file in src/ we: | ||
| * | ||
| * - Copy it into the typescript output. That target builds with | ||
| * `tsc --emitDeclarationOnly`, and tsc never emits output for .d.ts inputs, so the | ||
| * relative imports pointing at them fail to resolve for consumers using the | ||
| * declaration files, which silently strips the EventTarget members off our classes. | ||
| * | ||
| * - Delete the empty module babel emitted for it in the commonjs and module outputs. | ||
| * Those targets compile every source file and rewrite the extension to .js, turning | ||
| * index.d.ts into an index.d.js which holds no code and which nothing imports. | ||
| */ | ||
|
|
||
| import fs from 'node:fs'; | ||
| import path from 'node:path'; | ||
| import process from 'node:process'; | ||
|
|
||
| const root = path.resolve(import.meta.dirname, '..'); | ||
| const source = path.join(root, 'src'); | ||
| const output = path.join(root, 'lib'); | ||
| const declarationsOutput = path.join(output, 'typescript'); | ||
| const compiledOutputs = [ path.join(output, 'commonjs'), path.join(output, 'module') ]; | ||
|
|
||
| /** | ||
| * Finds every declaration file below the given directory, as paths relative to it. | ||
| */ | ||
| function findDeclarations(directory, prefix = '') { | ||
| return fs.readdirSync(directory, { withFileTypes: true }).flatMap(entry => { | ||
| const entryPath = path.join(prefix, entry.name); | ||
|
|
||
| if (entry.isDirectory()) { | ||
| return findDeclarations(path.join(directory, entry.name), entryPath); | ||
| } | ||
|
|
||
| return entry.name.endsWith('.d.ts') ? [ entryPath ] : []; | ||
| }); | ||
| } | ||
|
|
||
| if (!fs.existsSync(output)) { | ||
| console.error(`${path.relative(root, output)} not found, run "bob build" first.`); | ||
| process.exit(1); | ||
| } | ||
|
|
||
| for (const declaration of findDeclarations(source)) { | ||
| const target = path.join(declarationsOutput, declaration); | ||
|
|
||
| fs.mkdirSync(path.dirname(target), { recursive: true }); | ||
| fs.copyFileSync(path.join(source, declaration), target); | ||
|
|
||
| console.info(`Copied src/${declaration} -> ${path.relative(root, target)}`); | ||
|
|
||
| for (const compiledOutput of compiledOutputs) { | ||
| const compiled = path.join(compiledOutput, declaration.replace(/\.ts$/, '.js')); | ||
|
|
||
| for (const artifact of [ compiled, `${compiled}.map` ]) { | ||
| if (fs.existsSync(artifact)) { | ||
| fs.rmSync(artifact); | ||
|
|
||
| console.info(`Removed ${path.relative(root, artifact)}`); | ||
| } | ||
| } | ||
| } | ||
| } |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.