From d0db8c10bf6bce3a6c37253299e161b6b3528943 Mon Sep 17 00:00:00 2001 From: Mochamad Nizwar Syafuan <33113137+nizwar@users.noreply.github.com> Date: Fri, 21 Jun 2024 06:43:51 +0700 Subject: [PATCH] Update README.md --- README.md | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/README.md b/README.md index 08f6821..c6554a2 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,7 @@ Connect OpenVPN service with Flutter, Issues and PRs are very welcome! ## Android Setup ### 1. Permission handler +#### JAVA Add this to your onActivityResult in MainActivity.java (if you are using Java) ```java @@ -20,6 +21,7 @@ So it look like this } ``` +#### Kotlin Add this to your onAcivityResult in MainActivity.kt (if you are using Kotlin) ```kotlin @@ -139,6 +141,39 @@ gradle.properties > android.bundle.enableUncompressedNativeLibs=false AndroidManifest > android:extractNativeLibs="true" in application tag ``` +app/build.gradle add these inside android tag +```gradle + +android{ + ... + //from here ====== + lintOptions { + disable 'InvalidPackage' + checkReleaseBuilds false + } + + packagingOptions { + jniLibs { + useLegacyPackaging = true + } + } + + bundle { + language { + enableSplit = false + } + density { + enableSplit = false + } + abi { + enableSplit = false + } + } + //to here + ... +} +``` + ### iOS 1. View [Apple Guidelines](https://developer.apple.com/app-store/review/guidelines/#vpn-apps) Relating to VPN 2. This plugin DOES use Encryption BUT, It uses Exempt Encryptions