Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ class RemoteConfig
remote_config_interop.getValue(jsObject, key.toJS).asString().toDart,
),
getSource(
remote_config_interop.getValue(jsObject, key.toJS).getSource().toDart,
remote_config_interop.getValue(jsObject, key.toJS).asString().toDart,
),
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ external JSPromise fetchConfig(RemoteConfigJsImpl remoteConfig);

@JS()
@staticInterop
external JSAny getAll(RemoteConfigJsImpl remoteConfig);
external JSObject getAll(RemoteConfigJsImpl remoteConfig);

@JS()
@staticInterop
Expand Down Expand Up @@ -66,11 +66,7 @@ external JSPromise setCustomSignals(
@staticInterop
external void setLogLevel(RemoteConfigJsImpl remoteConfig, JSString logLevel);

@JS('RemoteConfig')
@staticInterop
abstract class RemoteConfigJsImpl {}

extension RemoteConfigJsImplExtension on RemoteConfigJsImpl {
extension type RemoteConfigJsImpl._(JSObject _) implements JSObject {
external AppJsImpl get app;
external SettingsJsImpl get settings;
external set settings(SettingsJsImpl value);
Expand All @@ -80,24 +76,14 @@ extension RemoteConfigJsImplExtension on RemoteConfigJsImpl {
external JSString get lastFetchStatus;
}

@JS()
@staticInterop
@anonymous
abstract class ValueJsImpl {}

extension ValueJsImplExtension on ValueJsImpl {
extension type ValueJsImpl._(JSObject _) implements JSObject {
external JSBoolean asBoolean();
external JSNumber asNumber();
external JSString asString();
external JSString getSource();
}

@JS()
@staticInterop
@anonymous
abstract class SettingsJsImpl {}

extension SettingsJsImplExtension on SettingsJsImpl {
extension type SettingsJsImpl._(JSObject _) implements JSObject {
external JSNumber get minimumFetchIntervalMillis;
external set minimumFetchIntervalMillis(JSNumber value);
external JSNumber get fetchTimeoutMillis;
Expand All @@ -115,18 +101,13 @@ abstract class ConfigUpdateObserver {
});
}

extension ConfigUpdateObserverJsImpl on ConfigUpdateObserver {
extension type ConfigUpdateObserverJsImpl._(JSObject _) implements JSObject {
external JSAny get next;
external JSAny get error;
external JSAny get complete;
}

@JS()
@staticInterop
@anonymous
abstract class ConfigUpdateJsImpl {}

extension ConfigUpdateJsImplExtension on ConfigUpdateJsImpl {
extension type ConfigUpdateJsImpl._(JSObject _) implements JSObject {
external JSSet getUpdatedKeys();
}

Expand Down
Loading