A crossplatfrom SDK for Data-Donation on Android and iOS
This is the Android and iOS DataDonation-SDK of Data4Life.The SDK encapsulates the backend functionality of the Data4Life Analytics Platform (ALP) and enables end-to-end encryption for donating health data. For more information about the platform, visit our website www.d4l.io.
The SDK has the following dependencies:
We use GitHub Packages to distribute the SDK. In order to consume our dependencies you need to generate a GitHub Personal Access Token. Please follow the how to authenticate to GitHub Packages.
- NOTICE
-
You need to have read access to this repository and generate a personal access token with
repo
andread:packages
scope.
The token needs to be made available.
-
Add
gpr.user = {GitHub username}
andgpr.key = {GitHub Personal Access Token}
to your global Gradle properties~/.gradle/gradle.properties
gpr.user=github-username gpr.key=github-token
-
Or add following environment variables
PACKAGE_REGISTRY_USERNAME={GitHub username}
andPACKAGE_REGISTRY_TOKEN={GitHub Personal Access Token}
Add the following maven repository configuration to your root build.gradle:
allprojects {
repositories {
...
maven {
url = uri("https://maven.pkg.github.com/d4l-data4life/hc-util-sdk-kmp")
credentials {
username = project.findProperty("gpr.user") as String? ?: System.getenv("PACKAGE_REGISTRY_USERNAME")
password = project.findProperty("gpr.key") as String? ?: System.getenv("PACKAGE_REGISTRY_TOKEN")
}
}
}
}
There are several requirements for building the SDK.
-
Android 6.0 (API 23) to Android 11 (API 30)
-
Kotlin 1.4.32
-
Java 8 Limitations Desugaring
-
Gradle 6.8.3
-
Android Emulator 23 - 30
For the iOS example app is also required:
-
Xcode 12.5+
See changelog
We use Semantic Versioning as a guideline for our versioning.
Releases use this format: {major}.{minor}.{patch}
-
Breaking changes bump
{major}
and reset{minor}
&{patch}
-
Backward compatible changes bump
{minor}
and reset{patch}
-
Bug fixes bump
{patch}
You want to help or share a proposal? You have a specific problem? Read the following:
-
Code of conduct for details on our code of conduct.
-
Contributing for details about how to report bugs and propose features.
-
Developing for details about our development process and how to build and test the project.
Copyright (c) 2021 D4L data4life gGmbH / All rights reserved.
Please refer to our License for further details.