File tree 4 files changed +67
-1
lines changed
4 files changed +67
-1
lines changed Original file line number Diff line number Diff line change @@ -45,6 +45,7 @@ app.*.map.json
45
45
/android /app /debug
46
46
/android /app /profile
47
47
/android /app /release
48
+ /android /app /.cxx
48
49
49
50
# Custom
50
51
TODO.txt
Original file line number Diff line number Diff line change 1
1
import 'dart:convert' ;
2
+ import 'dart:typed_data' ;
2
3
3
4
import 'package:easy_localization/easy_localization.dart' ;
5
+ import 'package:flutter_charset_detector/flutter_charset_detector.dart' ;
4
6
import 'package:http/http.dart' ;
5
7
import 'package:obtainium/custom_errors.dart' ;
6
8
import 'package:obtainium/providers/source_provider.dart' ;
@@ -52,6 +54,7 @@ class RuStore extends AppSource {
52
54
String author = appDetails['companyName' ] ?? name;
53
55
String ? dateStr = appDetails['updatedAt' ];
54
56
String ? version = appDetails['versionName' ];
57
+ String ? changeLog = appDetails['whatsNew' ];
55
58
if (version == null ) {
56
59
throw NoVersionError ();
57
60
}
@@ -70,13 +73,26 @@ class RuStore extends AppSource {
70
73
throw NoAPKError ();
71
74
}
72
75
76
+ appName = (await CharsetDetector .autoDecode (
77
+ Uint8List .fromList (appName.codeUnits)))
78
+ .string;
79
+ author =
80
+ (await CharsetDetector .autoDecode (Uint8List .fromList (author.codeUnits)))
81
+ .string;
82
+ changeLog = changeLog != null
83
+ ? (await CharsetDetector .autoDecode (
84
+ Uint8List .fromList (changeLog.codeUnits)))
85
+ .string
86
+ : null ;
87
+
73
88
return APKDetails (
74
89
version,
75
90
getApkUrlsFromUrls ([
76
91
(downloadDetails['apkUrl' ] as String )
77
92
.replaceAll (RegExp ('\\ .zip\$ ' ), '.apk' )
78
93
]),
79
94
AppNames (author, appName),
80
- releaseDate: relDate);
95
+ releaseDate: relDate,
96
+ changeLog: changeLog);
81
97
}
82
98
}
Original file line number Diff line number Diff line change @@ -345,6 +345,46 @@ packages:
345
345
url: "https://pub.dev"
346
346
source: hosted
347
347
version: "6.0.3"
348
+ flutter_charset_detector:
349
+ dependency: "direct main"
350
+ description:
351
+ name: flutter_charset_detector
352
+ sha256: d7c11a82c2c51cb35a010b42c64001afb8a9e4d7be1f57620604d386d3467ad1
353
+ url: "https://pub.dev"
354
+ source: hosted
355
+ version: "4.0.0"
356
+ flutter_charset_detector_android:
357
+ dependency: transitive
358
+ description:
359
+ name: flutter_charset_detector_android
360
+ sha256: "443145e8fc8515b3b32aee375691e40dd59197a86a2ae153166bc88c8200d83b"
361
+ url: "https://pub.dev"
362
+ source: hosted
363
+ version: "3.0.0"
364
+ flutter_charset_detector_darwin:
365
+ dependency: transitive
366
+ description:
367
+ name: flutter_charset_detector_darwin
368
+ sha256: daac20390275efb92fbb14350fe11286c5e29c7b80d6b0867f52d760f0d69763
369
+ url: "https://pub.dev"
370
+ source: hosted
371
+ version: "1.1.0"
372
+ flutter_charset_detector_platform_interface:
373
+ dependency: transitive
374
+ description:
375
+ name: flutter_charset_detector_platform_interface
376
+ sha256: "1c09ed7b314a5a9dde76057b98b7d35458ba881eed03d5e5b6f7f74b4869d18c"
377
+ url: "https://pub.dev"
378
+ source: hosted
379
+ version: "1.1.0"
380
+ flutter_charset_detector_web:
381
+ dependency: transitive
382
+ description:
383
+ name: flutter_charset_detector_web
384
+ sha256: b547194e97e15d2cca17e957ad7f373b48abf35080e645ac5b6976d129b0265d
385
+ url: "https://pub.dev"
386
+ source: hosted
387
+ version: "1.2.0"
348
388
flutter_fgbg:
349
389
dependency: "direct main"
350
390
description:
@@ -552,6 +592,14 @@ packages:
552
592
url: "https://pub.dev"
553
593
source: hosted
554
594
version: "0.19.0"
595
+ js:
596
+ dependency: transitive
597
+ description:
598
+ name: js
599
+ sha256: "53385261521cc4a0c4658fd0ad07a7d14591cf8fc33abbceae306ddb974888dc"
600
+ url: "https://pub.dev"
601
+ source: hosted
602
+ version: "0.7.2"
555
603
json_annotation:
556
604
dependency: transitive
557
605
description:
Original file line number Diff line number Diff line change @@ -86,6 +86,7 @@ dependencies:
86
86
markdown : any
87
87
flutter_typeahead : ^5.2.0
88
88
battery_plus : ^6.1.0
89
+ flutter_charset_detector : ^4.0.0
89
90
dev_dependencies :
90
91
flutter_test :
91
92
sdk : flutter
You can’t perform that action at this time.
0 commit comments