Skip to content

Commit

Permalink
Merge pull request leinardi#11 from leinardi/0.7-devpreview
Browse files Browse the repository at this point in the history
0.7 devpreview
  • Loading branch information
leinardi authored Apr 7, 2018
2 parents a61a49e + 717f690 commit c283fd0
Show file tree
Hide file tree
Showing 24 changed files with 54 additions and 33 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@ android:
- google-gdk-license-.+

script:
- ./gradlew clean check dependencyUpdate --profile
- ./gradlew clean check --profile
- pandoc `ls -1rt build/reports/profile/profile-*.html | tail -n1` -t plain
- cat build/dependencyUpdates/report.txt
- ./gradlew dependencyUpdates
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,13 @@ dependencies {
<!-- DRIVER_LIST_START -->
Driver | Type | Usage (add to your gradle dependencies) | Note
:---:|:---:| --- | ---
[driver-ds3231](driver-ds3231) | real-time clock (RTC) | `implementation 'com.leinardi.android.things:driver-ds3231:0.1'` | [![Maven metadata URI](https://img.shields.io/maven-metadata/v/http/jcenter.bintray.com/com/leinardi/android/things/driver-ds3231/maven-metadata.xml.svg)](https://jcenter.bintray.com/com/leinardi/android/things/driver-ds3231/maven-metadata.xml) [changelog](driver-ds3231/CHANGELOG.md) [sample](sample-ds3231) [driver-ds3231-receiver](driver-ds3231-receiver)
[driver-epaperdriverhat](driver-epaperdriverhat) | E-Paper Driver HAT | `implementation 'com.leinardi.android.things:driver-epaperdriverhat:0.1'` | [![Maven metadata URI](https://img.shields.io/maven-metadata/v/http/jcenter.bintray.com/com/leinardi/android/things/driver-epaperdriverhat/maven-metadata.xml.svg)](https://jcenter.bintray.com/com/leinardi/android/things/driver-epaperdriverhat/maven-metadata.xml) [changelog](driver-epaperdriverhat/CHANGELOG.md) [sample](sample-epaperdriverhat)
[driver-hcsr04](driver-hcsr04) | ultrasonic ranging module | `implementation 'com.leinardi.android.things:driver-hcsr04:0.1'` | [![Maven metadata URI](https://img.shields.io/maven-metadata/v/http/jcenter.bintray.com/com/leinardi/android/things/driver-hcsr04/maven-metadata.xml.svg)](https://jcenter.bintray.com/com/leinardi/android/things/driver-hcsr04/maven-metadata.xml) [changelog](driver-hcsr04/CHANGELOG.md) [sample](sample-hcsr04)
[driver-hd44780](driver-hd44780) | alphanumeric dot matrix LCD | `implementation 'com.leinardi.android.things:driver-hd44780:0.2'` | [![Maven metadata URI](https://img.shields.io/maven-metadata/v/http/jcenter.bintray.com/com/leinardi/android/things/driver-hd44780/maven-metadata.xml.svg)](https://jcenter.bintray.com/com/leinardi/android/things/driver-hd44780/maven-metadata.xml) [changelog](driver-hd44780/CHANGELOG.md) [sample](sample-hd44780)
[driver-lsm9ds1](driver-lsm9ds1) | 3D accelerometer, 3D gyroscope, 3D magnetometer and temperature sensor | `implementation 'com.leinardi.android.things:driver-lsm9ds1:0.3'` | [![Maven metadata URI](https://img.shields.io/maven-metadata/v/http/jcenter.bintray.com/com/leinardi/android/things/driver-lsm9ds1/maven-metadata.xml.svg)](https://jcenter.bintray.com/com/leinardi/android/things/driver-lsm9ds1/maven-metadata.xml) [changelog](driver-lsm9ds1/CHANGELOG.md) [sample](sample-lsm9ds1)
[driver-sh1106](driver-sh1106) | OLED display | `implementation 'com.leinardi.android.things:driver-sh1106:0.2'` | [![Maven metadata URI](https://img.shields.io/maven-metadata/v/http/jcenter.bintray.com/com/leinardi/android/things/driver-sh1106/maven-metadata.xml.svg)](https://jcenter.bintray.com/com/leinardi/android/things/driver-sh1106/maven-metadata.xml) [changelog](driver-sh1106/CHANGELOG.md) [sample](sample-sh1106)
[driver-tsl256x](driver-tsl256x) | light-to-digital converter | `implementation 'com.leinardi.android.things:driver-tsl256x:0.1'` | [![Maven metadata URI](https://img.shields.io/maven-metadata/v/http/jcenter.bintray.com/com/leinardi/android/things/driver-tsl256x/maven-metadata.xml.svg)](https://jcenter.bintray.com/com/leinardi/android/things/driver-tsl256x/maven-metadata.xml) [changelog](driver-tsl256x/CHANGELOG.md) [sample](sample-tsl256x)
[driver-ds3231](driver-ds3231) | real-time clock (RTC) | `implementation 'com.leinardi.android.things:driver-ds3231:0.2'` | [![Maven metadata URI](https://img.shields.io/maven-metadata/v/http/jcenter.bintray.com/com/leinardi/android/things/driver-ds3231/maven-metadata.xml.svg)](https://jcenter.bintray.com/com/leinardi/android/things/driver-ds3231/maven-metadata.xml) [changelog](driver-ds3231/CHANGELOG.md) [sample](sample-ds3231) [driver-ds3231-receiver](driver-ds3231-receiver)
[driver-epaperdriverhat](driver-epaperdriverhat) | E-Paper Driver HAT | `implementation 'com.leinardi.android.things:driver-epaperdriverhat:0.2'` | [![Maven metadata URI](https://img.shields.io/maven-metadata/v/http/jcenter.bintray.com/com/leinardi/android/things/driver-epaperdriverhat/maven-metadata.xml.svg)](https://jcenter.bintray.com/com/leinardi/android/things/driver-epaperdriverhat/maven-metadata.xml) [changelog](driver-epaperdriverhat/CHANGELOG.md) [sample](sample-epaperdriverhat)
[driver-hcsr04](driver-hcsr04) | ultrasonic ranging module | `implementation 'com.leinardi.android.things:driver-hcsr04:0.2'` | [![Maven metadata URI](https://img.shields.io/maven-metadata/v/http/jcenter.bintray.com/com/leinardi/android/things/driver-hcsr04/maven-metadata.xml.svg)](https://jcenter.bintray.com/com/leinardi/android/things/driver-hcsr04/maven-metadata.xml) [changelog](driver-hcsr04/CHANGELOG.md) [sample](sample-hcsr04)
[driver-hd44780](driver-hd44780) | alphanumeric dot matrix LCD | `implementation 'com.leinardi.android.things:driver-hd44780:0.3'` | [![Maven metadata URI](https://img.shields.io/maven-metadata/v/http/jcenter.bintray.com/com/leinardi/android/things/driver-hd44780/maven-metadata.xml.svg)](https://jcenter.bintray.com/com/leinardi/android/things/driver-hd44780/maven-metadata.xml) [changelog](driver-hd44780/CHANGELOG.md) [sample](sample-hd44780)
[driver-lsm9ds1](driver-lsm9ds1) | 3D accelerometer, 3D gyroscope, 3D magnetometer and temperature sensor | `implementation 'com.leinardi.android.things:driver-lsm9ds1:0.4'` | [![Maven metadata URI](https://img.shields.io/maven-metadata/v/http/jcenter.bintray.com/com/leinardi/android/things/driver-lsm9ds1/maven-metadata.xml.svg)](https://jcenter.bintray.com/com/leinardi/android/things/driver-lsm9ds1/maven-metadata.xml) [changelog](driver-lsm9ds1/CHANGELOG.md) [sample](sample-lsm9ds1)
[driver-sh1106](driver-sh1106) | OLED display | `implementation 'com.leinardi.android.things:driver-sh1106:0.3'` | [![Maven metadata URI](https://img.shields.io/maven-metadata/v/http/jcenter.bintray.com/com/leinardi/android/things/driver-sh1106/maven-metadata.xml.svg)](https://jcenter.bintray.com/com/leinardi/android/things/driver-sh1106/maven-metadata.xml) [changelog](driver-sh1106/CHANGELOG.md) [sample](sample-sh1106)
[driver-tsl256x](driver-tsl256x) | light-to-digital converter | `implementation 'com.leinardi.android.things:driver-tsl256x:0.2'` | [![Maven metadata URI](https://img.shields.io/maven-metadata/v/http/jcenter.bintray.com/com/leinardi/android/things/driver-tsl256x/maven-metadata.xml.svg)](https://jcenter.bintray.com/com/leinardi/android/things/driver-tsl256x/maven-metadata.xml) [changelog](driver-tsl256x/CHANGELOG.md) [sample](sample-tsl256x)
<!-- DRIVER_LIST_END -->

## Change of group ID and package name
Expand Down
3 changes: 2 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ subprojects {
project.configurations.all {
resolutionStrategy.eachDependency { details ->
if (details.requested.group == 'com.android.support'
&& !details.requested.name.contains('multidex')) {
&& !details.requested.name.contains('multidex')
&& !gradle.startParameter.taskNames.contains('dependencyUpdates')) {
details.useVersion versions.support
}
}
Expand Down
3 changes: 3 additions & 0 deletions driver-ds3231-receiver/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Change Log

## [0.2] - 2018-04-07
- update to Android Things devpreview-0.7

## [0.1] - 2018-01-09
- initial version

2 changes: 1 addition & 1 deletion driver-ds3231-receiver/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,5 @@ android {
dependencies {
compileOnly deps.androidthings
implementation deps.support.annotations
implementation 'com.leinardi.android.things:driver-ds3231:0.1'
implementation 'com.leinardi.android.things:driver-ds3231:0.2'
}
3 changes: 1 addition & 2 deletions driver-ds3231-receiver/mavenConfig.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def mvn_config = [:]
mvn_config.repository = 'androidthings'
mvn_config.group_id = 'com.leinardi.android.things'
mvn_config.artifact_id = 'driver-ds3231-receiver'
mvn_config.version = '0.1'
mvn_config.version = '0.2'
mvn_config.licenses = 'Apache-2.0' // Comma separated
mvn_config.website = 'https://github.com/leinardi/androidthings-drivers'
mvn_config.issue_tracker_url = 'https://github.com/leinardi/androidthings-drivers/issues'
Expand All @@ -34,4 +34,3 @@ mvn_config.override = true
ext.mvn_config = mvn_config

apply from: rootProject.file('maven.gradle')
apply from: rootProject.file('bintray.gradle')
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
import android.os.Build;
import android.util.Log;


@SuppressWarnings("WeakerAccess")
public class BoardDefaults {
private static final String TAG = BoardDefaults.class.getSimpleName();
Expand Down
3 changes: 3 additions & 0 deletions driver-ds3231/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Change Log

## [0.2] - 2018-04-07
- update to Android Things devpreview-0.7

## [0.1] - 2018-01-09
- initial version

3 changes: 1 addition & 2 deletions driver-ds3231/mavenConfig.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def mvn_config = [:]
mvn_config.repository = 'androidthings'
mvn_config.group_id = 'com.leinardi.android.things'
mvn_config.artifact_id = 'driver-ds3231'
mvn_config.version = '0.1'
mvn_config.version = '0.2'
mvn_config.licenses = 'Apache-2.0' // Comma separated
mvn_config.website = 'https://github.com/leinardi/androidthings-drivers'
mvn_config.issue_tracker_url = 'https://github.com/leinardi/androidthings-drivers/issues'
Expand All @@ -34,4 +34,3 @@ mvn_config.override = true
ext.mvn_config = mvn_config

apply from: rootProject.file('maven.gradle')
apply from: rootProject.file('bintray.gradle')
3 changes: 3 additions & 0 deletions driver-epaperdriverhat/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Change Log

## [0.2] - 2018-04-07
- update to Android Things devpreview-0.7

## [0.1] - 2018-01-19
- initial version

3 changes: 1 addition & 2 deletions driver-epaperdriverhat/mavenConfig.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def mvn_config = [:]
mvn_config.repository = 'androidthings'
mvn_config.group_id = 'com.leinardi.android.things'
mvn_config.artifact_id = 'driver-epaperdriverhat'
mvn_config.version = '0.1'
mvn_config.version = '0.2'
mvn_config.licenses = 'Apache-2.0' // Comma separated
mvn_config.website = 'https://github.com/leinardi/androidthings-drivers'
mvn_config.issue_tracker_url = 'https://github.com/leinardi/androidthings-drivers/issues'
Expand All @@ -34,4 +34,3 @@ mvn_config.override = true
ext.mvn_config = mvn_config

apply from: rootProject.file('maven.gradle')
apply from: rootProject.file('bintray.gradle')
3 changes: 3 additions & 0 deletions driver-hcsr04/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# Change Log

## [0.2] - 2018-04-07
- update to Android Things devpreview-0.7

## [0.1] - 2018-01-02
- initial version
3 changes: 1 addition & 2 deletions driver-hcsr04/mavenConfig.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def mvn_config = [:]
mvn_config.repository = 'androidthings'
mvn_config.group_id = 'com.leinardi.android.things'
mvn_config.artifact_id = 'driver-hcsr04'
mvn_config.version = '0.1'
mvn_config.version = '0.2'
mvn_config.licenses = 'Apache-2.0' // Comma separated
mvn_config.website = 'https://github.com/leinardi/androidthings-drivers'
mvn_config.issue_tracker_url = 'https://github.com/leinardi/androidthings-drivers/issues'
Expand All @@ -34,4 +34,3 @@ mvn_config.override = true
ext.mvn_config = mvn_config

apply from: rootProject.file('maven.gradle')
apply from: rootProject.file('bintray.gradle')
2 changes: 2 additions & 0 deletions driver-hd44780/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Change Log

## [0.3] - 2018-04-07
- update to Android Things devpreview-0.7

## [0.2] - 2017-12-28
- changed package name and group id
Expand Down
3 changes: 1 addition & 2 deletions driver-hd44780/mavenConfig.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def mvn_config = [:]
mvn_config.repository = 'androidthings'
mvn_config.group_id = 'com.leinardi.android.things'
mvn_config.artifact_id = 'driver-hd44780'
mvn_config.version = '0.2'
mvn_config.version = '0.3'
mvn_config.licenses = 'Apache-2.0' // Comma separated
mvn_config.website = 'https://github.com/leinardi/androidthings-drivers'
mvn_config.issue_tracker_url = 'https://github.com/leinardi/androidthings-drivers/issues'
Expand All @@ -34,4 +34,3 @@ mvn_config.override = true
ext.mvn_config = mvn_config

apply from: rootProject.file('maven.gradle')
apply from: rootProject.file('bintray.gradle')
6 changes: 6 additions & 0 deletions driver-lsm9ds1/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
# Change Log

## [0.5] - 2018-04-07
- update to Android Things devpreview-0.7

## [0.4] - 2018-01-07
- changed getAccelerometerHighResolution() and getMagnetometerTemperatureCompensation()
to isAccelerometerHighResolution() and isMagnetometerTemperatureCompensation().

## [0.3] - 2017-12-31
- more accurate sensor consumption

## [0.2] - 2017-12-28
- changed package name and group id

## [0.1] - 2017-12-24
- initial version
1 change: 0 additions & 1 deletion driver-lsm9ds1/mavenConfig.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,3 @@ mvn_config.override = true
ext.mvn_config = mvn_config

apply from: rootProject.file('maven.gradle')
apply from: rootProject.file('bintray.gradle')
4 changes: 4 additions & 0 deletions driver-sh1106/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
# Change Log

## [0.3] - 2018-04-07
- update to Android Things devpreview-0.7

## [0.2] - 2017-12-28
- changed package name and group id

## [0.1] - 2017-12-04
- initial version

3 changes: 1 addition & 2 deletions driver-sh1106/mavenConfig.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def mvn_config = [:]
mvn_config.repository = 'androidthings'
mvn_config.group_id = 'com.leinardi.android.things'
mvn_config.artifact_id = 'driver-sh1106'
mvn_config.version = '0.2'
mvn_config.version = '0.3'
mvn_config.licenses = 'Apache-2.0' // Comma separated
mvn_config.website = 'https://github.com/leinardi/androidthings-drivers'
mvn_config.issue_tracker_url = 'https://github.com/leinardi/androidthings-drivers/issues'
Expand All @@ -34,4 +34,3 @@ mvn_config.override = true
ext.mvn_config = mvn_config

apply from: rootProject.file('maven.gradle')
apply from: rootProject.file('bintray.gradle')
3 changes: 3 additions & 0 deletions driver-tsl256x/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# Change Log

## [0.2] - 2018-04-07
- update to Android Things devpreview-0.7

## [0.1] - 2018-02-04
- initial version
2 changes: 1 addition & 1 deletion driver-tsl256x/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public class LuxActivity extends Activity implements SensorEventListener {
super.onCreate(savedInstanceState);
try {
mTsl256x = new Tsl256x(BoardDefaults.getI2CPort(), 0x39);
mTsl256x.setGain(Tsl256x.Gain.GAIN_16X);
mTsl256x.setAutoGain(true);
mTsl256x.setIntegrationTime(Tsl256x.IntegrationTime.INTEGRATION_TIME_402MS);
int[] luminosities = mTsl256x.readLuminosity();
Log.d(TAG, "Broadband luminosity = " + luminosities[0]);
Expand Down
3 changes: 1 addition & 2 deletions driver-tsl256x/mavenConfig.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def mvn_config = [:]
mvn_config.repository = 'androidthings'
mvn_config.group_id = 'com.leinardi.android.things'
mvn_config.artifact_id = 'driver-tsl256x'
mvn_config.version = '0.1'
mvn_config.version = '0.2'
mvn_config.licenses = 'Apache-2.0' // Comma separated
mvn_config.website = 'https://github.com/leinardi/androidthings-drivers'
mvn_config.issue_tracker_url = 'https://github.com/leinardi/androidthings-drivers/issues'
Expand All @@ -34,4 +34,3 @@ mvn_config.override = true
ext.mvn_config = mvn_config

apply from: rootProject.file('maven.gradle')
apply from: rootProject.file('bintray.gradle')
2 changes: 2 additions & 0 deletions maven.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -69,3 +69,5 @@ artifacts {
archives javadocJar
archives sourcesJar
}

apply from: rootProject.file('bintray.gradle')
10 changes: 5 additions & 5 deletions versions.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
ext.deps = [:]
def versions = [:]
versions.android_checkstyle_plugin = "1.0.0"
versions.android_gradle_plugin = "3.1.0-beta1"
versions.android_maven_gradle_plugin = "2.0"
versions.android_gradle_plugin = "3.1.0"
versions.android_maven_gradle_plugin = "2.1"
versions.androidthings = "0.7-devpreview"
versions.apache_commons = "2.5"
versions.arch = hasProperty("ARCH_VERSION") ? getProperty("ARCH_VERSION") : "1.0.0"
Expand All @@ -42,13 +42,13 @@ versions.kotlin = "1.2"
versions.mockito = "2.13.3"
versions.mockito_all = "1.10.19"
versions.mockwebserver = "3.8.1"
versions.powermock = "1.7.3"
versions.powermock = "1.7.4"
versions.paging = "1.0.0-alpha3"
versions.play_services = "11.6.2"
versions.retrofit = "2.3.0"
versions.rx_android = "2.0.1"
versions.rxjava2 = "2.1.7"
versions.support = "27.0.2"
versions.support = "27.1.1"
versions.timber = "4.6.0"
ext.versions = versions

Expand Down Expand Up @@ -181,7 +181,7 @@ def addRepos(RepositoryHandler handler) {
handler.google()
handler.jcenter()
handler.mavenCentral()
handler.maven { url 'https://oss.sonatype.org/content/repositories/snapshots' }
// handler.maven { url 'https://oss.sonatype.org/content/repositories/snapshots' }
}

ext.addRepos = this.&addRepos

0 comments on commit c283fd0

Please sign in to comment.