Skip to content

Introduction

Welcome to CloudBridge! Multiple clouds, one Kotlin Multiplatform bridge. Supporting Android, iOS, web and desktop (JVM).

Installation

The library is published to Maven Central.

dependencies {
    implementation("nl.jacobras:cloudbridge:0.7.0")
}

Usage

In general, CloudBridge works as follows:

// 1: Instantiate a service
val service = CloudBridge.dropbox()

// 2: Authenticate (platform- and service-specific, see docs)
service.authenticate("clientId", "example://redirect-uri")

// 3: Ready for use!
service.listFiles("/".asFolderPath())

See Cloud services on how to authenticate each service on every platform.

See shared API for all available operations.

See the demo app source for more example code.

Warning

The library doesn't refresh tokens yet, so once a token expires you'll need to re-authenticate. Follow https://github.com/jacobras/CloudBridge/issues/25 for updates.