forked from kickstarter/android-oss
- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbootstrap_configs
More file actions
executable file
·21 lines (17 loc) · 658 Bytes
/
bootstrap_configs
File metadata and controls
executable file
·21 lines (17 loc) · 658 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/bash -e
# Move config files into place
cd config
for src in *.example
do
dest=`basename $src .example`
test -e $dest || cp $src $dest
done
VARIANTS="externalMin21Debug externalPre21Debug externalMin21Release externalPre21Release \
internalMin21Debug internalPre21Debug internalMin21Release internalPre21Release"
cd ..
# Copy google services over. Fallback to example if they don't exist.
for v in $VARIANTS
do
test -d app/src/"$v" || mkdir -p app/src/"$v"/
cp vendor/native-secrets/android/"$v"/google-services.json app/src/"$v"/google-services.json || cp config/"$v"/google-services.example.json app/src/"$v"/google-services.json
done