What is RudderStack?
RudderStack is a customer data pipeline tool for collecting, routing and processing data from your websites, apps, cloud tools, and data warehouse.
More information on RudderStack can be found here.
Integrating Visual Studio App Center for RudderStack's Android SDK
-
Add Appcenter as a destination in the RudderStack dashboard and define the app secret key.
-
Add the following
dependencies
to yourapp/build.gradle
file as shown:
implementation 'com.rudderstack.android.sdk:core:1.+'
implementation 'com.rudderstack.android.integration:appcenter:1.0.1'
implementation 'com.google.code.gson:gson:2.8.6'
// Appcenter dependency
implementation "com.microsoft.appcenter:appcenter-analytics:4.1.0"
- Also add the below
repositories
tag in yourapp/build.gradle
as shown:
repositories {
maven {
url "https://dl.bintray.com/rudderstack/rudderstack"
}
}
- Make sure that the
minSdkVersion
in yourapp/build.gradle
is at least21
:
defaultConfig {
minSdkVersion 21
}
- Finally change the initialization of your
RudderClient
in yourApplication
class:
val rudderClient = RudderClient.getInstance(
this,
<YOUR_WRITE_KEY>,
RudderConfig.Builder()
.withDataPlaneUrl(<YOUR_DATA_PLANE_URL>)
.withFactory(AppcenterIntegrationFactory.FACTORY)
.build()
)
Send Events
Follow the steps from the RudderStack Android SDK.
Contact Us
If you come across any issues while configuring or using this integration, please feel free to start a conversation on our Slack channel. We will be happy to help you.