Salta ai contenuti
Seleziona lingua:Italiano
Questa pagina è disponibile solo in inglese.

Obtaining the AIDK

Aggiornato il 1 min di lettura

The GiPStech AIDK is built using Kotlin Multiplatform and is available in three distribution formats:

  1. Maven Repository for Kotlin Mobile Multiplatform (KMM) projects.
  2. Maven Repository for Android projects written in Kotlin or Java.
  3. Xcode Framework for native iOS projects written in Swift or Objective-C.

To include the AIDK in your Kotlin Mobile Multiplatform project, follow these steps:

Modify your settings.gradle.kts (or settings.gradle if using Groovy) to include the custom Maven repository:

dependencyResolutionManagement {
repositories {
google()
mavenCentral()
maven("https://repo.gipstech.com/maven") // <-- ADD THIS LINE
}
}

2. Add the dependency in the Kotlin Multiplatform module

Sezione intitolata “2. Add the dependency in the Kotlin Multiplatform module”

Modify your build.gradle.kts file to include the dependency for the required platforms.

kotlin {
sourceSets {
commonMain.dependencies {
implementation("com.gipstech:aidk:1.1.5") // <-- ADD THIS LINE
}
}
}

Once the dependency is added, synchronize Gradle:

  • In Android Studio: File -> Sync Project with Gradle Files

  • From the Command Line run:

    ./gradlew build

Including the AIDK in an Android project is very similar to the process described in the previous paragraph. The only difference is in section 2, where you need to modify the build.gradle.kts file to explicitly add the dependency for the Android platform, as shown below:

dependencies {
implementation("com.gipstech:aidk-android:1.1.5") // <-- ADD THIS LINE
}

To include the GiPStech AIDK in your iOS application, download and integrate the Xcode framework available at repo.gipstech.com/frameworks (si apre in una nuova scheda) into your Xcode project.

For detailed guidance on incorporating third-party frameworks, please refer to the official Apple documentation (si apre in una nuova scheda)

The AIDK uses ONNX Runtime Mobile as its inference engine. Therefore, ONNX Runtime Mobile must also be included in the iOS application through CocoaPods.

Add the following dependency to your Podfile:

pod 'onnxruntime-mobile-c', '1.29.0'

Then install or update the CocoaPods dependencies:

Finestra del terminale
pod install

After installing the dependency, open the generated .xcworkspace file instead of the .xcodeproj file.