commit | 40a46bd09e4901bb74c98cf9b6e298050ee1b9ac | [log] [tgz] |
---|---|---|
author | BadDaemon <baddaemon87@gmail.com> | Mon Aug 31 21:34:08 2015 +0200 |
committer | Gerrit Code Review <gerrit@cyanogenmod.org> | Tue Sep 01 14:11:01 2015 -0700 |
tree | 4e835ac0ad424b230401b0ba2354c69250b9e580 | |
parent | 6850732052a3645fb04db858f559c331e7642f61 [diff] |
BugFix: Fix potential NPEs with getService() Should fix "java.lang.NullPointerException: Attempt to invoke interface method 'int cyanogenmod.hardware.ICMHardwareService.getSupportedFeatures()' on a null object reference" and others Change-Id: Ic5a02fc953376aa746844fd6c2f93b5f48246516
The Platform SDK provides a set of APIs that give you easy access to a variety of different features within CyanogenMod. 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.cyanogenmod:platform.sdk:1.0' }
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 2.0-SNAPSHOT
dependencies { compile 'org.cyanogenmod:platform.sdk:2.0-SNAPSHOT' }
For further inquiries regarding this project, please reference the wiki.