DEUNA provides a demo application to help you understand and verify how DEUNA SDKs work.
Check out the functional examples in the Demo.
The demo application offers implementation examples for all DEUNA SDKs.
1. Clone the repository
All demo application files are available in a GitHub repository.
- Open your terminal.
- Clone the repository.
- Change to the cloned directory.
git clone https://github.com/deuna-developers/deuna-sdk-android.git
cd deuna-sdk-android
2. Set up your local environment
Configure your environment to open the demo:
- Open the cloned project in Android Studio.
- Go to the root file settings.gradle.kts.
- Uncomment the following lines at the end of the file and sync your project.
include( "embedded-widgets") include( "widgets-in-modal") include( "checkout-web-wrapper") project(":embedded-widgets").projectDir = file("examples/embedded-widgets") project(":widgets-in-modal").projectDir = file("examples/widgets-in-modal") project(":checkout-web-wrapper").projectDir = file("examples/checkout-web-wrapper")
- Go to the file examples//src/main/java/com/deuna/sdkexample/MainActivity.kt.
- Configure and define your public key and environment.
val deunaSDK = DeunaSDK(
environment = Environment.SANDBOX,
publicApiKey = "YOUR_PUBLIC_API_KEY"
)