Skip to content
CAI
Software that uses CAICheck a score

OpenFlutter/fluwx

51.3

Adequate · 12 November 2026

7.1k

lines of production code

Dart

with Objective-C, Kotlin, C++

8

measurements over time

CAI band scale
CAI trend line
CAI lens gauges

What this system is

Features

Added fluwx\_no\_pay example app scaffolding

The \fluwx\_no\_pay\ package now includes a complete example application scaffold to facilitate development and testing. This adds platform-specific configuration files for Android (including \AndroidManifest.xml\ with WeChat entry activities and permissions) and iOS (including \Info.plist\, \AppDelegate.swift\, and Xcode project settings), along with shared Dart code for the example UI. The example uses a compatibility layer (\fluwx\_compat.dart\) to import the \fluwx\_no\_pay\ package, allowing developers to run and test the no-payment variant of the library.

_packages/fluwx\_no\pay · high confidence

Removals

Removal of legacy WeChat plugin Android implementation

The Android-side implementation for the WeChat plugin has been removed. This includes the deletion of the \AppRegister\ broadcast receiver, the main \WechatPlugin\ Flutter plugin class, the \WechatPluginHandler\ responsible for text sharing, and the configuration classes (\WechatPluginConfig\, \WechatPluginMethods\). Consequently, the ability to share text to WeChat sessions, timelines, or favorites from the Android platform is no longer available via this code path.

android/src/main/kotlin · high confidence

Removal of legacy WeChat plugin implementation files

The iOS implementation files for the WeChat plugin (SwiftWechatPlugin.swift and WechatPlugin.m) have been removed from the codebase. This change eliminates the previous Objective-C/Swift bridge code that registered the 'wechat\_plugin' method channel and returned the iOS system version, indicating a shift away from this specific legacy integration approach.

ios/Classes · high confidence

Removed legacy example app entry point

The original \example/lib/main.dart\ file, which served as the basic entry point for the example application, has been deleted. This removes the simple platform-version display demo that previously initialized the WeChat plugin and showed the device's platform version in a basic Material app scaffold.

example/lib · high confidence

Behavioural changes

Android implementation migrated to Flutter v2 embedding with cold-start callback fix

The Android native code for the Fluwx WeChat SDK plugin has been rewritten to use the Flutter v2 embedding API (FlutterPlugin and ActivityAware), replacing the legacy PluginRegistry approach. This migration introduces dedicated handler classes (FluwxAuthHandler, FluwxShareHandler, WXAPiHandler) and a new FluwxWXEntryActivity to manage WeChat callbacks. Crucially, the plugin now implements an 'attemptToResumeMsgFromWx' mechanism to handle and deliver WeChat callbacks that occur during a cold application start, preventing the loss of the first callback event. The update also includes a new FileProvider for secure file sharing and updated ProGuard rules to preserve necessary WeChat SDK classes.

_packages/\shared · high confidence

Android module restructured to use shared code and explicit manifest definitions

The Android implementation for the WeChat SDK integration has been reorganized to improve maintainability and compatibility. The Kotlin source and resource directories are now symbolic links pointing to a shared Android module, centralizing common logic. A new AndroidManifest.xml explicitly declares necessary permissions (Internet, Network State, WiFi State) and registers the required WeChat entry activities and file provider, including a \<queries\> block to support WeChat detection on Android P and later. Additionally, a Gradle build script (gen.gradle.kts) and a .gitignore file have been added to manage build artifacts and incremental generation tasks.

packages/fluwx/android · high confidence

Example app regenerated for modern Flutter and platform standards

The fluwx example application has been regenerated to align with current Flutter tooling and platform conventions. This update includes a migration to Kotlin for the Android MainActivity, adoption of the Flutter V2 embedding on Android, and the addition of a SceneDelegate for iOS. The project now supports Linux and macOS natively with updated CMake and Xcode configurations, and includes a new .metadata file to track platform-specific migration states. Shared Dart logic is now consolidated via symlinks and a compatibility export layer.

packages/fluwx/example · high confidence

Fluwx Dart API restructured with typed arguments and platform interface

The \packages/fluwx/lib\ source files have been reorganized to replace the previous dynamic argument passing with a strongly-typed, sealed-class architecture. The public API now uses specific model classes for all operations: \AuthType\ (with \NormalAuth\, \QRCode\, \PhoneLogin\), \OpenType\ (including \WeChatApp\, \Browser\, \MiniProgram\, \CustomerServiceChat\, etc.), \PayType\ (\Payment\, \HongKongWallet\), and \WeChatShareModel\ variants (Text, Image, Music, Video, WebPage, MiniProgram, File, Emoji). These models implement a common \\_Argument\ mixin to serialize their data for the method channel. The \Fluwx\ class delegates to a new \FluwxPlatform\ interface, with \MethodChannelFluwx\ handling the native communication, and response handling is now routed through a typed \WeChatResponse\ hierarchy. This change improves type safety and clarity for users integrating WeChat features.

packages/fluwx/lib · high confidence

Gradle build cache initialization

The project now initializes Gradle build output cleanup caches, specifically creating a cache properties file that sets the Gradle version to 5.2.1 and establishing garbage collection properties for the build directory. This ensures consistent build state management for the Gradle wrapper.

.gradle · medium confidence

Introduce v4 method channel implementation for WeChat integration

This change introduces the v4 architecture for the Fluwx library by adding a new method channel implementation (\MethodChannelFluwx\) and its corresponding platform interface (\FluwxPlatform\). The new implementation bridges Flutter to native iOS and Android WeChat SDKs, supporting features such as app opening (WeChat App, Browser, Mini Programs, etc.), sharing various content types (text, images, music, video, web pages, mini programs, files, emojis), authentication (normal, QR code, phone login), and payment. It also includes a response event handler to stream WeChat responses back to the Flutter app and a logging mechanism to send native logs to the Flutter console.

_lib/src/method\channel · high confidence

Introduction of sealed WeChat response classes with Record serialization

The \lib/src/response/wechat\_response.dart\ file has been rewritten to introduce a sealed \WeChatResponse\ base class and specific subclasses (such as \WeChatShareResponse\, \WeChatAuthResponse\, \WeChatPaymentResponse\, and \WeChatOpenCustomerServiceChatResponse\) that parse WeChat callback arguments. A key behavioral change is the addition of a \toRecord()\ method to these response models, allowing users to easily convert response data into immutable Record structures for simpler pattern matching and data handling.

lib/src/response · high confidence

Refactored foundation argument models and share types

The \lib/src/foundation\ package has been restructured to use a unified \arguments.dart\ module with part files for specific model types. This introduces new sealed classes for authentication (\AuthType\), opening WeChat features (\OpenType\), and payments (\PayType\), alongside a \FluwxCancelable\ mixin for operation cancellation. For sharing, the models now enforce a common base (\WeChatShareModel\) with explicit \thumbData\ and \thumbDataHash\ fields, and the mini-program share model now supports an \hdImageData\ option for iOS.

lib/src/foundation · high confidence

Removal of legacy Android example project scaffolding

The Android example project's legacy scaffolding files have been removed, including the \AndroidManifest.xml\, \MainActivity.kt\, and the Gradle wrapper scripts (\gradlew\, \gradlew.bat\). This cleanup eliminates the old Flutter activity and application entry points, aligning the example with modern Flutter Android project structures that no longer require these specific legacy components.

example/android · high confidence

Removed legacy iOS WeChat plugin files in example app

The example iOS project has removed several legacy files related to the WeChat integration, including the \.gitignore\, \Runner-Bridging-Header.h\, \WechatPlugin-Bridging-Header.h\, and \WechatPluginMethods.swift\. This cleanup eliminates obsolete Swift plugin methods and bridging headers that were previously required for WeChat SDK integration, simplifying the example project structure.

example/ios · high confidence

Renamed library entry point from wechat\_plugin to fluwx

The main library entry point has been renamed from \wechat\_plugin.dart\ to \fluwx.dart\. Users must update their imports to use \package:fluwx/fluwx.dart\ instead of \package:fluwx/wechat\_plugin.dart\. The old \WechatPlugin\ class and its direct method channel usage have been removed in favor of the new \fluwx\ library structure which exports a more comprehensive set of modules including arguments, cancelable operations, and response models.

lib · high confidence

Repository renamed to Fluwx and documentation updated for V6 migration

The project has been renamed from 'wechat\_plugin' to 'Fluwx', with the README updated to reflect the new name, updated installation instructions for pub.dev, and a new section detailing the migration to V6 (which introduces breaking changes like UISceneDelegate support and Swift Package Manager adoption). The repository also adds a .pubignore file to exclude build artifacts and IDE files from the published package, and updates the .gitignore to include Flutter-specific generated files.

(repo-wide) · high confidence

Simplified example app setup and package maintenance tooling

The fluwx package now includes scripts and configuration to streamline the setup of its example applications. A new shell script automates the creation of Flutter example projects, establishes symlinks to shared example code and assets, and configures the pubspec files. Additionally, a Dart tool is provided to synchronize version numbers between the fluwx and fluwx\_no\_pay packages, and a .pubignore file has been added to exclude build artifacts and IDE files from the published package.

tools · high confidence

WeChat SDK integration library core files added and legacy models removed

The \lib/src\ directory now includes the main Fluwx entry point (\fluwx.dart\) which exposes methods for registering the app, sharing content, authentication, and payments, along with supporting files for WeChat-specific enums (\wechat\_enums.dart\) and file handling (\wechat\_file.dart\). This update removes the previous \wechat\_scene.dart\ and \wechat\_share\_models.dart\ files, indicating a restructuring of the sharing API and scene definitions to align with the new platform interface implementation.

lib/src · medium confidence

iOS integration now uses Swift Package Manager with shared sources and automated setup

The iOS package has migrated from CocoaPods to Swift Package Manager (SPM), replacing local source files with symbolic links to shared implementation code in the \\_shared/ios/Sources\ directory. To support this new structure, a new \wechat\_setup.rb\ script has been added to automatically configure the Xcode project's Info.plist (including WeChat App ID, URL schemes, and ATS settings) and associated domains entitlements during integration.

packages/fluwx/ios · high confidence

Fixes

1 commit (1 fix) fixing packages/fluwx, packages/fluwx\_no\_pay, tools

A fix in packages/fluwx, packages/fluwx\_no\_pay, tools — 1 commit (1 fix), 24 files: “fix(ohos): separate package metadata for fluwx\_no\_pay (\#781)” (refs \#781).

packages/fluwx/ohos · medium confidence · unverified

Test coverage

Initial unit tests for Fluwx plugin and method channel; Removed example widget test.

Dependencies

Migrated to monorepo with Kotlin 2.3.20 and Android Gradle Plugin 9.0.1

The project has been restructured into a monorepo containing \fluwx\ and \fluwx\_no\_pay\ packages, replacing the legacy \wechat\_plugin\. The Android build configuration now uses Kotlin 2.3.20 and Android Gradle Plugin 9.0.1, with a minimum SDK of 24 and Java 17 compatibility. The WeChat Android SDK has been updated to version 6.8.40, and the iOS dependency now uses the \WechatOpenSDK-XCFramework\ via CocoaPods and Swift Package Manager. The example apps have been updated to use the Flutter Gradle Plugin and target SDK 34.

(dependencies) · high confidence

Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.

How this codebase got here

Score

  • CAI 55 → 51 (-3.7)
  • Rubric changed (rubric-2026.10.5 → rubric-2026.11.3) — scores are not directly comparable.

Lenses

  • Code Health 77 → 80 (+2.7)
  • Architecture 99 → 99 (+0.0)
  • Maturity 54 → 40 (-13.7)
  • Readiness 39 → 41 (+2.3)
  • Security 77 → 68 (-9.1)
  • Performance 100 → 100 (+0.0)

Resolved (68)

  • Duplicated block (10 lines × 2) (packages/fluwx/example/ios/Runner/AppDelegate.swift)
  • Duplicated block (10 lines × 3) (packages/_shared/android/src/main/kotlin/com/jarvan/fluwx/FluwxPlugin.kt)
  • Duplicated block (10 lines × 3) (packages/_shared/android/src/main/kotlin/com/jarvan/fluwx/FluwxPlugin.kt)
  • Duplicated block (10 lines × 3) (packages/_shared/android/src/main/kotlin/com/jarvan/fluwx/FluwxPlugin.kt)
  • Duplicated block (10 lines × 3) (packages/_shared/android/src/main/kotlin/com/jarvan/fluwx/handlers/FluwxAuthHandler.kt)
  • Duplicated block (11 lines × 3) (packages/_shared/android/src/main/kotlin/com/jarvan/fluwx/FluwxPlugin.kt)
  • Duplicated block (11 lines × 3) (packages/_shared/android/src/main/kotlin/com/jarvan/fluwx/FluwxPlugin.kt)
  • Duplicated block (11 lines × 3) (packages/_shared/android/src/main/kotlin/com/jarvan/fluwx/FluwxPlugin.kt)
  • Duplicated block (11 lines × 3) (packages/_shared/android/src/main/kotlin/com/jarvan/fluwx/FluwxPlugin.kt)
  • Duplicated block (11 lines × 3) (packages/_shared/android/src/main/kotlin/com/jarvan/fluwx/io/ByteArrayToFile.kt)
  • Duplicated block (11 lines × 3) (packages/_shared/android/src/main/kotlin/com/jarvan/fluwx/io/ImagesIO.kt)
  • Duplicated block (11 lines × 3) (packages/_shared/android/src/main/kotlin/com/jarvan/fluwx/wxapi/FluwxWXEntryActivity.kt)
  • Duplicated block (12 lines × 3) (packages/_shared/android/src/main/kotlin/com/jarvan/fluwx/FluwxPlugin.kt)
  • Duplicated block (12 lines × 3) (packages/_shared/android/src/main/kotlin/com/jarvan/fluwx/FluwxPlugin.kt)
  • Duplicated block (12 lines × 3) (packages/_shared/android/src/main/kotlin/com/jarvan/fluwx/FluwxPlugin.kt)
  • Duplicated block (12 lines × 3) (packages/_shared/android/src/main/kotlin/com/jarvan/fluwx/FluwxPlugin.kt)
  • Duplicated block (12 lines × 3) (packages/_shared/android/src/main/kotlin/com/jarvan/fluwx/FluwxPlugin.kt)
  • Duplicated block (12 lines × 3) (packages/_shared/android/src/main/kotlin/com/jarvan/fluwx/utils/FluwxExtensions.kt)
  • Duplicated block (13 lines × 3) (packages/_shared/android/src/main/kotlin/com/jarvan/fluwx/FluwxPlugin.kt)
  • Duplicated block (13 lines × 3) (packages/_shared/android/src/main/kotlin/com/jarvan/fluwx/FluwxPlugin.kt)
  • …and 48 more

New (11)

  • Duplicated block (10 lines × 2) (packages/fluwx/example/ios/Runner/AppDelegate.swift)
  • Duplicated block (8 lines × 2) (packages/_shared/android/src/main/kotlin/com/jarvan/fluwx/io/ByteArrayToFile.kt)
  • Edited copy of a member (11 corresponding lines) (packages/_shared/android/src/main/kotlin/com/jarvan/fluwx/io/ByteArrayToFile.kt)
  • Edited copy of a member (11 corresponding lines) (packages/_shared/example/lib/pages/send_auth_page.dart)
  • Edited copy of a member (11 corresponding lines) (packages/fluwx/lib/src/method_channel/fluwx_method_channel.dart)
  • Edited copy of a member (12 corresponding lines) (packages/_shared/example/lib/pages/launch_mini_program_page.dart)
  • Edited copy of a member (14 corresponding lines) (packages/_shared/android/src/main/kotlin/com/jarvan/fluwx/io/WeChatFiles.kt)
  • Edited copy of a member (17 corresponding lines) (lib/src/method_channel/fluwx_method_channel.dart)
  • Edited copy of a member (20 corresponding lines) (packages/_shared/example/lib/pages/launch_mini_program_page.dart)
  • Edited copy of a member (21 corresponding lines) (packages/_shared/android/src/main/kotlin/com/jarvan/fluwx/handlers/FluwxShareHandler.kt)
  • Edited copy of a member (7 corresponding lines) (packages/_shared/example/lib/pages/sign_auto_deduct_page.dart)

Changes since last survey

  • 1 commits — 0 feature/other, 1 fixes

By area

  • packages/fluwx — 1 commit

Notable commits

  • fix: fix(ohos): separate package metadata for fluwx_no_pay (#781)

Architecture

  • Containers 0 added · 0 removed · contexts 1 added · 3 removed · edges 0 added · 2 removed

Added bounded contexts (1)

  • packages/_shared/android

Removed bounded contexts (3)

  • packages/_shared/android
  • packages/fluwx/android
  • packages/fluwx_no_pay/android

Removed dependency edges (was a dependency, now gone) (2)

  • packages/fluwx/android → packages/_shared/android
  • packages/fluwx_no_pay/android → packages/_shared/android

Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.

Survey your own repository

OpenFlutter/fluwx was measured the same way every project in this corpus was: the same rubric, at a pinned commit, with the result published in full. Point a surveyor at a repository you know and see whether you agree with it.

About this page

  • The score is its most recent published measurement, taken on 12 November 2026 at a pinned commit. It is not a live figure and does not change until the project is measured again.
  • Measured at commit 8334f3f2e8f45979bc4dc9910309d8839b761340 — the exact code this score is about.
  • Scored under rubric-2026.11.3 — the same rubric and the same method as every other entry in this index.
  • Measured by Canine Code Analyzer (cca.canine.dev) using cca measure-2026.11.42+preprod-6bc2a431cb25.