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
lint
were bundled into theupdate
subcommand. - 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 thecode
subcommand is now always turned on, no need to configure. - The
--extract-loc-strings
(-e
) option on thecode
subcommand is now always turned on, no need to configure. - Consider using the new
transform
task instead of – or in addition to – thecode
task.
- 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 en
tobartycrouch translate -p "$BASE_PATH" -l en -i "<API_ID>" -s "<API_SECRET>"
- Use automatic file search with
-p
(was-s
before) 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" -a
tobartycrouch -s "$BASE_PATH"
- Remove
-c
option if you were using it, BartyCrouch 2.x creates missing keys by default - Use the new
-t
-s
-l
options 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" -a
by replacing it with this:
bartycrouch -t "$CREDS" -s "$PROJECT_DIR" -l en
--input-storyboard
and-in
were renamed to--input
and-i
--output-strings-files
and-out
were renamed to--output
and-o
- Multiple paths passed to
-output
are now separated by whitespace instead of comma - e.g.
-out "path/one,path/two"
should now be-o "path/one" "path/two"
--output-all-languages
and-all
were renamed to--auto
and-a