CH-J SM Mobileการจัดการเซิร์ฟเวอร์ผ่าน SSH
เมนู
ซอร์สที่เผยแพร่

CH-J SM Mobile

เรียกดูไดเรกทอรีและไฟล์ของรุ่นแอปพลิเคชันที่ระบุ

ดาวน์โหลด ZIP ของซอร์ส
CH-J / SM Mobile 175 ไฟล์
sm-mobile-20261016T185235Z-8e93ecc1b59a วันที่เพิ่ม: · วันที่บิลด์:
local_files.dart วันที่เพิ่ม: ไม่ได้บันทึกวันที่ 872 B · 32 บรรทัด
โค้ด ดาวน์โหลดไฟล์
1import 'dart:typed_data';
2import 'dart:io';
3import 'package:path_provider/path_provider.dart';
4import '../core/failure.dart';
6Future<Uint8List> readBounded(Stream<List<int>> stream, int limit) async {
7 final bytes = BytesBuilder(copy: false);
8 await for (final chunk in stream) {
9 if (bytes.length + chunk.length > limit) {
10 throw const Failure('invalidImport');
11 }
12 bytes.add(chunk);
13 }
14 return bytes.takeBytes();
17Future<void> purgeTransferCache() async {
18 final root = await getTemporaryDirectory();
19 await for (final entry in root.list(followLinks: false)) {
20 if (entry is Directory &&
21 entry.path
22 .split(Platform.pathSeparator)
23 .last
24 .startsWith('sm-transfer-')) {
25 try {
26 await entry.delete(recursive: true);
27 } catch (_) {
28 /* Retry at next launch. */
29 }
30 }
31 }
SHA-256032fcb7ef1f7a21014510cc696a9831bd9ea4a2bafb016c97a79149d7e7486ce

CH-J Proprietary Software License 1.14 · ซอร์สโค้ดนี้ให้ไว้ภายใต้ CH-J Proprietary Software License 1.14 การเปิดให้เข้าถึงไม่ได้เปลี่ยนแปลงเงื่อนไขของสัญญาอนุญาตหรือให้สิทธิ์เพิ่มเติม

SHA-256 ของไฟล์บีบอัด46e427a43e87af091004f36145590bda8fe90086dfb0f631afeb5029fb0b5655
ไฟล์