Skip to content
Yurii Sekretar edited this page Mar 20, 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.16.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.16.aar')
  • In your strings.xml file add these entries:

    // Using your CLIENT_ID & SECRET
    
    <string name="redirect_uri"> com.butterflymx.oauth://oauth</string>
    <string name="butterflymx_client_id">[CLIENT_ID]</string>
    <string name="butterflymx_secret_id">[SECRET]</string>

    In ButterflyMxConfigBuilder.kt those values are referenced as following:

    clientId = context.getString(R.string.butterflymx_client_id)
    secretId = context.getString(R.string.butterflymx_secret_id)

Now you can build the Demo app.

Clone this wiki locally