How android/platform-samples works
Project type and purpose
• This is an Android “platform samples” repository: a multi-module mobile application that showcases isolated Android OS API samples.
• The app module is the main container that pulls together dozens of feature/sample modules under samples/*. Each sample module demonstrates one API or capability. There is also a shared library module for common theming and utilities.
File structure
• Top-level:
• build scripts (build.gradle.kts, settings.gradle.kts, gradle/, Gradle wrapper)
• .github/workflows (CI pipelines)
• app/ – the Android application module
• samples/ – dozens of feature modules (accessibility, camera, connectivity, …)
• shared/ – shared Kotlin library for themes and utilities
• tools/ – repo setup scripts
• The app module depends on shared and each samples/* module.
• CI: GitHub Actions build workflow, spotless formatting, renovate dependency updates.
README for additional insights
• Confirms this is a collection of sample modules, intended for demonstration only, not production.
• Instructs to open the project in Android Studio and run the app configuration.
Essential elements in detail
• Three layers: Development → Build → Runtime.
• Drill down into the module boundary: the app module depends on shared and includes each sample.