square / react-native-square-reader-sdk

React Native Plugin for Square Reader SDK
Apache License 2.0
117 stars 36 forks source link

DSL element 'dexOptions' is obsolete and should be removed. #234

Open ivan-moego opened 1 week ago

ivan-moego commented 1 week ago

I am currently using v1.4.3, build.gradle is configured like this:

dexOptions {
    // Ensures incremental builds remain fast
    preDexLibraries true
    // Required to build with Reader SDK
    jumboMode true
    // Required to build with Reader SDK
    keepRuntimeAnnotatedClasses false
}

When I upgraded to react native v0.76.2, gradle has also been upgraded to 8.10.0, So I saw this warning:

DSL element 'dexOptions' is obsolete and should be removed.
It will be removed in version 8.0 of the Android Gradle plugin.
Using it has no effect, and the AndroidGradle plugin optimizes dexing automatically.
Affected Modules: app, react-native-square-reader-sdk.

so can it be adapted?