Skip to content

Commit

Permalink
upgrade version and dependencies, fix some warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Helium314 committed Apr 19, 2023
1 parent b34e975 commit 0765b36
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 9 deletions.
7 changes: 5 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,15 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

### Changed
- Not applicable
- Notification text for active mode now contains name of emitter that triggered the scan
- Keep screen on during import / export operations

### Removed
- Not applicable

## [1.2.6] - 2023-04-19
### Changed
- Notification text for active mode now contains name of emitter that triggered the scan
- Keep screen on during import / export operations

## [1.2.5] - 2023-02-10
### Changed
- Fix MLS import not working without MCC filter
Expand Down
6 changes: 3 additions & 3 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ android {
applicationId "helium314.localbackend"
minSdkVersion 18
targetSdkVersion 33
versionCode 33
versionName "1.2.5"
versionCode 34
versionName "1.2.6"
}
buildTypes {
release {
Expand All @@ -28,7 +28,7 @@ android {
}

dependencies {
implementation 'androidx.appcompat:appcompat:1.6.0'
implementation 'androidx.appcompat:appcompat:1.6.1'
implementation 'androidx.localbroadcastmanager:localbroadcastmanager:1.1.0'
implementation 'org.microg.nlp:api:2.0-alpha10'
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -988,6 +988,7 @@ class BackendService : LocationBackendService() {
}

companion object {
private const val TAG = "LocalNLP Backend"
var instance: BackendService? = null
private set

Expand Down Expand Up @@ -1070,7 +1071,6 @@ private const val GPS_COORDINATE_NOISE = 2.0 // reduced from initial 3.0 to get

private val DEBUG = BuildConfig.DEBUG

private const val TAG = "LocalNLP Backend"
private val myPerms = if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) {
arrayOf(
permission.ACCESS_WIFI_STATE, permission.CHANGE_WIFI_STATE,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ class GpsMonitor : Service(), LocationListener {
}
}

@Deprecated("Deprecated in Java")
override fun onStatusChanged(provider: String, status: Int, extras: Bundle) {
Log.d(TAG, "onStatusChanged() - provider $provider, status $status")
}
Expand Down Expand Up @@ -190,7 +191,10 @@ class GpsMonitor : Service(), LocationListener {
private fun stopGps() {
gpsLocationManager.removeUpdates(this)
gpsRunning?.cancel()
stopForeground(true)
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N)
stopForeground(STOP_FOREGROUND_REMOVE)
else
stopForeground(true)
}

companion object {
Expand Down
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ buildscript {
google()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.8.10"
classpath 'com.android.tools.build:gradle:7.4.1'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.8.20"
classpath 'com.android.tools.build:gradle:7.4.2'
}
}

Expand Down
2 changes: 2 additions & 0 deletions fastlane/metadata/android/en-US/changelogs/34.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- Notification text for active mode now contains name of emitter that triggered the scan
- Keep screen on during import / export operations

0 comments on commit 0765b36

Please sign in to comment.