- Copy all used dart_framework files into lib/framework/ - Replace all package:dart_framework/ imports with package:oto_cli/framework/ - Add yaml, archive, ftpconnect as explicit direct dependencies - Remove dart_framework git dependency from pubspec.yaml Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
20 lines
699 B
Dart
20 lines
699 B
Dart
import 'dart:typed_data';
|
|
|
|
import 'package:oto_cli/framework/platform/platform_stub.dart'
|
|
if (dart.library.io) 'package:oto_cli/framework/platform/platform_io.dart'
|
|
if (dart.library.html) 'package:oto_cli/framework/platform/platform_web.dart';
|
|
|
|
abstract class LogWriter {
|
|
factory LogWriter() => getLogWriter();
|
|
|
|
void start(
|
|
String path, Map<String, void Function(Object?)> messageListenerMap);
|
|
void write(String log);
|
|
void end();
|
|
}
|
|
|
|
void initializeApp(String name, String appID) => initialize(name, appID);
|
|
|
|
Future<String> getIPAddressPlatform(String domain) => getIPAddress(domain);
|
|
|
|
Future<Uint8List?> readFileBytePlatform(String filePath) => readFileBytePlatform(filePath);
|