Skip to content

Commit c71289d

Browse files
feat: add ability to listed for accessed values
1 parent a3ce7b8 commit c71289d

File tree

6 files changed

+16
-13
lines changed

6 files changed

+16
-13
lines changed

configurator/lib/src/configuration.dart

+7-7
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ class Configuration {
109109

110110
if (scope != null) {
111111
publisher.sink.add(
112-
ConfigKeyLog(KeyType.flag, id, value),
112+
ConfigKeyLog(KeyType.flag, scope, id, value),
113113
);
114114
}
115115

@@ -125,7 +125,7 @@ class Configuration {
125125

126126
if (scope != null) {
127127
publisher.sink.add(
128-
ConfigKeyLog(KeyType.color, id, value),
128+
ConfigKeyLog(KeyType.color, scope, id, value),
129129
);
130130
}
131131

@@ -141,7 +141,7 @@ class Configuration {
141141

142142
if (scope != null) {
143143
publisher.sink.add(
144-
ConfigKeyLog(KeyType.route, id, value),
144+
ConfigKeyLog(KeyType.route, scope, id, value),
145145
);
146146
}
147147

@@ -157,7 +157,7 @@ class Configuration {
157157

158158
if (scope != null) {
159159
publisher.sink.add(
160-
ConfigKeyLog(KeyType.image, id, value),
160+
ConfigKeyLog(KeyType.image, scope, id, value),
161161
);
162162
}
163163

@@ -185,7 +185,7 @@ class Configuration {
185185

186186
if (scope != null) {
187187
publisher.sink.add(
188-
ConfigKeyLog(KeyType.misc, id, value),
188+
ConfigKeyLog(KeyType.misc, scope, id, value),
189189
);
190190
}
191191

@@ -201,7 +201,7 @@ class Configuration {
201201

202202
if (scope != null) {
203203
publisher.sink.add(
204-
ConfigKeyLog(KeyType.textStyle, id, value),
204+
ConfigKeyLog(KeyType.textStyle, scope, id, value),
205205
);
206206
}
207207

@@ -217,7 +217,7 @@ class Configuration {
217217

218218
if (scope != null) {
219219
publisher.sink.add(
220-
ConfigKeyLog(KeyType.size, id, value),
220+
ConfigKeyLog(KeyType.size, scope, id, value),
221221
);
222222
}
223223

configurator/lib/src/models/config_access_log.dart

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11

2+
import 'package:configurator/configurator.dart';
3+
24
enum KeyType {
35
flag,
46
string,
@@ -14,6 +16,7 @@ class ConfigKeyLog<K, V> {
1416
final KeyType type;
1517
final K key;
1618
final V value;
19+
final ConfigScope scope;
1720

18-
ConfigKeyLog(this.type, this.key, this.value);
21+
ConfigKeyLog(this.type, this.scope, this.key, this.value);
1922
}

configurator/pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: configurator
22
description: A new Flutter package project.
3-
version: 1.0.9
3+
version: 1.0.10
44
homepage:
55

66
environment:
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"path_provider_foundation","path":"/Users/cgiuliani/.pub-cache/hosted/pub.dev/path_provider_foundation-2.4.0/","shared_darwin_source":true,"native_build":true,"dependencies":[]}],"android":[{"name":"path_provider_android","path":"/Users/cgiuliani/.pub-cache/hosted/pub.dev/path_provider_android-2.2.4/","native_build":true,"dependencies":[]}],"macos":[{"name":"path_provider_foundation","path":"/Users/cgiuliani/.pub-cache/hosted/pub.dev/path_provider_foundation-2.4.0/","shared_darwin_source":true,"native_build":true,"dependencies":[]}],"linux":[{"name":"path_provider_linux","path":"/Users/cgiuliani/.pub-cache/hosted/pub.dev/path_provider_linux-2.2.1/","native_build":false,"dependencies":[]}],"windows":[{"name":"path_provider_windows","path":"/Users/cgiuliani/.pub-cache/hosted/pub.dev/path_provider_windows-2.2.1/","native_build":false,"dependencies":[]}],"web":[]},"dependencyGraph":[{"name":"path_provider","dependencies":["path_provider_android","path_provider_foundation","path_provider_linux","path_provider_windows"]},{"name":"path_provider_android","dependencies":[]},{"name":"path_provider_foundation","dependencies":[]},{"name":"path_provider_linux","dependencies":[]},{"name":"path_provider_windows","dependencies":[]}],"date_created":"2024-06-27 19:31:43.647582","version":"3.19.0"}
1+
{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"path_provider_foundation","path":"/Users/cgiuliani/.pub-cache/hosted/pub.dev/path_provider_foundation-2.4.0/","shared_darwin_source":true,"native_build":true,"dependencies":[]}],"android":[{"name":"path_provider_android","path":"/Users/cgiuliani/.pub-cache/hosted/pub.dev/path_provider_android-2.2.4/","native_build":true,"dependencies":[]}],"macos":[{"name":"path_provider_foundation","path":"/Users/cgiuliani/.pub-cache/hosted/pub.dev/path_provider_foundation-2.4.0/","shared_darwin_source":true,"native_build":true,"dependencies":[]}],"linux":[{"name":"path_provider_linux","path":"/Users/cgiuliani/.pub-cache/hosted/pub.dev/path_provider_linux-2.2.1/","native_build":false,"dependencies":[]}],"windows":[{"name":"path_provider_windows","path":"/Users/cgiuliani/.pub-cache/hosted/pub.dev/path_provider_windows-2.2.1/","native_build":false,"dependencies":[]}],"web":[]},"dependencyGraph":[{"name":"path_provider","dependencies":["path_provider_android","path_provider_foundation","path_provider_linux","path_provider_windows"]},{"name":"path_provider_android","dependencies":[]},{"name":"path_provider_foundation","dependencies":[]},{"name":"path_provider_linux","dependencies":[]},{"name":"path_provider_windows","dependencies":[]}],"date_created":"2024-06-27 21:03:20.202405","version":"3.19.0"}

configurator_flutter/lib/src/extensions/config_theme.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ extension ThemeF on Configuration {
3232

3333
if (scope != null) {
3434
publisher.sink.add(
35-
ConfigKeyLog(KeyType.flag, id, value),
35+
ConfigKeyLog(KeyType.flag, scope, id, value),
3636
);
3737
}
3838

configurator_flutter/pubspec.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: configurator_flutter
22
description: A new Flutter package project.
3-
version: 1.0.9
3+
version: 1.0.10
44
homepage:
55

66
environment:
@@ -31,7 +31,7 @@ dependencies:
3131
git:
3232
url: [email protected]:camrongiuliani/configurator.git
3333
path: configurator
34-
ref: 1.0.9
34+
ref: 1.0.10
3535

3636
dev_dependencies:
3737
flutter_test:

0 commit comments

Comments
 (0)