How openflutter/fluwx works
Project type and purpose
• Fluwx is an open-source, multi-platform Flutter plugin that wraps the native WeChat SDK APIs (Android, iOS, OpenHarmony) and exposes them to Dart code. It is _not_ a full-stack application with a database, but rather a library/tool that integrates with host apps via method channels and platform-specific code.
File structure
• Top-level directories:
• android/ – Android plugin implementation in Kotlin/Java, manifest, resources
• ios/ – iOS plugin implementation in Objective-C, podspec, resources
• ohos/ – OpenHarmony plugin implementation in ETS/TypeScript
• lib/ – Dart API surface, platform interface, method channel, data models
• example/ – Sample Flutter app demonstrating plugin usage on Android, iOS, web, OHOS
• doc/ – Markdown docs for capabilities, migration, QA
• test/ – Unit and integration tests for Dart and method channel
• .github/, .ci/ – CI workflows, Dockerfile, publish actions
• You see an _Adapter/Bridge pattern_ via Flutter’s MethodChannel: Dart code calls MethodChannel → native handler in each platform module.
README for additional insights
• Confirms that Fluwx:
• Initializes/registers WeChat SDK on each platform
• Supports share, auth, payment, mini-program, subscription
• Requires configuration in pubspec.yaml
• Provides documentation for each feature in doc/*.md