Skip to content
This repository has been archived by the owner on Jun 23, 2023. It is now read-only.

Commit

Permalink
Merge pull request #8 from RainwayApp/beta
Browse files Browse the repository at this point in the history
feat(0.3.0): Stabilize from `0.3.0-beta.1` to `0.3.0`
  • Loading branch information
bengreenier authored May 31, 2022
2 parents 58f4c36 + 5f1e9a4 commit d1a25d5
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 11 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: CD

on:
push:
branches: [ main ]
branches: [ main, beta ]
workflow_dispatch:


Expand Down Expand Up @@ -55,5 +55,6 @@ jobs:
uses: softprops/[email protected]
with:
tag_name: ${{ env.GH_REL_TAG }}
prerelease: ${{ github.ref != 'refs/heads/main' }}
generate_release_notes: true
files: rel/*.zip
2 changes: 1 addition & 1 deletion .github/workflows/host-example-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Host Example CI

on:
pull_request:
branches: [ main ]
branches: [ main, beta ]
paths:
- "host-example/**/*"
- ".github/workflows/host-example.ci.yml"
Expand Down
14 changes: 7 additions & 7 deletions host-example/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion host-example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,6 @@
"node": ">=17"
},
"dependencies": {
"rainway-sdk-native": "^0.2.8"
"rainway-sdk-native": "^0.3.0"
}
}
3 changes: 2 additions & 1 deletion host-example/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import {
RainwayInputLevel,
RainwayLogLevel,
RainwayPeerState,
RainwayStreamType,
Runtime,
} from "rainway-sdk-native";

Expand All @@ -29,6 +30,7 @@ Runtime.initialize({
// auto accepts all stream request and gives full input privileges to the remote peer
onStreamRequest: (runtime, request) =>
request.accept({
streamType: RainwayStreamType.FullDesktop,
inputLevel:
RainwayInputLevel.Mouse |
RainwayInputLevel.Keyboard |
Expand All @@ -55,7 +57,6 @@ Runtime.initialize({
onPeerError: () => {},
onRuntimeConnectionLost: () => {},
onStreamAnnouncement: () => {},
onStreamStop: () => {},
/* eslint-enable @typescript-eslint/no-empty-function */
}).then(async (runtime) => {
console.log(`Rainway SDK Version: ${runtime.version}`);
Expand Down

0 comments on commit d1a25d5

Please sign in to comment.