Skip to content

Commit

Permalink
fix(flutter/catalyst_compression): catalyst compression doesn't load …
Browse files Browse the repository at this point in the history
…in dev (#1207)

* fix: remove workaround for shared buffers from catalyst cardano example

* chore: server catalyst compression assets from within the package so that it's served by our server with our own headers for CORP

* style: reformat
  • Loading branch information
dtscalac authored Nov 14, 2024
1 parent 25d5ccc commit 5745ee9
Show file tree
Hide file tree
Showing 9 changed files with 534 additions and 83 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,18 @@ part 'sign_and_submit_rbac_tx.dart';
part 'sign_and_submit_tx.dart';
part 'sign_data.dart';

/// Run only via `flutter run`:
///
/// ```shell
/// flutter run \
/// --web-header Cross-Origin-Opener-Policy=same-origin \
/// --web-header Cross-Origin-Embedder-Policy=require-corp \
/// --target lib/main.dart \
/// -d chrome
/// ```
///
/// Explanation:
/// - flutter_rust_bridge: https://cjycode.com/flutter_rust_bridge/manual/miscellaneous/web-cross-origin#when-flutter-run
Future<void> main() async {
EquatableConfig.stringify = true;
await CatalystKeyDerivation.init();
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@
</head>

<body>
<script src="enable-threads.js"></script>
<script src="flutter_bootstrap.js" async></script>
</body>

Expand Down
Loading

0 comments on commit 5745ee9

Please sign in to comment.