Thanks for your interest in contributing to the Meta VR OS SDK samples!
Before contributing, please review our Code of Conduct.
This repository is a public mirror of an internal Meta source-of-truth repository.
Because of that, pull requests cannot be merged directly. Instead:
- Fork the repository and create a feature branch from
main. - Make your changes in a focused commit series.
- Open a pull request with a clear description of what changed and why.
- A maintainer will import your PR into the internal review system, where it is reviewed and (if approved) landed.
- Once the internal change lands, the sync will publish your commit to GitHub and your pull request will be closed automatically.
You will not see your PR being directly merged on GitHub, but your changes will appear in the repository once the sync runs.
Each sample lives in its own directory under one of the four top-level sample groups:
JavaSoftwareDevelopmentKitSamples/<name>/— Meta VR OS Java Software Development Kit (JSDK) samples, typically in Java and/or Kotlin.NativeSoftwareDevelopmentKitSamples/<name>/— Meta VR OS Native Software Development Kit (NSDK) samples, typically in C and/or C++.UtilityLibrarySamples/<name>/— Meta VR OS Utility Library samples, typically in Java and/or Kotlin.MixedSdkSamples/<name>/— Samples that combine two or more Meta VR OS SDK packages.
A sample directory should contain:
- A
README.mddescribing what APIs/capabilities the sample demonstrates, and how to build and run it - Source code files
- Supplemental assets, such as icon images in the form of Android resources
- Build configuration:
- Native:
CMakeLists.txtresolvingmetavr-os-nsdkvia Prefab - JVM:
build.gradle.ktsdeclaring themetavr-os-jsdkdependency
- Native:
- Keep each sample minimal and focused.
- Include a clear, paragraph-style file-header comment explaining what the sample demonstrates and how it works.
- Use the standard MIT license header (see existing files for the exact wording).
- Prefer modern Android idioms (Kotlin + Coroutines for JVM, modern C++ with
std::unique_ptr/std::lock_guardfor native). - Do not hardcode internal-only identifiers, build tags, or paths.
Open a GitHub issue. Please include:
- The sample directory name.
- A clear description of the problem.
- Steps to reproduce, expected behavior, and actual behavior.
- Device build version (
adb shell getprop ro.build.fingerprint).
To accept your pull request, we need you to submit a Contributor License Agreement. You only need to complete this once for any Meta open source project: https://code.facebook.com/cla.
By contributing, you agree that your contributions will be licensed under the LICENSE file in the root of this repository.