![PyPI Now Supports iOS and Android Wheels for Mobile Python Development](https://cdn.sanity.io/images/cgdhsj6q/production/96416c872705517a6a65ad9646ce3e7caef623a0-1024x1024.webp?w=400&fit=max&auto=format)
Security News
PyPI Now Supports iOS and Android Wheels for Mobile Python Development
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
dvote-js-runtime-flutter
Advanced tools
The purpose of this component is to overcome the current limitations of the ecosystem available to apps running on Flutter.
The component provides access to a full fledged JS runtime, that will only run explicitly bundled static HTML/JS code.
This is intended as a workaround until Dart has full support for cryptographic and blockchain libraries.
Check the exampe on example/*
.
Within your Flutter code, invoke the available runtime functions as follows.
// listen for post messages coming from the JavaScript side
this.webViewController.addJavaScriptHandler(
"JS_REQUEST_RESPONSE_CHANNEL", (arguments) => onMessageReceived(arguments));
final requestId = 1234;
final jsExpression = "myJavascriptFunction('param1', { param2: true }, false)";
await this.webViewController.injectScriptCode('''
call(() => $jsExpression)
.then(result => replyMessage($requestId, result))
.catch(error => replyError($requestId, error))
''');
onMessageReceived(List<dynamic> arguments) async {
print(arguments);
// Expected:
// arguments[0] = { id: <int>, error: <bool> }
// arguments[1] = <data>
// ...
}
index.ts
const handlers: HandlersMap = { ... }
npm run build
dist/runtime.html
FAQs
DVote Javascript runtime for Flutter apps
The npm package dvote-js-runtime-flutter receives a total of 1 weekly downloads. As such, dvote-js-runtime-flutter popularity was classified as not popular.
We found that dvote-js-runtime-flutter demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.