1
0
Fork 0
mirror of https://github.com/anyproto/anytype-kotlin.git synced 2025-06-07 21:37:02 +09:00

DROID-2324 App | Tech | Add clean-protos command to makefile (#1012)

This commit is contained in:
Razor 2024-03-19 12:38:44 +01:00 committed by GitHub
parent fa08c1325b
commit 7049ce5919
Signed by: github
GPG key ID: B5690EEEBB952194
3 changed files with 15 additions and 9 deletions

View file

@ -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

11
scripts/mw/clean-protos.sh Executable file
View file

@ -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!"

View file

@ -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 >>>"