Skip to content

React Native SDK incompatible with Gradle 9.0.0 (Expo SDK 55 / RN 0.83) #27

@Hideart

Description

@Hideart

The @sumsub/react-native-mobilesdk-module@1.40.2 android/build.gradle uses deprecated APIs removed in Gradle 9:

  1. lintOptions block (line 51) should be lint
  2. androidJavadoc.destinationDir (line 124) should be destinationDirectory

Expo SDK 55 / React Native 0.83 uses Gradle 9.0.0 which breaks the build

If you want to support older AGP versions you can fix it something like

// For lint
if (android.hasProperty('lint')) {
    lint { abortOnError false }
} else {
    lintOptions { abortOnError false }
}

// For destinationDir/destinationDirectory
from androidJavadoc.hasProperty('destinationDirectory')
    ? androidJavadoc.destinationDirectory
    : androidJavadoc.destinationDir

But this is overkill (IMHO) because the lint supports since 7.0 AGP and destinationDirectory since 6.1 Gradle
React Native 0.70.0 already requires AGP 7.2, so idk how old projects you support but looks like it can be just replaced

If it's possible, can you fix that before the 55 expo sdk will release as stable?
Thank you in advance

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions