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.10.9
A Kotlin Multiplatform Mobile Bridge client
⭐️ 3
🕓 Yesterday
iOS
.package(url: "https://github.com/Sage-Bionetworks/BridgeClientKMM.git", from: "v0.10.9")

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([email protected])
            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.

License

BridgeClientKMM is available under the Commons Clause and BSD 3-clause licenses.

GitHub

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

Release Notes

Release v0.10.9
Yesterday

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