Skip to content

Commit

Permalink
fix: Changes to katana_scoped.
Browse files Browse the repository at this point in the history
  • Loading branch information
mathrunet committed Dec 25, 2022
1 parent b867d14 commit bf436d2
Show file tree
Hide file tree
Showing 14 changed files with 110 additions and 109 deletions.
28 changes: 14 additions & 14 deletions packages/masamune/example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ packages:
name: code_builder
url: "https://pub.dartlang.org"
source: hosted
version: "4.3.0"
version: "4.4.0"
collection:
dependency: transitive
description:
Expand Down Expand Up @@ -349,28 +349,28 @@ packages:
name: katana_auth
url: "https://pub.dartlang.org"
source: hosted
version: "1.1.3"
version: "1.1.4"
katana_form:
dependency: transitive
description:
name: katana_form
url: "https://pub.dartlang.org"
source: hosted
version: "1.3.0"
version: "1.3.1"
katana_indicator:
dependency: transitive
description:
name: katana_indicator
url: "https://pub.dartlang.org"
source: hosted
version: "1.1.3"
version: "1.1.4"
katana_listenables:
dependency: transitive
description:
name: katana_listenables
url: "https://pub.dartlang.org"
source: hosted
version: "1.2.9"
version: "1.2.10"
katana_listenables_annotation:
dependency: transitive
description:
Expand Down Expand Up @@ -398,21 +398,21 @@ packages:
name: katana_model
url: "https://pub.dartlang.org"
source: hosted
version: "1.3.16"
version: "1.3.17"
katana_picker:
dependency: transitive
description:
path: "../../katana_picker"
relative: true
source: path
version: "1.1.0"
name: katana_picker
url: "https://pub.dartlang.org"
source: hosted
version: "1.2.0"
katana_router:
dependency: transitive
description:
name: katana_router
url: "https://pub.dartlang.org"
source: hosted
version: "1.10.5"
version: "1.10.7"
katana_router_annotation:
dependency: transitive
description:
Expand All @@ -426,14 +426,14 @@ packages:
name: katana_scoped
url: "https://pub.dartlang.org"
source: hosted
version: "1.6.2"
version: "1.7.0"
katana_shorten:
dependency: transitive
description:
name: katana_shorten
url: "https://pub.dartlang.org"
source: hosted
version: "1.1.4"
version: "1.2.0"
katana_storage:
dependency: transitive
description:
Expand All @@ -447,7 +447,7 @@ packages:
name: katana_theme
url: "https://pub.dartlang.org"
source: hosted
version: "1.2.7"
version: "1.2.8"
katana_theme_annotation:
dependency: transitive
description:
Expand Down
2 changes: 1 addition & 1 deletion packages/masamune/lib/model/model.dart
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ abstract class ModelQueryBase<TModel extends ChangeNotifier> {
/// Create a callback to pass parameters to monitor the state with the `watch` method.
///
/// 状態を`watch`メソッドで監視するためのパラメーターを渡すためのコールバックを作成します。
TModel Function() call();
TModel Function(Ref ref) call();

/// Returns a name to pass to [ScopedValue].
///
Expand Down
2 changes: 1 addition & 1 deletion packages/masamune/lib/scoped/controller.dart
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ abstract class ControllerQueryBase<TController extends ChangeNotifier> {
/// Create a callback to pass parameters to monitor the state with the `watch` method.
///
/// 状態を`watch`メソッドで監視するためのパラメーターを渡すためのコールバックを作成します。
TController Function() call();
TController Function(Ref ref) call();

/// Returns a name to pass to [ScopedValue].
///
Expand Down
4 changes: 2 additions & 2 deletions packages/masamune/lib/storage/storage.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
part of masamune;

extension MasamunePickerUploaderAppRefExtensions on PickerValue {
Future<String> upload({String dirPath = ""}) async {
Future<Uri> upload({String dirPath = ""}) async {
if (path.isEmpty) {
throw Exception("[path] was not found.");
}
Expand All @@ -13,6 +13,6 @@ extension MasamunePickerUploaderAppRefExtensions on PickerValue {
),
);
await storage.upload(path!);
return await storage.publicURI;
return await storage.fetchPublicURI();
}
}
26 changes: 13 additions & 13 deletions packages/masamune/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -174,28 +174,28 @@ packages:
name: katana_auth
url: "https://pub.dartlang.org"
source: hosted
version: "1.1.3"
version: "1.1.4"
katana_form:
dependency: "direct main"
description:
name: katana_form
url: "https://pub.dartlang.org"
source: hosted
version: "1.3.0"
version: "1.3.1"
katana_indicator:
dependency: "direct main"
description:
name: katana_indicator
url: "https://pub.dartlang.org"
source: hosted
version: "1.1.3"
version: "1.1.4"
katana_listenables:
dependency: "direct main"
description:
name: katana_listenables
url: "https://pub.dartlang.org"
source: hosted
version: "1.2.9"
version: "1.2.10"
katana_listenables_annotation:
dependency: transitive
description:
Expand Down Expand Up @@ -223,21 +223,21 @@ packages:
name: katana_model
url: "https://pub.dartlang.org"
source: hosted
version: "1.3.16"
version: "1.3.17"
katana_picker:
dependency: "direct main"
description:
path: "../katana_picker"
relative: true
source: path
version: "1.1.0"
name: katana_picker
url: "https://pub.dartlang.org"
source: hosted
version: "1.2.0"
katana_router:
dependency: "direct main"
description:
name: katana_router
url: "https://pub.dartlang.org"
source: hosted
version: "1.10.5"
version: "1.10.7"
katana_router_annotation:
dependency: transitive
description:
Expand All @@ -251,14 +251,14 @@ packages:
name: katana_scoped
url: "https://pub.dartlang.org"
source: hosted
version: "1.6.2"
version: "1.7.0"
katana_shorten:
dependency: "direct main"
description:
name: katana_shorten
url: "https://pub.dartlang.org"
source: hosted
version: "1.1.4"
version: "1.2.0"
katana_storage:
dependency: "direct main"
description:
Expand All @@ -272,7 +272,7 @@ packages:
name: katana_theme
url: "https://pub.dartlang.org"
source: hosted
version: "1.2.7"
version: "1.2.8"
katana_theme_annotation:
dependency: transitive
description:
Expand Down
3 changes: 1 addition & 2 deletions packages/masamune/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,11 @@ dependencies:
katana_localization: ^1.1.20
katana_form: ^1.3.1
katana_auth: ^1.1.4
katana_picker: ^1.2.0
katana_ui:
path: ../katana_ui
masamune_annotation:
path: ../masamune_annotation
katana_picker:
path: ../katana_picker
katana_storage:
path: ../katana_storage
dev_dependencies:
Expand Down

0 comments on commit bf436d2

Please sign in to comment.