commit | 9a0fe3bea68f0bc457fd02b24b926960c3a689e6 | [log] [tgz] |
---|---|---|
author | LuK1337 <priv.luk@gmail.com> | Tue Jun 13 14:24:16 2023 +0200 |
committer | LuK1337 <priv.luk@gmail.com> | Tue Jun 13 14:24:16 2023 +0200 |
tree | e0fb7d79d2783af7a3561f18d101cde6f36223e4 | |
parent | 95e2d729c9367d3a827e5b3e66358d983b7af2c7 [diff] |
sdk: Add static isChargingControlSupported(ctx) method This will let us use it without bothering to handle RuntimeException from HealthInterface contructor. Change-Id: I768c250d1e527b6fd8e49a40452b98404062cc18
The Platform SDK provides a set of APIs that give you easy access to a variety of different features within LineageOS. The SDK exposes APIs and system level framework access in the Android framework that aren't available in any other distribution.
You can either download from prebuilts hosted on github or pull directly via Gradle.
Our stable releases are mirrored in Maven Central, and you can fetch the current release by setting your build.gradle
dependencies to
dependencies { compile 'org.lineageos:platform.sdk:5.+' }
Within build.gradle
make sure your repositories
list sonatype OSS repos for snapshots
repositories { maven { url "https://oss.sonatype.org/content/repositories/snapshots/" } }
You can target the future
or development
branch by setting your dependencies
for 6.0-SNAPSHOT
dependencies { compile 'org.lineageos:platform.sdk:6.0-SNAPSHOT' }
For further inquiries regarding this project, please reference the wiki.