Files

28 lines
742 B
Dart
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import 'package:fluwx/fluwx.dart' as fluwx;
import 'package:flutter/material.dart';
import 'package:tobias/tobias.dart' as tobias;
import 'app.dart';
import 'config/app_config.dart';
import 'container.dart';
Future<void> main() async {
WidgetsFlutterBinding.ensureInitialized();
// 注册微信/支付宝 SDK(AppID 占位,接入真实商户后替换 app_config.dart
try {
await fluwx.Fluwx().registerApi(
appId: AppConfig.wechatAppId,
universalLink: AppConfig.wechatUniversalLink,
);
} catch (_) {}
try {
await tobias.Tobias().registerApp(
AppConfig.alipayAppId,
universalLink: AppConfig.alipayUniversalLink,
);
} catch (_) {}
runApp(ObserverApp(container: AppContainer()));
}