Issue: Duplicate uses-permission Elements in AndroidManifest.xml
Description
I’m experiencing an issue with the idensic-mobile-sdk version 1.34.1 while building my React Native project. The SDK’s AndroidManifest.xml contains duplicate uses-permission declarations for android.permission.ACCESS_FINE_LOCATION, which leads to a build failure during the manifest merging process.
React Native Version
react-native: 0.73.1
Error Details
The error occurs during the processDevDebugManifest task. Below is the relevant part of the error log:
Element uses-permission#android.permission.ACCESS_FINE_LOCATION at [com.sumsub.sns:idensic-mobile-sdk:1.34.1] AndroidManifest.xml:38:5-79 duplicated with element declared at [com.sumsub.sns:idensic-mobile-sdk:1.34.1] AndroidManifest.xml:10:5-79
Error:
Element uses-permission#android.permission.ACCESS_FINE_LOCATION at AndroidManifest.xml:93:5-79 duplicated with element declared at AndroidManifest.xml:80:5-82:36
Steps to Reproduce
1. Install "@sumsub/react-native-mobilesdk-module": "1.34.1" in a React Native project.
2. Build the project with ./gradlew assembleDebug.
3. Observe the manifest merging error.
Workaround
I attempted to use tools:node="remove" in my app’s AndroidManifest.xml as a temporary fix, but this shouldn’t be required for properly configured SDKs.