#!/bin/bash -e
# createNativeResources.sh
#
# Creates native resources (images, icons, configs etc)

brand=$1
env=$2
platform=$3

bundlePath="bundle"
if [ ! -z "$BUNDLE_PATH" ]
then
    bundlePath=$BUNDLE_PATH
fi

export BRAND=$brand
export ENVIRONMENT=$env

./scripts/yarnInstallSharp.sh
cd "$platform"
eval "$bundlePath exec fastlane create_native_resources"
