This Plugin offers an interface between Release and Essential Application Protection.
./gradlew clean build
Run the following command to run a local docker container with the plugin installed.
./gradlew runDockerCompose
Per the configuration at src/test/resources/docker/docker-compose.yml,
the ports are defined so you can browse the local instance at:
http://localhost:35516
Add a sever configuration in the Release Shared Configuration page for each server or login you wish to manage.
Each entry has the following configuration items in its definition:
- Title - the name by which you will be referring to this definition in your Release Tasks.
- Base URL - base URL of the Arxan Developer Portal API (https://api.developer.arxan.com).
- Portal Key (obtained from Developer Portal).
- Portal Secret (obtained from Developer Portal).
- License Token (obtained from Developer Portal).
- AppAware Application Token (found on Developer Portal).
- AppAware Application Endpoint (found on Developer Portal, currently is https://tps.touchstatistics.com).
The Tasks are based on the Essential Application Protection API Docs.
Use this task to obtain an Authentication Token based on your credentials (Portal Key and Portal Secret).
- Server. As configured in Release configuration.
- Authentication Token.
Upload the APK to the Essential Application Protection cloud.
- Server. As configured in Release configuration.
- Auth String. Authentication string
Bearer ${authToken}
. - File. Local path to the APK file to upload.
- Protection ID. If successfully uploaded, Essential Application Protection provides a
${protectionID}
.
Get the status of protection.
- Server. As configured in Release configuration.
- Auth String. Authentication string
Bearer ${authToken}
. - Protection ID. From previous step,
${protectionID}
.
- Protection Status.
done
if done.
Download the protected APK file.
- Server. As configured in Release configuration.
- Auth String. Authentication string
Bearer ${authToken}
. - Protection ID. From previous step,
${protectionID}
. - Protected File Download Path. Local path to the folder to which to download the protected APK file.
- If successful, you should now see the file downloaded to your specified local folder.
Delete the uploaded APK file from the Essential Application Protection cloud.
- Server. As configured in Release configuration.
- Auth String. Authentication string
Bearer ${authToken}
. - Protection ID. From previous step,
${protectionID}
.
- Status.
200
means success.