Skip to content

BridgeDigitalHealth/BridgeClientKMM

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

A Kotlin Multiplatform Mobile Bridge client

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Objective-C 63.1%
  • Kotlin 23.2%
  • Swift 13.7%