forked from osdio/noder-react-native
-
Notifications
You must be signed in to change notification settings - Fork 0
/
post-install.sh
executable file
·12 lines (9 loc) · 963 Bytes
/
post-install.sh
1
2
3
4
5
6
7
8
9
10
11
12
echo patching react-native-blur
sed -i -e "s/jcenter()/maven { url 'http:\/\/mirrors.cloud.tencent.com\/nexus\/repository\/maven-public\/'} /g" node_modules/react-native-blur/android/build.gradle
echo patching react-native-vector-icons
sed -i -e "s/jcenter()/maven { url 'http:\/\/mirrors.cloud.tencent.com\/nexus\/repository\/maven-public\/'} /g" node_modules/react-native-vector-icons/android/build.gradle
echo patching react-native-camera
sed -i -e "s/jcenter()/maven { url 'http:\/\/mirrors.cloud.tencent.com\/nexus\/repository\/maven-public\/'} /g" node_modules/react-native-camera/android/build.gradle
sed -i -e "s/maven.google.com/maven.aliyun.com\/repository\/google/g" node_modules/react-native-camera/android/build.gradle
echo patching @react-native-community/viewpager
sed -i -e "s/jcenter()/maven { url 'http:\/\/mirrors.cloud.tencent.com\/nexus\/repository\/maven-public\/'} /g" node_modules/@react-native-community/viewpager/android/build.gradle