initial commit
This commit is contained in:
commit
f053f85d95
23 changed files with 25934 additions and 0 deletions
20
scripts/fetch.dart
Normal file
20
scripts/fetch.dart
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
import "dart:io";
|
||||
|
||||
import "package:http/http.dart";
|
||||
|
||||
void main(List<String> args) async {
|
||||
print("Downloading emoji list...");
|
||||
|
||||
final response = await get(
|
||||
.https("github.com", "github/gemoji/raw/refs/heads/master/db/emoji.json"),
|
||||
);
|
||||
|
||||
if (response.statusCode != 200) {
|
||||
throw Exception("Failed to load emoji data");
|
||||
}
|
||||
|
||||
await File.fromUri(Platform.script.resolve("../assets/emoji.json"))
|
||||
.writeAsString(response.body);
|
||||
|
||||
print("Emoji list written!");
|
||||
}
|
||||
Loading…
Reference in a new issue