Skip to content

[HOLD] Maintainer request: Migrate Android Gradle build scripts from Groovy to Kotlin DSL #106700

Open

Description

@MelvinBot

Maintainer request

Requested by kacper-mikolajczak in the maintainer request.

Hold

Held on Bump React Native 0.88. Do not start this migration until that PR merges.

Task

Migrate App-owned Android Gradle build scripts from Groovy to Kotlin DSL, following the review suggestion.

Inventory the root, settings, app, and locally maintained module scripts and convert the applicable scripts to Kotlin DSL while preserving existing build behavior. Keep this a build-script migration rather than a dependency/toolchain upgrade or a rewrite of third-party scripts. Coordinate any HybridApp integration changes with its maintainers.

Acceptance criteria

  • Identify the App-owned scripts in scope and migrate them to Kotlin DSL; document any exclusions.
  • Preserve plugin configuration, repositories, autolinking, native module setup, dependency resolution, NDK configuration, build variants, signing, packaging, and custom build tasks.
  • Preserve RN 0.88 compatibility workarounds introduced by the holding PR, including dependency substitution and consistent NDK selection.
  • Do not conflate Kotlin DSL script syntax with AGP's new Android DSL or built-in Kotlin. Keep compatibility flags unchanged unless separately justified and verified.
  • Update script references in tooling, CI, and documentation so no references to renamed scripts remain broken.
  • Verify clean Gradle configuration/sync and the relevant debug and release build tasks; compare available variants and generated artifacts with the pre-migration build.
  • Verify standalone Android and Android HybridApp builds and launch smoke tests, coordinating any required changes outside App with the owning maintainers.
  • Avoid unrelated Gradle, AGP, Kotlin, React Native, or dependency upgrades.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions