Thanks for your interest in contributing to the Horizon Platform SDK sample apps.
This repository contains standalone Android sample apps demonstrating each Horizon Platform SDK API for third-party developers. Before contributing, please review our Code of Conduct.
Contributions are accepted through GitHub pull requests.
- Fork the repository.
- 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.
Each sample app lives in its own directory and should follow this pattern:
app/build.gradle.kts-- app build config with SDK dependencyapp/src/main/java/.../MainActivity.kt-- entry point with SDK initialization and Compose UIapp/src/main/java/.../*ViewModel.kt-- business logic and UI state managementapp/src/test/-- unit tests
Use users/ as a template for structure, style, and level of detail.
When writing or updating sample apps:
- Keep code minimal and focused on demonstrating a single API
- Follow Kotlin and Jetpack Compose best practices
- Use MVVM architecture with sealed UiState classes
- Include unit tests for ViewModel logic
- Do not hardcode Application IDs — use the placeholder pattern with
IllegalStateException
If you find an issue in a sample app, open an issue on GitHub.
Please include:
- The sample app name
- A clear description of the problem
- Steps to reproduce (if applicable)
All contributors must sign the Meta Contributor License Agreement (CLA) before pull requests can be merged.
This project follows the Contributor Covenant Code of Conduct. Please report unacceptable behavior to opensource-conduct@meta.com.