Skip to content

Commit 2d2d336

Browse files
committed
Merge branch 'master' into room-ui-redesign
2 parents 5192567 + 20f3a81 commit 2d2d336

32 files changed

+7856
-5840
lines changed

.babelrc

Lines changed: 29 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,32 @@
11
{
22
"presets": [
33
"@babel/react",
4-
["@babel/env", {
5-
"exclude": ["transform-regenerator"],
6-
"targets": {
7-
"browsers": [
8-
"last 2 major versions",
9-
"not <= 0.5%",
10-
"not dead",
11-
12-
// No WebRTC support (including datachannels)
13-
"not ios_saf < 11",
14-
"not safari < 11",
15-
"not ie >= 0",
16-
"not edge >= 0",
17-
"not ie_mob >= 0",
18-
"not and_uc >= 0",
19-
20-
// No WebGL or WebRTC support
21-
"not op_mini all"
22-
]
23-
},
24-
// false = do not polyfill stuff unneccessarily
25-
"useBuiltIns": false
26-
}]
4+
[
5+
"@babel/env",
6+
{
7+
"exclude": [
8+
"transform-regenerator"
9+
],
10+
"targets": {
11+
"browsers": [
12+
"last 2 major versions",
13+
"not <= 0.5%",
14+
"not dead",
15+
// No WebRTC support (including datachannels)
16+
"not ios_saf < 11",
17+
"not safari < 11",
18+
"not ie >= 0",
19+
"not edge >= 0",
20+
"not ie_mob >= 0",
21+
"not and_uc >= 0",
22+
// No WebGL or WebRTC support
23+
"not op_mini all"
24+
]
25+
},
26+
// false = do not polyfill stuff unneccessarily
27+
"useBuiltIns": false
28+
}
29+
]
2730
],
2831
"plugins": [
2932
[ "react-intl", { "messagesDir": "./dist/messages", "enforceDescriptions": false } ],
@@ -32,6 +35,7 @@
3235
"@babel/proposal-object-rest-spread",
3336
// Samsung Internet on the Oculus Go version is stuck at version 5.2, which is a
3437
// Chromium 51, as of this writing. It needs babel to transpile async/await.
35-
"@babel/plugin-transform-async-to-generator"
38+
"@babel/plugin-transform-async-to-generator",
39+
"@babel/plugin-proposal-optional-chaining"
3640
]
37-
}
41+
}

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ If applicable, add screenshots to help explain your problem.
2626
**Hardware** <!-- Please complete the following information -->
2727
- Device: [e.g. Desktop, phone, VR headset]
2828
- OS: [e.g. Windows, iOS, Linux]
29-
- Browser [e.g. Firefox]
29+
- Browser: [e.g. Firefox]
3030

3131
**Additional context**
3232
Add any other context about the problem here.

CONTRIBUTING.md

Lines changed: 30 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,13 @@ The testing process for Hubs is mostly a manual one. You need to test your chang
122122

123123
The Hubs team has a more in-depth testing and release process internally, but we don't have any additional testing process for external contributors at this time.
124124

125-
### 5. High Level Project Organization
125+
126+
### 5. Modifying The 2-D Sprite Graphics
127+
128+
To update the 2-D sprite graphics, you must (manually) install [ImageMagick](https://imagemagick.org/script/download.php) to your command line. See `doc/spritesheet-generation.md` for further details
129+
130+
131+
### 6. High Level Project Organization
126132

127133
```
128134
hubs/
@@ -153,11 +159,11 @@ hubs/
153159
scene.html <- Scene Page html template
154160
scene.js <- Scene Page js entry point
155161
```
156-
### 6. Testing on an HMD
162+
### 7. Testing on an HMD
157163

158164
The simplest way to test on an HMD is to use `npm run dev` from Step 2 above while having 8080 port traffic on your device point to you local dev instance's port 8080. In order to do that, you'll need to do a few things that will vary per device.
159165

160-
### Oculus Quest
166+
#### Oculus Quest
161167

162168
These steps are what's necessary to enable development on your device
163169

@@ -174,25 +180,37 @@ These steps are what's necessary to enable development on your device
174180
`adb devices -l`
175181
Lists all connected devices. The -l flag will list device specific details, one of which should be: `model:Quest`
176182

177-
`adb -s model:Quest reverse tcp:8080 tcp:8080`
178-
`adb reverse tcp:8080 tcp:8080`
183+
`adb -s model:Quest reverse tcp:8080 tcp:8080`
184+
`adb reverse tcp:8080 tcp:8080`
179185
This command routes all port 8080 requests from the Quest device to port 8080 on your local web server. The first one is if you want to do things wirelessly, while the second is a quicker (albeit tethered) solution that is less prone to the error below.
180186

181187
If you encounter the following error:
182188
adb: error: more than one device/emulator
183189

184-
Try killing and restarting adb with the following commands:
185-
`adb kill-server`
186-
`adb start-server`
187-
Then retry the reverse command above again
190+
Try killing adb with the following commands:
191+
`adb kill-server`
192+
Then try the reverse command above again (the server will be restarted).
188193

189-
3. Open a browser on the Quest device and test.
190-
Go to the following url: `https://localhost:8080` in the Oculus broswer or Firefox Reality browser
194+
3. Open a browser on the Quest device and test. Either
195+
`adb shell am start -a android.intent.action.VIEW -d 'https://localhost:8080'`
196+
or launch the Oculus browser or Firefox Reality browser and go to the following url: `https://localhost:8080`
191197

192198
> Note the client runs over https with a self-signed SSL certificate. You'll be presented with a warning the first time you open the page. You can accept the SSL certificate warning and continue onto the site.
193199
194200
4. You should see the Hubs index page, the same one you see in a browser on your development machine.
195201

196-
### Other Devices
202+
You may find the tool [scrcpy](https://github.com/Genymobile/scrcpy) useful to display the screen of your headset on your development computer. It doesn't require the headset user to accept, so it's less hassle than casting to a phone or tablet, in some circumstances.
203+
204+
#### Pico G2 / Neo 2
205+
206+
Follow the directions for the Quest, except
207+
208+
* Setup the Pico device for development. (You may need to press the Confirm and Volume Down buttons on the headset simultaneously to enter the system settings.)
209+
`https://developer.pico-interactive.com/question/neo`
210+
211+
* Open Hubs in the Firefox Reality browser:
212+
`adb shell am start -a android.intent.action.VIEW -d 'https://localhost:8080/hub.html' org.mozilla.vrbrowser/org.mozilla.vrbrowser.VRBrowserActivity`
213+
214+
#### Other Devices
197215

198216
Please feel free to contribute setup instructions for additional devices.

admin/.babelrc

Lines changed: 26 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,34 @@
11
{
22
"presets": [
33
"@babel/react",
4-
["@babel/env", {
5-
"exclude": ["transform-regenerator"],
6-
"targets": {
7-
"browsers": [
8-
"last 2 major versions",
9-
"not <= 0.5%",
10-
"not dead"
11-
]
12-
},
13-
"useBuiltIns": false
14-
}]
4+
[
5+
"@babel/env",
6+
{
7+
"exclude": [
8+
"transform-regenerator"
9+
],
10+
"targets": {
11+
"browsers": [
12+
"last 2 major versions",
13+
"not <= 0.5%",
14+
"not dead"
15+
]
16+
},
17+
"useBuiltIns": false
18+
}
19+
]
1520
],
1621
"plugins": [
17-
[ "react-intl", { "messagesDir": "./public/messages", "enforceDescriptions": false } ],
22+
[
23+
"react-intl",
24+
{
25+
"messagesDir": "./public/messages",
26+
"enforceDescriptions": false
27+
}
28+
],
1829
"transform-react-jsx-img-import",
1930
"@babel/proposal-class-properties",
20-
"@babel/proposal-object-rest-spread"
31+
"@babel/proposal-object-rest-spread",
32+
"@babel/plugin-proposal-optional-chaining"
2133
]
22-
}
34+
}

0 commit comments

Comments
 (0)