Skip to content

Commit

Permalink
Merge branch '3.5.1-hotfix'
Browse files Browse the repository at this point in the history
  • Loading branch information
kylecorry31 committed Feb 8, 2022
2 parents 99cd79b + f620a31 commit 353e6fe
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 4 deletions.
6 changes: 3 additions & 3 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ android {
minSdk = 23
targetSdk = 30
versionCode = 68
versionName = "3.6.0"
versionName = "3.5.1"
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
}
buildFeatures {
Expand Down Expand Up @@ -73,7 +73,7 @@ dependencies {
implementation("androidx.room:room-runtime:2.4.1")
implementation("androidx.room:room-ktx:2.4.1")
implementation("androidx.lifecycle:lifecycle-service:2.4.0")
val cameraxVersion = "1.0.1"
val cameraxVersion = "1.1.0-beta01"
implementation("androidx.camera:camera-camera2:$cameraxVersion")
implementation("androidx.camera:camera-lifecycle:$cameraxVersion")
implementation("androidx.camera:camera-view:1.1.0-beta01")
Expand All @@ -85,7 +85,7 @@ dependencies {
implementation("com.github.kylecorry31:sol:5.7.0")

// Andromeda
val andromedaVersion = "2.7.1"
val andromedaVersion = "2.7.2"
implementation("com.github.kylecorry31.andromeda:core:$andromedaVersion")
implementation("com.github.kylecorry31.andromeda:fragments:$andromedaVersion")
implementation("com.github.kylecorry31.andromeda:forms:$andromedaVersion")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,14 @@ package com.kylecorry.trail_sense

import android.app.Application
import android.util.Log
import androidx.camera.camera2.Camera2Config
import androidx.camera.core.CameraSelector
import androidx.camera.core.CameraXConfig
import com.kylecorry.trail_sense.settings.migrations.PreferenceMigrator
import com.kylecorry.trail_sense.shared.database.RepoCleanupWorker
import java.time.Duration

class TrailSenseApplication : Application() {
class TrailSenseApplication : Application(), CameraXConfig.Provider {

override fun onCreate() {
super.onCreate()
Expand All @@ -16,4 +19,10 @@ class TrailSenseApplication : Application() {
RepoCleanupWorker.scheduler(this).interval(Duration.ofHours(6))
}

override fun getCameraXConfig(): CameraXConfig {
return CameraXConfig.Builder.fromConfig(Camera2Config.defaultConfig())
.setAvailableCamerasLimiter(CameraSelector.DEFAULT_BACK_CAMERA)
.setMinimumLoggingLevel(Log.ERROR).build()
}

}
12 changes: 12 additions & 0 deletions fastlane/metadata/android/en-US/changelogs/68.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
Pedometer
- Replace Speedometer / Odometer with Pedometer
- Add pedometer distance travelled notification
- Add pedometer based speedometer (current, average since reset)
- Add stride length estimator to pedometer settings

Navigation
- Update layout
- Update navigation sheet layout

Misc
- Bug fixes

0 comments on commit 353e6fe

Please sign in to comment.