diff --git a/.travis.yml b/.travis.yml index 5cb906d..9e84f4a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 diff --git a/README.md b/README.md index 7be485c..65a4248 100644 --- a/README.md +++ b/README.md @@ -35,13 +35,13 @@ dependencies { 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) ## Change of group ID and package name diff --git a/build.gradle b/build.gradle index 4d8c833..bc2579b 100644 --- a/build.gradle +++ b/build.gradle @@ -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 } } diff --git a/driver-ds3231-receiver/CHANGELOG.md b/driver-ds3231-receiver/CHANGELOG.md index 347abc6..9a624ad 100644 --- a/driver-ds3231-receiver/CHANGELOG.md +++ b/driver-ds3231-receiver/CHANGELOG.md @@ -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 diff --git a/driver-ds3231-receiver/build.gradle b/driver-ds3231-receiver/build.gradle index 30252a4..5a6404d 100644 --- a/driver-ds3231-receiver/build.gradle +++ b/driver-ds3231-receiver/build.gradle @@ -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' } diff --git a/driver-ds3231-receiver/mavenConfig.gradle b/driver-ds3231-receiver/mavenConfig.gradle index f3f3865..33612c8 100644 --- a/driver-ds3231-receiver/mavenConfig.gradle +++ b/driver-ds3231-receiver/mavenConfig.gradle @@ -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' @@ -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') diff --git a/driver-ds3231-receiver/src/main/java/com/leinardi/android/things/driver/ds3231/receiver/BoardDefaults.java b/driver-ds3231-receiver/src/main/java/com/leinardi/android/things/driver/ds3231/receiver/BoardDefaults.java index ffd830f..2573572 100644 --- a/driver-ds3231-receiver/src/main/java/com/leinardi/android/things/driver/ds3231/receiver/BoardDefaults.java +++ b/driver-ds3231-receiver/src/main/java/com/leinardi/android/things/driver/ds3231/receiver/BoardDefaults.java @@ -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(); diff --git a/driver-ds3231/CHANGELOG.md b/driver-ds3231/CHANGELOG.md index 347abc6..9a624ad 100644 --- a/driver-ds3231/CHANGELOG.md +++ b/driver-ds3231/CHANGELOG.md @@ -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 diff --git a/driver-ds3231/mavenConfig.gradle b/driver-ds3231/mavenConfig.gradle index 9ca4eb5..8e27997 100644 --- a/driver-ds3231/mavenConfig.gradle +++ b/driver-ds3231/mavenConfig.gradle @@ -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' @@ -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') diff --git a/driver-epaperdriverhat/CHANGELOG.md b/driver-epaperdriverhat/CHANGELOG.md index 6648d1c..39b68f9 100644 --- a/driver-epaperdriverhat/CHANGELOG.md +++ b/driver-epaperdriverhat/CHANGELOG.md @@ -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 diff --git a/driver-epaperdriverhat/mavenConfig.gradle b/driver-epaperdriverhat/mavenConfig.gradle index 1449a92..ed8d60b 100644 --- a/driver-epaperdriverhat/mavenConfig.gradle +++ b/driver-epaperdriverhat/mavenConfig.gradle @@ -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' @@ -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') diff --git a/driver-hcsr04/CHANGELOG.md b/driver-hcsr04/CHANGELOG.md index 27d933b..ec3e94c 100644 --- a/driver-hcsr04/CHANGELOG.md +++ b/driver-hcsr04/CHANGELOG.md @@ -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 diff --git a/driver-hcsr04/mavenConfig.gradle b/driver-hcsr04/mavenConfig.gradle index 7f5c21b..8292564 100644 --- a/driver-hcsr04/mavenConfig.gradle +++ b/driver-hcsr04/mavenConfig.gradle @@ -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' @@ -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') diff --git a/driver-hd44780/CHANGELOG.md b/driver-hd44780/CHANGELOG.md index 6e9f146..f667975 100644 --- a/driver-hd44780/CHANGELOG.md +++ b/driver-hd44780/CHANGELOG.md @@ -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 diff --git a/driver-hd44780/mavenConfig.gradle b/driver-hd44780/mavenConfig.gradle index bc0878b..f69c054 100644 --- a/driver-hd44780/mavenConfig.gradle +++ b/driver-hd44780/mavenConfig.gradle @@ -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' @@ -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') diff --git a/driver-lsm9ds1/CHANGELOG.md b/driver-lsm9ds1/CHANGELOG.md index 7f1b412..3ff9462 100644 --- a/driver-lsm9ds1/CHANGELOG.md +++ b/driver-lsm9ds1/CHANGELOG.md @@ -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 diff --git a/driver-lsm9ds1/mavenConfig.gradle b/driver-lsm9ds1/mavenConfig.gradle index 0418a99..a7fc3c0 100644 --- a/driver-lsm9ds1/mavenConfig.gradle +++ b/driver-lsm9ds1/mavenConfig.gradle @@ -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') diff --git a/driver-sh1106/CHANGELOG.md b/driver-sh1106/CHANGELOG.md index f5692b0..06a9272 100644 --- a/driver-sh1106/CHANGELOG.md +++ b/driver-sh1106/CHANGELOG.md @@ -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 diff --git a/driver-sh1106/mavenConfig.gradle b/driver-sh1106/mavenConfig.gradle index d56cc59..c92e9e6 100644 --- a/driver-sh1106/mavenConfig.gradle +++ b/driver-sh1106/mavenConfig.gradle @@ -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' @@ -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') diff --git a/driver-tsl256x/CHANGELOG.md b/driver-tsl256x/CHANGELOG.md index 71014a9..892f81d 100644 --- a/driver-tsl256x/CHANGELOG.md +++ b/driver-tsl256x/CHANGELOG.md @@ -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 diff --git a/driver-tsl256x/README.md b/driver-tsl256x/README.md index c2cb774..3f68699 100644 --- a/driver-tsl256x/README.md +++ b/driver-tsl256x/README.md @@ -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]); diff --git a/driver-tsl256x/mavenConfig.gradle b/driver-tsl256x/mavenConfig.gradle index 9751da2..4a9c2b7 100644 --- a/driver-tsl256x/mavenConfig.gradle +++ b/driver-tsl256x/mavenConfig.gradle @@ -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' @@ -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') diff --git a/maven.gradle b/maven.gradle index 5c80777..fab0a1a 100644 --- a/maven.gradle +++ b/maven.gradle @@ -69,3 +69,5 @@ artifacts { archives javadocJar archives sourcesJar } + +apply from: rootProject.file('bintray.gradle') diff --git a/versions.gradle b/versions.gradle index 7e5236a..b403e91 100644 --- a/versions.gradle +++ b/versions.gradle @@ -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" @@ -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 @@ -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