Upload the protected dexguard apk while using the Gradle Plugin

now we are using dexguard and want to upload to AppSweep

when using gradle uploadToAppSweepRelease. the command only uploads unprotection apk.
and when I check in tasks --group=AppSweep

only exist

  • uploadToAppSweepDebug
  • uploadToAppSweepDebugBundle
  • uploadToAppSweepRelease
  • uploadToAppSweepReleaseBundle

is there a command to upload an APK that is protected by dexguard?

Hi @azky.muhtarom,

I see that our team is currently working with you on it. We should have a resolution soon and will follow up as soon as we can.

Thank you for your patience!

Hi @azky.muhtarom,

In general, it depends on your setup which of those tasks uploads the protected app. Typically, the release build is the protected one, so the tasks you want to use is uploadToAppSweepRelease.

There was a bug in the AppSweep Gradle Plugin 1.5.0 though, which prevented the correct upload. This is fixed in version 1.5.1. If you include our plugin with version "latest.release", the fixed version will be picked up the next time you build your project.

One important note:

To make the AppSweep Gradle Plugin pick up the protected build, it needs to run after the DexGuard plugin. This can simply be done by applying the plugin after the Dexguard one:

apply plugin: 'com.android.application'
apply plugin: 'dexguard'
apply plugin: 'com.guardsquare.appsweep'

Hope this helps, if you have any further questions, please reach out to us here, of via the chat on AppSweep!

All the best,