From 60785452830f24edd543369ab943c626a474ed32 Mon Sep 17 00:00:00 2001 From: John Howe Date: Wed, 7 Mar 2018 12:26:34 +1300 Subject: [PATCH 1/2] Translated some error strings from Portuguese to English --- .../bluetoothclassiclibrary/BluetoothClassicService.java | 4 ++-- .../bluetoothclassiclibrary/BluetoothDeviceDecoratorNull.java | 2 +- .../bluetoothlowenergylibrary/BluetoothLeService.java | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/BluetoothClassicLibrary/src/main/java/com/github/douglasjunior/bluetoothclassiclibrary/BluetoothClassicService.java b/BluetoothClassicLibrary/src/main/java/com/github/douglasjunior/bluetoothclassiclibrary/BluetoothClassicService.java index 5558338..d75d244 100755 --- a/BluetoothClassicLibrary/src/main/java/com/github/douglasjunior/bluetoothclassiclibrary/BluetoothClassicService.java +++ b/BluetoothClassicLibrary/src/main/java/com/github/douglasjunior/bluetoothclassiclibrary/BluetoothClassicService.java @@ -184,7 +184,7 @@ private void connectionFailed() { runOnMainThread(new Runnable() { @Override public void run() { - onEventCallback.onToast("Não foi possível conectar ao dispositivo."); + onEventCallback.onToast("Could not connect to device"); } }); } @@ -201,7 +201,7 @@ private void connectionLost() { runOnMainThread(new Runnable() { @Override public void run() { - onEventCallback.onToast("Conexão perdida com o dispositivo."); + onEventCallback.onToast("Connection lost"); } }); } diff --git a/BluetoothClassicLibrary/src/main/java/com/github/douglasjunior/bluetoothclassiclibrary/BluetoothDeviceDecoratorNull.java b/BluetoothClassicLibrary/src/main/java/com/github/douglasjunior/bluetoothclassiclibrary/BluetoothDeviceDecoratorNull.java index 3ae5a09..813c4f3 100755 --- a/BluetoothClassicLibrary/src/main/java/com/github/douglasjunior/bluetoothclassiclibrary/BluetoothDeviceDecoratorNull.java +++ b/BluetoothClassicLibrary/src/main/java/com/github/douglasjunior/bluetoothclassiclibrary/BluetoothDeviceDecoratorNull.java @@ -41,7 +41,7 @@ public static BluetoothDeviceDecoratorNull getInstance() { @Override public String getName() { - return "Nenhum dispositivo encontrado."; + return "No device found"; } @Override diff --git a/BluetoothLowEnergyLibrary/src/main/java/com/github/douglasjunior/bluetoothlowenergylibrary/BluetoothLeService.java b/BluetoothLowEnergyLibrary/src/main/java/com/github/douglasjunior/bluetoothlowenergylibrary/BluetoothLeService.java index e73c65b..9b50752 100644 --- a/BluetoothLowEnergyLibrary/src/main/java/com/github/douglasjunior/bluetoothlowenergylibrary/BluetoothLeService.java +++ b/BluetoothLowEnergyLibrary/src/main/java/com/github/douglasjunior/bluetoothlowenergylibrary/BluetoothLeService.java @@ -142,9 +142,9 @@ public void onConnectionStateChange(final BluetoothGatt gatt, int status, final if (status != BluetoothGatt.GATT_SUCCESS || newState == BluetoothProfile.STATE_DISCONNECTED) { gatt.close(); if (mStatus == BluetoothStatus.NONE || mStatus == BluetoothStatus.CONNECTING) - makeToast("Não foi possível conectar ao dispositivo"); + makeToast("Unable to connect to device"); else if (mStatus == BluetoothStatus.CONNECTED) - makeToast("Conexão perdida com o dispositivo"); + makeToast("Connection lost"); updateState(BluetoothStatus.NONE); } else { if (newState == BluetoothProfile.STATE_CONNECTED) { From 6c887870357439a794738bdfcf2bac2aa83a143a Mon Sep 17 00:00:00 2001 From: John Howe Date: Wed, 7 Mar 2018 13:49:58 +1300 Subject: [PATCH 2/2] release 0.3.5 --- BluetoothClassicLibrary/build.gradle | 2 +- BluetoothLowEnergyLibrary/build.gradle | 2 +- README.md | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/BluetoothClassicLibrary/build.gradle b/BluetoothClassicLibrary/build.gradle index a7ff58b..3de6c08 100644 --- a/BluetoothClassicLibrary/build.gradle +++ b/BluetoothClassicLibrary/build.gradle @@ -7,7 +7,7 @@ android { minSdkVersion 7 targetSdkVersion 7 versionCode 11 - versionName "0.3.4" + versionName "0.3.5" } buildTypes { release { diff --git a/BluetoothLowEnergyLibrary/build.gradle b/BluetoothLowEnergyLibrary/build.gradle index e7e3923..c8b8a9b 100644 --- a/BluetoothLowEnergyLibrary/build.gradle +++ b/BluetoothLowEnergyLibrary/build.gradle @@ -7,7 +7,7 @@ android { minSdkVersion 18 targetSdkVersion 18 versionCode 11 - versionName "0.3.4" + versionName "0.3.5" } buildTypes { release { diff --git a/README.md b/README.md index 18e917c..27f46df 100644 --- a/README.md +++ b/README.md @@ -119,14 +119,14 @@ See the [sample project](https://github.com/douglasjunior/AndroidBluetoothLibrar 2.1. Bluetooth Classic ```javascript dependencies { - compile 'com.github.douglasjunior.AndroidBluetoothLibrary:BluetoothClassicLibrary:0.3.4' + compile 'com.github.douglasjunior.AndroidBluetoothLibrary:BluetoothClassicLibrary:0.3.5' } ``` 2.2. Bluetooth Low Energy ```javascript dependencies { - compile 'com.github.douglasjunior.AndroidBluetoothLibrary:BluetoothLowEnergyLibrary:0.3.4' + compile 'com.github.douglasjunior.AndroidBluetoothLibrary:BluetoothLowEnergyLibrary:0.3.5' } ```