diff --git a/java/build_jni.sh b/java/build_jni.sh index 7aea983d..19000dd9 100755 --- a/java/build_jni.sh +++ b/java/build_jni.sh @@ -15,7 +15,6 @@ cd "${SCRIPT_DIR}"/.. ANDROID_LIB_DIR=java/android/src/main/jniLibs DESKTOP_LIB_DIR=java/java/src/main/resources -export RUSTFLAGS="-C link-args=-s" export CARGO_PROFILE_RELEASE_DEBUG=1 # enable line tables # On Linux, cdylibs don't include public symbols from their dependencies, # even if those symbols have been re-exported in the Rust source. diff --git a/java/check_code_size.py b/java/check_code_size.py index 4657fc69..c6009221 100755 --- a/java/check_code_size.py +++ b/java/check_code_size.py @@ -20,7 +20,8 @@ def warn(message): our_abs_dir = os.path.dirname(os.path.realpath(__file__)) lib_size = os.path.getsize(os.path.join( - our_abs_dir, 'android', 'src', 'main', 'jniLibs', 'arm64-v8a', 'libsignal_jni.so')) + our_abs_dir, 'android', 'build', 'intermediates', 'stripped_native_libs', 'release', 'out', + 'lib', 'arm64-v8a', 'libsignal_jni.so')) with open(os.path.join(our_abs_dir, 'code_size.json')) as old_sizes_file: old_sizes = json.load(old_sizes_file)