Skip to content

Commit

Permalink
fix: Add main code.
Browse files Browse the repository at this point in the history
  • Loading branch information
mathrunet committed Jan 11, 2023
1 parent 14b76df commit bc0ff74
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions packages/katana_cli/lib/code/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,16 @@ final modelAdapter = RuntimeModelAdapter();
// TODO: Change the authentication.
const authAdapter = RuntimeAuthAdapter();
/// App Storage.
///
/// Changing to another adapter allows you to change to another storage mechanism.
const storageAdapter = LocalStorageAdapter();
/// App Functions.
///
/// Changing to another adapter allows you to change to another functions mechanism.
const functionsAdapter = RuntimeFunctionsAdapter();
/// App Theme.
///
/// ```dart
Expand Down Expand Up @@ -130,8 +140,6 @@ final appRef = AppRef();
/// ```
final appAuth = Authentication();
/// App Flavor.
const flavor = String.fromEnvironment("FLAVOR");
Expand All @@ -147,6 +155,8 @@ void main() {
localize: l,
authAdapter: authAdapter,
modelAdapter: modelAdapter,
storageAdapter: storageAdapter,
functionsAdapter: functionsAdapter,
),
);
}
Expand Down

0 comments on commit bc0ff74

Please sign in to comment.