This project follows Semantic Versioning.
Please follow the appropriate guide below when upgrading to a new major version of BartyCrouch (e.g. 1.5 -> 2.0).
- All subcommands except
lintwere bundled into theupdatesubcommand. - Choosing specific subcommands and passing options was moved to the configuration file
.bartycrouch.toml. See the appropriate section in the README. - Update your build script to the new simplified version. Also make sure it's run as one of the first steps.
- The
--override-comments(-c) option on thecodesubcommand is now always turned on, no need to configure. - The
--extract-loc-strings(-e) option on thecodesubcommand is now always turned on, no need to configure. - Consider using the new
transformtask instead of – or in addition to – thecodetask.
- Change structure
bartycrouch -s "$BASE_PATH"tobartycrouch interfaces -p "$BASE_PATH" - Change structure
bartycrouch -t "{ id: <API_ID> }|{ secret: <API_SECRET> }" -s "$BASE_PATH" -l entobartycrouch translate -p "$BASE_PATH" -l en -i "<API_ID>" -s "<API_SECRET>" - Use automatic file search with
-p(was-sbefore) instead of options-i,-o,-e(those were deleted) - Rename usages of option "force" (
-f) to be "override" (-o)
It is recommended to update your build script to the currently suggested one if you were using it.
- Change command structure
bartycrouch "$BASE_PATH" -atobartycrouch -s "$BASE_PATH" - Remove
-coption if you were using it, BartyCrouch 2.x creates missing keys by default - Use the new
-t-s-loptions instead of adding all Strings files manually, e.g.:
Simplify this build script code
bartycrouch -t $CREDS -i "$EN_PATH/Localizable.strings" -a -c
bartycrouch -t $CREDS -i "$EN_PATH/Main.strings" -a
bartycrouch -t $CREDS -i "$EN_PATH/LaunchScreen.strings" -a
bartycrouch -t $CREDS -i "$EN_PATH/CustomView.strings" -aby replacing it with this:
bartycrouch -t "$CREDS" -s "$PROJECT_DIR" -l en--input-storyboardand-inwere renamed to--inputand-i--output-strings-filesand-outwere renamed to--outputand-o- Multiple paths passed to
-outputare now separated by whitespace instead of comma - e.g.
-out "path/one,path/two"should now be-o "path/one" "path/two" --output-all-languagesand-allwere renamed to--autoand-a