Swiftpack.co - Sage-Bionetworks/BridgeClientKMM as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by Sage-Bionetworks.
Sage-Bionetworks/BridgeClientKMM v0.5.6
A Kotlin Multiplatform Mobile Bridge client
⭐️ 1
🕓 2 days ago
iOS
.package(url: "https://github.com/Sage-Bionetworks/BridgeClientKMM.git", from: "v0.5.6")

BridgeClientKMM

A Kotlin Multiplatform Mobile Bridge client based on a repository design pattern, built using Kotlin Serialization, Ktor, and Sqldelight.

Class Documentation

Android

Kotlin DSL:

repositories {
    maven(url = "https://sagebionetworks.jfrog.io/artifactory/mobile-sdks/")
}

dependencies {
    //Core library
    implementation("org.sagebionetworks.bridge.kmm:bridge-client:0.3.2")
    //Support for archiving results from AssessmentModelKMM
    implementation("org.sagebionetworks.bridge.kmm:assessmentmodel-sdk:0.3.2")
}

BridgeClientKMM uses Koin for dependency injection and should be initialized as shown below:

class ExampleApplication : MultiDexApplication(), KoinComponent {

    override fun onCreate() {
        super.onCreate()

        initKoin (enableNetworkLogs = BuildConfig.DEBUG){
            androidLogger(Level.ERROR)
            androidContext(this@ExampleApplication)
            workManagerFactory()
            //Add any additional Koin modules here
            //modules(appModule)
        }
    }
}

To support encrypting uploads, place your study_public_key.pem in your app's assets directory.

GitHub

link
Stars: 1
Last commit: 3 days ago
jonrohan Something's broken? Yell at me @ptrpavlik. Praise and feedback (and money) is also welcome.

Release Notes

Release v0.5.6
3 days ago

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics