Browse Source

Refine build

世界 4 năm trước cách đây
mục cha
commit
cde6a1dce3
5 tập tin đã thay đổi với 8 bổ sung79 xóa
  1. 3 40
      .github/workflows/debug.yml
  2. 2 37
      README.md
  3. 1 1
      app/build.gradle
  4. 1 0
      app/src/main/res/values-zh-rCN/strings.xml
  5. 1 1
      build.gradle

+ 3 - 40
.github/workflows/debug.yml

@@ -60,18 +60,9 @@ jobs:
         if: steps.cache.outputs.cache-hit != 'true'
         with:
           go-version: 1.16
-      - name: Gradle cache
-        uses: actions/cache@v2
-        if: steps.cache.outputs.cache-hit != 'true'
-        with:
-          path: ~/.gradle
-          key: native-${{ hashFiles('**/*.gradle') }}
       - name: Native Build
         if: steps.cache.outputs.cache-hit != 'true'
-        run: |
-          echo "sdk.dir=${ANDROID_HOME}" > local.properties
-          echo "ndk.dir=${ANDROID_HOME}/ndk/21.4.7075529" >> local.properties
-          ./run libs v2ray
+        run: ./run libs v2ray
   xtls:
     name: Native Build (XTLS)
     runs-on: ubuntu-latest
@@ -92,19 +83,9 @@ jobs:
         if: steps.cache.outputs.cache-hit != 'true'
         with:
           go-version: 1.16
-      - name: Gradle cache
-        uses: actions/cache@v2
-        if: steps.cache.outputs.cache-hit != 'true'
-        with:
-          path: ~/.gradle
-          key: native-${{ hashFiles('**/*.gradle') }}
       - name: Native Build
         if: steps.cache.outputs.cache-hit != 'true'
-        run: |
-          echo "sdk.dir=${ANDROID_HOME}" > local.properties
-          echo "ndk.dir=${ANDROID_HOME}/ndk/21.4.7075529" >> local.properties
-          ./run libs xtls
-          ./gradlew xtls-plugin:assembleDebug
+        run: ./run libs xtls
   trojan-go:
     name: Native Build (Trojan-Go)
     runs-on: ubuntu-latest
@@ -125,19 +106,9 @@ jobs:
         if: steps.cache.outputs.cache-hit != 'true'
         with:
           go-version: 1.16
-      - name: Gradle cache
-        uses: actions/cache@v2
-        if: steps.cache.outputs.cache-hit != 'true'
-        with:
-          path: ~/.gradle
-          key: native-${{ hashFiles('**/*.gradle') }}
       - name: Native Build
         if: steps.cache.outputs.cache-hit != 'true'
-        run: |
-          echo "sdk.dir=${ANDROID_HOME}" > local.properties
-          echo "ndk.dir=${ANDROID_HOME}/ndk/21.4.7075529" >> local.properties
-          ./run libs trojan_go
-          ./gradlew trojan-go-plugin:assembleDebug
+        run: ./run libs trojan_go
   naive:
     runs-on: ubuntu-latest
     name: Native Build (NaïveProxy)
@@ -157,17 +128,9 @@ jobs:
           path: |
             naive-plugin/src/main/jniLibs/${{ matrix.arch }}
           key: naive-${{ matrix.arch }}-${{ hashFiles('bin/libs/naive/*', 'naive_status') }}
-      - name: Gradle cache
-        uses: actions/cache@v2
-        if: steps.cache.outputs.cache-hit != 'true'
-        with:
-          path: ~/.gradle
-          key: native-${{ hashFiles('**/*.gradle') }}
       - name: Native Build
         if: steps.cache.outputs.cache-hit != 'true'
         run: |
-          echo "sdk.dir=${ANDROID_HOME}" > local.properties
-          echo "ndk.dir=${ANDROID_HOME}/ndk/21.4.7075529" >> local.properties
           ./run init action naive
           ./run libs naive ${{ matrix.arch }}
   shadowsocks:

+ 2 - 37
README.md

@@ -7,44 +7,9 @@
 
 The universal proxy toolchain for Android, written in Kotlin.
 
-## PROTOCOLS
+## DOCUMENTS
 
-The application is designed to be used whenever possible.
-
-### PROXY
-
-* SOCKS
-* HTTP(S)
-* Shadowsocks
-* ShadowsocksR
-* VMess
-* VLESS
-* Trojan
-* VLESS / Trojan + XTLS ( xtls-plugin )
-* Trojan-Go ( trojan-go-plugin )
-* NaïveProxy ( naive-plugin )
-
-### SUBSCRIPTION
-
-* Universal base64 format
-* Shadowsocks SIP008
-* Just My Socks' proprietary format
-* Clash
-
-## FEATURES
-
-* Full basic features
-* V2Ray WebSocket browser forwarding
-* Option to change the notification update interval
-* A Chinese apps scanner (based on dex classpath scanning, so it may be slower)
-* Proxy chain
-* Advanced routing with outbound profile selection support
-
-## TIPS
-
-* Click on the title to scroll to the first proxy or the selected proxy
-* Proxy list can be dragged by holding the progress bar
-* The Chinese apps scanner will only scan system apps if "Show system apps" is checked
+https://sagernet.org
 
 ## OPEN SOURCE LICENSES
 

+ 1 - 1
app/build.gradle

@@ -199,7 +199,7 @@ dependencies {
     implementation "com.squareup.okhttp3:okhttp:5.0.0-alpha.2"
     implementation "org.yaml:snakeyaml:1.28"
     implementation "com.github.daniel-stoneuk:material-about-library:3.2.0-rc01"
-    implementation "com.mikepenz:aboutlibraries:8.8.5"
+    implementation "com.mikepenz:aboutlibraries:8.8.6"
 
     implementation("com.simplecityapps:recyclerview-fastscroll:2.0.1") {
         exclude group: "androidx.recyclerview"

+ 1 - 0
app/src/main/res/values-zh-rCN/strings.xml

@@ -287,5 +287,6 @@
     <string name="dns_remote_tcp">"强制使用 TCP 连接远程 DNS "</string>
     <string name="enable_domestic_dns">启用国内 DNS</string>
     <string name="dns_domestic">国内 DNS</string>
+    <string name="extra_headers">附加标头</string>
 
 </resources>

+ 1 - 1
build.gradle

@@ -11,7 +11,7 @@ buildscript {
         classpath 'com.android.tools.build:gradle:4.2.1'
         classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
         classpath "gradle.plugin.org.mozilla.rust-android-gradle:plugin:0.8.3"
-        classpath "com.mikepenz.aboutlibraries.plugin:aboutlibraries-plugin:8.8.5"
+        classpath "com.mikepenz.aboutlibraries.plugin:aboutlibraries-plugin:8.8.6"
         //noinspection GradleDependency
         classpath "com.github.triplet.gradle:play-publisher:3.4.0-agp4.2"
         classpath "com.github.ben-manes:gradle-versions-plugin:0.38.0"