-
Notifications
You must be signed in to change notification settings - Fork 1
Home
bmartinezdev edited this page Mar 21, 2024
·
15 revisions
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 forsandbox_client_id
andsandbox_secret_id
specific toSandbox
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.