Skip to content

Commit

Permalink
upgrade to version 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Ficat committed May 1, 2020
1 parent 0786e5f commit 04fb690
Show file tree
Hide file tree
Showing 17 changed files with 391 additions and 294 deletions.
5 changes: 0 additions & 5 deletions easyble/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,4 @@ android {

dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])

implementation 'com.android.support:appcompat-v7:28.0.0'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
}
5 changes: 2 additions & 3 deletions easyble/src/main/java/com/ficat/easyble/BleDevice.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import android.bluetooth.BluetoothDevice;
import android.os.Parcel;
import android.os.Parcelable;
import android.support.annotation.NonNull;
import android.text.TextUtils;


Expand All @@ -18,7 +17,7 @@ public class BleDevice implements Parcelable {
public String name;
private BluetoothDevice device;

BleDevice(@NonNull BluetoothDevice device) {
BleDevice(BluetoothDevice device) {
this.device = device;
this.address = device.getAddress();
this.name = device.getName();
Expand Down Expand Up @@ -64,7 +63,7 @@ protected BleDevice(Parcel in) {
this.device = in.readParcelable(BluetoothDevice.class.getClassLoader());
}

public static final Parcelable.Creator<BleDevice> CREATOR = new Parcelable.Creator<BleDevice>() {
public static final Creator<BleDevice> CREATOR = new Creator<BleDevice>() {
@Override
public BleDevice createFromParcel(Parcel source) {
return new BleDevice(source);
Expand Down
Loading

0 comments on commit 04fb690

Please sign in to comment.