Skip to content
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

Upgrade of React-Native and Dependencies for Gradle 8 and Kotlin 1.8.0 Compatibility #174

Merged
merged 13 commits into from
Jun 12, 2024

Conversation

SanthoshKumarSrikanthaMurali
Copy link
Contributor

@SanthoshKumarSrikanthaMurali SanthoshKumarSrikanthaMurali commented Mar 9, 2024

Problem Statement

We encountered a significant integration issue with the Intercom Android SDK due to discrepancies in the Gradle and Kotlin versions used across different components of our react-native project. Specifically, the Intercom Android SDK had been updated to utilise Gradle 8 and Kotlin 1.9.0. In contrast, our react-native project was still operating on older versions (Gradle 3.4.2 for the library project and Gradle 7 for the Sandbox app). This version mismatch prevented the Sandbox application from compiling, thereby hindering our customers' ability to test and integrate react-native SDK effectively.

Implemented Solution

To address these compatibility issues and ensure a smooth integration process for our customers, a comprehensive upgrade of our react-native environment and its dependencies. The updates are as follows:

  • React-Native Version Upgrade: Updated to React-Native version 0.73.4, ensuring full compatibility with the latest Gradle and Kotlin versions.

  • Gradle Scripts and Dependencies Update: Modified Gradle scripts and updated dependencies to align with Gradle 8 and Kotlin 1.8.0 requirements. These changes included the elimination of redundant and deprecated code, as well as updates to import statements to match the new library versions.

  • Simplification of Build Variants: Removed previously existing build variants, such as the fossDebug variant. Going forward, the project will only support debug and release variants, streamlining the build process.

Steps to run the project

// From `intercom-react-native` directory
yarn install
cd example
yarn install
yarn start

Once the Metro bundler is running, you can launch the application on Android by pressing "a" or on iOS by pressing "i".

Note: If the build fails in your existing project setup, try deleting the node_modules folder from intercom-react-native and example directories and re-run the above steps.

To facilitate a seamless transition to the updated project setup, we need to update the scripts and documentation to include the above commands for setting up and running the project.

@SanthoshKumarSrikanthaMurali SanthoshKumarSrikanthaMurali force-pushed the santhosh/react-native-upgrade branch 2 times, most recently from e82f9c2 to fc66f1f Compare May 17, 2024 15:22
@SanthoshKumarSrikanthaMurali SanthoshKumarSrikanthaMurali merged commit fcbbb16 into main Jun 12, 2024
6 checks passed
@SanthoshKumarSrikanthaMurali SanthoshKumarSrikanthaMurali deleted the santhosh/react-native-upgrade branch June 12, 2024 08:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants