Skip to content
bmartinezdev edited this page Mar 21, 2024 · 15 revisions

ButterflyMX Android Demo App

To become familiar with the ButterflyMX Android SDK, review our demo app with basic functionality implemented.

  • Clone this repository

  • Download latest released AAR files:

    URL: https://github.com/runslikebutter/android-sdk-repository

    Latest versions are:

    • sdk-core-1.1.17.aar
    • sdk-call-1.2.0.aar

    Place these in the Demo app libs folder:

    Example location: 

    ~/android-demo-app/app/libs

  • In your gradle file in the dependencies block.

    Add the following.

    Pay attention to the version in the file names.

    implementation files('libs/sdk-call-1.2.0.aar')
    implementation files('libs/sdk-core-1.1.17.aar')
  • In your strings.xml file edit values for sandbox_client_id and sandbox_secret_id specific to Sandbox environment:

    // Using your CLIENT_ID & SECRET
    
    <string name="sandbox_client_id">[SANDBOX_CLIENT_ID]</string>
    <string name="sandbox_secret_id">[SANDBOX_CLIENT_SECRET]</string>

    In ButterflyMxConfigBuilder.kt those values are referenced as following:

    clientId = context.getString(R.string.sandbox_client_id)
    secretId = context.getString(R.string.sandbox_secret_id)

Now you can build the Demo app.

Clone this wiki locally