This package allows integration with Applause Inc. services.

## Applause Tool

Applause Tool is a command line package aimed at making it easy to connect various continuous integration platforms with Applause Inc. services.

### Prerequisities

#### PIP

Python 2.7.11 and later (on the python2 series), and Python 3.4 and later include pip by default, so you may have pip already. If not please consult this page for a ready to use recipe to install it on your local machine: https://pip.pypa.io/en/latest/installing.html#install-pip

### Installation

To install applause-tool, run:

$pip install applause-tool To verify your installation please run the following command in your terminal: $ applause-tool --version

### Updating

To update applause-tool, run:

### Account

At any point in time you can check who is the actively logged in user by running:

$applause-tool account ### Applause SDK In order to upload & distribute your build please run the following command in your terminal: $ applause-tool sdk distribute COMPANY_ID APP_ID /path/to/build [-e john.smith@test.com -c "New Release"]
• COMPANY_ID - ID of the company you created in the Applause SDK service.

• APP_ID - ID of the application to which you wish to upload your builds to.

• PATH - A full path to the build you wish to upload

• (Optional) -e - emails to which you wish to distribute your build to. Please make sure to repeat this option for each email you wish to add.

• (Optional) -c - changelog to attach to the build file in Applause SDK. This operation will add more information on the build OTA (over-the-air) installation page connected to the distribution email.

Example 1

Simple distribution with email list & changelog comming directly from the command line:

$applause-tool sdk distribute 3 133 test_files/Test.ipa -e release@applause.com -c "Fresh new release, straight from the oven" Example 2 Applause Tool allows you to provide both email & changelog information directly from locally created files. In order to instruct Applause Tool to do so please add ‘@’ sign at the start of the parameter value. For example: $ applause-tool sdk distribute 3 133 test_files/Test.ipa -e @/Users/john/files/AppDistributionList.txt -c "Fresh new release, straight from the oven"

Where the content of AppDistributionList.txt is as follows:

release@applause.com
management@applause.com
cannary@applause.com

Please note that emails are separated out with new line characters.

Note You can obtain both COMPANY_ID and APP_ID values from you product specific URL address. The URL scheme is:

https://sdk.applause.com/companies/COMPANY_ID/application/APP_ID/dashboard/
$applause-tool sdk distribute COMPANY_ID APP_ID /path/to/build [-e john.smith@test.com -c @/home/user/builds/1.0/release-notes.txt] ### Applause BETA Uploading build to Applause Mobile BETA Management is supported. Optionally changelog can be attached. Example Uploading build: applause-tool beta upload 22 ~/my_apps/ExampleApp.ipa [-c @/home/user/builds/1.0/release-notes.txt] Distribution via Applause Mobile BETA Management is supported. Example Distributing build using just app_id : applause-tool beta distribute 2344 ~/my_apps/ExampleApp.ipa -g my_release_group ### Applause AIS Injects Applause SDK and a specific configuration to a iOS/Android mobile build. Only MBM service integration is supported for now. Example applause-tool ais instrument ~/my_apps/ExampleApp.ipa --customer-key ABC -k XYZ -o ~/output/path/ExampleAppInstrumented.ipa Distribution via Applause Mobile BETA Management is supported. • ~/my_apps/ExampleApp.ipa - A full path to the build you wish to process • customer-key - Access key for AIS service. Please reach out to applause customer support to get one. • -k - APP KEY assigned to your SDK/MBM product (please see the settings section of your product for more info) • -o - (Optional) name of the output file. Default: instrumented-{timestamp}.{fmt}. ## Jenkins Integration To integrate Applause Tool with Jenkins: • Make sure that you have Python2.6+ and applause-tool installed on your job worker nodes • We strongly recommend putting username and password for applause-tool logging in environment variables in worker node configuration • Add an Execute shell build step in which you can invoke applause-tool as an ordinary shell command, like below: applause-tool login -u${APPLAUSE_USER} -p \${APPLAUSE_PASSWORD} -s
applause-tool sdk distribute ...

## Known issues

InsecurePlatformWarning: A true SSLContext object is not available.

This has been widely discussed here: http://stackoverflow.com/questions/29099404/ssl-insecureplatform-error-when-using-requests-package We strongly recommend upgrading your Python version to 2.7.9 or higher.

## Project details

Uploaded source