-
Notifications
You must be signed in to change notification settings - Fork 42
/
prepare.sh
executable file
·53 lines (47 loc) · 1.34 KB
/
prepare.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#!/usr/bin/env bash
#
# Unless explicitly stated otherwise all files in this repository are licensed under the Apache License Version 2.0.
# This product includes software developed at Datadog (https://www.datadoghq.com/).
# Copyright 2016-Present Datadog, Inc.
#
# Prepares the repo for development.
set -e
flutter precache --ios --android --web
./generate_env.sh
declare -a all_dirs=(
"packages/datadog_common_test"
"packages/datadog_flutter_plugin"
"packages/datadog_flutter_plugin/example"
"packages/datadog_flutter_plugin/integration_test_app"
"packages/datadog_flutter_plugin/e2e_test_app"
"packages/datadog_tracking_http_client"
"packages/datadog_tracking_http_client/example"
"packages/datadog_grpc_interceptor"
"packages/datadog_webview_tracking"
"tools/e2e_generator"
"tools/releaser"
"tools/third_party_scanner"
"examples/native-hybrid-app/flutter_module"
)
for i in "${all_dirs[@]}"
do
pushd "$i"
flutter pub get
# Check and update pods
if [ -d "example/ios" ] && [ "$(uname)" == "Darwin" ]; then
pushd "example/ios"
pod update
popd
fi
popd
done
declare -a need_generation=(
"packages/datadog_common_test"
"packages/datadog_flutter_plugin"
)
for i in "${need_generation[@]}"
do
pushd "$i"
flutter pub run build_runner build
popd
done