From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.zx2c4.com (lists.zx2c4.com [165.227.139.114]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id DA41EC433F5 for ; Tue, 22 Mar 2022 11:50:21 +0000 (UTC) Received: by lists.zx2c4.com (OpenSMTPD) with ESMTP id 86ffa4b8; Tue, 22 Mar 2022 11:50:19 +0000 (UTC) Received: from mail-lf1-x12f.google.com (mail-lf1-x12f.google.com [2a00:1450:4864:20::12f]) by lists.zx2c4.com (OpenSMTPD) with ESMTPS id c2d2b55d (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO) for ; Tue, 22 Mar 2022 11:50:18 +0000 (UTC) Received: by mail-lf1-x12f.google.com with SMTP id p15so18597811lfk.8 for ; Tue, 22 Mar 2022 04:50:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mullvad.net; s=july2021; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=+4qRZYb/o6/8KHfMXdMtGXio4abMUxEp55vSE5oP558=; b=grefrgkwMhRdz7C1Xy7zyiwpo7Lh8zXUg4LIVf2pvk+rbjbss2Jsvwta+QxPzKjLTu 5A07ED3DCJKn2LPqn7bmzQTU6vIYk4hYNrsLnYKSeGaxFAbvFSQI20Els+tLN+60CPr2 NnMhGqWkwRzx4ymj8F8Sep1IXo8rnpkGD727MJd+AcRctMSvmS/tnt7FQ3aBP++U4Ubn j3h/IcLqf3y98sukeb6cC73hRrQbYahwN0H9x/6M/EO+2d6hivBVfy6ZALiGH91xMgU+ vCp2GzuTAoz5Gk7/cgKdQ6UjXSoxFe32J4s5IhE1ux6iRKMMDvuwvlgijUptQimeGXy4 XXrQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=+4qRZYb/o6/8KHfMXdMtGXio4abMUxEp55vSE5oP558=; b=CZBVFdKJLzIWmG92KupEGkNJVQ1gUrSgnr4HCFrd8XSo9gojbeIDGHFMqKUPUPMQjk VMU+//srQpTaHlypJIIsiHcTlCADZMdX71EPtNmaLL+/5iCWW1T6Wr8uaB2fTu8uRbdz ekk6o/wkaWMTAxC6RuZg+IqkauoizEG4VCfaiHLYoBOTSY0CQZT6XWIeHTJ52NeTsEW2 S9RReO0vF4etdxOpUDz9a59NADHaF+Ys/78CSrVnbt0kkfREfCVCyZ9RMnFz9CzIFIcQ d1u2qk8iCUTyAJEMwuMJ1gfR1TrGldxeq7ZP+olaPNgKRICG65oElpswMzX38q60qahw 726g== X-Gm-Message-State: AOAM531X1zWEb5DK7Tn98Wo3DQerfKCBmVDZ38LmxTHYmApvsL8+CpkR gkp+12csXEgVv5yrZgqGAuls/vN2TT9+PblZ X-Google-Smtp-Source: ABdhPJxj7bUL1b2OD6CxW60yeACoxu/ayteYl6ZMWNZdV2icmY3wztY9pFGjCv6NCXZ/q5PIuPBDCg== X-Received: by 2002:a05:6512:39c7:b0:44a:2e30:7f69 with SMTP id k7-20020a05651239c700b0044a2e307f69mr5760663lfu.103.1647949817629; Tue, 22 Mar 2022 04:50:17 -0700 (PDT) Received: from smtpclient.apple ([193.138.218.213]) by smtp.gmail.com with ESMTPSA id s17-20020a195e11000000b0044a3054d319sm555343lfb.121.2022.03.22.04.50.16 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 22 Mar 2022 04:50:16 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.13\)) Subject: Re: WireGuardKit iOS - Import package and usage of 'Shared' classes From: Andrej Mihajlov In-Reply-To: Date: Tue, 22 Mar 2022 12:50:12 +0100 Cc: WireGuard mailing list Content-Transfer-Encoding: quoted-printable Message-Id: <49AF0CB9-0474-40D2-813B-4B1C22CB8161@mullvad.net> References: To: Alexey Ponkin X-Mailer: Apple Mail (2.3654.120.0.1.13) X-BeenThere: wireguard@lists.zx2c4.com X-Mailman-Version: 2.1.30rc1 Precedence: list List-Id: Development discussion of WireGuard List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: wireguard-bounces@lists.zx2c4.com Sender: "WireGuard" Hi, The source code under Sources/Shared is a part of WireGuard app. These = files are checked out by SPM, because both WireGuardKit and WireGuard = app share the same repository. However, these files aren=E2=80=99t part = of WireGuardKit and thus not available for direct import via = WireGuardKit. Best, Andrej > On 20 Mar 2022, at 16:24, Alexey Ponkin = wrote: >=20 > Hi guys, > I'm trying to use WiregurdKit in my iOS app. I imported the package as > described here - https://github.com/WireGuard/wireguard-apple. Now I > can use `PacketTunnelProvider` inside `WireGuardNetworkExtension`. But > unfortunately , I can't use any classes and extensions from the > `Shared` folder > = (https://github.com/WireGuard/wireguard-apple/tree/master/Sources/Shared).= > Is there any way to make them 'visible' for my project? I'm fairly new > to Swift and iOS development. I would like, for instance, to reuse > this extension = (https://github.com/WireGuard/wireguard-apple/blob/master/Sources/Shared/M= odel/NETunnelProviderProtocol%2BExtension.swift) > and may be, `Keychan` wrapper class. > Thanks in advance for your help.