Skip to content

Commit

Permalink
fix: Compatible with runMasamuneApp.
Browse files Browse the repository at this point in the history
  • Loading branch information
mathrunet committed Feb 5, 2023
1 parent a779ba2 commit f65c74e
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 14 deletions.
29 changes: 17 additions & 12 deletions packages/katana_cli/lib/command/create.dart
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,12 @@ final storageAdapter = LocalStorageAdapter();
// TODO: Change the functions.
final functionsAdapter = RuntimeFunctionsAdapter();
/// Masamune adapter.
///
/// The Masamune framework plugin functions can be defined together.
// TODO: Add the adapters.
final masamuneAdapters = <MasamuneAdapter>[];
/// App Theme.
///
/// ```dart
Expand Down Expand Up @@ -415,18 +421,17 @@ const flavor = String.fromEnvironment("FLAVOR");
/// App.
void main() {
WidgetsFlutterBinding.ensureInitialized();
runApp(
MasamuneApp(
title: title,
appRef: appRef,
theme: theme,
routerConfig: router,
localize: l,
authAdapter: authAdapter,
modelAdapter: modelAdapter,
storageAdapter: storageAdapter,
functionsAdapter: functionsAdapter,
),
runMasamuneApp(
title: title,
appRef: appRef,
theme: theme,
routerConfig: router,
localize: l,
authAdapter: authAdapter,
modelAdapter: modelAdapter,
storageAdapter: storageAdapter,
functionsAdapter: functionsAdapter,
masamuneAdapters: masamuneAdapters,
);
}
""";
Expand Down
4 changes: 2 additions & 2 deletions packages/katana_cli/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -229,10 +229,10 @@ packages:
dependency: transitive
description:
name: tint
sha256: d856019547532d4ea24171f554b319081c004c37741e7946eae30cb09f24e1c7
sha256: "9652d9a589f4536d5e392cf790263d120474f15da3cf1bee7f1fdb31b4de5f46"
url: "https://pub.dev"
source: hosted
version: "2.0.0"
version: "2.0.1"
typed_data:
dependency: transitive
description:
Expand Down

0 comments on commit f65c74e

Please sign in to comment.