flutter_jsc 0.0.1+1

flutter_jsc #

A Flutter ffi project,provide JavaScriptCore feature in Flutter.

Getting Started #

  • just for the package name of flutter_jsc!!! fully open source is coming soon!
  • not use this package!!!!

0.0.1 #

  • just for the package name of flutter_jsc!!!


flutter_jsc_example #

Demonstrates how to use the flutter_jsc plugin.

Getting Started #

This project is a starting point for a Flutter application.

A few resources to get you started if this is your first Flutter project:

For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:

  flutter_jsc: ^0.0.1+1

2. Install it

You can install packages from the command line:

with Flutter:

$ flutter pub get

Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:

import 'package:flutter_jsc/flutter_jsc.dart';
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
Learn more about scoring.

We analyzed this package on Feb 24, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.7.1
  • pana: 0.13.5
  • Flutter: 1.12.13+hotfix.7

Health issues and suggestions

Fix lib/src/utils/utf8.dart. (-82.29 points)

Analysis of lib/src/utils/utf8.dart failed with 6 errors, 1 hint, including:

line 11 col 20: The type 'ffi.Struct' is declared with 0 type parameters, but 1 type arguments were given.

line 30 col 41: The method 'allocate' isn't defined for the class 'Pointer'.

line 32 col 24: The method 'load' isn't defined for the class 'Pointer'.

line 34 col 33: The method 'load' isn't defined for the class 'Pointer'.

line 43 col 33: The method 'load' isn't defined for the class 'Pointer'.

Fix lib/src/utils/arena.dart. (-25.75 points)

Analysis of lib/src/utils/arena.dart failed with 1 error, 2 hints:

line 25 col 11: The method 'free' isn't defined for the class 'Pointer'.

line 42 col 34: Avoid using braces in interpolation when not needed.

line 43 col 1: Avoid using braces in interpolation when not needed.

Format lib/flutter_jsc.dart.

Run flutter format to format lib/flutter_jsc.dart.

Fix additional 5 files with analysis or formatting issues.

Additional issues in the following files:

  • lib/src/bindings/bindings.dart (Run flutter format to format lib/src/bindings/bindings.dart.)
  • lib/src/bindings/lib.dart (Run flutter format to format lib/src/bindings/lib.dart.)
  • lib/src/bindings/signatures/fjsc.dart (Run flutter format to format lib/src/bindings/signatures/fjsc.dart.)
  • lib/src/utils/dylib.dart (Run flutter format to format lib/src/utils/dylib.dart.)
  • lib/src/utils/ffi.dart (Run flutter format to format lib/src/utils/ffi.dart.)

Maintenance suggestions

Package is pre-v0.1 release. (-10 points)

While nothing is inherently wrong with versions of 0.0.*, it might mean that the author is still experimenting with the general direction of the API.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.1.0 <3.0.0
flutter 0.0.0
Transitive dependencies
collection 1.14.11 1.14.12
meta 1.1.8
sky_engine 0.0.99
typed_data 1.1.6
vector_math 2.0.8
Dev dependencies
mockito ^4.1.1