Skip to content

Commit a066b08

Browse files
authored
Merge branch 'master' into dependabot/pub/flutter_lints-6.0.0
2 parents dcd59da + abdd594 commit a066b08

39 files changed

+1124
-249
lines changed

.github/actions/build_android/action.yml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,6 @@ runs:
4646
run: echo -n "$ANDROID_KEY_JKS" | base64 -d > ./android/tailCo.jks
4747
env:
4848
ANDROID_KEY_JKS: ${{ inputs.android-key-jks }}
49-
- name: Copy App icon to wear project
50-
shell: bash
51-
run: |
52-
cp -rfv ./android/app/src/main/res/drawable* ./android/wear/src/main/res/
53-
cp -rfv ./android/app/src/main/res/mipmap* ./android/wear/src/main/res/
5449
- name: Build APK
5550
if: inputs.build-mode == 'apk'
5651
shell: bash
@@ -75,9 +70,6 @@ runs:
7570
SENTRY_PROJECT: ${{ inputs.sentry-project }}
7671
SENTRY_DSN: ${{ inputs.sentry-dsn }}
7772
SENTRY_URL: ${{ inputs.sentry-url }}
78-
- name: list dependencies
79-
shell: bash
80-
run: cd android && ./gradlew app:dependencies --configuration releaseCompileClasspath
8173
- name: Rename APK
8274
shell: bash
8375
if: inputs.build-mode == 'apk'

.github/actions/pre_build/action.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,3 @@ runs:
2525
- name: Generate dart .g files
2626
shell: bash
2727
run: dart pub run build_runner build --delete-conflicting-outputs
28-
- name: list dependencies
29-
shell: bash
30-
run: flutter pub deps --no-dev

.github/actions/setup_build/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ inputs:
99
default: "zulu"
1010
flutter-version:
1111
description: "Flutter Version"
12-
default: "3.29.1"
12+
default: "3.32.4"
1313
ruby-version:
1414
description: "Ruby Version"
1515
default: "3.4"

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
uses: ./.github/actions/version
3838
- name: Download artifact
3939
id: download-artifact
40-
uses: dawidd6/action-download-artifact@v10
40+
uses: dawidd6/action-download-artifact@v11
4141
with:
4242
workflow: build.yml
4343
workflow_conclusion: success

android/app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ flutter {
103103
}
104104

105105
dependencies {
106-
implementation "org.jetbrains.kotlin:kotlin-stdlib:2.1.21"
106+
implementation "org.jetbrains.kotlin:kotlin-stdlib:2.2.0"
107107
testImplementation "junit:junit:4.13.2"
108108
// https://developer.android.com/jetpack/androidx/releases/test/#1.2.0
109109
coreLibraryDesugaring "com.android.tools:desugar_jdk_libs:2.1.5"

android/settings.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ pluginManagement {
1919

2020
plugins {
2121
id "dev.flutter.flutter-plugin-loader" version "1.0.0"
22-
id "io.sentry.android.gradle" version "5.7.0" apply false
22+
id "io.sentry.android.gradle" version "5.8.0" apply false
2323
id "org.jetbrains.kotlin.android" version "2.1.21" apply false
2424
id "com.android.application" version '8.10.1' apply false
2525
id 'com.google.gms.google-services' version '4.4.2' apply false

assets/CosHub BT.png

13.5 KB
Loading

lib/Backend/plausible_dio.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@ class PlausibleDio extends Plausible {
5656
props['App Version'] = (await PackageInfo.fromPlatform()).version;
5757
props['App Build'] = (await PackageInfo.fromPlatform()).buildNumber;
5858
props['Locale'] = Platform.localeName;
59+
props['UwU Enabled'] = HiveProxy.getOrDefault(settings, uwuTextEnabled, defaultValue: uwuTextEnabledDefault).toString();
60+
props['Marketing Notifications Enabled'] = HiveProxy.getOrDefault(settings, marketingNotificationsEnabled, defaultValue: marketingNotificationsEnabledDefault).toString();
61+
5962
try {
6063
props['Has Watch'] = (await isPaired()).toString();
6164
} catch (e) {

lib/Backend/wear_bridge.dart

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import 'package:tail_app/Backend/Bluetooth/bluetooth_manager.dart';
99
import 'package:tail_app/Backend/Definitions/Device/device_definition.dart';
1010
import 'package:tail_app/Backend/device_registry.dart';
1111
import 'package:tail_app/Backend/sensors.dart';
12+
import 'package:tail_app/Frontend/Widgets/uwu_text.dart';
1213
import 'package:tail_app/Frontend/translation_string_definitions.dart';
1314
import 'package:watch_connectivity/watch_connectivity.dart';
1415

@@ -162,11 +163,11 @@ Future<void> updateWearData(Ref ref) async {
162163
ref.watch(getAvailableGearProvider);
163164

164165
final WearLocalizationData localizationData = WearLocalizationData(
165-
triggersPage: triggersPage(),
166-
actionsPage: watchFavoriteActionsTitle(),
167-
favoriteActionsDescription: watchFavoriteActionsNoFavoritesTip(),
168-
knownGear: watchKnownGearTitle(),
169-
watchKnownGearNoGearPairedTip: watchKnownGearNoGearPairedTip(),
166+
triggersPage: convertToUwU(triggersPage()),
167+
actionsPage: convertToUwU(watchFavoriteActionsTitle()),
168+
favoriteActionsDescription: convertToUwU(watchFavoriteActionsNoFavoritesTip()),
169+
knownGear: convertToUwU(watchKnownGearTitle()),
170+
watchKnownGearNoGearPairedTip: convertToUwU(watchKnownGearNoGearPairedTip()),
170171
);
171172
final WearData wearData = WearData(
172173
favoriteActions: favoriteMap,

lib/Frontend/Widgets/manage_gear.dart

Lines changed: 23 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,9 @@ class _ManageGearState extends ConsumerState<ManageGear> {
227227
TextButton(
228228
onPressed: () {
229229
setState(() {
230-
ref.read(commandQueueProvider(device!).notifier).addCommand(BluetoothMessage(message: "SHUTDOWN", priority: Priority.high, type: CommandType.system, timestamp: DateTime.now()));
230+
ref
231+
.read(commandQueueProvider(device!).notifier)
232+
.addCommand(BluetoothMessage(message: "SHUTDOWN", priority: Priority.high, type: CommandType.system, timestamp: DateTime.now()));
231233
});
232234
Navigator.pop(context);
233235
},
@@ -485,7 +487,7 @@ class ManageGearBatteryGraph extends StatelessWidget {
485487
builder: (context, value, child) {
486488
return LineChart(
487489
LineChartData(
488-
titlesData: const FlTitlesData(
490+
titlesData: FlTitlesData(
489491
rightTitles: AxisTitles(
490492
sideTitles: SideTitles(
491493
showTitles: false,
@@ -495,10 +497,10 @@ class ManageGearBatteryGraph extends StatelessWidget {
495497
sideTitles: SideTitles(showTitles: false),
496498
),
497499
leftTitles: AxisTitles(
498-
axisNameWidget: Text('Battery'),
500+
axisNameWidget: Text(convertToUwU('Battery')),
499501
),
500502
bottomTitles: AxisTitles(
501-
axisNameWidget: Text('Time'),
503+
axisNameWidget: Text(convertToUwU('Time')),
502504
sideTitles: SideTitles(showTitles: true),
503505
),
504506
),
@@ -508,7 +510,16 @@ class ManageGearBatteryGraph extends StatelessWidget {
508510
maxY: 100,
509511
minX: 0,
510512
maxX: device.batlevels.isNotEmpty ? device.batlevels.last.x : 1,
511-
lineBarsData: [LineChartBarData(spots: device.batlevels, color: Theme.of(context).colorScheme.primary, dotData: const FlDotData(show: false), isCurved: true, curveSmoothness: 0.1, preventCurveOverShooting: true, show: device.batlevels.isNotEmpty)],
513+
lineBarsData: [
514+
LineChartBarData(
515+
spots: device.batlevels,
516+
color: Theme.of(context).colorScheme.primary,
517+
dotData: const FlDotData(show: false),
518+
isCurved: true,
519+
curveSmoothness: 0.1,
520+
preventCurveOverShooting: true,
521+
show: device.batlevels.isNotEmpty)
522+
],
512523
),
513524
);
514525
},
@@ -943,11 +954,11 @@ class _ManageGearHomePositionState extends ConsumerState<ManageGearHomePosition>
943954
@override
944955
Widget build(BuildContext context) {
945956
return ExpansionTile(
946-
title: Text(manageGearHomePositionTitle()),
947-
subtitle: Text(manageGearHomePositionDescription()),
957+
title: Text(convertToUwU(manageGearHomePositionTitle())),
958+
subtitle: Text(convertToUwU(manageGearHomePositionDescription())),
948959
children: [
949960
ListTile(
950-
title: Text(sequencesEditLeftServo()),
961+
title: Text(convertToUwU(sequencesEditLeftServo())),
951962
subtitle: Slider(
952963
value: widget.device.baseStoredDevice.leftHomePosition.toDouble(),
953964
label: widget.device.baseStoredDevice.leftHomePosition.toString(),
@@ -963,7 +974,7 @@ class _ManageGearHomePositionState extends ConsumerState<ManageGearHomePosition>
963974
),
964975
),
965976
ListTile(
966-
title: Text(sequencesEditRightServo()),
977+
title: Text(convertToUwU(sequencesEditRightServo())),
967978
subtitle: Slider(
968979
value: widget.device.baseStoredDevice.rightHomePosition.toDouble(),
969980
label: widget.device.baseStoredDevice.rightHomePosition.toString(),
@@ -983,7 +994,9 @@ class _ManageGearHomePositionState extends ConsumerState<ManageGearHomePosition>
983994
}
984995

985996
void updateHomePosition() {
986-
Move move = Move.move(leftServo: (widget.device.baseStoredDevice.leftHomePosition.clamp(0, 8).toDouble() * 16).clamp(0, 127), rightServo: (widget.device.baseStoredDevice.rightHomePosition.clamp(0, 8).toDouble() * 16).clamp(0, 127));
997+
Move move = Move.move(
998+
leftServo: (widget.device.baseStoredDevice.leftHomePosition.clamp(0, 8).toDouble() * 16).clamp(0, 127),
999+
rightServo: (widget.device.baseStoredDevice.rightHomePosition.clamp(0, 8).toDouble() * 16).clamp(0, 127));
9871000
generateMoveCommand(move, widget.device, CommandType.direct, priority: Priority.high);
9881001
BluetoothMessage bluetoothMessage = BluetoothMessage(message: "SETHOME", timestamp: DateTime.now(), responseMSG: "OK", priority: Priority.high);
9891002
ref.read(commandQueueProvider(widget.device).notifier).addCommand(bluetoothMessage);

0 commit comments

Comments
 (0)