Get started with the Android SDK
The Appviewer Android SDK enables you to publish UI snapshots on Appviewer.io. Great to review UI changes without manual tests on physical devices. Rapid feedback loops for a smoother development flow and less visual bugs.
Also check out how you can log data in your test builds to use as real-world scenarios for your UI snapshots.
Follow the steps in this guide to set up your app for Appviewer.
Set up dependency
- Groovy
- Kotlin
In your app module's build.gradle
file
dependencies {
// ... your other dependencies
// Add the following if you are using the Appviewer SDK to capture data/logs for the Live Event Monitor
implementation "io.appviewer:appviewer-android:0.3.5"
// Add the following to capture snapshots from your UI tests and publish them to Appviewer.io
androidTestImplementation "io.appviewer:appviewer-android:0.3.5"
}
In your app module's build.gradle.kts
file
dependencies {
// ... your other dependencies
// Add the following if you are using the Appviewer SDK to capture logs for the in-browser Live Monitor
implementation("io.appviewer:appviewer-android:0.3.5")
// Add the following to record and send snapshots from your UI tests to your Appviewer UI gallery
androidTestImplementation("io.appviewer:appviewer-android:0.3.5")
}
The package is hosted in a private maven repository that you need to incl. in your project-level build.gradle
(or your settings.gradle
's dependencyResolutionManagement{}
).
The required credentials can be found when signed in to Appviewer.io (click the 🔑 icon in the top nav bar).
- Groovy
- Kotlin
In your project-level build.gradle
file
repositories {
// ... your other repositories, e.g. mavenCentral(), google(),...
maven {
url "https://maven.pkg.jetbrains.space/buildfox/p/appviewer/appviewer-maven"
credentials {
username = "abcdefgh-1234567"
password = "1234567-abcdefgh"
}
}
}
In your project-level build.gradle.kts
file
repositories {
// ... your other repositories, e.g. mavenCentral(), google(),...
maven {
url = uri("https://maven.pkg.jetbrains.space/buildfox/p/appviewer/appviewer-maven")
credentials {
username = "abcdefgh-1234567"
password = "1234567-abcdefgh"
}
}
}