-
Notifications
You must be signed in to change notification settings - Fork 18
/
fix-support-library.sh
executable file
·30 lines (22 loc) · 1.09 KB
/
fix-support-library.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
#!/bin/bash
# we must use the same support lib jar in all the dependencies
good_jar="app/libs/android-support-v4.jar"
# all these libs depend on android-support-v4.jar
#mapfile <<END # requires newer bash than on MacOS X
#external/ActionBarSherlock/actionbarsherlock
#external/CacheWord/cachewordlib
#END
MAPFILE[0]='external/HoloEverywhere/ActionBarSherlock/actionbarsherlock'
MAPFILE[1]='external/CacheWord/cachewordlib'
MAPFILE[2]='external/OnionKit/libonionkit'
for project in "${MAPFILE[@]}"; do
project=${project%$'\n'} # remove trailing newline
echo "updating $good_jar in $project"
cp -f $good_jar $project/libs
done
rm external/bho/TbChat/libs/guava-r09.jar
rm external/CacheWord/cachewordlib/libs/guava-r09.jar
cp external/securereaderlibrary/libs/guava-11.0.2.jar external/bho/TbChat/libs/
cp external/securereaderlibrary/libs/guava-11.0.2.jar external/CacheWord/cachewordlib/libs/
cp external/securereaderlibrary/libs/sqlcipher.jar external/CacheWord/cachewordlib/libs/sqlcipher.jar
cp external/securereaderlibrary/libs/iocipher.jar external/CacheWord/cachewordlib/libs/iocipher.jar