Code Monkey home page Code Monkey logo

wireguard_dart's Introduction

wireguard_dart

A flutter plugin to setup and control VPN connection via Wireguard tunnel.

It includes Wireguard implementation for the corresponding OS (WireGuardKit for darwin, com.wireguard.android:tunnel for android, etc.) and does not require any additional dependencies.

Android iOS Linux macOS Windows
Support 21+ 15.0+ TBD 12+ 10+

Usage

To use this plugin, add wireguard_dart as a dependency in your pubspec.yaml file.

Development

  • Create a PR with proposed changes:
    • Add [major] to the title if it has breaking changes
    • Add [minor] if it has new features
    • Otherwise, it's a patch release, don't add anything
  • After status checks are passed and PR is approved, merge it
  • Changes are automatically released as a new semantic version based on tags in the title Changelog should be provided and committed manually

wireguard_dart's People

Contributors

tadaskay avatar kristijanmitrik avatar mysteriumteam avatar

Stargazers

 avatar Anton Zhukov avatar  avatar Andrey Kapitonov avatar Alex Ibraimov avatar  avatar  avatar  avatar

Watchers

Edmundas Ramanauskas avatar  avatar Vilius Vaiciunas avatar Mindaugas Mingaila avatar  avatar  avatar

wireguard_dart's Issues

PlatformException(unknown, null, null, null)

Windows Platform getting error when click connect.

flutter: initialize success
[ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: PlatformException(unknown, null, null, null)
StandardMethodCodec.decodeEnvelope (package:flutter/src/services/message_codecs.dart:651:7)
MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:322:18)

Can't install pod

Hello,

When I install pod file it try to install

Installing Flutter (1.0.0)
Installing WireGuardKit (0.3)

But it's a ever ending process. Why WireGuardKit is not installing

Windows cannot start

unique_ptr {reply_manager_=unique_ptr {reply_handler_=empty } codec_=0x000002838833eac0 {serializer_=0x00007ffe7f235000 {wg_win_plugin_plugin.dll!flutter::StandardCodecSerializer sInstance} {...} } }

MissingPluginException

Hello, thank you for this project, I really need support for wireguard on multiple platforms with dart. I'm trying to launch your example project and get the following errors (both on linux and android):

[ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: MissingPluginException(No implementation found for method connect on channel wireguard_dart) #0 MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:313:7) <asynchronous suspension> #1 MethodChannelWireguardDart.connect (package:wireguard_dart/wireguard_dart_method_channel.dart:24:5) <asynchronous suspension>

ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: MissingPluginException(No implementation found for method generateKeyPair on channel wireguard_dart) #0 MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:313:7) <asynchronous suspension> #1 MethodChannelWireguardDart.generateKeyPair (package:wireguard_dart/wireguard_dart_method_channel.dart:14:37) <asynchronous suspension>

Can you help me? Please

Unhandled Exception

Unhandled Exception: PlatformException(err_setup_tunnel, Tunnel is not initialized, null, null)

wireguard server

how to create vpn server with private and public key in app??

Invalid build configuration

I am encountering an exception when trying to run the app on Android.

Here are the steps:

  1. flutter create app
  2. add a package via git
  3. flutter run

And here is an exception:

ERROR:D8: Invalid build configuration. Attempt to create a global synthetic for 'Record desugaring' without a global-synthetics consumer.

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:mergeExtDexDebug'.
> Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
   > Failed to transform tunnel-1.0.20230706.aar (com.wireguard.android:tunnel:1.0.20230706) to match attributes {artifactType=android-dex, asm-transformed-variant=NONE, dexing-enable-desugaring=true, dexing-enable-jacoco-instrumentation=false, dexing-is-debuggable=true, dexing-min-sdk=21, org.gradle.category=library, org.gradle.dependency.bundling=external, org.gradle.libraryelements=aar, org.gradle.status=release, org.gradle.usage=java-runtime}.
      > Execution failed for DexingWithClasspathTransform: /Users/uzenkov/.gradle/caches/transforms-3/3ba074555f0a82d8076ceaa016a8af1d/transformed/jetified-tunnel-1.0.20230706-runtime.jar.
         > Error while dexing.

UPDATE

I've found out that the problem occurs with the latest com.wireguard.android:tunnel:1.0.20230706 version, but it works with the previous one: 1.0.20230427.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.