~repos /only-bible-app
GIT_CONFIG_PARAMETERS="'http.version=HTTP/1.1'" git clone
https://git.pyrossh.dev/only-bible-app/.git
only-bible-app
Discussions:
https://groups.google.com/g/rust-embed-devs
The only bible app you will ever need. No ads. No in-app purchases. No distractions.
0d502d02
—
pyrossh 1 month ago
make web work again
- lib/utils.dart +2 -2
- pubspec.lock +1 -1
- pubspec.yaml +2 -1
- web/index.html +4 -2
lib/utils.dart
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "dart:convert";
|
|
2
|
-
import "dart:io";
|
|
3
2
|
|
|
3
|
+
import "package:archive/archive.dart";
|
|
4
4
|
import "package:http/http.dart" as http;
|
|
5
5
|
import "package:flutter/services.dart";
|
|
6
6
|
import "package:package_info_plus/package_info_plus.dart";
|
|
@@ -76,7 +76,7 @@ Future<Uint8List> convertText(String langCode, String text) async {
|
|
|
76
76
|
|
|
77
77
|
Future<Bible> loadBible(String name) async {
|
|
78
78
|
final data = await rootBundle.load("assets/bibles/$name.bin.gz");
|
|
79
|
-
final decompressed =
|
|
79
|
+
final decompressed = const GZipDecoder().decodeBytes(data.buffer.asUint8List());
|
|
80
80
|
return Bible(decompressed);
|
|
81
81
|
}
|
|
82
82
|
|
pubspec.lock
CHANGED
|
@@ -26,7 +26,7 @@ packages:
|
|
|
26
26
|
source: hosted
|
|
27
27
|
version: "2.0.3"
|
|
28
28
|
archive:
|
|
29
|
-
dependency:
|
|
29
|
+
dependency: "direct main"
|
|
30
30
|
description:
|
|
31
31
|
name: archive
|
|
32
32
|
sha256: a96e8b390886ee8abb49b7bd3ac8df6f451c621619f52a26e815fdcf568959ff
|
pubspec.yaml
CHANGED
|
@@ -20,6 +20,7 @@ dependencies:
|
|
|
20
20
|
flat_buffers: ^25.9.23
|
|
21
21
|
go_router: ^17.1.0
|
|
22
22
|
flutter_soloud: ^3.5.4
|
|
23
|
+
archive: ^4.0.9
|
|
23
24
|
|
|
24
25
|
dev_dependencies:
|
|
25
26
|
flutter_test:
|
|
@@ -59,4 +60,4 @@ flutter_native_splash:
|
|
|
59
60
|
image: "assets/icon.png"
|
|
60
61
|
android_12:
|
|
61
62
|
image: "assets/icon.png"
|
|
62
|
-
color: "#FFFFFF"
|
|
63
|
+
color: "#FFFFFF"
|
web/index.html
CHANGED
|
@@ -113,7 +113,9 @@
|
|
|
113
113
|
For more details:
|
|
114
114
|
* https://docs.flutter.dev/platform-integration/web/initialization
|
|
115
115
|
-->
|
|
116
|
+
<script src="assets/packages/flutter_soloud/web/libflutter_soloud_plugin.js" defer></script>
|
|
117
|
+
<script src="assets/packages/flutter_soloud/web/init_module.dart.js" defer></script>
|
|
116
|
-
<script src="flutter_bootstrap.js"
|
|
118
|
+
<script src="flutter_bootstrap.js" defer></script>
|
|
117
119
|
|
|
118
120
|
|
|
119
|
-
</body></html>
|
|
121
|
+
</body></html>
|