mirror of
https://github.com/dyhkwong/Exclave.git
synced 2026-06-09 10:32:22 +08:00
Refine stuffs
This commit is contained in:
18
.github/workflows/debug.yml
vendored
18
.github/workflows/debug.yml
vendored
@@ -311,20 +311,4 @@ jobs:
|
||||
echo "sdk.dir=${ANDROID_HOME}" > local.properties
|
||||
echo "ndk.dir=${ANDROID_HOME}/ndk/21.4.7075529" >> local.properties
|
||||
./run update_assets
|
||||
./gradlew app:assembleOssDebug
|
||||
- uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: "SHA256-ARM ${{ env.SHA256_ARM }}"
|
||||
path: ${{ env.SUM_ARM }}
|
||||
- uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: "SHA256-ARM64 ${{ env.SHA256_ARM64 }}"
|
||||
path: ${{ env.SUM_ARM64 }}
|
||||
- uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: "SHA256-X64 ${{ env.SHA256_X64 }}"
|
||||
path: ${{ env.SUM_X64 }}
|
||||
- uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: "SHA256-X86 ${{ env.SHA256_X86 }}"
|
||||
path: ${{ env.SUM_X86 }}
|
||||
./gradlew app:assembleOssDebug
|
||||
4
app/proguard-rules.pro
vendored
4
app/proguard-rules.pro
vendored
@@ -4,7 +4,5 @@
|
||||
|
||||
# SnakeYaml
|
||||
-keep class org.yaml.snakeyaml.** { *; }
|
||||
-keep class org.yaml.snakeyaml.** { *; }
|
||||
|
||||
-keepattributes SourceFile, LineNumberTable
|
||||
-dontobfuscate
|
||||
-keepattributes SourceFile, LineNumberTable
|
||||
@@ -103,6 +103,7 @@ class ScannerActivity : ThemedActivity(), BarcodeCallback {
|
||||
decoder.isMutableRequired = true
|
||||
}
|
||||
} else {
|
||||
@Suppress("DEPRECATION")
|
||||
MediaStore.Images.Media.getBitmap(contentResolver, uri)
|
||||
}
|
||||
val intArray = IntArray(bitmap.width * bitmap.height)
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
sudo apt install ninja-build pkg-config qemu-user ccache
|
||||
sudo apt install ninja-build pkg-config
|
||||
sudo apt remove libc6-i386 --autoremove
|
||||
|
||||
@@ -6,7 +6,7 @@ mkdir -p app/src/main/assets/v2ray
|
||||
curl -L -o app/src/main/assets/v2ray/geoip.dat "https://github.com/v2fly/geoip/raw/release/geoip.dat"
|
||||
curl -L -o app/src/main/assets/v2ray/geosite.dat "https://github.com/v2fly/domain-list-community/raw/release/dlc.dat"
|
||||
|
||||
curl -L -o v2ray-extra.zip https://github.com/v2fly/v2ray-core/releases/download/v4.39.1/v2ray-extra.zip
|
||||
curl -L -o v2ray-extra.zip https://github.com/v2fly/v2ray-core/releases/download/v4.39.2/v2ray-extra.zip
|
||||
unzip -o v2ray-extra.zip -d app/src/main/assets
|
||||
rm v2ray-extra.zip
|
||||
mv app/src/main/assets/browserforwarder/* app/src/main/assets/v2ray
|
||||
|
||||
@@ -244,8 +244,9 @@ fun Project.setupAppCommon() {
|
||||
dependsOn("package${requireFlavor()}")
|
||||
}
|
||||
val assemble = "assemble${requireFlavor()}"
|
||||
val install = "install${requireFlavor()}"
|
||||
tasks.whenTaskAdded {
|
||||
if (name == assemble) dependsOn("calculateAPKsSha256")
|
||||
if (name == assemble || name == install) dependsOn("calculateAPKsSha256")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user