https://github.com/batchar2/fptnclient-android
FPTN VPN - Android client
https://github.com/batchar2/fptnclient-android
android java vpn
Last synced: 7 months ago
JSON representation
FPTN VPN - Android client
- Host: GitHub
- URL: https://github.com/batchar2/fptnclient-android
- Owner: batchar2
- Created: 2024-11-12T18:05:56.000Z (over 1 year ago)
- Default Branch: develop
- Last Pushed: 2025-07-13T04:36:26.000Z (7 months ago)
- Last Synced: 2025-07-13T04:38:51.789Z (7 months ago)
- Topics: android, java, vpn
- Language: Java
- Homepage: https://fptn.org
- Size: 3.16 MB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Setup
### Formatting
- Install ktlint plugin
- For automated formatting, Install Ktlint plugin to IDEA then you can go to `Settings -> Tools -> KtLint -> Distract free`.
- For manual formatting you can use `Command+Option+Enter`.
### Wildcard imports
For disabling wildcards go to `Settings -> Editor -> Code style -> Kotlin -> Imports`
Choose `Use single name import` for all cases and uncheck all checkboxes below.
### Submodules
```bash
git submodule update --init --recursive
```
### Install conan
(For Windows, refer to these [instructions](https://github.com/batchar2/fptn/tree/master/deploy/windows) to install all required dependencies.)
```bash
pip install conan numpy
```
```bash
sudo apt install clang
```
Create profile, get your conan home path
```bash
conan config home
```
```bash
conan profile detect -f
```
Go to the following path and open the profiles folder.
For example, on my system, the path is:
`~/.conan2/profiles`
Then, create a file named `android-studio` with the following content:
```bash
include(default)
[settings]
os=Android
os.api_level=28
compiler=clang
compiler.version=20
compiler.libcxx=c++_static
compiler.cppstd=17
[tool_requires]
*: android-ndk/r28b
```
[Hack] If above config doesn't help, install ndk 29.0.13599879 and point it out in 3 places:
- app/build.gradle.kts in android section, for example
```android {
...
ndkVersion = "28.1.13356709"
...
```
- local.properties
```
ndk.dir=/Users//Library/Android/sdk/ndk/28.1.13356709
```
- ~/.conan2/profiles/android-studio in conf section
```
...
[conf]
tools.android:ndk_path=/Users/ddeviatilov/Library/Android/sdk/ndk/28.1.13356709
...
```
## Ktlint formatting
Check: `./gradlew ktlintCheck`
Format: `./gradlew ktlintFormat`
## Detekt check
Check: `./gradlew detektCheck`
## Dependency soring check
Sort: `./gradlew sortDependencies`
Check: `./gradlew checkSortDependencies`