Skip to content

Commit

Permalink
Rename a constant
Browse files Browse the repository at this point in the history
  • Loading branch information
temeddix committed Sep 13, 2024
1 parent 15a29aa commit 50abced
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions flutter_package/bin/src/message.dart
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,6 @@ Future<void> generateMessageCode({
}
final resourceNames = entry.value;
for (final resourceName in resourceNames) {
print(resourceName);
exportsDartLines.add("export './$subPath$resourceName.pb.dart';");
}
}
Expand Down Expand Up @@ -311,11 +310,11 @@ use std::sync::LazyLock;
await insertTextToFile(
rustPath,
'''
type ${messageName}Store = LazyLock<(
type ${messageName}Channel = LazyLock<(
SignalSender<DartSignal<${normalizePascal(messageName)}>>,
SignalReceiver<DartSignal<${normalizePascal(messageName)}>>,
)>;
pub static ${snakeName.toUpperCase()}_CHANNEL: ${messageName}Store =
pub static ${snakeName.toUpperCase()}_CHANNEL: ${messageName}Channel =
LazyLock::new(signal_channel);
impl ${normalizePascal(messageName)} {
Expand Down

0 comments on commit 50abced

Please sign in to comment.