Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prepare for F-Droid #26

Merged
merged 4 commits into from
Jul 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@ jobs:
submodules: true
- name: Build
run: |
sudo apt-get update -y && sudo apt-get install -y wget unzip file git openjdk-11-jdk openjdk-17-jdk
sudo apt-get update -y && sudo apt-get install -y wget unzip file git openjdk-17-jdk
git submodule foreach git submodule update --init
wget https://dl.google.com/android/repository/commandlinetools-linux-11076708_latest.zip
mkdir sdk
unzip -d sdk commandlinetools-linux-11076708_latest.zip
export ANDROID_HOME=`pwd`/sdk
export ANDROID_SDK_ROOT=`pwd`/sdk
export JAVA_HOME=/usr/lib/jvm/java-17-openjdk-amd64
yes | sdk/cmdline-tools/bin/sdkmanager --sdk_root=`pwd`/sdk --licenses
export JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64
./gradlew assembleRelease
cp app/build/outputs/apk/release/hev.sockstun-*-release.apk hev.sockstun-release.apk
- name: Upload
Expand Down
9 changes: 8 additions & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
apply plugin: 'com.android.application'

android {
namespace "hev.sockstun"
compileSdkVersion 34
ndkVersion "26.3.11579264"

defaultConfig {
applicationId "hev.sockstun"
Expand All @@ -13,6 +15,11 @@ android {
ndk {
abiFilters "armeabi-v7a", "arm64-v8a",'x86','x86_64'
}
externalNativeBuild {
ndkBuild {
arguments "LOCAL_LDFLAGS+=-Wl,--build-id=none"
}
}
}

signingConfigs {
Expand All @@ -25,7 +32,7 @@ android {
minifyEnabled false
signingConfig signingConfigs.release
}
debug {
debug {
minifyEnabled false
signingConfig signingConfigs.release
}
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ buildscript {
*/

dependencies {
classpath 'com.android.tools.build:gradle:4.2.0'
classpath 'com.android.tools.build:gradle:8.4.1'
}
}

Expand Down
12 changes: 12 additions & 0 deletions fastlane/metadata/android/en-US/full_description.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
A simple and lightweight VPN over socks5 proxy for Android. It is based on a high-performance and low-overhead tun2socks.

<h2>Features</h2>

<ul>
<li>Redirect TCP connections.</li>
<li>Redirect UDP packets. (Fullcone NAT, UDP in UDP/TCP)</li>
<li>Simple username/password authentication.</li>
<li>Specifying DNS addresses.</li>
<li>IPv4/IPv6 dual stack.</li>
<li>Global/per-App modes.</li>
</ul>
1 change: 1 addition & 0 deletions fastlane/metadata/android/en-US/short_description.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
A simple and lightweight VPN over socks5 proxy (tun2socks)
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
3 changes: 2 additions & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.7.1-bin.zip
distributionSha256Sum=a4b4158601f8636cdeeab09bd76afb640030bb5b144aafe261a5e8af027dc612
distributionUrl=https\://services.gradle.org/distributions/gradle-8.8-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists