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>

Last updated