Android with Kotlin and Compose project structure

Android with Kotlin and Compose project structure

Explorer

  • .gradle…, not committed
  • .idea…, not committed
  • .kotlin…, not committed
  • app
  • build…, not committed
  • schemasnew
  • .gitignore
  • build.gradle.kts
  • lint.xmlnew
  • proguard-rules.pro
  • build…, not committed
  • confignew
  • gradle
  • libs.versions.toml
  • wrapper…
  • .editorconfignew
  • .gitignore
  • AGENTS.mdnew
  • CLAUDE.mdnew
  • README.mdnew
  • build.gradle.kts
  • gradle.properties
  • gradlew
  • gradlew.bat
  • lefthook.ymlnew
  • local.defaults.propertiesnew
  • local.properties, not committed
  • settings.gradle.kts
  1. # Android Studio: File, New, New Project, then the Empty Activity template (Kotlin, Kotlin DSL build)

    New Project > Phone and Tablet > Empty Activity
  2. # Build and install the dev debug app on a connected device or emulator

    ./gradlew installDevDebug
  3. # Run unit, Robolectric and screenshot tests plus lint

    ./gradlew testDevDebugUnitTest lintDevDebug
  4. # Run instrumented tests on a connected device

    ./gradlew connectedDevDebugAndroidTest
  5. # Format and static checks

    ./gradlew spotlessApply detekt
  6. # Build a signed release bundle for Google Play

    ./gradlew bundleProdRelease
  7. # Generate the Baseline Profile (Expert)

    ./gradlew :app:generateBaselineProfile