1
0
Fork 0
mirror of https://github.com/anyproto/anytype-kotlin.git synced 2025-06-08 05:47:05 +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

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