Skip to main content
Logo
Explore APIsContact Us
  • Home
  1. Resources
  2. Virtual Stadium
  3. Installation & Setup

Installation & Setup

This guide covers how to add the Virtual Stadium Data SDK to your project and perform the initial setup.

info

Ready to start integrating? After installation, follow our Getting Started Guide for complete integration steps.

Latest version: current version


#System Requirements

Android

  • Minimum SDK: 21 (Android 5.0)
  • Target SDK: Latest available
  • Kotlin: 1.8.0 or higher

iOS

  • Minimum iOS: 11.0
  • Xcode: 12.0 or higher
  • Swift: 5.0 or higher

#Add SDK to Your Project

Add Repository

Add the Virtual Stadium repository in your root build.gradle.kts or settings.gradle.kts:

kotlin
repositories {
    // ...existing repositories...
    maven(url = "https://artifacts.vs.sportradar.com/virtualstadium/datasdk/maven/libs")
}

Add Dependency

Add the SDK dependency in your app module's build.gradle.kts:

kotlin
dependencies {
    implementation("ag.sportradar.virtualstadium.datasdk:shared-android:<data-sdk-version>")
    // ...other dependencies...
}

Swift Package Manager

  1. In Xcode, go to File → Add Package Dependencies
  2. Add the following package URL:
    text
    https://github.com/sportradar/VirtualStadium-SDK-Core
  3. Select the desired version and add the package
  4. Import VirtualStadiumDataSDK where needed:
    swift
    import VirtualStadiumDataSDK

CocoaPods

Add the following to your Podfile:

ruby
source 'https://github.com/sportradar/VirtualStadium-SDK-Core-Pods.git'

target '<your target>' do
  pod 'VirtualStadiumDataSDK', '<data-sdk-version>'
end

Run pod install, then open the xcworkspace project file.

Import VirtualStadiumDataSDK in files where it's needed:

swift
import VirtualStadiumDataSDK

#Initialize the SDK

Initialize the SDK before using any SDK features. This must be done once at app startup.

Android

Initialize in your Application class using init() and register it in AndroidManifest.xml.

iOS

Initialize in your app entry point (SwiftUI or UIKit) using doInit() with UserDefaults.standard.

kotlin
class VirtualStadiumApp : Application() {

    override fun onCreate() {
        super.onCreate()
        
        // Initialize the SDK
        VirtualStadiumSDK.init(applicationContext)
        
        // ...rest of your app initialization...
    }
}

Register in AndroidManifest.xml:

xml
<application
    android:name=".VirtualStadiumApp"
    ...>
    <!-- Your activities -->
</application>

#Next Steps

After successful installation and initialization, continue with these guides:

SDK Services

Understand available services and their purposes.

View Services

Getting Started

Follow the step-by-step integration guide.

Start Integration

Authentication

Learn about login and user state management.

View Auth Docs
Last updated about 1 month ago
Is this site helpful?
Virtual Stadium, Moderation, Engagement Tools
SDK OverviewGetting Started
On this page
  • System Requirements
  • Add SDK to Your Project
  • Initialize the SDK
  • Next Steps