export PLUGIN_DIR=$PWD
export BASE_DIR=$PWD/../..
echo "Plugin dir is " $PLUGIN_DIR
echo "Plugin dir is " $BASE_DIR

if grep "include ':react-native-liveupdatebridge'" $BASE_DIR/android/settings.gradle
then
  echo "Skipping copying of internal dependencies"
else
  echo "Adding internal dependencies"
  cat scripts/bridge.settings >> $BASE_DIR/android/settings.gradle
fi

echo "React-Native IBM MFP LiveUpdate post installation complete"