Skip to content

Team, I added Swift Package Manager support and fixed Android Kotlin Capability issue. #306

Description

@kmmhanan

PR #305 Announcement

Hi everyone,

I've submitted PR #305 to address Flutter Kotlin capability issues and add Swift Package Manager (SPM) support for iOS/macOS.

cc @PaulTR @am15h @knottx @enricostrijks @himanshudeveloper @guyluz11 @CaptainDario @BoHellgren @dewball345

What it delivers

  • Critical fix: resolved Flutter Kotlin capability issues on Android
  • Critical fix: added Swift Package Manager (SPM) support for iOS/macOS
  • Moved plugin source files into ios/ and macos/ folders to enable proper SPM integration
  • Verified compatibility with Flutter 3.44.0

Testing completed

  • Flutter Kotlin capability issues confirmed resolved on Android
  • SPM integration verified with plugin sources properly structured under ios/ and macOS/
  • Full compatibility confirmed with Flutter 3.44.0

Current status

PR #305 delivers both the Android Kotlin fix and iOS/macOS SPM support as a unified release (0.12.2). These are critical fixes that unblock developers hitting Kotlin capability errors on Android and SPM integration issues on Apple platforms.

While PR #305 awaits merging, you can use the fixed version immediately via dependency_overrides in your pubspec.yaml:

dependency_overrides:
  tflite_flutter:
    git:
      url: https://github.com/kmmhanan/flutter-tflite.git
      ref: v0.12.2

Notes

  • This PR directly addresses long-standing Kotlin compatibility pain points on Android that have been affecting multiple users.
  • The SPM support aligns the plugin with modern Apple platform standards, enabling smoother integration for iOS and macOS projects.
  • The override above points to the author's fixed fork and will be removable once the PR is merged upstream.

See [PR #305](#305) for technical details.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions