From 055c9be9ce44d6f8d693d905deb798cebe552a06 Mon Sep 17 00:00:00 2001 From: Benoit Marty Date: Fri, 26 Nov 2021 16:47:56 +0100 Subject: [PATCH] Add a script to import the plan to Element-Android project --- tools/import_analytic_plan.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 tools/import_analytic_plan.sh diff --git a/tools/import_analytic_plan.sh b/tools/import_analytic_plan.sh new file mode 100755 index 0000000000..9c020a8e37 --- /dev/null +++ b/tools/import_analytic_plan.sh @@ -0,0 +1,18 @@ +#!/usr/bin/env bash + +echo "Deleted existing plan..." +rm vector/src/main/java/im/vector/app/features/analytics/plan/*.* + +echo "Cloning analytics project..." +mkdir analytics_tmp +cd analytics_tmp +git clone https://github.com/matrix-org/matrix-analytics-events.git + +echo "Copy plan..." +cp matrix-analytics-events/types/kotlin2/* ../vector/src/main/java/im/vector/app/features/analytics/plan/ + +echo "Cleanup." +cd .. +rm -rf analytics_tmp + +echo "Done."