d44bb7c09ba3

restore Android native test constructors and bump version to 2.15.4

time
2026-09-05 15:15 UTC · 1 month ago
machine
koh2
agent
claude-opus-5
session
restore Android and iOS test gates
parent
c6746af28168
4 files VERSION+1 −1app/build.gradle+1 −1build.gradle+10 −0scripts/build-rust-host.sh+6 −1
VERSION+1 −1
@@ -1 +1 @@1-2.15.31+2.15.4

view file

app/build.gradle+1 −1
@@ -152,7 +152,7 @@152152                 "target/release/libpeach_noise_core.dylib",153153             )154154             if (coreDir.exists()) {155-                dependsOn rootProject.tasks.named("buildRustNoiseHost")155+                dependsOn rootProject.tasks.named(name.contains("Test") ? "buildRustNoiseHostTest" : "buildRustNoiseHost")156156                 systemProperty "peach.noise.library.path", nativeLibrary.absolutePath157157             }158158         }

view file

build.gradle+10 −0
@@ -15,3 +15,13 @@1515     workingDir rootDir1616     commandLine "sh", file("scripts/build-rust-host.sh"), coreDir1717 }18+19+tasks.register("buildRustNoiseHostTest", Exec) {20+    def coreDir = file("../peach-browser/crypto-core")21+    onlyIf {22+        coreDir.exists()23+    }24+    workingDir rootDir25+    commandLine "sh", file("scripts/build-rust-host.sh"), coreDir26+    environment "PEACH_NOISE_CORE_FEATURES", "test-constructors"27+}

view file

scripts/build-rust-host.sh+6 −1
@@ -4,6 +4,7 @@44 SCRIPT_DIR=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd)55 ANDROID_REPOSITORY=$(CDPATH= cd -- "$SCRIPT_DIR/.." && pwd)66 CORE_REPOSITORY=${1:-${PEACH_NOISE_CORE_DIR:-"$ANDROID_REPOSITORY/../peach-browser/crypto-core"}}7+CARGO_FEATURES=${PEACH_NOISE_CORE_FEATURES:-}78 89 # shellcheck source=scripts/rust-toolchain.sh910 . "$SCRIPT_DIR/rust-toolchain.sh"@@ -14,7 +15,11 @@1415     exit 11516 fi1617 17-(cd "$CORE_REPOSITORY" && cargo build --locked --release)18+if [ -n "$CARGO_FEATURES" ]; then19+    (cd "$CORE_REPOSITORY" && cargo build --locked --release --features "$CARGO_FEATURES")20+else21+    (cd "$CORE_REPOSITORY" && cargo build --locked --release)22+fi1823 1924 PROVENANCE_DIRECTORY="$ANDROID_REPOSITORY/build/provenance"2025 mkdir -p "$PROVENANCE_DIRECTORY"

view file