diff --git a/scripts/generateJson.sh b/scripts/generateJson.sh index 8e8907b..e79934d 100755 --- a/scripts/generateJson.sh +++ b/scripts/generateJson.sh @@ -3,5 +3,10 @@ set -e yarn start -cp build/emojibase.json platforms/ios/Emojibase/Resources/emojibase.json -cp build/emojibase.json platforms/android/library/src/main/assets/emojibase.json \ No newline at end of file + +EMOJIJSON_FILE="build/emojibase.json" +SWIFT_PATH="platforms/ios/Emojibase/Resources/emojibase.json" +KOTLIN_PATH="platforms/android/library/src/main/assets/emojibase.json" + +cp "$EMOJIJSON_FILE" "$SWIFT_PATH" +mkdir -p "$KOTLIN_PATH" && cp "$EMOJIJSON_FILE" "$KOTLIN_PATH" \ No newline at end of file