Swiftpack.co - BridgeDigitalHealth/BridgeClientKMM as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by BridgeDigitalHealth.
BridgeDigitalHealth/BridgeClientKMM v0.20.2
A Kotlin Multiplatform Mobile Bridge client
⭐️ 0
🕓 22 weeks ago
iOS macOS
.package(url: "https://github.com/BridgeDigitalHealth/BridgeClientKMM.git", from: "v0.20.2")

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.

License

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

GitHub

link
Stars: 0
Last commit: 1 week ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

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