Skip to content

Commit

Permalink
Gradle update
Browse files Browse the repository at this point in the history
  • Loading branch information
weliem committed Jun 14, 2021
1 parent b540107 commit f1debd6
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 13 deletions.
10 changes: 5 additions & 5 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'

android {
compileSdkVersion 29
compileSdkVersion 30
defaultConfig {
applicationId "com.welie.blessedexample"
minSdkVersion 26
targetSdkVersion 29
targetSdkVersion 30
versionCode 1
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
Expand All @@ -30,12 +30,12 @@ android {

dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation 'androidx.appcompat:appcompat:1.2.0'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
implementation 'androidx.appcompat:appcompat:1.3.0'
implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
implementation 'com.jakewharton.timber:timber:4.7.1'
implementation project(':blessed')
testImplementation 'junit:junit:4.13.2'
implementation "androidx.core:core-ktx:+"
implementation "androidx.core:core-ktx:1.5.0"
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:1.4.3-native-mt"
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:1.4.3-native-mt"
Expand Down
6 changes: 3 additions & 3 deletions blessed/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'

android {
compileSdkVersion 29
compileSdkVersion 30

defaultConfig {
minSdkVersion 26
targetSdkVersion 29
targetSdkVersion 30
versionCode 1
versionName "1.0"

Expand Down Expand Up @@ -37,7 +37,7 @@ dependencies {
testImplementation "org.robolectric:robolectric:4.5.1"
testImplementation "org.mockito:mockito-core:3.8.0"
testImplementation 'androidx.test:core:1.3.0'
implementation "androidx.core:core-ktx:+"
implementation "androidx.core:core-ktx:1.5.0"
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:1.4.3-native-mt"
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:1.4.3-native-mt"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ class BluetoothCentralManager(private val context: Context) {
synchronized(this) {
val deviceName = result.device.name ?: return
for (name in scanPeripheralNames) {
if (deviceName.contains(name!!)) {
if (deviceName.contains(name)) {
sendScanResult(result)
return
}
Expand Down Expand Up @@ -534,7 +534,6 @@ class BluetoothCentralManager(private val context: Context) {
stopAutoconnectScan()
Timber.d("cancelling autoconnect for %s", peripheralAddress)
scope.launch { resultCentralManagerCallback.onDisconnectedPeripheral(peripheral, HciStatus.SUCCESS) }
// scope.launch { connectionStateCallback.invoke(peripheral, ConnectionState.DISCONNECTED) }

// If there are any devices left, restart the reconnection scan
if (reconnectPeripheralAddresses.size > 0) {
Expand Down Expand Up @@ -916,7 +915,7 @@ class BluetoothCentralManager(private val context: Context) {
private const val NO_VALID_PERIPHERAL_PROVIDED = "no valid peripheral provided"
private const val NO_VALID_PERIPHERAL_CALLBACK_SPECIFIED = "no valid peripheral callback specified"
}
//endregion

/**
* Construct a new BluetoothCentralManager object
*
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ buildscript {

}
dependencies {
classpath 'com.android.tools.build:gradle:4.1.2'
classpath 'com.android.tools.build:gradle:4.2.1'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"

// NOTE: Do not place your application dependencies here; they belong
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.5-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-6.7.1-bin.zip

0 comments on commit f1debd6

Please sign in to comment.