~emersion/goguma-dev

This thread contains a patchset. You're looking at the original emails, but you may wish to use the patch review UI. Review patch
1

[PATCH v2] tool/gen_main: Fix import order

Details
Message ID
<20240425120625.295882-1-delthas@dille.cc>
DKIM signature
pass
Download raw message
Patch: +2 -2
This makes my linter happier :-)
---
OK actually tested locally this time.

 tool/gen_main.dart | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tool/gen_main.dart b/tool/gen_main.dart
index 049d724..26d6ab3 100644
--- a/tool/gen_main.dart
+++ b/tool/gen_main.dart
@@ -47,6 +47,7 @@ void main(List<String> args) async {
		var apiKey = data['client'][0]['api_key'][0]['current_key'] as String;

		imports += '''import 'package:firebase_core/firebase_core.dart';

import 'firebase.dart';
''';
		body += '''	base.initPush = wrapFirebaseInitPush(base.initPush, const FirebaseOptions(
@@ -59,9 +60,8 @@ import 'firebase.dart';
	}

	var gen = '''// This file has been generated by gen_main.dart - DO NOT EDIT
import 'main.dart' as base;
${imports}import 'main.dart' as base;

$imports
void main() {
$body
	base.main();

base-commit: 6dc63b850b80e21b7d9bd184cd3765e4b2b24954
-- 
2.44.0
Details
Message ID
<L_M_XMxO-7pR-DgxiO2nfrMEgCcRBf7HRV8qA1eZod730ydN12smhjfMefXL4zMVY6TDS4PCRyWXMpydxUVG07613bKt4Elz9MQrhXfYUQk=@emersion.fr>
In-Reply-To
<20240425120625.295882-1-delthas@dille.cc> (view parent)
DKIM signature
pass
Download raw message
Pushed with a small edit to keep the generator more readable while
making the linter happy with the generated file. Thanks!
Reply to thread Export thread (mbox)