Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit bc9baa5

Browse files
committed
Refine stuffs
1 parent f323560 commit bc9baa5

File tree

6 files changed

+7
-23
lines changed

6 files changed

+7
-23
lines changed

.github/workflows/debug.yml

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -311,20 +311,4 @@ jobs:
311311
echo "sdk.dir=${ANDROID_HOME}" > local.properties
312312
echo "ndk.dir=${ANDROID_HOME}/ndk/21.4.7075529" >> local.properties
313313
./run update_assets
314-
./gradlew app:assembleOssDebug
315-
- uses: actions/upload-artifact@v2
316-
with:
317-
name: "SHA256-ARM ${{ env.SHA256_ARM }}"
318-
path: ${{ env.SUM_ARM }}
319-
- uses: actions/upload-artifact@v2
320-
with:
321-
name: "SHA256-ARM64 ${{ env.SHA256_ARM64 }}"
322-
path: ${{ env.SUM_ARM64 }}
323-
- uses: actions/upload-artifact@v2
324-
with:
325-
name: "SHA256-X64 ${{ env.SHA256_X64 }}"
326-
path: ${{ env.SUM_X64 }}
327-
- uses: actions/upload-artifact@v2
328-
with:
329-
name: "SHA256-X86 ${{ env.SHA256_X86 }}"
330-
path: ${{ env.SUM_X86 }}
314+
./gradlew app:assembleOssDebug

app/proguard-rules.pro

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,5 @@
44

55
# SnakeYaml
66
-keep class org.yaml.snakeyaml.** { *; }
7-
-keep class org.yaml.snakeyaml.** { *; }
87

9-
-keepattributes SourceFile, LineNumberTable
10-
-dontobfuscate
8+
-keepattributes SourceFile, LineNumberTable

app/src/main/java/io/nekohasekai/sagernet/ui/ScannerActivity.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ class ScannerActivity : ThemedActivity(), BarcodeCallback {
103103
decoder.isMutableRequired = true
104104
}
105105
} else {
106+
@Suppress("DEPRECATION")
106107
MediaStore.Images.Media.getBitmap(contentResolver, uri)
107108
}
108109
val intArray = IntArray(bitmap.width * bitmap.height)

bin/init/action/naive.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/usr/bin/env bash
22

3-
sudo apt install ninja-build pkg-config qemu-user ccache
3+
sudo apt install ninja-build pkg-config
44
sudo apt remove libc6-i386 --autoremove

bin/update_assets.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ mkdir -p app/src/main/assets/v2ray
66
curl -L -o app/src/main/assets/v2ray/geoip.dat "https://github.com/v2fly/geoip/raw/release/geoip.dat"
77
curl -L -o app/src/main/assets/v2ray/geosite.dat "https://github.com/v2fly/domain-list-community/raw/release/dlc.dat"
88

9-
curl -L -o v2ray-extra.zip https://github.com/v2fly/v2ray-core/releases/download/v4.39.1/v2ray-extra.zip
9+
curl -L -o v2ray-extra.zip https://github.com/v2fly/v2ray-core/releases/download/v4.39.2/v2ray-extra.zip
1010
unzip -o v2ray-extra.zip -d app/src/main/assets
1111
rm v2ray-extra.zip
1212
mv app/src/main/assets/browserforwarder/* app/src/main/assets/v2ray

buildSrc/src/main/kotlin/Helpers.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,8 +244,9 @@ fun Project.setupAppCommon() {
244244
dependsOn("package${requireFlavor()}")
245245
}
246246
val assemble = "assemble${requireFlavor()}"
247+
val install = "install${requireFlavor()}"
247248
tasks.whenTaskAdded {
248-
if (name == assemble) dependsOn("calculateAPKsSha256")
249+
if (name == assemble || name == install) dependsOn("calculateAPKsSha256")
249250
}
250251
}
251252
}

0 commit comments

Comments
 (0)