Skip to content

Commit

Permalink
JavaVersion compatibility 11
Browse files Browse the repository at this point in the history
  • Loading branch information
gmiszewski-intent committed Sep 14, 2023
1 parent f52e9c5 commit 14bd1f9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
6 changes: 3 additions & 3 deletions android/library/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,11 @@ android {
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
sourceCompatibility JavaVersion.VERSION_11
targetCompatibility JavaVersion.VERSION_11
}
kotlinOptions {
jvmTarget = '17'
jvmTarget = '11'
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1087,7 +1087,6 @@ private void changeAdapterState(final RxBleAdapterStateObservable.BleAdapterStat
});


// TODO THIS SHOULD CHECK PERMISSION BEFORE ENABLING/DISABLING BECAUSE IT'LL THROW AN EXCEPTION
boolean desiredAndInitialStateAreSame;
if (desiredAdapterState == RxBleAdapterStateObservable.BleAdapterState.STATE_ON) {
desiredAndInitialStateAreSame = !bluetoothAdapter.enable();
Expand Down

0 comments on commit 14bd1f9

Please sign in to comment.