From 54d001f1759ef7d30e4b97a2a4dcb0deaa3bb9c9 Mon Sep 17 00:00:00 2001 From: stella Date: Thu, 29 Feb 2024 22:49:25 +0900 Subject: [PATCH 1/2] =?UTF-8?q?update:=20WidgetBook=E3=82=92=E8=BF=BD?= =?UTF-8?q?=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 8 + lib/widgetbook.dart | 53 +++ lib/widgetbook.directories.g.dart | 41 ++ lib/widgets/button/feed_like_button.dart | 9 + lib/widgets/button/follow_button.dart | 9 + macos/Podfile | 2 +- macos/Podfile.lock | 362 ++++++++++++++++-- macos/Runner.xcodeproj/project.pbxproj | 36 +- .../xcshareddata/xcschemes/Runner.xcscheme | 10 +- pubspec.lock | 104 ++++- pubspec.yaml | 5 +- 11 files changed, 580 insertions(+), 59 deletions(-) create mode 100644 lib/widgetbook.dart create mode 100644 lib/widgetbook.directories.g.dart diff --git a/README.md b/README.md index 7c60d284..f3fd6b15 100644 --- a/README.md +++ b/README.md @@ -50,3 +50,11 @@ $ rover graph introspect https://router-6ouzjmdzha-an.a.run.app -o lib/schema.gr ``` https://www.apollographql.com/docs/rover/commands/supergraphs + +## WidgetBook + +以下のコマンドで起動する。 +`macos`の部分は使用しているOSに変更する必要がある。 +``` +$ flutter run -t lib/widgetbook.dart -d macos +``` diff --git a/lib/widgetbook.dart b/lib/widgetbook.dart new file mode 100644 index 00000000..c891cecd --- /dev/null +++ b/lib/widgetbook.dart @@ -0,0 +1,53 @@ +// widgetbook.dart + +import 'package:aipictors/config.dart'; +import 'package:aipictors/handlers/background_message_handler.dart'; +import 'package:aipictors/repositories/config_repository.dart'; +import 'package:aipictors/repositories/hive_repository.dart'; +import 'package:aipictors/repositories/survey_repository.dart'; +import 'package:aipictors/repositories/translation_repository.dart'; +import 'package:firebase_analytics/firebase_analytics.dart'; +import 'package:firebase_core/firebase_core.dart'; +import 'package:firebase_crashlytics/firebase_crashlytics.dart'; +import 'package:firebase_in_app_messaging/firebase_in_app_messaging.dart'; +import 'package:firebase_messaging/firebase_messaging.dart'; +import 'package:firebase_remote_config/firebase_remote_config.dart'; +import 'package:flutter/foundation.dart'; +import 'package:flutter/material.dart'; +import 'package:flutter_riverpod/flutter_riverpod.dart'; +import 'package:widgetbook/widgetbook.dart'; +import 'package:widgetbook_annotation/widgetbook_annotation.dart' as widgetbook; + +// Import the generated directories variable +import 'package:aipictors/widgetbook.directories.g.dart'; + +@widgetbook.App() +Future main() async { + // runAppより前にFlutterEngineを使用する + WidgetsFlutterBinding.ensureInitialized(); + + // Firebaseを初期化する + // await Firebase.initializeApp(); + runApp(const ProviderScope(child: WidgetbookApp())); +} + +@widgetbook.App() +class WidgetbookApp extends StatelessWidget { + const WidgetbookApp({super.key}); + + @override + Widget build(BuildContext context) { + // 参考: https://docs.widgetbook.io/getting-started/setup + // https://zenn.dev/natoring/articles/3d6638ab499117 + return Widgetbook.material( + directories: directories, + addons: [ + DeviceFrameAddon(devices: Devices.ios.all), + InspectorAddon(), + GridAddon(100), + AlignmentAddon(), + ZoomAddon(), + ], + ); + } +} diff --git a/lib/widgetbook.directories.g.dart b/lib/widgetbook.directories.g.dart new file mode 100644 index 00000000..83c41b33 --- /dev/null +++ b/lib/widgetbook.directories.g.dart @@ -0,0 +1,41 @@ +// coverage:ignore-file +// ignore_for_file: type=lint +// ignore_for_file: unused_import, prefer_relative_imports, directives_ordering + +// GENERATED CODE - DO NOT MODIFY BY HAND + +// ************************************************************************** +// AppGenerator +// ************************************************************************** + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:aipictors/widgets/button/feed_like_button.dart' as _i2; +import 'package:aipictors/widgets/button/follow_button.dart' as _i3; +import 'package:widgetbook/widgetbook.dart' as _i1; + +final directories = <_i1.WidgetbookNode>[ + _i1.WidgetbookFolder( + name: 'widgets', + children: [ + _i1.WidgetbookFolder( + name: 'button', + children: [ + _i1.WidgetbookLeafComponent( + name: 'FeedLikeButton', + useCase: _i1.WidgetbookUseCase( + name: 'FeedLikeButton', + builder: _i2.feedLikeButton, + ), + ), + _i1.WidgetbookLeafComponent( + name: 'FollowButton', + useCase: _i1.WidgetbookUseCase( + name: 'FollowButton', + builder: _i3.followButton, + ), + ), + ], + ) + ], + ) +]; diff --git a/lib/widgets/button/feed_like_button.dart b/lib/widgets/button/feed_like_button.dart index 40cb295d..117fb8d9 100644 --- a/lib/widgets/button/feed_like_button.dart +++ b/lib/widgets/button/feed_like_button.dart @@ -5,6 +5,15 @@ import 'package:flutter_hooks/flutter_hooks.dart'; import 'package:go_router/go_router.dart'; import 'package:hooks_riverpod/hooks_riverpod.dart'; import 'package:like_button/like_button.dart'; +import 'package:widgetbook_annotation/widgetbook_annotation.dart' as widgetbook; + +@widgetbook.UseCase( + name: 'FeedLikeButton', + type: FeedLikeButton, +) +FeedLikeButton feedLikeButton(BuildContext context) { + return FeedLikeButton(count: 0, isActive: true, onTap: () {}); +} class FeedLikeButton extends HookConsumerWidget { const FeedLikeButton({ diff --git a/lib/widgets/button/follow_button.dart b/lib/widgets/button/follow_button.dart index f44ed40a..02259a61 100644 --- a/lib/widgets/button/follow_button.dart +++ b/lib/widgets/button/follow_button.dart @@ -5,6 +5,15 @@ import 'package:flutter/material.dart'; import 'package:flutter_hooks/flutter_hooks.dart'; import 'package:go_router/go_router.dart'; import 'package:hooks_riverpod/hooks_riverpod.dart'; +import 'package:widgetbook_annotation/widgetbook_annotation.dart' as widgetbook; + +@widgetbook.UseCase( + name: 'FollowButton', + type: FollowButton, +) +FollowButton followButton(BuildContext context) { + return FollowButton(isActive: true, onPressed: () async {}); +} class FollowButton extends HookConsumerWidget { const FollowButton({ diff --git a/macos/Podfile b/macos/Podfile index c795730d..b52666a1 100644 --- a/macos/Podfile +++ b/macos/Podfile @@ -1,4 +1,4 @@ -platform :osx, '10.14' +platform :osx, '10.15' # CocoaPods analytics sends network stats synchronously affecting flutter build latency. ENV['COCOAPODS_DISABLE_STATS'] = 'true' diff --git a/macos/Podfile.lock b/macos/Podfile.lock index 58ebdcc6..7fce4e8b 100644 --- a/macos/Podfile.lock +++ b/macos/Podfile.lock @@ -1,111 +1,401 @@ PODS: - - Firebase/Auth (10.9.0): + - AppAuth (1.6.2): + - AppAuth/Core (= 1.6.2) + - AppAuth/ExternalUserAgent (= 1.6.2) + - AppAuth/Core (1.6.2) + - AppAuth/ExternalUserAgent (1.6.2): + - AppAuth/Core + - audioplayers_darwin (0.0.1): + - FlutterMacOS + - connectivity_plus (0.0.1): + - FlutterMacOS + - ReachabilitySwift + - device_info_plus (0.0.1): + - FlutterMacOS + - dynamic_color (0.0.2): + - FlutterMacOS + - Firebase/Analytics (10.18.0): + - Firebase/Core + - Firebase/Auth (10.18.0): + - Firebase/CoreOnly + - FirebaseAuth (~> 10.18.0) + - Firebase/Core (10.18.0): + - Firebase/CoreOnly + - FirebaseAnalytics (~> 10.18.0) + - Firebase/CoreOnly (10.18.0): + - FirebaseCore (= 10.18.0) + - Firebase/Crashlytics (10.18.0): - Firebase/CoreOnly - - FirebaseAuth (~> 10.9.0) - - Firebase/CoreOnly (10.9.0): - - FirebaseCore (= 10.9.0) - - firebase_auth (4.6.2): - - Firebase/Auth (~> 10.9.0) - - Firebase/CoreOnly (~> 10.9.0) + - FirebaseCrashlytics (~> 10.18.0) + - Firebase/Installations (10.18.0): + - Firebase/CoreOnly + - FirebaseInstallations (~> 10.18.0) + - Firebase/Messaging (10.18.0): + - Firebase/CoreOnly + - FirebaseMessaging (~> 10.18.0) + - Firebase/RemoteConfig (10.18.0): + - Firebase/CoreOnly + - FirebaseRemoteConfig (~> 10.18.0) + - firebase_analytics (10.8.0): + - Firebase/Analytics (= 10.18.0) - firebase_core - FlutterMacOS - - firebase_core (2.13.1): - - Firebase/CoreOnly (~> 10.9.0) + - firebase_app_installations (0.2.4-8): + - Firebase/CoreOnly (~> 10.18.0) + - Firebase/Installations (~> 10.18.0) + - firebase_core + - FlutterMacOS + - firebase_auth (4.16.0): + - Firebase/Auth (~> 10.18.0) + - Firebase/CoreOnly (~> 10.18.0) + - firebase_core - FlutterMacOS - - FirebaseAppCheckInterop (10.10.0) - - FirebaseAuth (10.9.0): - - FirebaseAppCheckInterop (~> 10.0) + - firebase_core (2.24.2): + - Firebase/CoreOnly (~> 10.18.0) + - FlutterMacOS + - firebase_crashlytics (3.4.9): + - Firebase/CoreOnly (~> 10.18.0) + - Firebase/Crashlytics (~> 10.18.0) + - firebase_core + - FlutterMacOS + - firebase_messaging (14.7.10): + - Firebase/CoreOnly (~> 10.18.0) + - Firebase/Messaging (~> 10.18.0) + - firebase_core + - FlutterMacOS + - firebase_remote_config (4.3.8): + - Firebase/CoreOnly (~> 10.18.0) + - Firebase/RemoteConfig (~> 10.18.0) + - firebase_core + - FlutterMacOS + - FirebaseABTesting (10.21.0): + - FirebaseCore (~> 10.0) + - FirebaseAnalytics (10.18.0): + - FirebaseAnalytics/AdIdSupport (= 10.18.0) + - FirebaseCore (~> 10.0) + - FirebaseInstallations (~> 10.0) + - GoogleUtilities/AppDelegateSwizzler (~> 7.11) + - GoogleUtilities/MethodSwizzler (~> 7.11) + - GoogleUtilities/Network (~> 7.11) + - "GoogleUtilities/NSData+zlib (~> 7.11)" + - nanopb (< 2.30910.0, >= 2.30908.0) + - FirebaseAnalytics/AdIdSupport (10.18.0): + - FirebaseCore (~> 10.0) + - FirebaseInstallations (~> 10.0) + - GoogleAppMeasurement (= 10.18.0) + - GoogleUtilities/AppDelegateSwizzler (~> 7.11) + - GoogleUtilities/MethodSwizzler (~> 7.11) + - GoogleUtilities/Network (~> 7.11) + - "GoogleUtilities/NSData+zlib (~> 7.11)" + - nanopb (< 2.30910.0, >= 2.30908.0) + - FirebaseAppCheckInterop (10.21.0) + - FirebaseAuth (10.18.0): + - FirebaseAppCheckInterop (~> 10.17) - FirebaseCore (~> 10.0) - GoogleUtilities/AppDelegateSwizzler (~> 7.8) - GoogleUtilities/Environment (~> 7.8) - GTMSessionFetcher/Core (< 4.0, >= 2.1) - - FirebaseCore (10.9.0): + - RecaptchaInterop (~> 100.0) + - FirebaseCore (10.18.0): - FirebaseCoreInternal (~> 10.0) + - GoogleUtilities/Environment (~> 7.12) + - GoogleUtilities/Logger (~> 7.12) + - FirebaseCoreExtension (10.21.0): + - FirebaseCore (~> 10.0) + - FirebaseCoreInternal (10.21.0): + - "GoogleUtilities/NSData+zlib (~> 7.8)" + - FirebaseCrashlytics (10.18.0): + - FirebaseCore (~> 10.5) + - FirebaseInstallations (~> 10.0) + - FirebaseSessions (~> 10.5) + - GoogleDataTransport (~> 9.2) + - GoogleUtilities/Environment (~> 7.8) + - nanopb (< 2.30910.0, >= 2.30908.0) + - PromisesObjC (~> 2.1) + - FirebaseInstallations (10.18.0): + - FirebaseCore (~> 10.0) + - GoogleUtilities/Environment (~> 7.8) + - GoogleUtilities/UserDefaults (~> 7.8) + - PromisesObjC (~> 2.1) + - FirebaseMessaging (10.18.0): + - FirebaseCore (~> 10.0) + - FirebaseInstallations (~> 10.0) + - GoogleDataTransport (~> 9.2) + - GoogleUtilities/AppDelegateSwizzler (~> 7.8) + - GoogleUtilities/Environment (~> 7.8) + - GoogleUtilities/Reachability (~> 7.8) + - GoogleUtilities/UserDefaults (~> 7.8) + - nanopb (< 2.30910.0, >= 2.30908.0) + - FirebaseRemoteConfig (10.18.0): + - FirebaseABTesting (~> 10.0) + - FirebaseCore (~> 10.0) + - FirebaseInstallations (~> 10.0) + - FirebaseSharedSwift (~> 10.0) - GoogleUtilities/Environment (~> 7.8) - - GoogleUtilities/Logger (~> 7.8) - - FirebaseCoreInternal (10.9.0): - "GoogleUtilities/NSData+zlib (~> 7.8)" + - FirebaseSessions (10.21.0): + - FirebaseCore (~> 10.5) + - FirebaseCoreExtension (~> 10.0) + - FirebaseInstallations (~> 10.0) + - GoogleDataTransport (~> 9.2) + - GoogleUtilities/Environment (~> 7.10) + - nanopb (< 2.30910.0, >= 2.30908.0) + - PromisesSwift (~> 2.1) + - FirebaseSharedSwift (10.21.0) + - flutter_app_badger (1.3.0): + - FlutterMacOS + - flutter_local_notifications (0.0.1): + - FlutterMacOS - FlutterMacOS (1.0.0) - FMDB (2.7.5): - FMDB/standard (= 2.7.5) - FMDB/standard (2.7.5) - - GoogleUtilities/AppDelegateSwizzler (7.11.1): + - google_sign_in_ios (0.0.1): + - Flutter + - FlutterMacOS + - GoogleSignIn (~> 7.0) + - GoogleAppMeasurement (10.18.0): + - GoogleAppMeasurement/AdIdSupport (= 10.18.0) + - GoogleUtilities/AppDelegateSwizzler (~> 7.11) + - GoogleUtilities/MethodSwizzler (~> 7.11) + - GoogleUtilities/Network (~> 7.11) + - "GoogleUtilities/NSData+zlib (~> 7.11)" + - nanopb (< 2.30910.0, >= 2.30908.0) + - GoogleAppMeasurement/AdIdSupport (10.18.0): + - GoogleAppMeasurement/WithoutAdIdSupport (= 10.18.0) + - GoogleUtilities/AppDelegateSwizzler (~> 7.11) + - GoogleUtilities/MethodSwizzler (~> 7.11) + - GoogleUtilities/Network (~> 7.11) + - "GoogleUtilities/NSData+zlib (~> 7.11)" + - nanopb (< 2.30910.0, >= 2.30908.0) + - GoogleAppMeasurement/WithoutAdIdSupport (10.18.0): + - GoogleUtilities/AppDelegateSwizzler (~> 7.11) + - GoogleUtilities/MethodSwizzler (~> 7.11) + - GoogleUtilities/Network (~> 7.11) + - "GoogleUtilities/NSData+zlib (~> 7.11)" + - nanopb (< 2.30910.0, >= 2.30908.0) + - GoogleDataTransport (9.3.0): + - GoogleUtilities/Environment (~> 7.7) + - nanopb (< 2.30910.0, >= 2.30908.0) + - PromisesObjC (< 3.0, >= 1.2) + - GoogleSignIn (7.0.0): + - AppAuth (~> 1.5) + - GTMAppAuth (< 3.0, >= 1.3) + - GTMSessionFetcher/Core (< 4.0, >= 1.1) + - GoogleUtilities/AppDelegateSwizzler (7.12.0): - GoogleUtilities/Environment - GoogleUtilities/Logger - GoogleUtilities/Network - - GoogleUtilities/Environment (7.11.1): + - GoogleUtilities/Environment (7.12.0): - PromisesObjC (< 3.0, >= 1.2) - - GoogleUtilities/Logger (7.11.1): + - GoogleUtilities/Logger (7.12.0): - GoogleUtilities/Environment - - GoogleUtilities/Network (7.11.1): + - GoogleUtilities/MethodSwizzler (7.12.0): + - GoogleUtilities/Logger + - GoogleUtilities/Network (7.12.0): - GoogleUtilities/Logger - "GoogleUtilities/NSData+zlib" - GoogleUtilities/Reachability - - "GoogleUtilities/NSData+zlib (7.11.1)" - - GoogleUtilities/Reachability (7.11.1): + - "GoogleUtilities/NSData+zlib (7.12.0)" + - GoogleUtilities/Reachability (7.12.0): - GoogleUtilities/Logger - - GTMSessionFetcher/Core (3.1.1) + - GoogleUtilities/UserDefaults (7.12.0): + - GoogleUtilities/Logger + - GTMAppAuth (2.0.0): + - AppAuth/Core (~> 1.6) + - GTMSessionFetcher/Core (< 4.0, >= 1.5) + - GTMSessionFetcher/Core (3.3.1) + - nanopb (2.30909.1): + - nanopb/decode (= 2.30909.1) + - nanopb/encode (= 2.30909.1) + - nanopb/decode (2.30909.1) + - nanopb/encode (2.30909.1) - package_info_plus (0.0.1): - FlutterMacOS - path_provider_foundation (0.0.1): - Flutter - FlutterMacOS - - PromisesObjC (2.2.0) + - PromisesObjC (2.4.0) + - PromisesSwift (2.4.0): + - PromisesObjC (= 2.4.0) + - ReachabilitySwift (5.0.0) + - Sentry/HybridSDK (8.17.2): + - SentryPrivate (= 8.17.2) + - sentry_flutter (0.0.1): + - Flutter + - FlutterMacOS + - Sentry/HybridSDK (= 8.17.2) + - SentryPrivate (8.17.2) + - share_plus (0.0.1): + - FlutterMacOS + - shared_preferences_foundation (0.0.1): + - Flutter + - FlutterMacOS + - sign_in_with_apple (0.0.1): + - FlutterMacOS - sqflite (0.0.2): - FlutterMacOS - FMDB (>= 2.7.5) + - url_launcher_macos (0.0.1): + - FlutterMacOS DEPENDENCIES: + - audioplayers_darwin (from `Flutter/ephemeral/.symlinks/plugins/audioplayers_darwin/macos`) + - connectivity_plus (from `Flutter/ephemeral/.symlinks/plugins/connectivity_plus/macos`) + - device_info_plus (from `Flutter/ephemeral/.symlinks/plugins/device_info_plus/macos`) + - dynamic_color (from `Flutter/ephemeral/.symlinks/plugins/dynamic_color/macos`) + - firebase_analytics (from `Flutter/ephemeral/.symlinks/plugins/firebase_analytics/macos`) + - firebase_app_installations (from `Flutter/ephemeral/.symlinks/plugins/firebase_app_installations/macos`) - firebase_auth (from `Flutter/ephemeral/.symlinks/plugins/firebase_auth/macos`) - firebase_core (from `Flutter/ephemeral/.symlinks/plugins/firebase_core/macos`) + - firebase_crashlytics (from `Flutter/ephemeral/.symlinks/plugins/firebase_crashlytics/macos`) + - firebase_messaging (from `Flutter/ephemeral/.symlinks/plugins/firebase_messaging/macos`) + - firebase_remote_config (from `Flutter/ephemeral/.symlinks/plugins/firebase_remote_config/macos`) + - flutter_app_badger (from `Flutter/ephemeral/.symlinks/plugins/flutter_app_badger/macos`) + - flutter_local_notifications (from `Flutter/ephemeral/.symlinks/plugins/flutter_local_notifications/macos`) - FlutterMacOS (from `Flutter/ephemeral`) + - google_sign_in_ios (from `Flutter/ephemeral/.symlinks/plugins/google_sign_in_ios/darwin`) - package_info_plus (from `Flutter/ephemeral/.symlinks/plugins/package_info_plus/macos`) - path_provider_foundation (from `Flutter/ephemeral/.symlinks/plugins/path_provider_foundation/darwin`) + - sentry_flutter (from `Flutter/ephemeral/.symlinks/plugins/sentry_flutter/macos`) + - share_plus (from `Flutter/ephemeral/.symlinks/plugins/share_plus/macos`) + - shared_preferences_foundation (from `Flutter/ephemeral/.symlinks/plugins/shared_preferences_foundation/darwin`) + - sign_in_with_apple (from `Flutter/ephemeral/.symlinks/plugins/sign_in_with_apple/macos`) - sqflite (from `Flutter/ephemeral/.symlinks/plugins/sqflite/macos`) + - url_launcher_macos (from `Flutter/ephemeral/.symlinks/plugins/url_launcher_macos/macos`) SPEC REPOS: trunk: + - AppAuth - Firebase + - FirebaseABTesting + - FirebaseAnalytics - FirebaseAppCheckInterop - FirebaseAuth - FirebaseCore + - FirebaseCoreExtension - FirebaseCoreInternal + - FirebaseCrashlytics + - FirebaseInstallations + - FirebaseMessaging + - FirebaseRemoteConfig + - FirebaseSessions + - FirebaseSharedSwift - FMDB + - GoogleAppMeasurement + - GoogleDataTransport + - GoogleSignIn - GoogleUtilities + - GTMAppAuth - GTMSessionFetcher + - nanopb - PromisesObjC + - PromisesSwift + - ReachabilitySwift + - Sentry + - SentryPrivate EXTERNAL SOURCES: + audioplayers_darwin: + :path: Flutter/ephemeral/.symlinks/plugins/audioplayers_darwin/macos + connectivity_plus: + :path: Flutter/ephemeral/.symlinks/plugins/connectivity_plus/macos + device_info_plus: + :path: Flutter/ephemeral/.symlinks/plugins/device_info_plus/macos + dynamic_color: + :path: Flutter/ephemeral/.symlinks/plugins/dynamic_color/macos + firebase_analytics: + :path: Flutter/ephemeral/.symlinks/plugins/firebase_analytics/macos + firebase_app_installations: + :path: Flutter/ephemeral/.symlinks/plugins/firebase_app_installations/macos firebase_auth: :path: Flutter/ephemeral/.symlinks/plugins/firebase_auth/macos firebase_core: :path: Flutter/ephemeral/.symlinks/plugins/firebase_core/macos + firebase_crashlytics: + :path: Flutter/ephemeral/.symlinks/plugins/firebase_crashlytics/macos + firebase_messaging: + :path: Flutter/ephemeral/.symlinks/plugins/firebase_messaging/macos + firebase_remote_config: + :path: Flutter/ephemeral/.symlinks/plugins/firebase_remote_config/macos + flutter_app_badger: + :path: Flutter/ephemeral/.symlinks/plugins/flutter_app_badger/macos + flutter_local_notifications: + :path: Flutter/ephemeral/.symlinks/plugins/flutter_local_notifications/macos FlutterMacOS: :path: Flutter/ephemeral + google_sign_in_ios: + :path: Flutter/ephemeral/.symlinks/plugins/google_sign_in_ios/darwin package_info_plus: :path: Flutter/ephemeral/.symlinks/plugins/package_info_plus/macos path_provider_foundation: :path: Flutter/ephemeral/.symlinks/plugins/path_provider_foundation/darwin + sentry_flutter: + :path: Flutter/ephemeral/.symlinks/plugins/sentry_flutter/macos + share_plus: + :path: Flutter/ephemeral/.symlinks/plugins/share_plus/macos + shared_preferences_foundation: + :path: Flutter/ephemeral/.symlinks/plugins/shared_preferences_foundation/darwin + sign_in_with_apple: + :path: Flutter/ephemeral/.symlinks/plugins/sign_in_with_apple/macos sqflite: :path: Flutter/ephemeral/.symlinks/plugins/sqflite/macos + url_launcher_macos: + :path: Flutter/ephemeral/.symlinks/plugins/url_launcher_macos/macos SPEC CHECKSUMS: - Firebase: bd152f0f3d278c4060c5c71359db08ebcfd5a3e2 - firebase_auth: 508cdcb098f7803a47151b8d4047195e4e68e6e2 - firebase_core: bef54c6955ffe824bb73ec34090f4013b6921bc1 - FirebaseAppCheckInterop: 7d3521f56872cf74a01792c0a095a30e054ff6ae - FirebaseAuth: 21d5e902fcea44d0d961540fc4742966ae6118cc - FirebaseCore: b68d3616526ec02e4d155166bbafb8eca64af557 - FirebaseCoreInternal: d2b4acb827908e72eca47a9fd896767c3053921e + AppAuth: 3bb1d1cd9340bd09f5ed189fb00b1cc28e1e8570 + audioplayers_darwin: dcad41de4fbd0099cb3749f7ab3b0cb8f70b810c + connectivity_plus: 18d3c32514c886e046de60e9c13895109866c747 + device_info_plus: 5401765fde0b8d062a2f8eb65510fb17e77cf07f + dynamic_color: 2eaa27267de1ca20d879fbd6e01259773fb1670f + Firebase: 414ad272f8d02dfbf12662a9d43f4bba9bec2a06 + firebase_analytics: 687a47ef9af9c5a8a9fc612c100987f843d0a281 + firebase_app_installations: 6dadc2eb13d88edc73e5d4930f681e2c6685f71c + firebase_auth: 1d5713117a5a961e90b0bfd7766a7ec89c5a709f + firebase_core: a74ee8b3ab5f91ae6b73f4913eaca996c24458b6 + firebase_crashlytics: 7737524301b6d746a563fa7fdb0ea311922d638a + firebase_messaging: 1298099739b30786ab5be9fdbfe00b2019065745 + firebase_remote_config: 9066e1e5f6f0e74b8fb553f12123e4629d115cad + FirebaseABTesting: 40774deef367dcc7b736b6c26dd59ce0fab42f41 + FirebaseAnalytics: 4d310b35c48eaa4a058ddc04bdca6bdb5dc0fe80 + FirebaseAppCheckInterop: 69fc7d8f6a1cbfa973efb8d1723651de30d12525 + FirebaseAuth: 12314b438fa76048540c8fb86d6cfc9e08595176 + FirebaseCore: 2322423314d92f946219c8791674d2f3345b598f + FirebaseCoreExtension: 1c044fd46e95036cccb29134757c499613f3f564 + FirebaseCoreInternal: 43c1788eaeee9d1b97caaa751af567ce11010d00 + FirebaseCrashlytics: 86d5bce01f42fa1db265f87ff1d591f04db610ec + FirebaseInstallations: e842042ec6ac1fd2e37d7706363ebe7f662afea4 + FirebaseMessaging: 9bc34a98d2e0237e1b121915120d4d48ddcf301e + FirebaseRemoteConfig: bbd42790a4e84fde6aab7eae810b608e7b5c0bf6 + FirebaseSessions: 80c2bbdd28166267b3d132debe5f7531efdb00bc + FirebaseSharedSwift: 19b3f709993d6fa1d84941d41c01e3c4c11eab93 + flutter_app_badger: 55a64b179f8438e89d574320c77b306e327a1730 + flutter_local_notifications: 3805ca215b2fb7f397d78b66db91f6a747af52e4 FlutterMacOS: 8f6f14fa908a6fb3fba0cd85dbd81ec4b251fb24 FMDB: 2ce00b547f966261cd18927a3ddb07cb6f3db82a - GoogleUtilities: 9aa0ad5a7bc171f8bae016300bfcfa3fb8425749 - GTMSessionFetcher: e8647203b65cee28c5f73d0f473d096653945e72 + google_sign_in_ios: 1bfaf6607b44cd1b24c4d4bc39719870440f9ce1 + GoogleAppMeasurement: 70ce9aa438cff1cfb31ea3e660bcc67734cb716e + GoogleDataTransport: 57c22343ab29bc686febbf7cbb13bad167c2d8fe + GoogleSignIn: b232380cf495a429b8095d3178a8d5855b42e842 + GoogleUtilities: 0759d1a57ebb953965c2dfe0ba4c82e95ccc2e34 + GTMAppAuth: 99fb010047ba3973b7026e45393f51f27ab965ae + GTMSessionFetcher: 8a1b34ad97ebe6f909fb8b9b77fba99943007556 + nanopb: d4d75c12cd1316f4a64e3c6963f879ecd4b5e0d5 package_info_plus: 02d7a575e80f194102bef286361c6c326e4c29ce - path_provider_foundation: eaf5b3e458fc0e5fbb9940fb09980e853fe058b8 - PromisesObjC: 09985d6d70fbe7878040aa746d78236e6946d2ef + path_provider_foundation: 3784922295ac71e43754bd15e0653ccfd36a147c + PromisesObjC: f5707f49cb48b9636751c5b2e7d227e43fba9f47 + PromisesSwift: 9d77319bbe72ebf6d872900551f7eeba9bce2851 + ReachabilitySwift: 985039c6f7b23a1da463388634119492ff86c825 + Sentry: 64a9f9c3637af913adcf53deced05bbe452d1410 + sentry_flutter: 57912cf425e09398bdf47f38842a1fcb9836f1be + SentryPrivate: 024c6fed507ac39ae98e6d087034160f942920d5 + share_plus: 76dd39142738f7a68dd57b05093b5e8193f220f7 + shared_preferences_foundation: b4c3b4cddf1c21f02770737f147a3f5da9d39695 + sign_in_with_apple: a9e97e744e8edc36aefc2723111f652102a7a727 sqflite: a5789cceda41d54d23f31d6de539d65bb14100ea + url_launcher_macos: d2691c7dd33ed713bf3544850a623080ec693d95 -PODFILE CHECKSUM: 236401fc2c932af29a9fcf0e97baeeb2d750d367 +PODFILE CHECKSUM: 9ebaf0ce3d369aaa26a9ea0e159195ed94724cf3 -COCOAPODS: 1.11.3 +COCOAPODS: 1.15.2 diff --git a/macos/Runner.xcodeproj/project.pbxproj b/macos/Runner.xcodeproj/project.pbxproj index 44e73945..eff9d834 100644 --- a/macos/Runner.xcodeproj/project.pbxproj +++ b/macos/Runner.xcodeproj/project.pbxproj @@ -68,7 +68,7 @@ 331C80D7294CF71000263BE5 /* RunnerTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RunnerTests.swift; sourceTree = ""; }; 333000ED22D3DE5D00554162 /* Warnings.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = Warnings.xcconfig; sourceTree = ""; }; 335BBD1A22A9A15E00E9071D /* GeneratedPluginRegistrant.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = GeneratedPluginRegistrant.swift; sourceTree = ""; }; - 33CC10ED2044A3C60003C045 /* aipictors.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = aipictors.app; sourceTree = BUILT_PRODUCTS_DIR; }; + 33CC10ED2044A3C60003C045 /* Aipictors.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Aipictors.app; sourceTree = BUILT_PRODUCTS_DIR; }; 33CC10F02044A3C60003C045 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 33CC10F22044A3C60003C045 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Assets.xcassets; path = Runner/Assets.xcassets; sourceTree = ""; }; 33CC10F52044A3C60003C045 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/MainMenu.xib; sourceTree = ""; }; @@ -120,7 +120,6 @@ 265154DEDB4E93F378A4CBF2 /* Pods-RunnerTests.release.xcconfig */, D014D4B8BBF1790688CE0E19 /* Pods-RunnerTests.profile.xcconfig */, ); - name = Pods; path = Pods; sourceTree = ""; }; @@ -158,7 +157,7 @@ 33CC10EE2044A3C60003C045 /* Products */ = { isa = PBXGroup; children = ( - 33CC10ED2044A3C60003C045 /* aipictors.app */, + 33CC10ED2044A3C60003C045 /* Aipictors.app */, 331C80D5294CF71000263BE5 /* RunnerTests.xctest */, ); name = Products; @@ -241,6 +240,7 @@ 33CC110E2044A8840003C045 /* Bundle Framework */, 3399D490228B24CF009A79C7 /* ShellScript */, 30F4F4CCD6C136E3F69D6002 /* [CP] Embed Pods Frameworks */, + F41BA04DDCF557D5C391D060 /* [CP] Copy Pods Resources */, ); buildRules = ( ); @@ -249,7 +249,7 @@ ); name = Runner; productName = Runner; - productReference = 33CC10ED2044A3C60003C045 /* aipictors.app */; + productReference = 33CC10ED2044A3C60003C045 /* Aipictors.app */; productType = "com.apple.product-type.application"; }; /* End PBXNativeTarget section */ @@ -259,7 +259,7 @@ isa = PBXProject; attributes = { LastSwiftUpdateCheck = 0920; - LastUpgradeCheck = 1430; + LastUpgradeCheck = 1510; ORGANIZATIONNAME = ""; TargetAttributes = { 331C80D4294CF70F00263BE5 = { @@ -421,6 +421,23 @@ shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; showEnvVarsInLog = 0; }; + F41BA04DDCF557D5C391D060 /* [CP] Copy Pods Resources */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources-${CONFIGURATION}-input-files.xcfilelist", + ); + name = "[CP] Copy Pods Resources"; + outputFileListPaths = ( + "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources-${CONFIGURATION}-output-files.xcfilelist", + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources.sh\"\n"; + showEnvVarsInLog = 0; + }; /* End PBXShellScriptBuildPhase section */ /* Begin PBXSourcesBuildPhase section */ @@ -553,7 +570,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - MACOSX_DEPLOYMENT_TARGET = 10.14; + MACOSX_DEPLOYMENT_TARGET = 10.15; MTL_ENABLE_DEBUG_INFO = NO; SDKROOT = macosx; SWIFT_COMPILATION_MODE = wholemodule; @@ -575,6 +592,7 @@ "$(inherited)", "@executable_path/../Frameworks", ); + MACOSX_DEPLOYMENT_TARGET = 10.15; PROVISIONING_PROFILE_SPECIFIER = ""; SWIFT_VERSION = 5.0; }; @@ -632,7 +650,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - MACOSX_DEPLOYMENT_TARGET = 10.14; + MACOSX_DEPLOYMENT_TARGET = 10.15; MTL_ENABLE_DEBUG_INFO = YES; ONLY_ACTIVE_ARCH = YES; SDKROOT = macosx; @@ -679,7 +697,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - MACOSX_DEPLOYMENT_TARGET = 10.14; + MACOSX_DEPLOYMENT_TARGET = 10.15; MTL_ENABLE_DEBUG_INFO = NO; SDKROOT = macosx; SWIFT_COMPILATION_MODE = wholemodule; @@ -701,6 +719,7 @@ "$(inherited)", "@executable_path/../Frameworks", ); + MACOSX_DEPLOYMENT_TARGET = 10.15; PROVISIONING_PROFILE_SPECIFIER = ""; SWIFT_OPTIMIZATION_LEVEL = "-Onone"; SWIFT_VERSION = 5.0; @@ -721,6 +740,7 @@ "$(inherited)", "@executable_path/../Frameworks", ); + MACOSX_DEPLOYMENT_TARGET = 10.15; PROVISIONING_PROFILE_SPECIFIER = ""; SWIFT_VERSION = 5.0; }; diff --git a/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme b/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme index efe29eaa..f4da81af 100644 --- a/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme +++ b/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme @@ -1,6 +1,6 @@ @@ -31,7 +31,7 @@ @@ -65,7 +65,7 @@ @@ -82,7 +82,7 @@ diff --git a/pubspec.lock b/pubspec.lock index da56bfa9..c7d9134c 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -17,6 +17,14 @@ packages: url: "https://pub.dev" source: hosted version: "1.3.16" + accessibility_tools: + dependency: transitive + description: + name: accessibility_tools + sha256: "0a16adc8dfa3a7ebd38775135d86443011a65d4ecbb438913e4992b5d29135fe" + url: "https://pub.dev" + source: hosted + version: "1.0.0" analyzer: dependency: transitive description: @@ -377,6 +385,14 @@ packages: url: "https://pub.dev" source: hosted version: "0.7.10" + device_frame: + dependency: transitive + description: + name: device_frame + sha256: afe76182aec178d171953d9b4a50a43c57c7cf3c77d8b09a48bf30c8fa04dd9d + url: "https://pub.dev" + source: hosted + version: "1.1.0" device_info_plus: dependency: "direct main" description: @@ -1061,6 +1077,14 @@ packages: url: "https://pub.dev" source: hosted version: "4.0.0" + inspector: + dependency: transitive + description: + name: inspector + sha256: "40ba0ac1c819c85139bfec9d1e283804581a8985c91f19d00e93212cf29226b1" + url: "https://pub.dev" + source: hosted + version: "2.1.0" intl: dependency: "direct main" description: @@ -1093,6 +1117,30 @@ packages: url: "https://pub.dev" source: hosted version: "4.8.1" + leak_tracker: + dependency: transitive + description: + name: leak_tracker + sha256: "78eb209deea09858f5269f5a5b02be4049535f568c07b275096836f01ea323fa" + url: "https://pub.dev" + source: hosted + version: "10.0.0" + leak_tracker_flutter_testing: + dependency: transitive + description: + name: leak_tracker_flutter_testing + sha256: b46c5e37c19120a8a01918cfaf293547f47269f7cb4b0058f21531c2465d6ef0 + url: "https://pub.dev" + source: hosted + version: "2.0.1" + leak_tracker_testing: + dependency: transitive + description: + name: leak_tracker_testing + sha256: a597f72a664dbd293f3bfc51f9ba69816f84dcd403cdac7066cb3f6003f3ab47 + url: "https://pub.dev" + source: hosted + version: "2.0.1" like_button: dependency: "direct main" description: @@ -1129,26 +1177,26 @@ packages: dependency: transitive description: name: matcher - sha256: "1803e76e6653768d64ed8ff2e1e67bea3ad4b923eb5c56a295c3e634bad5960e" + sha256: d2323aa2060500f906aa31a895b4030b6da3ebdcc5619d14ce1aada65cd161cb url: "https://pub.dev" source: hosted - version: "0.12.16" + version: "0.12.16+1" material_color_utilities: dependency: transitive description: name: material_color_utilities - sha256: "9528f2f296073ff54cb9fee677df673ace1218163c3bc7628093e7eed5203d41" + sha256: "0e0a020085b65b6083975e499759762399b4475f766c21668c4ecca34ea74e5a" url: "https://pub.dev" source: hosted - version: "0.5.0" + version: "0.8.0" meta: dependency: transitive description: name: meta - sha256: a6e590c838b18133bb482a2745ad77c5bb7715fb0451209e1a7567d416678b8e + sha256: d584fa6707a52763a52446f02cc621b077888fb63b93bbcb1143a7be5a0c0c04 url: "https://pub.dev" source: hosted - version: "1.10.0" + version: "1.11.0" mime: dependency: transitive description: @@ -1157,6 +1205,14 @@ packages: url: "https://pub.dev" source: hosted version: "1.0.4" + nested: + dependency: transitive + description: + name: nested + sha256: "03bac4c528c64c95c722ec99280375a6f2fc708eec17c7b3f07253b626cd2a20" + url: "https://pub.dev" + source: hosted + version: "1.0.0" nm: dependency: transitive description: @@ -1217,10 +1273,10 @@ packages: dependency: transitive description: name: path - sha256: "8829d8a55c13fc0e37127c29fedf290c102f4e40ae94ada574091fe0ff96c917" + sha256: "087ce49c3f0dc39180befefc60fdb4acd8f8620e5682fe2476afd0b3688bb4af" url: "https://pub.dev" source: hosted - version: "1.8.3" + version: "1.9.0" path_parsing: dependency: transitive description: @@ -1341,6 +1397,14 @@ packages: url: "https://pub.dev" source: hosted version: "1.2.3" + resizable_widget: + dependency: transitive + description: + name: resizable_widget + sha256: db2919754b93f386b9b3fb15e9f48f6c9d6d41f00a24397629133c99df86606a + url: "https://pub.dev" + source: hosted + version: "1.0.5" riverpod: dependency: transitive description: @@ -1858,6 +1922,30 @@ packages: url: "https://pub.dev" source: hosted version: "3.10.2" + widgetbook: + dependency: "direct main" + description: + name: widgetbook + sha256: be0588cd864a70bd2817ca2fab0dbd147c460b712cfe53fd13e6fd46b5c3f368 + url: "https://pub.dev" + source: hosted + version: "3.7.1" + widgetbook_annotation: + dependency: "direct main" + description: + name: widgetbook_annotation + sha256: c2d881d0241525b36aa3777d0ac406d198528ed28b84ca73b7dd9f59189d6bb0 + url: "https://pub.dev" + source: hosted + version: "3.1.0" + widgetbook_generator: + dependency: "direct dev" + description: + name: widgetbook_generator + sha256: d81512780bb4d137d59f0694328f446433fe5228cf8191e918046cc4f09c128b + url: "https://pub.dev" + source: hosted + version: "3.7.0" win32: dependency: transitive description: diff --git a/pubspec.yaml b/pubspec.yaml index 0579a2f1..6f517f5f 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -66,9 +66,11 @@ dependencies: like_button: ^2.0.5 share_plus: ^7.0.2 infinite_scroll_pagination: ^4.0.0 + widgetbook_annotation: ^3.1.0 + widgetbook: ^3.7.1 dev_dependencies: - build_runner: ^2.4.4 + build_runner: ^2.4.8 custom_lint: ^0.5.2 ferry_generator: ^0.9.1-dev.0 freezed: ^2.3.5 @@ -78,6 +80,7 @@ dev_dependencies: sdk: flutter riverpod_generator: ^2.2.3 riverpod_lint: ^2.0.1 + widgetbook_generator: ^3.7.0 flutter: uses-material-design: true From 6f2e8ca18c4d696d468501d86091b42bd894ea57 Mon Sep 17 00:00:00 2001 From: stella <104188098+Stella2211@users.noreply.github.com> Date: Thu, 29 Feb 2024 23:05:12 +0900 Subject: [PATCH 2/2] =?UTF-8?q?update:=20=E3=82=B3=E3=83=B3=E3=83=9D?= =?UTF-8?q?=E3=83=BC=E3=83=8D=E3=83=B3=E3=83=88=E8=BF=BD=E5=8A=A0=E6=99=82?= =?UTF-8?q?=E3=81=AA=E3=81=A9=E3=81=AB=E3=82=B3=E3=83=BC=E3=83=89=E7=94=9F?= =?UTF-8?q?=E6=88=90=E3=81=8C=E5=BF=85=E8=A6=81=E3=81=A0=E3=81=A8=E8=BF=BD?= =?UTF-8?q?=E8=A8=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index f3fd6b15..e1995642 100644 --- a/README.md +++ b/README.md @@ -58,3 +58,5 @@ https://www.apollographql.com/docs/rover/commands/supergraphs ``` $ flutter run -t lib/widgetbook.dart -d macos ``` + +コンポーネントを追加した時などに、コード生成が必要になることがある。