Skip to content

Latest commit

 

History

History
69 lines (46 loc) · 3.13 KB

CONTRIBUTING.md

File metadata and controls

69 lines (46 loc) · 3.13 KB

Contributing to Meta VR OS SDK Samples

Thanks for your interest in contributing to the Meta VR OS SDK samples!

Before contributing, please review our Code of Conduct.

How pull requests work

This repository is a public mirror of an internal Meta source-of-truth repository.

Because of that, pull requests cannot be merged directly. Instead:

  1. Fork the repository and create a feature branch from main.
  2. Make your changes in a focused commit series.
  3. Open a pull request with a clear description of what changed and why.
  4. A maintainer will import your PR into the internal review system, where it is reviewed and (if approved) landed.
  5. 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.

Sample structure

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.md describing 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.txt resolving metavr-os-nsdk via Prefab
    • JVM: build.gradle.kts declaring the metavr-os-jsdk dependency

Writing guidelines

  • 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_guard for native).
  • Do not hardcode internal-only identifiers, build tags, or paths.

Reporting issues

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).

Contributor License Agreement

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.

License

By contributing, you agree that your contributions will be licensed under the LICENSE file in the root of this repository.