Universal SDK
English
English
  • README
  • Unity SDK
    • Get Started
      • Android Setup(deprecated)
      • Android Setup
        • Jitpack to Migration
      • iOS Setup
    • Integrations
    • Trouble Shooting
      • Google Login issue
      • UniversalSDK.framework Load failure when running app
      • Android Proguard ClassNotFoundException
  • console guide
    • Google Login
      • Android
      • iOS
    • Apple Login
      • iOS
      • Android
        • Redirect Server
    • Facebook Login
  • Server Side
    • Verify Google ID token
    • Verify Apple identity token
    • Verify Facebook access token
Powered by GitBook
On this page
  • Step 1. Add it in your settingsTemplate.gradle in project:
  • Step 2. Add the dependency
  1. Unity SDK
  2. Get Started
  3. Android Setup

Jitpack to Migration

Changing repository to jitpack due to shotdown of the sonatype nexus repo (legacy).

  • Unity editor version: 2022.3.23f1

  • Target API Level: Android 13.0 (API Level 33)

  • Platform you are using the Android Studio on: Mac

Step 1. Add it in your settingsTemplate.gradle in project:

dependencyResolutionManagement {
    repositoriesMode.set(RepositoriesMode.PREFER_SETTINGS)
    repositories {
        **ARTIFACTORYREPOSITORY**
        google()
        mavenCentral()
        maven { url 'https://jitpack.io' }    //added
        flatDir {
            dirs "${project(':unityLibrary').projectDir}/libs"
        }
    }
}

Step 2. Add the dependency

gradle:

dependencies {
    implementation 'com.github.coolishbee:universal-sdk-android:3.0.9'
}

dependencies.xml

<dependencies>    
    <androidPackages>
        <androidPackage spec="com.github.coolishbee:universal-sdk-android:3.0.9"/>
    </androidPackages>
</dependencies>

PreviousAndroid SetupNextiOS Setup

Last updated 1 year ago