Development discussion of WireGuard
 help / color / mirror / Atom feed
From: "Jason A. Donenfeld" <Jason@zx2c4.com>
To: Alexy-Rousseau <contact@alexy-rousseau.com>
Cc: WireGuard mailing list <wireguard@lists.zx2c4.com>
Subject: Re: Some difficulties to initiate a simple tunnel with Android
Date: Sun, 5 Apr 2020 23:11:49 -0600	[thread overview]
Message-ID: <CAHmME9okzeuM-830h8QtwM-szp5GcT2i5mYC1ZSKN+KLA=eqXQ@mail.gmail.com> (raw)
In-Reply-To: <A37EAA6A-CB8A-4CA0-844A-C5A54152BF98@alexy-rousseau.com>

On Sun, Apr 5, 2020 at 11:03 PM Alexy-Rousseau
<contact@alexy-rousseau.com> wrote:
>
> Hello everyone,
>
> I want to create a very simple app where the user can connect itself to the VPN without any configuration.
> If I understand everything clearly I just have to use the tunnel module who implements the wireguard-go version.
>
> I’m a little bit confused :
>
> - I read the source code of the tunnel path and the ui module and it seems that there is some dependencies between ui and tunnel.
>
> I have some questions :
>
> - Is it possible to use very simply the tunnel module, without ui and initiate very simply a VPN connection?
>
> - Do I have a good idea by using now the tunnel? Will the compatibility of the library be maintained with updates?
>
> - If the main difference between the Android & iOS app is the implementation of the tunnel module, is it a good idea to create a flutter UI with two different ways to communicate with the library for each OS?
>
> Thanks in advance for your help!
>
> —
> Kind regards, Alexy ROUSSEAU

Things are now nicely modularized. Include this in your gradle:

dependencies {
    implementation 'com.wireguard.android:tunnel:1.0.20200329'
}

And then you'll be able to embed a tunnel in your Android app.

Documentation is available at:
https://javadoc.io/doc/com.wireguard.android/tunnel/latest/index.html

We're working on improving these docs, but here's a small sample
project that might help:
https://data.zx2c4.com/WireGuardTestApp-88b19fa5-8117-4835-b788-eac338113faa.zip

      reply	other threads:[~2020-04-06  5:13 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-06  5:03 Alexy-Rousseau
2020-04-06  5:11 ` Jason A. Donenfeld [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAHmME9okzeuM-830h8QtwM-szp5GcT2i5mYC1ZSKN+KLA=eqXQ@mail.gmail.com' \
    --to=jason@zx2c4.com \
    --cc=contact@alexy-rousseau.com \
    --cc=wireguard@lists.zx2c4.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).