Hello Huawei Support Team,
I'm encountering a Gradle task dependency issue when integrating the @hmscore/react-native-hms-safetydetect module into my React Native project. During the build process, the following warning/error is shown:
Reason: Task ':react-native-hms-safetydetect:copyDebugJniLibsProjectOnly' uses this output of task ':hmscore_react-native-hms-safetydetect:mergeDebugNativeLibs' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed.
This causes the build to fail or behave unpredictably depending on task execution order.
What I've Tried:
Updated all Huawei-related dependencies to the latest versions.
Upgraded to the latest Gradle and Android Gradle Plugin versions.
Tried to manually define task dependency using whenTaskAdded in build.gradle, but this is just a temporary workaround and not a proper solution.
Environment:
React Native Version: 0.74.3
@hmscore/react-native-hms-safetydetect Version: 6.7.0-300
HMS Core is installed and up-to-date
Request:
Please review the Gradle configuration in the plugin and define the proper dependency between these tasks to ensure stable builds with newer Gradle versions. If a temporary workaround or patch is available, I’d appreciate your guidance.
Thank you in advance.
Best regards