Skip to content

Commit

Permalink
Merge pull request #3846 from TrainLCD/master
Browse files Browse the repository at this point in the history
dev<-master
  • Loading branch information
TinyKitten authored Oct 22, 2024
2 parents 016b753 + 1f9f823 commit d5cb606
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 27 deletions.
8 changes: 4 additions & 4 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down
8 changes: 4 additions & 4 deletions android/wearable/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}

Expand Down
36 changes: 18 additions & 18 deletions ios/TrainLCD.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -1457,7 +1457,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
MARKETING_VERSION = 8.1.1;
MARKETING_VERSION = 8.1.2;
OTHER_LDFLAGS = (
"$(inherited)",
"-ObjC",
Expand Down Expand Up @@ -1495,7 +1495,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
MARKETING_VERSION = 8.1.1;
MARKETING_VERSION = 8.1.2;
OTHER_LDFLAGS = (
"$(inherited)",
"-ObjC",
Expand Down Expand Up @@ -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)";
Expand Down Expand Up @@ -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)";
Expand Down Expand Up @@ -1708,7 +1708,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
MARKETING_VERSION = 8.1.1;
MARKETING_VERSION = 8.1.2;
OTHER_LDFLAGS = (
"$(inherited)",
"-ObjC",
Expand Down Expand Up @@ -1746,7 +1746,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
MARKETING_VERSION = 8.1.1;
MARKETING_VERSION = 8.1.2;
OTHER_LDFLAGS = (
"$(inherited)",
"-ObjC",
Expand Down Expand Up @@ -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";
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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";
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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";
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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";
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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";
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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";
Expand Down Expand Up @@ -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;
Expand Down
3 changes: 2 additions & 1 deletion src/hooks/useStartBackgroundLocationUpdates.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
Expand Down

0 comments on commit d5cb606

Please sign in to comment.