aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Murray <scott.murray@konsulko.com>2023-11-15 08:06:48 +0900
committerLisandro Perez Meyer <lpmeyer@ics.com>2023-11-15 16:43:57 +0000
commit4db7a1decabf4d9dabdf1b4f8761b80fa839533a (patch)
tree6e2eb6e8d9e8145ac2ad3fe544c9a2961a0fe7f3
parent17b4bf6deb0d4ff3648785904d96df2bf8613b9c (diff)
Rename config directory to avoid collisions
The application was failing to build due to the presence of the "config" directory, which seems to conflict with the generation of files with "flutter config" during builds with meta-flutter's flutter-app bbclass. Rename the directory and update references to it to allow building. Bug-AGL: SPEC-4969 Change-Id: I5d36d8fb2c91f0a1aa6c4deb86a040424bc35ac5 Signed-off-by: Scott Murray <scott.murray@konsulko.com>
-rw-r--r--app-config/config.yaml (renamed from config/config.yaml)0
-rw-r--r--lib/data/data_providers/vehicle_notifier.dart2
-rw-r--r--pubspec.yaml2
3 files changed, 2 insertions, 2 deletions
diff --git a/config/config.yaml b/app-config/config.yaml
index 138fe4b..138fe4b 100644
--- a/config/config.yaml
+++ b/app-config/config.yaml
diff --git a/lib/data/data_providers/vehicle_notifier.dart b/lib/data/data_providers/vehicle_notifier.dart
index 7842311..b12cbfd 100644
--- a/lib/data/data_providers/vehicle_notifier.dart
+++ b/lib/data/data_providers/vehicle_notifier.dart
@@ -127,7 +127,7 @@ class VehicleNotifier extends StateNotifier<Vehicle> {
String hostName = 'localhost';
int port = 8080;
try {
- var data = await rootBundle.loadString('config/config.yaml');
+ var data = await rootBundle.loadString('app-config/config.yaml');
final dynamic yamlMap = loadYaml(data);
if (yamlMap.containsKey('hostname')) {
diff --git a/pubspec.yaml b/pubspec.yaml
index 5dc5224..6aa9639 100644
--- a/pubspec.yaml
+++ b/pubspec.yaml
@@ -82,7 +82,7 @@ flutter:
- assets/
- animations/
- animations/hybrid_model/
- - config/
+ - app-config/
# An image asset can refer to one or more resolution-specific "variants", see
# https://flutter.dev/assets-and-images/#resolution-aware