diff --git a/Makefile b/Makefile index df4e43adad..29ce2c0d3f 100644 --- a/Makefile +++ b/Makefile @@ -40,8 +40,11 @@ download_mw_artefacts_custom: normalize_mw_imports: ./scripts/mw/normalize-imports.sh +clean_protos: + ./scripts/mw/clean-protos.sh + # Update mw when new release is ready -update_mw: download_mw_artefacts normalize_mw_imports +update_mw: download_mw_artefacts normalize_mw_imports clean_protos # Update mw from custom build (download only library, you have to update your proto files manually) update_mw_custom: download_mw_artefacts_custom \ No newline at end of file diff --git a/scripts/mw/clean-protos.sh b/scripts/mw/clean-protos.sh new file mode 100755 index 0000000000..34fabc6f45 --- /dev/null +++ b/scripts/mw/clean-protos.sh @@ -0,0 +1,11 @@ +# For Android app internal usage, we don't need the following protos: + +echo "Cleaning protos... " + +rm -rf protocol/src/main/proto/service.proto +rm -rf protocol/src/main/proto/block.proto +rm -rf protocol/src/main/proto/file.proto +rm -rf protocol/src/main/proto/snapshot.proto +rm -rf protocol/src/main/proto/migration.proto + +echo "Done with cleaning protos!" \ No newline at end of file diff --git a/scripts/mw/update-mw.sh b/scripts/mw/update-mw.sh index c81faa29d5..47632c88fb 100755 --- a/scripts/mw/update-mw.sh +++ b/scripts/mw/update-mw.sh @@ -42,18 +42,10 @@ printf "Preparing files\n" mkdir -p libs/protobuf/protos mv /tmp/lib/protobuf/protos/* protocol/src/main/proto - # Clearing temp folder rm -rf /tmp/lib rm -rf $FILE -# For Android app internal usage, we don't need the following protos: -rm -rf protocol/src/main/proto/service.proto -rm -rf protocol/src/main/proto/block.proto -rm -rf protocol/src/main/proto/file.proto -rm -rf protocol/src/main/proto/snapshot.proto -rm -rf protocol/src/main/proto/migration.proto - echo "Done with downloading protobuf files!" echo ">>> Make sure to update mw version to version $tag in libs.versions.toml >>>" \ No newline at end of file