Skip to content

fix: migrated from kotlin-android-extensions to kotlin-parcelize in a… #358

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

AbdullahFaheem5588
Copy link

fix(android): removed kotlin-android-extensions plugin from build.gradle for compatibility with latest AGP and Kotlin

Summary

This pull request removes the deprecated kotlin-android-extensions plugin from android/build.gradle.

Motivation:

  • The plugin has been deprecated and removed in recent versions of Kotlin and AGP.
  • Its presence causes build failures in modern React Native projects targeting AGP 7.0+ and Kotlin 1.6+.

What the PR does:

  • Removes apply plugin: 'kotlin-android-extensions'
  • Adds apply plugin: 'kotlin-parcelize' to support @Parcelize if used
  • Improves compatibility with modern Android build environments

Impact:

  • Affects only Android build configuration
  • No impact on JavaScript code or runtime behavior

Test Plan

What's required for testing (prerequisites)?

  • React Native project using Kotlin >= 1.6.20 and AGP >= 7.0.0
  • Forked and linked this updated package locally

What are the steps to reproduce (after prerequisites)?

  1. Link this forked version of the package
  2. Run npx react-native run-android
  3. Verify that the app builds successfully
  4. Confirm that upload functionality works as expected

Compatibility

OS Implemented
iOS
Android

Checklist

  • I have tested this on a device and a simulator
  • I added the documentation in README.md
  • I updated the typed files (TS and Flow)
  • I've added Detox End-to-End Test(s)
  • I've created a snack to demonstrate the changes: N/A

…ndroid build.gradle for compatibility with latest AGP and Kotlin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant