I have an Android App using the AWS AppSync SDK with the following gradle configuration to connect to a cloud backend.
implementation 'com.amazonaws:aws-android-sdk-appsync:2.7.+'
Access to the backend resources is controlled via Cognito User Pools. User authentication and fetching data from the backend works fine without proguard enabled. If I enable Proguard I get all sorts of warnings related to the AWS SDK. The only way I managed to generate a signed APK with proguard enabled was by suppressing all AWS related warnings in the proguard-rules.pro like so:
-dontwarn com.amazonaws.**
When I do this, the generated APK does not authenticate the user and data cannot be retrieved from the backend. When I try to debug the APK, I get the following error in Android Studio:
Could not connect to remote process. Aborting debug session.
Is there a more fine-grained proguard setting that gets rid of all the warnings but does not mess up the connection to the backend?