Loading automation/publish_to_maven_local_if_modified.py +3 −2 Original line number Diff line number Diff line Loading @@ -23,7 +23,8 @@ GITIGNORED_FILES_THAT_AFFECT_THE_BUILD = ["local.properties"] parser = argparse.ArgumentParser( description="Publish android packages to local maven repo, but only if changed since last publish" ) parser.parse_args() parser.add_argument("uniffi_bindgen", help="Path to the uniffi-bindgen executable.") args = parser.parse_args() root_dir = find_app_services_root() if str(root_dir) != os.path.abspath(os.curdir): Loading Loading @@ -117,7 +118,7 @@ else: # Ensure rust changes get picked up. No idea why, but stale .so files under `intermediates` end up published. # Repro: 1) publish, 2) change rust, re-publish, 3) rust from first step is still in the artifacts; not all "dupe" .so files are identical. shutil.rmtree("./megazords/full/android/build/intermediates", ignore_errors=True) run_cmd_checked(["./gradlew", "publishToMavenLocal", f"-Plocal={time.time_ns()}"]) run_cmd_checked(["./gradlew", "publishToMavenLocal", f"-PuniffiBindgenNoop={args.uniffi_bindgen}", f"-Plocal={time.time_ns()}"]) with open(LAST_CONTENTS_HASH_FILE, "w") as f: f.write(contents_hash) f.write("\n") Loading
automation/publish_to_maven_local_if_modified.py +3 −2 Original line number Diff line number Diff line Loading @@ -23,7 +23,8 @@ GITIGNORED_FILES_THAT_AFFECT_THE_BUILD = ["local.properties"] parser = argparse.ArgumentParser( description="Publish android packages to local maven repo, but only if changed since last publish" ) parser.parse_args() parser.add_argument("uniffi_bindgen", help="Path to the uniffi-bindgen executable.") args = parser.parse_args() root_dir = find_app_services_root() if str(root_dir) != os.path.abspath(os.curdir): Loading Loading @@ -117,7 +118,7 @@ else: # Ensure rust changes get picked up. No idea why, but stale .so files under `intermediates` end up published. # Repro: 1) publish, 2) change rust, re-publish, 3) rust from first step is still in the artifacts; not all "dupe" .so files are identical. shutil.rmtree("./megazords/full/android/build/intermediates", ignore_errors=True) run_cmd_checked(["./gradlew", "publishToMavenLocal", f"-Plocal={time.time_ns()}"]) run_cmd_checked(["./gradlew", "publishToMavenLocal", f"-PuniffiBindgenNoop={args.uniffi_bindgen}", f"-Plocal={time.time_ns()}"]) with open(LAST_CONTENTS_HASH_FILE, "w") as f: f.write(contents_hash) f.write("\n")