Skip to content

Commit

Permalink
Rename move & update signing config
Browse files Browse the repository at this point in the history
  • Loading branch information
Codel1417 committed Jun 7, 2024
1 parent 48be5b7 commit 9d2d292
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
5 changes: 5 additions & 0 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,11 @@ android {
keyPassword keystoreProperties['keyPassword']
storeFile keystoreProperties['storeFile'] ? file(keystoreProperties['storeFile']) : null
storePassword keystoreProperties['storePassword']
// Optional, specify signing versions used
enableV1Signing true
enableV2Signing true
enableV3Signing true
enableV4Signing true
}
}
buildTypes {
Expand Down
13 changes: 7 additions & 6 deletions lib/Backend/action_registry.dart
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ class ActionRegistry {
},
),
CommandAction(
name: "Erect",
name: "Stand Up",
command: "TAILER",
deviceCategory: [DeviceType.tail, DeviceType.wings],
actionCategory: ActionCategory.fast,
Expand Down Expand Up @@ -277,8 +277,7 @@ Map<ActionCategory, Set<BaseAction>> getAvailableActions(GetAvailableActionsRef
Map<String, BaseStatefulDevice> knownDevices = ref.watch(knownDevicesProvider);
Map<ActionCategory, Set<BaseAction>> sortedActions = {};
for (BaseAction baseAction in List.from(ActionRegistry.allCommands)
..addAll(ref.read(moveListsProvider))
..addAll(ref.read(userAudioActionsProvider))) {
..addAll(ref.read(moveListsProvider))..addAll(ref.read(userAudioActionsProvider))) {
Set<BaseAction>? baseActions = {};
for (BaseStatefulDevice baseStatefulDevice in knownDevices.values.where((element) => element.deviceConnectionState.value == ConnectivityState.connected)) {
// check if command matches device type
Expand All @@ -303,11 +302,13 @@ Map<ActionCategory, Set<BaseAction>> getAvailableActions(GetAvailableActionsRef
Map<ActionCategory, Set<BaseAction>> getAllActions(GetAllActionsRef ref, Set<DeviceType> deviceType) {
Map<ActionCategory, Set<BaseAction>> sortedActions = {};
for (BaseAction baseAction in List.from(ActionRegistry.allCommands)
..addAll(ref.read(moveListsProvider))
..addAll(ref.read(userAudioActionsProvider))) {
..addAll(ref.read(moveListsProvider))..addAll(ref.read(userAudioActionsProvider))) {
Set<BaseAction>? baseActions = {};
// check if command matches device type
if (baseAction.deviceCategory.toSet().intersection(deviceType).isNotEmpty) {
if (baseAction.deviceCategory
.toSet()
.intersection(deviceType)
.isNotEmpty) {
// get category if it exists
if (sortedActions.containsKey(baseAction.actionCategory)) {
baseActions = sortedActions[baseAction.actionCategory];
Expand Down

0 comments on commit 9d2d292

Please sign in to comment.