Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
346 commits
Select commit Hold shift + click to select a range
013ac30
Refactor allowInsecure variable declaration (#3736)
codewithtamim Oct 22, 2024
77042f6
Remove unnecessary null check from keywordFilter (#3737)
codewithtamim Oct 22, 2024
796bad1
Remove redundant qualifier from RulesBean initialization (#3738)
codewithtamim Oct 22, 2024
3573a3b
Remove unnecessary null check from subscriptionId (#3739)
codewithtamim Oct 22, 2024
3dcee45
Update strings.xml (#3741)
Oct 23, 2024
5b4f519
Fallback go ver for normal use (#3758)
Oct 24, 2024
0e5b88d
remove parentheses (#3766)
codewithtamim Oct 25, 2024
6f9bb6c
Improve RxJava Disposable Handling in V2RayServiceManager (#3767)
codewithtamim Oct 25, 2024
fc132f7
Improve Exception Handling in File Chooser and Restore Process (#3768)
codewithtamim Oct 25, 2024
5f8ea93
Refactor attachBaseContext for Null Safety and Clean Code (#3769)
codewithtamim Oct 25, 2024
9612b86
Improve Error Handling in LogcatActivity (#3770)
codewithtamim Oct 25, 2024
90f89de
Improve Error Handling in Batch Config Import and Progress Bar Manage…
codewithtamim Oct 25, 2024
f4db6bc
Refactor Binding Logic in AppViewHolder of PerAppProxyAdapter (#3772)
codewithtamim Oct 25, 2024
490ea59
Refactor saveServer Method to Improve Null-Safety and Readability (#3…
codewithtamim Oct 25, 2024
17e0db2
Refactor Import Rulesets from Clipboard (#3774)
codewithtamim Oct 25, 2024
6c29e5e
Optimize refreshData in RoutingSettingActivity (#3775)
codewithtamim Oct 25, 2024
c6758b1
Improve Permission Request and QR Code Decoding in ScannerActivity (#…
codewithtamim Oct 25, 2024
ba54005
Improve Permission Handling and QR Code Import Logic in ScScannerActi…
codewithtamim Oct 25, 2024
28027b5
Fix Comment and Improve Null Safety in ServerCustomConfigActivity (#3…
codewithtamim Oct 25, 2024
fdfd043
Refactor updateMuxConcurrency for Null Safety and Code Simplification…
codewithtamim Oct 25, 2024
82087e1
Refactor UserAssetActivity for readability and efficiency (#3781)
codewithtamim Oct 25, 2024
b66a8ca
Refactor QRCodeDecoder for readability and performance (#3782)
codewithtamim Oct 25, 2024
48a3690
refactor steam visiblity (#3786)
codewithtamim Oct 25, 2024
9caafc4
Add toast insecure protocol
2dust Oct 27, 2024
23264d7
Test connection after updating subscription
2dust Oct 28, 2024
cdede63
Adjustment of preset rule sets
2dust Oct 28, 2024
e60eb70
up 1.9.9
2dust Oct 28, 2024
076a968
targetSdk = 35
2dust Oct 28, 2024
616712b
Rename ProfileItem to ProfileLiteItem
2dust Oct 28, 2024
f5987d9
Update Russian translation (#3802)
solokot Oct 29, 2024
beceaba
Update build.yml (#3804)
Oct 29, 2024
ae4b0fd
Optimize up sub error log (#3805)
Oct 29, 2024
c7ffd6d
Refactor V2rayConfig
2dust Oct 31, 2024
6ad37c7
Refactor server configuration storage
2dust Oct 31, 2024
81ed321
Unit test
2dust Oct 31, 2024
2ec691f
Add port hopping for hy2
2dust Oct 31, 2024
4f43c2c
Reformat code
2dust Oct 31, 2024
341cdb5
Add migrate2ProfileCustom
2dust Oct 31, 2024
65eba37
Bug fix
2dust Nov 1, 2024
c3ac9f0
Refactor code
2dust Nov 1, 2024
709e2a9
Improved settings storage
2dust Nov 1, 2024
c0a6455
Update Persian translation (#3818)
Nov 1, 2024
da21922
Fix
2dust Nov 1, 2024
9c92fdc
Fix
2dust Nov 2, 2024
1f9a71e
Update Russian translation (#3834)
solokot Nov 3, 2024
6da835a
Update translation persian (#3835)
Nov 3, 2024
e5d498e
Update V2rayConfigManager.kt (#3822)
Nov 3, 2024
84e7ee4
Bug fix
2dust Nov 3, 2024
0b3c106
Update build.yml (#3841)
Nov 4, 2024
8549b5e
Optimization (#3842)
Nov 4, 2024
ba760ea
Update V2rayConfigManager.kt (#3847)
Nov 4, 2024
d212cda
You can delete the downloaded geo file, which will be restored to the…
2dust Nov 4, 2024
f488811
up 1.9.10
2dust Nov 4, 2024
d0f7ece
Bug fix
2dust Nov 4, 2024
e4ca04a
Bug fix
2dust Nov 4, 2024
b60b7f4
up 1.9.11
2dust Nov 4, 2024
2bf4b91
Bug fix
2dust Nov 4, 2024
cba58f6
Update V2rayConfigManager.kt (#3860)
Nov 5, 2024
f09a413
Bug fix
2dust Nov 5, 2024
153b4cf
Unable to obtain the notification permission
2dust Nov 5, 2024
0a6a24e
Gradle (#3839)
Nov 5, 2024
b7f992c
Update gradle-wrapper.properties (#3844)
Nov 5, 2024
33d2c3b
Update persian translate (#3867)
Nov 5, 2024
cdfaa01
Revert "Update persian translate (#3867)" (#3868)
Nov 5, 2024
90153fa
Update persian translate (#3869)
Nov 5, 2024
f27c919
Update Russian translation (#3870)
solokot Nov 5, 2024
a727b81
Update registerReceiver usage to comply with Android Tiramisu+ guidel…
codewithtamim Nov 5, 2024
5f16751
Refactor listenForPackageChanges to remove redundant registerReceiver…
codewithtamim Nov 5, 2024
93eb9fe
Introduce NetworkType enum to improve network type handling (#3873)
codewithtamim Nov 5, 2024
b8bb83b
Used safecall `?` (#3874)
codewithtamim Nov 5, 2024
eab9f50
Refactor BootReceiver for improved null handling and readability (#3876)
codewithtamim Nov 5, 2024
65a04b4
Refactor getString call to use orEmpty for null safety (#3877)
codewithtamim Nov 5, 2024
b107c0a
Remove redundant TAG field in ProcessService (#3878)
codewithtamim Nov 5, 2024
aeca9f5
Remove redundant Boolean comparison in runLoop call (#3879)
codewithtamim Nov 5, 2024
2ba9204
Remove unnecessary Boolean comparisons in conditional checks (#3880)
codewithtamim Nov 5, 2024
bfc9a64
Correct isEmpty syntax for collection check (#3881)
codewithtamim Nov 5, 2024
61c0111
Revert "Refactor listenForPackageChanges to remove redundant register…
2dust Nov 5, 2024
e1ff2df
Bug fix
2dust Nov 5, 2024
884b444
up 1.9.12
2dust Nov 5, 2024
7bbdda2
This is a temporary solution
2dust Nov 5, 2024
28a90ba
Bug fix
2dust Nov 6, 2024
4da3a23
up 1.9.13
2dust Nov 6, 2024
2218251
Bug fix
2dust Nov 7, 2024
547bbf8
Bug fix
2dust Nov 7, 2024
c2d5925
up 1.9.14
2dust Nov 7, 2024
875ca02
Bug fix
2dust Nov 8, 2024
0880313
Bug fix
2dust Nov 8, 2024
cfc6546
Update Configuration to Optimize (#3912)
thttg Nov 9, 2024
6914b9e
Bug fix
2dust Nov 9, 2024
96e66da
Update persian translate (#3913)
Nov 9, 2024
25c42c4
newFixedThreadPool(Runtime.getRuntime().availableProcessors())
2dust Nov 9, 2024
9cd5fef
up 1.9.15
2dust Nov 10, 2024
2f56104
Fix UI
2dust Nov 10, 2024
b023414
Fix UI
2dust Nov 10, 2024
80f26cd
Update DNS in Routing and Configurations (#3921)
thttg Nov 12, 2024
e53c36b
Bug fix
2dust Nov 12, 2024
44723c5
up 1.9.16
2dust Nov 12, 2024
bbf0b05
Add Assets From QRcode (#3933)
Chocolate4U Nov 13, 2024
18c0143
Upgrade project to new Android Studio template and migrate Java code …
codewithtamim Nov 15, 2024
cee3a0f
Rename styles.xml and themes.xml for consistency with Android Studio …
codewithtamim Nov 15, 2024
c69a758
Add Bakhtiari language support and fix implementation issues (#3952)
codewithtamim Nov 15, 2024
6db38f6
Update arrays.xml (#3954)
hosseinabaspanah Nov 15, 2024
eb5627c
Update strings.xml (#3955)
hosseinabaspanah Nov 16, 2024
633ee63
Improved duplicate configuration
2dust Nov 16, 2024
834c1ba
Remove quic
2dust Nov 18, 2024
41893d7
SplitHTTP is now XHTTP
2dust Nov 18, 2024
2626462
Remove unnecessary Context parameter from setNightMode (#3971)
codewithtamim Nov 18, 2024
ab22bb9
Updated the WorkManager configuration to replace `BuildConfig.APPLICA…
codewithtamim Nov 18, 2024
5d47777
Add xhttp mode
2dust Nov 18, 2024
f67af69
Improve Utils
2dust Nov 19, 2024
1ba5c5a
Add xhttp extra
2dust Nov 19, 2024
640c16d
Improve Fmt
2dust Nov 19, 2024
d75eca8
Update gradle-wrapper.properties (#3969)
Nov 19, 2024
5eb3566
Add libhysteria2.so
2dust Nov 19, 2024
bcbcbc9
Update Luri Bakhtiari translation (#3985)
hosseinabaspanah Nov 19, 2024
e2c1081
Update Persian Translation (#3980)
Nov 19, 2024
5695c17
Code optimization
2dust Nov 19, 2024
e078a2a
up 1.9.17
2dust Nov 19, 2024
1f6104d
Update Russian translation (#3987)
solokot Nov 19, 2024
6f2c96c
Bug fix
2dust Nov 19, 2024
9b4cc20
Add preSharedKey support and fix parsing function #3512 (#3989)
codewithtamim Nov 20, 2024
5373579
Import rulesets from qrcode (#3991)
Chocolate4U Nov 20, 2024
406a9f9
up 1.9.18
2dust Nov 20, 2024
30a4c21
Improved Russian translation (#3997)
solokot Nov 20, 2024
11750b9
Improved Persian translation (#4001)
Nov 21, 2024
3e09adc
Improved Luri Bakhtiari Translation (#4003)
hosseinabaspanah Nov 21, 2024
2dc0472
When creating a new routing rule, add it to the top
2dust Nov 21, 2024
f252d13
up 1.9.19
2dust Nov 21, 2024
934cf5d
Bug fix
2dust Nov 23, 2024
c78e624
Add VPN setHttpProxy
2dust Nov 23, 2024
4a62aff
Add OSS Licenses Plugin to Display Open Source Licenses (#4022)
codewithtamim Nov 23, 2024
f3abd0d
up 1.9.20
2dust Nov 24, 2024
aa0f563
Bug fix
2dust Nov 26, 2024
a3591e4
Update Luri Bakhtiari translation (#4032)
hosseinabaspanah Nov 26, 2024
1b2cc11
up 1.9.21
2dust Nov 26, 2024
5ba4352
Update Persian Translation (#4041)
Nov 27, 2024
4d8e38b
Update kotlin version to 2.1.0 (#4050)
Nov 28, 2024
dca5011
Append HTTP Proxy to VPN setting
2dust Nov 28, 2024
e674d22
Update persian translate (#4059)
Nov 28, 2024
75cc16c
Update Russian translation (#4060)
solokot Nov 28, 2024
49cd3a0
Bug fix
2dust Nov 28, 2024
b52e89d
Update persian translate (#4062)
Nov 28, 2024
ba622c7
Update Luri Bakhtiari translation (#4063)
hosseinabaspanah Nov 28, 2024
eea6db6
up 1.9.22
2dust Nov 28, 2024
b33cc52
Add restart button in notification
2dust Nov 29, 2024
e91f447
Update persian translate (#4064)
Nov 30, 2024
98c642e
Bug fix
2dust Nov 30, 2024
59a710b
up 1.9.23
2dust Nov 30, 2024
6fc9803
Delete splithttp
2dust Nov 30, 2024
4c0f2d8
Add stream-one
2dust Dec 2, 2024
85ad999
Export complete configuration for hysteria2
2dust Dec 2, 2024
8b06745
Using mixed local listening ports
2dust Dec 3, 2024
6d92106
Shows how many configurations have been deleted
2dust Dec 4, 2024
e61f5ee
Shows how many configurations have been export/import/Update
2dust Dec 4, 2024
7a1af59
Shows how many configurations have been test
2dust Dec 4, 2024
5cf2ea5
Update translation persian (#4096)
Dec 4, 2024
5124266
up 1.9.24
2dust Dec 4, 2024
eaccf23
Update Luri Bakhtiari translation (#4097)
hosseinabaspanah Dec 5, 2024
a0e73a9
Fix typos
2dust Dec 5, 2024
c8d3607
Fix
2dust Dec 5, 2024
25a4d7c
Update Russian translation (#4101)
solokot Dec 5, 2024
de30fa1
Update persian translation (#4102)
Dec 5, 2024
3b43fe3
Prevent showing the location of the USA during WebRTC Leak (#4103)
deepsm0ke Dec 6, 2024
f9feb08
Update translation (#4104)
Dec 7, 2024
0923659
Update Luri Bakhtiari translation (#4105)
hosseinabaspanah Dec 7, 2024
7a852f7
Update package info logic for better encapsulation (#4110)
codewithtamim Dec 8, 2024
f01cf7f
Disable mux when using xhttp
2dust Dec 16, 2024
7438ee8
up 1.9.25
2dust Dec 18, 2024
fcf6e22
Add fastlane metadata for F-Droid (#4121)
UjuiUjuMandan Dec 19, 2024
69ede34
up 1.9.26
2dust Dec 19, 2024
140c236
Add DNS hosts (Format: domain:address,…)
2dust Dec 19, 2024
e536236
Update Russian translation (#4156)
solokot Dec 20, 2024
1f1e4db
Update persian translate (#4158)
Dec 20, 2024
54d5207
Add signature for build
2dust Dec 20, 2024
70f1743
Switch to gradle-license-plugin (#4160)
UjuiUjuMandan Dec 21, 2024
e46c1ee
switch to quickie-foss for QR code (#4161)
UjuiUjuMandan Dec 21, 2024
c1cebe5
fdroid flavor and split abi (#4162)
UjuiUjuMandan Dec 21, 2024
124702f
Fix libs
2dust Dec 21, 2024
149bb04
Fix flavor build (#4164)
UjuiUjuMandan Dec 21, 2024
4cf28d0
Fix split apk (#4165)
UjuiUjuMandan Dec 21, 2024
b5f182d
Update build.yml (#4166)
Dec 21, 2024
ebfbbfa
Revert "Update build.yml (#4166)"
2dust Dec 21, 2024
0e6c860
JavaVersion.VERSION_17
2dust Dec 21, 2024
7afffa6
Code clean
2dust Dec 21, 2024
4fb8c2f
org.gradle.jvmargs=-Xmx4096m
2dust Dec 21, 2024
02038a5
Build and cache libtun2socks and libv2ray (#4167)
UjuiUjuMandan Dec 21, 2024
68fbdd9
s/versionNameSuffix/applicationIdSuffix (#4168)
UjuiUjuMandan Dec 21, 2024
eb8562e
Ignore libtun2socks.so (#4169)
UjuiUjuMandan Dec 22, 2024
41bc064
Optimization logcat after change quickie-foss (#4171)
Dec 22, 2024
3edf1f4
Refine cache key (#4172)
UjuiUjuMandan Dec 22, 2024
f6282ba
Ignore libhysteria2.so
2dust Dec 23, 2024
4f11bae
Update Luri Bakhtiari translation (#4178)
hosseinabaspanah Dec 23, 2024
fde39bf
Bug fix for isXray()
2dust Dec 24, 2024
e11dca0
Add release function to build
2dust Dec 24, 2024
496a048
up 1.9.27
2dust Dec 24, 2024
f96073a
Update build.yml
2dust Dec 25, 2024
affb107
Sagernet (#4194)
UjuiUjuMandan Dec 28, 2024
c0fed0b
Download libv2ray from 2dust/AndroidLibXrayLite (#4200)
UjuiUjuMandan Dec 28, 2024
244d2d3
Fix bugs related to routing rules
2dust Dec 29, 2024
337889c
up 1.9.28
2dust Dec 29, 2024
daca083
Remove the last rule from the Whitelist
2dust Dec 31, 2024
833a1e0
Add VPN bypass LAN option
2dust Jan 1, 2025
19dbc2f
up 1.9.29
2dust Jan 1, 2025
684e08a
Update Persian translate (#4214)
Jan 2, 2025
2778942
up 1.9.30
2dust Jan 2, 2025
4a5c551
ndk for gradlew (#4220)
UjuiUjuMandan Jan 2, 2025
5bf2beb
Update Persian translate (#4219)
Jan 3, 2025
26bee22
Update Russian translation (#4221)
solokot Jan 3, 2025
7dbda3c
Build and cache libhysteria2.so (#4226)
UjuiUjuMandan Jan 4, 2025
dcb003f
Submodules (#4234)
UjuiUjuMandan Jan 5, 2025
1c70424
Fixup! 7dbda3c (#4237)
UjuiUjuMandan Jan 5, 2025
c37f09b
Fix logcat
2dust Jan 7, 2025
a54ed3a
Update libs.versions.toml
2dust Jan 7, 2025
047011f
up 1.9.31
2dust Jan 7, 2025
c94a5fb
Update Luri Bakhtiari translation
2dust Jan 7, 2025
efd0716
Custom configuration can use any outbound
2dust Jan 7, 2025
3a6e23b
Fix the bug of mux parameter taking
2dust Jan 8, 2025
4d875bc
Add theme to SwitchCompat for tasker
2dust Jan 9, 2025
e0c8ece
Reproducible Builds for libhysteria2.so (#4249)
UjuiUjuMandan Jan 11, 2025
0d0da6b
Update Persian translate (#4256)
Jan 12, 2025
a4edf86
Improved logcat
2dust Jan 13, 2025
abff80e
Adjust UI
2dust Jan 13, 2025
2a43b52
Logcat add pull-down refresh
2dust Jan 13, 2025
6ff3a73
Adjust UI for subscription
2dust Jan 13, 2025
7e99b1a
up 1.9.32
2dust Jan 13, 2025
d8d3767
Update Persian translate (#4264)
Jan 14, 2025
e55e069
Add bandwidth to hysteria2 settings
2dust Jan 16, 2025
f4e0881
Update Persian translate (#4269)
Jan 16, 2025
9e3b920
logcat content reversed
2dust Jan 17, 2025
c3786d4
remove patch (#4279)
Jan 19, 2025
d7d3b23
Update Russian translation (#4281)
solokot Jan 25, 2025
10b849e
Update Luri Bakhtiari translation (#4286)
hosseinabaspanah Jan 25, 2025
0fb705e
Update libs.versions.toml
2dust Jan 25, 2025
d51a4d7
Update libs.versions.toml (#4291)
Jan 25, 2025
eb22c7f
up 1.9.33
2dust Jan 25, 2025
04c9832
up 1.9.34
2dust Jan 30, 2025
3a0f268
Update_Submodules (#4292)
Jan 30, 2025
e8d2c62
Update dependencies (#4301)
Jan 30, 2025
2bc31a1
rm AndroidLibV2rayLite (#4303)
UjuiUjuMandan Jan 31, 2025
4a653d4
Fix badvpn (#4302)
UjuiUjuMandan Jan 31, 2025
cfc8f15
Merge remote-tracking branch 'upstream/master' into m3
GFW-knocker Feb 1, 2025
44383aa
Merge pull request #25 from mahsanet/m3
GFW-knocker Feb 1, 2025
acea484
del submodule
GFW-knocker Feb 1, 2025
ff15eea
del xraylib submodule
GFW-knocker Feb 1, 2025
d819631
nika v1.9.34
GFW-knocker Feb 6, 2025
0015bfd
Add files via upload
GFW-knocker Feb 6, 2025
83b79d5
Add files via upload
GFW-knocker Feb 6, 2025
d33c710
Add files via upload
GFW-knocker Feb 6, 2025
494f430
Add files via upload
GFW-knocker Feb 6, 2025
81a320f
Merge pull request #27 from mahsanet/m4-tmp
GFW-knocker Feb 6, 2025
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
145 changes: 129 additions & 16 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
name: Build APK

on:
push:
workflow_dispatch:
inputs:
XRAY_CORE_VERSION:
description: 'Xray core version or commit hash'
release_tag:
required: false

type: string
push:
branches:
- master

jobs:
build:
Expand All @@ -16,23 +17,108 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
submodules: 'recursive'
fetch-depth: '0'

- name: Setup Java
uses: actions/setup-java@v4
- name: Restore cached libtun2socks
id: cache-libtun2socks-restore
uses: actions/cache/restore@v4
with:
distribution: 'temurin'
java-version: '17'
path: ${{ github.workspace }}/AndroidLibXrayLite/libs
key: libtun2socks-${{ runner.os }}-${{ hashFiles('.git/modules/badvpn/refs/heads/main') }}-${{ hashFiles('.git/modules/libancillary/refs/heads/shadowsocks-android') }}

- name: Setup Android NDK
uses: nttld/setup-ndk@v1
id: setup-ndk
# Same version as https://gitlab.com/fdroid/fdroiddata/metadata/com.v2ray.ang.yml
with:
ndk-version: r27
add-to-path: true
link-to-sdk: true
local-cache: true

- name: Restore Android Symlinks
run: |
directory="${{ steps.setup-ndk.outputs.ndk-path }}/toolchains/llvm/prebuilt/linux-x86_64/bin"
find "$directory" -type l | while read link; do
current_target=$(readlink "$link")
new_target="$directory/$(basename "$current_target")"
ln -sf "$new_target" "$link"
echo "Changed $(basename "$link") from $current_target to $new_target"
done

- name: Build libtun2socks
if: steps.cache-libtun2socks-restore.outputs.cache-hit != 'true'
run: |
bash compile-tun2socks.sh
tar -xvzf libtun2socks.so.tgz
env:
NDK_HOME: ${{ steps.setup-ndk.outputs.ndk-path }}

- name: Save libtun2socks
if: steps.cache-libtun2socks-restore.outputs.cache-hit != 'true'
uses: actions/cache/save@v4
with:
path: ${{ github.workspace }}/libs
key: libtun2socks-${{ runner.os }}-${{ hashFiles('.git/modules/badvpn/refs/heads/main') }}-${{ hashFiles('.git/modules/libancillary/refs/heads/shadowsocks-android') }}

- name: Copy libtun2socks
run: |
cp -r ${{ github.workspace }}/libs ${{ github.workspace }}/V2rayNG/app

- name: Fetch AndroidLibXrayLite tag
run: |
pushd AndroidLibXrayLite
CURRENT_TAG=$(git describe --tags --abbrev=0)
echo "Current tag in this repo: $CURRENT_TAG"
echo "CURRENT_TAG=$CURRENT_TAG" >> $GITHUB_ENV
popd

- name: Download libv2ray
uses: robinraju/release-downloader@v1
with:
repository: '2dust/AndroidLibXrayLite'
tag: ${{ env.CURRENT_TAG }}
fileName: 'libv2ray.aar'
out-file-path: V2rayNG/app/libs/

- name: Restore cached libhysteria2
id: cache-libhysteria2-restore
uses: actions/cache/restore@v4
with:
path: ${{ github.workspace }}/hysteria/libs
key: libhysteria2-${{ runner.os }}-${{ hashFiles('.git/modules/hysteria/HEAD') }}-${{ hashFiles('libhysteria2.sh') }}

- name: Setup Golang
if: steps.cache-libhysteria2-restore.outputs.cache-hit != 'true'
uses: actions/setup-go@v5
with:
go-version: '1.22.2'
go-version-file: 'AndroidLibXrayLite/go.mod'

- name: Install gomobile
- name: Build libhysteria2
if: steps.cache-libhysteria2-restore.outputs.cache-hit != 'true'
run: |
go install golang.org/x/mobile/cmd/gomobile@latest
echo "$(go env GOPATH)/bin" >> $GITHUB_PATH
bash libhysteria2.sh
env:
ANDROID_NDK_HOME: ${{ steps.setup-ndk.outputs.ndk-path }}

- name: Save libhysteria2
if: steps.cache-libhysteria2-restore.outputs.cache-hit != 'true'
uses: actions/cache/save@v4
with:
path: ${{ github.workspace }}/hysteria/libs
key: libhysteria2-${{ runner.os }}-${{ hashFiles('.git/modules/hysteria/HEAD') }}-${{ hashFiles('libhysteria2.sh') }}

- name: Copy libhysteria2
run: |
cp -r ${{ github.workspace }}/hysteria/libs ${{ github.workspace }}/V2rayNG/app

- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '21'

- name: Setup Android environment
uses: android-actions/setup-android@v3
Expand All @@ -54,10 +140,37 @@ jobs:
run: |
cd ${{ github.workspace }}/V2rayNG
chmod 755 gradlew
./gradlew assembleDebug
./gradlew licenseFdroidReleaseReport
./gradlew assembleRelease -Pandroid.injected.signing.store.file=${{ steps.android_keystore.outputs.filePath }} -Pandroid.injected.signing.store.password=${{ secrets.APP_KEYSTORE_PASSWORD }} -Pandroid.injected.signing.key.alias=${{ secrets.APP_KEYSTORE_ALIAS }} -Pandroid.injected.signing.key.password=${{ secrets.APP_KEY_PASSWORD }}
env:
ANDROID_NDK_HOME: ${{ steps.setup-ndk.outputs.ndk-path }}

- name: Upload APK
- name: Upload arm64-v8a APK
uses: actions/upload-artifact@v4
if: ${{ success() }}
with:
name: arm64-v8a
path: ${{ github.workspace }}/V2rayNG/app/build/outputs/apk/*/release/*arm64-v8a*.apk

- name: Upload armeabi-v7a APK
uses: actions/upload-artifact@v4
if: ${{ success() }}
with:
name: armeabi-v7a
path: ${{ github.workspace }}/V2rayNG/app/build/outputs/apk/*/release/*armeabi-v7a*.apk

- name: Upload x86 APK
uses: actions/upload-artifact@v4
if: ${{ success() }}
with:
name: x86-apk
path: ${{ github.workspace }}/V2rayNG/app/build/outputs/apk/*/release/*x86*.apk

- name: Upload to release
uses: svenstaro/upload-release-action@v2
if: github.event.inputs.release_tag != ''
with:
name: apk
path: ${{ github.workspace }}/V2rayNG/app/build/outputs/apk/debug/
file: ${{ github.workspace }}/V2rayNG/app/build/outputs/apk/*playstore*/release/*.apk
tag: ${{ github.event.inputs.release_tag }}
file_glob: true
prerelease: true
16 changes: 16 additions & 0 deletions .github/workflows/fastlane.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Validate Fastlane metadata

on:
workflow_dispatch:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

jobs:
go:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Validate Fastlane Supply Metadata
uses: ashutoshgngwr/[email protected]
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
V2rayNG/app/release/output.json
.idea/
.gradle/
*.so
20 changes: 0 additions & 20 deletions AndroidLibV2rayLite/README.md

This file was deleted.

Loading