From aca0c31dc1678218f779d92784f2a97300334788 Mon Sep 17 00:00:00 2001 From: VictoriaKostyleva Date: Wed, 19 Oct 2022 15:36:57 +0300 Subject: [PATCH] Create README.md --- README.md | 65 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..ffc2bdf --- /dev/null +++ b/README.md @@ -0,0 +1,65 @@ +# SOLAR dVPN Community Core for iOS + +This project contains an application for iOS, which is made as a server with a webView. +API documentation is [here](https://github.com/solarlabsteam/solar-dvpn-community-core-docs). + +## Building: + +- Clone this repo. +- Open project in Xcode. + +### Target set up: + +- In `SOLARdVPNCommunityCoreiOS` target: + - Set `Developer Team`. + - Set your Bundle Identifier. +- In `SOLARAPI` target: + - Set `Developer Team`. + - Set your Bundle Identifier as `{your_bundle_id}.SOLARAPI`. +- In `WireGuardNetworkExtension` target: + - Set `Developer Team`. + - Set your Bundle Identifier as `{your_bundle_id}.network-extension`. + +### Network extension set up: + +- Open `Keychain.swift`, set `appGroupId` as `group.{your_bundle_id}`. +- Open `SecurityService.swift`, set `accessGroup` as `group.{your_bundle_id}`. + +
+ Make sure your team supports Network Extensions. Make the following steps if it does not. + +- Go to your [account page](https://developer.apple.com/account/) on the developer web site. +- Click Identifiers. +- Click on your app’s App ID. +- Click Edit. +- Enable the Network Extensions checkbox. +- Rebuild your distribution profile so that it picks up the entitlement change from your App ID. + +
+ +### Additional: + +- Set your backend endpoint in `ClientConstants.swift` file. + +## UI integration: + +- Write your own UI. +- Add it to the project. +- Set main file name in `ViewController.swift`. + +## In-App Purchase: + +
+ If you wish to use In-App Purchase in your application, make the following steps. + +- Set up your [RevenueCat](https://www.revenuecat.com/docs/getting-started) project. +- Set your purchase API key in `ClientConstants.swift` file. +- Use our [Purchase API](https://github.com/solarlabsteam/solar-dvpn-community-core-docs/tree/main/api/purchases). + +
+ +--- + +## Troubleshooting: + +Do not hesitate to create an issue for our team.