Skip to content

Commit

Permalink
fix!: Specification changes to the ModelNotifier base class.
Browse files Browse the repository at this point in the history
  • Loading branch information
mathrunet committed Sep 12, 2022
1 parent 07eef22 commit f94a20a
Show file tree
Hide file tree
Showing 38 changed files with 357 additions and 805 deletions.
4 changes: 2 additions & 2 deletions packages/firebase_model_notifier/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ dependencies:
flutter:
sdk: flutter

katana_firebase: ^0.13.0
model_notifier: ^0.13.0
katana_firebase: ^0.14.0
model_notifier: ^0.14.0
cloud_firestore: ^3.1.5
cloud_functions: ^3.2.4

Expand Down
2 changes: 1 addition & 1 deletion packages/katana_firebase/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ dependencies:
flutter:
sdk: flutter

katana_flutter: ^0.13.0
katana_flutter: ^0.14.0
firebase_core: ^1.10.6
cloud_firestore: ^3.1.5

Expand Down
2 changes: 1 addition & 1 deletion packages/katana_flutter/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ dependencies:
flutter:
sdk: flutter

katana: ^0.13.0
katana: ^0.14.0
csv: ^5.0.0
shared_preferences: ^2.0.15
url_launcher: ^6.1.5
Expand Down
56 changes: 1 addition & 55 deletions packages/katana_module/lib/src/adapter/model_adapter.dart
Original file line number Diff line number Diff line change
Expand Up @@ -31,17 +31,6 @@ abstract class ModelAdapter<
bool disposable = true,
});

/// Performs the process of loading a document.
///
/// Usually, you specify a method that can be executed only the first time,
/// such as [loadOnce] or [listen].
///
/// If you set [listen] to `false`, [loadOnce] is used even if the model can use [listen].
TDocument loadDocument(
TDocument document, {
bool listen = true,
});

/// Gets the provider of the [Collection].
///
/// In [path], enter the path where you want to retrieve the collection.
Expand All @@ -59,30 +48,6 @@ abstract class ModelAdapter<
String path,
);

/// Performs the process of loading a collection.
///
/// Usually, you specify a method that can be executed only the first time,
/// such as [loadOnce] or [listen].
///
/// If you set [listen] to `false`, [loadOnce] is used even if the model can use [listen].
TCollection loadCollection(
TCollection collection, {
bool listen = true,
});

/// Reload the given [document].
///
/// There is no effect with respect to the document being listened to.
Future<TDocument> reloadDocument(TDocument document);

/// Reload the given [collection].
///
/// There is no effect with respect to the collection being listened to.
Future<TCollection> reloadCollection(TCollection collection);

/// Loads data for the next cursor further in the [collection] that has been read.
Future<TCollection> loadNextCollection(TCollection collection);

/// Outputs the builder to be written by the transaction.
///
/// Basically, it writes and deletes data for [collectionPath].
Expand Down Expand Up @@ -111,27 +76,8 @@ abstract class ModelAdapter<
String charSet = "23456789abcdefghjkmnpqrstuvwxy",
});

/// Performs the process of loading a collection.
///
/// Usually, you specify a method that can be executed only the first time,
/// such as [loadOnce] or [listen].
// TCollection listenCollection(TCollection collection);

/// Retrieves a document from a [collection].
///
/// By specifying [id], you can specify the ID of newly created document.
/// If not specified, [uuid] will be used.
TDocument createDocument(TCollection collection, [String? id]);

/// Retrieves a document from a [path].
TDocument createDocumentFromPath(String path);

/// Save the data in the document so that
/// you can use it after restarting the app.
Future<void> saveDocument(TDocument document);

/// Deletes information associated with a document.
Future<void> deleteDocument(TDocument document);
TDocument createDocument(String path);

/// Upload your media.
///
Expand Down
4 changes: 2 additions & 2 deletions packages/katana_module/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ dependencies:
flutter:
sdk: flutter

katana_routing: ^0.13.0
model_notifier: ^0.13.0
katana_routing: ^0.14.0
model_notifier: ^0.14.0

dev_dependencies:
flutter_test:
Expand Down
2 changes: 1 addition & 1 deletion packages/katana_routing/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ dependencies:
flutter_localizations:
sdk: flutter

katana_flutter: ^0.13.0
katana_flutter: ^0.14.0
flutter_riverpod: ^1.0.3
riverpod: ^1.0.3
google_fonts: ^2.3.2
Expand Down
4 changes: 2 additions & 2 deletions packages/masamune/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ dependencies:
flutter:
sdk: flutter

katana_module: ^0.13.0
model_notifier: ^0.13.0
katana_module: ^0.14.0
model_notifier: ^0.14.0
cached_network_image: ^3.2.0
cached_network_image_platform_interface: ^1.0.0
flutter_cache_manager: ^3.3.0
Expand Down
2 changes: 1 addition & 1 deletion packages/masamune_ads/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ dependencies:
flutter:
sdk: flutter

masamune: ^0.13.0
masamune: ^0.14.0
google_mobile_ads: ^2.0.1

dev_dependencies:
Expand Down
4 changes: 2 additions & 2 deletions packages/masamune_agora/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ environment:
dependencies:
flutter:
sdk: flutter
masamune: ^0.13.0
masamune_firebase: ^0.13.0
masamune: ^0.14.0
masamune_firebase: ^0.14.0
permission_handler: ^10.0.0
agora_rtc_engine: ^5.2.0

Expand Down
2 changes: 1 addition & 1 deletion packages/masamune_cli/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ dependencies:
yaml: ^3.1.0
archive: ^3.1.9
csv: ^5.0.1
katana: ^0.13.0
katana: ^0.14.0
image: ^3.2.0

executables:
Expand Down
4 changes: 2 additions & 2 deletions packages/masamune_firebase/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ dependencies:
flutter:
sdk: flutter

masamune: ^0.13.0
firebase_model_notifier: ^0.13.0
masamune: ^0.14.0
firebase_model_notifier: ^0.14.0
firebase_auth: ^3.3.19
firebase_storage: ^10.2.17
firebase_analytics: ^9.1.9
Expand Down
2 changes: 1 addition & 1 deletion packages/masamune_firebase_dynamic_links/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ dependencies:
flutter:
sdk: flutter

masamune_firebase: ^0.13.0
masamune_firebase: ^0.14.0
firebase_dynamic_links: ^4.0.3

dev_dependencies:
Expand Down
4 changes: 2 additions & 2 deletions packages/masamune_firebase_messaging/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ dependencies:
flutter:
sdk: flutter

masamune_firebase: ^0.13.0
firebase_model_notifier: ^0.13.0
masamune_firebase: ^0.14.0
firebase_model_notifier: ^0.14.0
firebase_messaging: ^13.0.0
flutter_local_notifications: ^9.1.5

Expand Down
2 changes: 1 addition & 1 deletion packages/masamune_local_messaging/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ dependencies:
flutter:
sdk: flutter

masamune: ^0.13.0
masamune: ^0.14.0
flutter_local_notifications: ^9.1.5
timezone: ^0.8.0

Expand Down
2 changes: 1 addition & 1 deletion packages/masamune_location/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ dependencies:
flutter:
sdk: flutter

masamune: ^0.13.0
masamune: ^0.14.0
google_maps_flutter: ^2.1.1
location: ^4.3.0
flutter_compass: ^0.7.0
Expand Down
2 changes: 1 addition & 1 deletion packages/masamune_media/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ dependencies:
flutter:
sdk: flutter

masamune: ^0.13.0
masamune: ^0.14.0
image_picker: ^0.8.3+3

dev_dependencies:
Expand Down
4 changes: 2 additions & 2 deletions packages/masamune_module/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ dependencies:
flutter:
sdk: flutter

masamune_ui: ^0.13.0
photo_view: ^0.13.0
masamune_ui: ^0.14.0
photo_view: ^0.14.0
flutter_quill: ^5.4.1
tuple: ^2.0.0
flutter_sliding_tutorial: ^1.1.3+3
Expand Down
2 changes: 1 addition & 1 deletion packages/masamune_notion/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ dependencies:
flutter:
sdk: flutter

masamune_firebase: ^0.13.0
masamune_firebase: ^0.14.0
cloud_functions: ^3.2.16

dev_dependencies:
Expand Down
2 changes: 1 addition & 1 deletion packages/masamune_purchase/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ dependencies:
flutter:
sdk: flutter

masamune: ^0.13.0
masamune: ^0.14.0
in_app_purchase: ^3.0.5
in_app_purchase_android: ^0.2.2
in_app_purchase_platform_interface: ^1.3.1
Expand Down
4 changes: 2 additions & 2 deletions packages/masamune_purchase_firebase/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ dependencies:
flutter:
sdk: flutter

masamune_firebase: ^0.13.0
masamune_purchase: ^0.13.0
masamune_firebase: ^0.14.0
masamune_purchase: ^0.14.0
in_app_purchase: ^3.0.5
in_app_purchase_android: ^0.2.2
in_app_purchase_platform_interface: ^1.3.1
Expand Down
2 changes: 1 addition & 1 deletion packages/masamune_purchase_stripe/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ dependencies:
flutter:
sdk: flutter

masamune_firebase: ^0.13.0
masamune_firebase: ^0.14.0
flutter_inappwebview: ^5.3.2
uni_links: ^0.5.1

Expand Down
2 changes: 1 addition & 1 deletion packages/masamune_signin_apple/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ environment:
dependencies:
flutter:
sdk: flutter
masamune_firebase: ^0.13.0
masamune_firebase: ^0.14.0
firebase_auth: ^3.3.4
sign_in_with_apple: ^4.1.0

Expand Down
2 changes: 1 addition & 1 deletion packages/masamune_signin_facebook/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ environment:
dependencies:
flutter:
sdk: flutter
masamune_firebase: ^0.13.0
masamune_firebase: ^0.14.0
firebase_auth: ^3.3.4
flutter_facebook_auth: ^4.3.4

Expand Down
2 changes: 1 addition & 1 deletion packages/masamune_signin_google/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ environment:
dependencies:
flutter:
sdk: flutter
masamune_firebase: ^0.13.0
masamune_firebase: ^0.14.0
firebase_auth: ^3.3.4
google_sign_in: ^5.2.1

Expand Down
2 changes: 1 addition & 1 deletion packages/masamune_signin_twitter/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ environment:
dependencies:
flutter:
sdk: flutter
masamune_firebase: ^0.13.0
masamune_firebase: ^0.14.0
firebase_auth: ^3.3.4
twitter_login: ^4.0.1

Expand Down
2 changes: 1 addition & 1 deletion packages/masamune_ui/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ dependencies:
flutter:
sdk: flutter

masamune: ^0.13.0
masamune: ^0.14.0
loadmore: ^2.0.1
wakelock: ^0.6.2
badges: ^2.0.2
Expand Down
2 changes: 1 addition & 1 deletion packages/masamune_wordpress/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ dependencies:
flutter:
sdk: flutter

masamune: ^0.13.0
masamune: ^0.14.0
wordpress_api: ^1.2.0

dev_dependencies:
Expand Down
Loading

0 comments on commit f94a20a

Please sign in to comment.