This repository has been archived by the owner on Jul 22, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 217
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
26 changed files
with
7 additions
and
20,417 deletions.
There are no files selected for viewing
This file contains 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 |
---|---|---|
|
@@ -42,7 +42,6 @@ git clone [email protected]:MozillaReality/FirefoxReality-android-third-party.git t | |
This repo is only available to Mozilla employees. If you have access to the relevant SDK but not this repo, you can manually place them here: | ||
|
||
- `third_party/ovr_mobile/` for Oculus (should contain a `VrApi` folder) | ||
- `third_party/svr/` for Snapdragon (should contain a `libs` folder, among other things) | ||
- `third_party/wavesdk/` for Vive (should contain a `build` folder, among other things) | ||
|
||
The [repo in `third_party`](https://github.com/MozillaReality/FirefoxReality-android-third-party) can be updated like so: | ||
|
@@ -62,32 +61,18 @@ git submodule update --init --recursive | |
You can build for different devices: | ||
|
||
- **`oculusvr`**: Samsung Gear VR & Oculus Go | ||
- **`svr`**: Qualcomm & ODG glasses | ||
- **`wavevr`**: VIVE Focus | ||
- **`googlevr`**: Google Daydream | ||
|
||
For testing on a non-VR device: | ||
|
||
- **`noapi`**: Runs on standard Android phones without a headset | ||
|
||
Building for Oculus Mobile, SVR, and WaveVR requires access to their respective SDKs which are not included in this repo. | ||
|
||
*If you want to build FirefoxReality for Google Daydream (`googlevr`), you need to run:* | ||
|
||
```bash | ||
cd gvr-android-sdk && ./gradlew :extractNdk | ||
``` | ||
Building for Oculus Mobile, and WaveVR requires access to their respective SDKs which are not included in this repo. | ||
|
||
The command line version of `gradlew` requires [JDK 8 from Oracle](http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html). If you see an error that Gradle doesn't understand your Java version, check which version of you're using by running `java -showversion` or `java -version`. You're probably using JDK 9 or 10, which won't work. | ||
|
||
If you get an error extracting the NDK, you might need to copy the `local.properties file` from the top-level project directory into the `gvr-android-sdk` directory. If this file doesn't exist at the top-level directory either, open the top-level directory in Android Studio, and it should be created. | ||
|
||
*Open the project with [Android Studio](https://developer.android.com/studio/index.html)* then build and run it. Depending on what you already have installed in Android Studio, the build may fail and then may prompt you to install dependencies. Just keep doing as it suggests. To select the device to build for, go to `Tool Windows > Build Variants` and select a build variant corresponding to your device. | ||
|
||
If you run the APK on an Android device outside of Daydream or Gear VR, it will run in flat mode. To run in VR, put the device into a headset, and run the app from the VR launcher. | ||
|
||
Unfortunately, for mobile-clip-in VR viewers, the APK isn't yet published in the Google Play Store because of [known performance issues and bugs](https://github.com/MozillaReality/FirefoxReality/issues/598). The APK currently available is for only standalone Daydream headsets. | ||
|
||
*If you want to build FirefoxReality for WaveVR SDK:* | ||
|
||
Download the [VIVE Wave SDK](https://developer.vive.com/resources/knowledgebase/wave-sdk/) from the [VIVE Developer Resources](https://vivedeveloper.com/), and unzip it. Then, from the top-level project directory, run: | ||
|
This file contains 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 |
---|---|---|
@@ -1,6 +1,4 @@ | ||
/build | ||
/googlevr* | ||
/googlevrFlat* | ||
/oculusvr* | ||
/noapi* | ||
/svr* | ||
|
This file contains 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 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 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 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 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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.