diff --git a/android/app/build.gradle b/android/app/build.gradle index aa3243246..8098b57c3 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -121,13 +121,13 @@ android { applicationIdSuffix ".dev" versionNameSuffix "-dev" // 10203010 <- 10203(v1.2.3 version name)+01(build number)+0(Android app) - versionCode 80100020 - versionName "8.1.0" + versionCode 80102000 + versionName "8.1.2" } prod { dimension "environment" - versionCode 80100020 - versionName "8.1.0" + versionCode 80102000 + versionName "8.1.2" } } }// Apply static values from `gradle.properties` to the `android.packagingOptions` diff --git a/android/wearable/build.gradle.kts b/android/wearable/build.gradle.kts index c8c98025c..b14b901f5 100644 --- a/android/wearable/build.gradle.kts +++ b/android/wearable/build.gradle.kts @@ -34,13 +34,13 @@ android { applicationIdSuffix = ".dev" versionNameSuffix = "-dev" // 10203011 <- 10203(v1.2.3 version name)+01(build number)+1(Wearable app) - versionCode = 80100021 - versionName = "8.1.0" + versionCode = 80102001 + versionName = "8.1.2" } create("prod") { dimension = "environment" - versionCode = 80100021 - versionName = "8.1.0" + versionCode = 80102001 + versionName = "8.1.2" } } diff --git a/ios/TrainLCD.xcodeproj/project.pbxproj b/ios/TrainLCD.xcodeproj/project.pbxproj index 3ad9c0948..5952aa5df 100644 --- a/ios/TrainLCD.xcodeproj/project.pbxproj +++ b/ios/TrainLCD.xcodeproj/project.pbxproj @@ -1457,7 +1457,7 @@ "$(inherited)", "@executable_path/Frameworks", ); - MARKETING_VERSION = 8.1.1; + MARKETING_VERSION = 8.1.2; OTHER_LDFLAGS = ( "$(inherited)", "-ObjC", @@ -1495,7 +1495,7 @@ "$(inherited)", "@executable_path/Frameworks", ); - MARKETING_VERSION = 8.1.1; + MARKETING_VERSION = 8.1.2; OTHER_LDFLAGS = ( "$(inherited)", "-ObjC", @@ -1586,7 +1586,7 @@ "\"$(TOOLCHAIN_DIR)/usr/lib/swift/$(PLATFORM_NAME)\"", "\"$(inherited)\"", ); - MARKETING_VERSION = 8.1.1; + MARKETING_VERSION = 8.1.2; MTL_ENABLE_DEBUG_INFO = YES; ONLY_ACTIVE_ARCH = YES; OTHER_CFLAGS = "$(inherited)"; @@ -1672,7 +1672,7 @@ "\"$(TOOLCHAIN_DIR)/usr/lib/swift/$(PLATFORM_NAME)\"", "\"$(inherited)\"", ); - MARKETING_VERSION = 8.1.1; + MARKETING_VERSION = 8.1.2; MTL_ENABLE_DEBUG_INFO = NO; OTHER_CFLAGS = "$(inherited)"; OTHER_CPLUSPLUSFLAGS = "$(inherited)"; @@ -1708,7 +1708,7 @@ "$(inherited)", "@executable_path/Frameworks", ); - MARKETING_VERSION = 8.1.1; + MARKETING_VERSION = 8.1.2; OTHER_LDFLAGS = ( "$(inherited)", "-ObjC", @@ -1746,7 +1746,7 @@ "$(inherited)", "@executable_path/Frameworks", ); - MARKETING_VERSION = 8.1.1; + MARKETING_VERSION = 8.1.2; OTHER_LDFLAGS = ( "$(inherited)", "-ObjC", @@ -1784,7 +1784,7 @@ GCC_C_LANGUAGE_STANDARD = gnu11; IBSC_MODULE = WatchApp_Extension; INFOPLIST_FILE = WatchApp/Schemes/Dev/Info.plist; - MARKETING_VERSION = 8.1.1; + MARKETING_VERSION = 8.1.2; MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; MTL_FAST_MATH = YES; OTHER_SWIFT_FLAGS = "$(inherited) -D EXPO_CONFIGURATION_DEBUG"; @@ -1823,7 +1823,7 @@ GCC_C_LANGUAGE_STANDARD = gnu11; IBSC_MODULE = WatchApp_Extension; INFOPLIST_FILE = WatchApp/Schemes/Dev/Info.plist; - MARKETING_VERSION = 8.1.1; + MARKETING_VERSION = 8.1.2; MTL_FAST_MATH = YES; OTHER_SWIFT_FLAGS = "$(inherited) -D EXPO_CONFIGURATION_RELEASE -D EXPO_CONFIGURATION_DEBUG"; PRODUCT_BUNDLE_IDENTIFIER = me.tinykitten.trainlcd.dev.watchkitapp; @@ -1865,7 +1865,7 @@ "@executable_path/Frameworks", "@executable_path/../../Frameworks", ); - MARKETING_VERSION = 8.1.1; + MARKETING_VERSION = 8.1.2; MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; MTL_FAST_MATH = YES; OTHER_SWIFT_FLAGS = "$(inherited) -D EXPO_CONFIGURATION_DEBUG"; @@ -1909,7 +1909,7 @@ "@executable_path/Frameworks", "@executable_path/../../Frameworks", ); - MARKETING_VERSION = 8.1.1; + MARKETING_VERSION = 8.1.2; MTL_FAST_MATH = YES; OTHER_SWIFT_FLAGS = "$(inherited) -D EXPO_CONFIGURATION_RELEASE -D EXPO_CONFIGURATION_DEBUG"; PRODUCT_BUNDLE_IDENTIFIER = me.tinykitten.trainlcd.dev.watchkitapp.watchkitextension; @@ -1953,7 +1953,7 @@ "@executable_path/Frameworks", "@executable_path/../../Frameworks", ); - MARKETING_VERSION = 8.1.1; + MARKETING_VERSION = 8.1.2; MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; MTL_FAST_MATH = YES; OTHER_SWIFT_FLAGS = "$(inherited) -D EXPO_CONFIGURATION_DEBUG"; @@ -2001,7 +2001,7 @@ "@executable_path/Frameworks", "@executable_path/../../Frameworks", ); - MARKETING_VERSION = 8.1.1; + MARKETING_VERSION = 8.1.2; MTL_FAST_MATH = YES; OTHER_SWIFT_FLAGS = "$(inherited) -D EXPO_CONFIGURATION_RELEASE -D EXPO_CONFIGURATION_DEBUG"; PRODUCT_BUNDLE_IDENTIFIER = me.tinykitten.trainlcd.dev.ridesessionactivity; @@ -2047,7 +2047,7 @@ "@executable_path/Frameworks", "@executable_path/../../Frameworks", ); - MARKETING_VERSION = 8.1.1; + MARKETING_VERSION = 8.1.2; MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; MTL_FAST_MATH = YES; OTHER_SWIFT_FLAGS = "$(inherited) -D EXPO_CONFIGURATION_DEBUG"; @@ -2095,7 +2095,7 @@ "@executable_path/Frameworks", "@executable_path/../../Frameworks", ); - MARKETING_VERSION = 8.1.1; + MARKETING_VERSION = 8.1.2; MTL_FAST_MATH = YES; OTHER_SWIFT_FLAGS = "$(inherited) -D EXPO_CONFIGURATION_RELEASE -D EXPO_CONFIGURATION_DEBUG"; PRODUCT_BUNDLE_IDENTIFIER = me.tinykitten.trainlcd.ridesessionactivity; @@ -2139,7 +2139,7 @@ "@executable_path/Frameworks", "@executable_path/../../Frameworks", ); - MARKETING_VERSION = 8.1.1; + MARKETING_VERSION = 8.1.2; MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; MTL_FAST_MATH = YES; OTHER_SWIFT_FLAGS = "$(inherited) -D EXPO_CONFIGURATION_DEBUG"; @@ -2183,7 +2183,7 @@ "@executable_path/Frameworks", "@executable_path/../../Frameworks", ); - MARKETING_VERSION = 8.1.1; + MARKETING_VERSION = 8.1.2; MTL_FAST_MATH = YES; OTHER_SWIFT_FLAGS = "$(inherited) -D EXPO_CONFIGURATION_RELEASE -D EXPO_CONFIGURATION_DEBUG"; PRODUCT_BUNDLE_IDENTIFIER = me.tinykitten.trainlcd.watchkitapp.watchkitextension; @@ -2221,7 +2221,7 @@ GCC_C_LANGUAGE_STANDARD = gnu11; IBSC_MODULE = WatchApp_Extension; INFOPLIST_FILE = WatchApp/Schemes/Prod/Info.plist; - MARKETING_VERSION = 8.1.1; + MARKETING_VERSION = 8.1.2; MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; MTL_FAST_MATH = YES; OTHER_SWIFT_FLAGS = "$(inherited) -D EXPO_CONFIGURATION_DEBUG"; @@ -2261,7 +2261,7 @@ GCC_C_LANGUAGE_STANDARD = gnu11; IBSC_MODULE = WatchApp_Extension; INFOPLIST_FILE = WatchApp/Schemes/Prod/Info.plist; - MARKETING_VERSION = 8.1.1; + MARKETING_VERSION = 8.1.2; MTL_FAST_MATH = YES; OTHER_SWIFT_FLAGS = "$(inherited) -D EXPO_CONFIGURATION_RELEASE -D EXPO_CONFIGURATION_DEBUG"; PRODUCT_BUNDLE_IDENTIFIER = me.tinykitten.trainlcd.watchkitapp; diff --git a/src/hooks/useStartBackgroundLocationUpdates.ts b/src/hooks/useStartBackgroundLocationUpdates.ts index 7d2ad209e..6738f7364 100644 --- a/src/hooks/useStartBackgroundLocationUpdates.ts +++ b/src/hooks/useStartBackgroundLocationUpdates.ts @@ -17,10 +17,11 @@ export const useStartBackgroundLocationUpdates = () => { ) { Location.startLocationUpdatesAsync(LOCATION_TASK_NAME, { // NOTE: BestForNavigationにしたら暴走時のCPU使用率が50%ほど低下した - accuracy: Location.Accuracy.Highest, + accuracy: Location.Accuracy.BestForNavigation, // NOTE: マップマッチが勝手に行われると電車での経路と大きく異なることがあるはずなので // OtherNavigationは必須 activityType: Location.ActivityType.OtherNavigation, + distanceInterval: 100, foregroundService: { notificationTitle: translate('bgAlertTitle'), notificationBody: translate('bgAlertContent'),