Skip to content

[amplify_flutter] Support using --wasm flutter cli argument. #6350

@asaarnak

Description

@asaarnak

Because amplify_flutter is using Platform.isAndroid.

This is thrown: Unsupported operation: Platform._operatingSystem

Line: call $Platform.isAndroid

  (func $new AmplifyClassImpl (;33855;) (result (ref $AmplifyClassImpl))
    block $label1
      block $label0
        call $Platform.isAndroid implicit getter
        br_if $label0
        call $Platform.isIOS implicit getter
        i32.eqz
        br_if $label1
      end $label0
      call $AmplifyHybridImpl
      return
    end $label1
    call $AmplifyClassImpl.protected
    return
  )

The pub.dev suggests removing dart:io import from:
package:amplify_flutter/amplify_flutter.dart
package:amplify_flutter/src/amplify_impl.dart
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    coreIssues related to the Amplify Core Pluginfeature-requestA request for a new feature or an enhancement to an existing API or category.pending-maintainer-responsePending response from a maintainer of this repository

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions