The GiPStech Way-Fi Library is built using Kotlin Multiplatform and is available in three distribution formats:
- Maven Repository for Kotlin Mobile Multiplatform (KMM) projects.
- Maven Repository for Android projects written in Kotlin or Java.
- Xcode Framework for native iOS projects written in Swift or Objective-C.
Kotlin Mobile Multiplatform
Section titled “Kotlin Mobile Multiplatform”To include the library in your Kotlin Mobile Multiplatform project, follow these steps:
1. Add the GiPStech Maven repository
Section titled “1. Add the GiPStech Maven repository”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
Section titled “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:wayfi:1.6.0") // <-- ADD THIS LINE } }}3. Sync the project
Section titled “3. Sync the project”Once the dependency is added, synchronize Gradle:
-
In Android Studio: File -> Sync Project with Gradle Files
-
From the Command Line run:
./gradlew build
Android
Section titled “Android”Including the library 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:wayfi-android:1.6.0") // <-- ADD THIS LINE}To include the library in your iOS application, download and integrate the Xcode framework available at repo.gipstech.com/frameworks (opens in a new tab) into your Xcode project.
For detailed guidance on incorporating third-party frameworks, please refer to the official Apple documentation (opens in a new tab)