From 039acbb94e11c673d204033c72ffa4de1fb5ab5d Mon Sep 17 00:00:00 2001 From: Eduardo Folly Date: Mon, 18 Mar 2019 22:08:59 -0300 Subject: [PATCH] Version 0.0.5 --- CHANGELOG.md | 7 +++++++ README.md | 4 +++- android/build.gradle | 18 +++++++----------- example/android/app/build.gradle | 18 ++++++++++-------- example/android/build.gradle | 2 +- example/android/gradle.properties | 2 ++ .../gradle/wrapper/gradle-wrapper.properties | 4 ++-- pubspec.yaml | 2 +- 8 files changed, 33 insertions(+), 24 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index bc366aab..e56c7af4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,10 @@ +## [0.0.5] - 2019-03-18 + +* Upgrade for AndroidX support (thanks @akilinomendez) +* New default constructor (thanks @MohiuddinM) +* Added method write passing byte[] (thanks @rafaelterada) +* Upgrade to Android Studio 3.3.2 + ## [0.0.4] - 2018-12-20 * Unsupported value error correction (thanks @rafaelterada) diff --git a/README.md b/README.md index 3faa5c8c..7afaadc9 100644 --- a/README.md +++ b/README.md @@ -16,4 +16,6 @@ Click on the :star: above to support the project! ## Getting Started -Only for Android. \ No newline at end of file +Only for Android. + +If you have any problem with _invoke-customs_, verify this issue #14. \ No newline at end of file diff --git a/android/build.gradle b/android/build.gradle index 46f8ba5e..33776488 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -1,6 +1,5 @@ group 'io.github.edufolly.flutterbluetoothserial' version '1.0-SNAPSHOT' - buildscript { repositories { google() @@ -8,37 +7,34 @@ buildscript { } dependencies { - classpath 'com.android.tools.build:gradle:3.0.1' + classpath 'com.android.tools.build:gradle:3.3.2' } } - rootProject.allprojects { repositories { google() jcenter() } } - apply plugin: 'com.android.library' - android { - compileSdkVersion 27 - + compileSdkVersion 28 compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 } - defaultConfig { minSdkVersion 18 - testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" + testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" } - lintOptions { disable 'InvalidPackage' } - dependencies { implementation 'com.android.support:support-compat:27.1.1' } + buildToolsVersion '28.0.3' } + +dependencies { +} \ No newline at end of file diff --git a/example/android/app/build.gradle b/example/android/app/build.gradle index 6ac83990..59c2dc1d 100644 --- a/example/android/app/build.gradle +++ b/example/android/app/build.gradle @@ -15,22 +15,19 @@ apply plugin: 'com.android.application' apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" android { - compileSdkVersion 27 - + compileSdkVersion 28 lintOptions { disable 'InvalidPackage' } - defaultConfig { // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). applicationId "io.github.edufolly.flutterbluetoothserialexample" minSdkVersion 18 - targetSdkVersion 27 + targetSdkVersion 28 versionCode 1 versionName "1.0" - testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" + testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" } - buildTypes { release { // TODO: Add your own signing config for the release build. @@ -38,6 +35,11 @@ android { signingConfig signingConfigs.debug } } + buildToolsVersion '28.0.3' + compileOptions { + sourceCompatibility JavaVersion.VERSION_1_8 + targetCompatibility JavaVersion.VERSION_1_8 + } } flutter { @@ -46,6 +48,6 @@ flutter { dependencies { testImplementation 'junit:junit:4.12' - androidTestImplementation 'com.android.support.test:runner:1.0.1' - androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1' + androidTestImplementation 'androidx.test:runner:1.1.0-alpha4' + androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.0-alpha4' } diff --git a/example/android/build.gradle b/example/android/build.gradle index bb8a3038..6e12e86d 100644 --- a/example/android/build.gradle +++ b/example/android/build.gradle @@ -5,7 +5,7 @@ buildscript { } dependencies { - classpath 'com.android.tools.build:gradle:3.2.1' + classpath 'com.android.tools.build:gradle:3.3.2' } } diff --git a/example/android/gradle.properties b/example/android/gradle.properties index 8bd86f68..53ae0ae4 100644 --- a/example/android/gradle.properties +++ b/example/android/gradle.properties @@ -1 +1,3 @@ +android.enableJetifier=true +android.useAndroidX=true org.gradle.jvmargs=-Xmx1536M diff --git a/example/android/gradle/wrapper/gradle-wrapper.properties b/example/android/gradle/wrapper/gradle-wrapper.properties index de467ac5..25de9a2b 100644 --- a/example/android/gradle/wrapper/gradle-wrapper.properties +++ b/example/android/gradle/wrapper/gradle-wrapper.properties @@ -1,6 +1,6 @@ -#Sun Dec 16 17:15:46 BRST 2018 +#Mon Mar 18 21:10:34 BRT 2019 distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-4.6-all.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.1-all.zip diff --git a/pubspec.yaml b/pubspec.yaml index 19ac11f7..c16de99d 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: flutter_bluetooth_serial description: A basic Flutter Bluetooth Serial -version: 0.0.4 +version: 0.0.5 author: Eduardo Folly homepage: https://github.com/edufolly/flutter_bluetooth_serial