Skip to content

Commit

Permalink
Fix some errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Pururun committed Dec 10, 2024
1 parent da70d0f commit 52259cf
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 9 deletions.
2 changes: 1 addition & 1 deletion android/app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ android {
namespace = "net.mullvad.mullvadvpn"
compileSdk = Versions.compileSdkVersion
buildToolsVersion = Versions.buildToolsVersion
ndkVersion = "27.1.12297006"
ndkVersion = "27.2.12479018"

defaultConfig {
val localProperties = gradleLocalProperties(rootProject.projectDir, providers)
Expand Down
2 changes: 0 additions & 2 deletions android/build-apk.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ BUILD_BUNDLE="no"
BUNDLE_TASKS=(createPlayProdReleaseDistBundle)
RUN_PLAY_PUBLISH_TASKS="no"
PLAY_PUBLISH_TASKS=()
CARGO_ARGS=( "--release" )
CARGO_TARGET_DIR=${CARGO_TARGET_DIR:-"target"}
SKIP_STRIPPING=${SKIP_STRIPPING:-"no"}

while [ -n "${1:-""}" ]; do
Expand Down
10 changes: 4 additions & 6 deletions wireguard-go-rs/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -176,10 +176,7 @@ fn build_android_dynamic_lib(daita: bool) -> anyhow::Result<()> {
"cargo::rerun-if-changed={}",
android_output_path(target)?.join("libwg.so").display()
);
println!(
"cargo::rerun-if-changed={}",
libwg_path()?.display()
);
println!("cargo::rerun-if-changed={}", libwg_path()?.display());

// Before calling `canonicalize`, the directory we're referring to actually has to exist.
std::fs::create_dir_all("../build")?;
Expand Down Expand Up @@ -279,13 +276,14 @@ fn android_arch_name(target: AndroidTarget) -> String {

// Returns the path where the Android project expects Rust binaries to be
fn android_output_path(target: AndroidTarget) -> anyhow::Result<PathBuf> {
let relative_output_path = Path::new("../android/app/build/rustJniLibs/android").join(android_abi(target));
let relative_output_path =
Path::new("../android/app/build/rustJniLibs/android").join(android_abi(target));
std::fs::create_dir_all(relative_output_path.clone())?;
let output_path = relative_output_path.canonicalize()?;
Ok(output_path)
}

// Return the path of the libwg folder so that we can trigger rebuilds when any code is
// Return the path of the libwg folder so that we can trigger rebuilds when any code is
fn libwg_path() -> anyhow::Result<PathBuf> {
let relative_output_path = Path::new("libwg");
let output_path = relative_output_path.canonicalize()?;
Expand Down

0 comments on commit 52259cf

Please sign in to comment.