From 115e053417a910650442e8cb1a03dbe4660dd319 Mon Sep 17 00:00:00 2001 From: shiva yadav <94379471+shivaya-dav@users.noreply.github.com> Date: Mon, 24 Apr 2023 01:22:41 -0700 Subject: [PATCH] Update README.md --- README.md | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/README.md b/README.md index ce0c5aa..24e5106 100644 --- a/README.md +++ b/README.md @@ -106,6 +106,37 @@ Copy url and minimize the termux } ``` +# How to Build in Android Studio + +To build the application in Android Studio, follow these steps: + +1. Open the Android Studio and import the application source code. +2. Navigate to the following path in the source code: `Utils/AppTools.kt`. +3. In the `AppTools.kt` file, locate the `data` variable and copy your server information into it. +4. However, before copying the server information directly into the variable, you must encode it using Base64. +5. Here is an example JSON structure for your server information: + +{ +"host" : "", +"socket" : "", +"webView" : "https://www.google.com" +} + + +6. Fill in the above JSON structure with your server information. +7. Go to https://www.base64encode.org/ and copy the encoded result of your JSON data. +8. In Android Studio, paste the encoded result into the `data` variable. +9. The final code should look like this: + +```kotlin +fun getAppData(): AppData { + val data = "" + val text = decode(data) + return Gson().fromJson(text, AppData::class.java) +} + + Build your application and run it on your Android device. +

🔗 Contact and Social Media Accounts