-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #77 from situmtech/release/0.3.0
Release/0.3.0
- Loading branch information
Showing
21 changed files
with
667 additions
and
82 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
[update] | ||
tasks = ["code", "normalize"] | ||
|
||
[update.code] | ||
codePaths = ["SitumWayfinding/"] | ||
subpathsToIgnore = [".git", "carthage", "pods", "build", ".build", "docs"] | ||
localizablePaths = ["SitumWayfinding/"] | ||
defaultToKeys = false | ||
additive = true | ||
unstripped = false | ||
plistArguments = true | ||
ignoreKeys = ["#bartycrouch-ignore!", "#bc-ignore!", "#i!"] | ||
|
||
[update.normalize] | ||
paths = ["SitumWayfinding/"] | ||
subpathsToIgnore = [".git", "carthage", "pods", "build", ".build", "docs"] | ||
sourceLocale = "en" | ||
harmonizeWithSource = true | ||
sortByKeys = true | ||
|
||
[lint] | ||
paths = ["SitumWayfinding/"] | ||
subpathsToIgnore = [".git", "carthage", "pods", "build", ".build", "docs"] | ||
duplicateKeys = true | ||
emptyValues = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# SitumWayfinding develompent | ||
|
||
## Enable localizations in apps | ||
In order to see the localizations of the module WayFinding in the app, you must configure localization for the languages | ||
that you need to support. To do that in your app go to Project (click on root folder in project navigator) | ||
-> Info -> Localizations, and click in the `+` icon to add the language you want to support. | ||
|
||
## Localization treatment | ||
A bundle is used to store string localization files of SitumWayfinding library. Because of this when you translate a | ||
string in the library you must make reference to library bundle. | ||
Use `NSLocalizedString("key", bundle: SitumMapsLibrary.bundle, comment: "")` to reference library bundle. | ||
|
||
To make localization easy [BartyCrouch](https://github.com/Flinesoft/BartyCrouch) is used. You need to install it first | ||
before use https://github.com/Flinesoft/BartyCrouch#installation. There is a file `.bartycrouch.toml` in the root | ||
directory of the project with configuration for this library. It is configured to only localize files under | ||
`SitumWayfinding/` folder. (If we need to change this in the future the documentation about this file is in | ||
https://github.com/Flinesoft/BartyCrouch#configuration) | ||
|
||
Cheatsheet: | ||
```bash | ||
bartycrouch update # search for all NSLocalizedString in project and update Localizable.strings accordingly | ||
bartycrouch lint # check the content of Localizable.strings for empty values and duplicates | ||
``` | ||
|
||
A useful script to set in `.git/hooks/pre-commit` is the following: | ||
```bash | ||
#!/bin/sh | ||
/usr/local/bin/bartycrouch update | ||
/usr/local/bin/bartycrouch lint -w # -w fails on warning to avoid commit | ||
``` | ||
|
||
## Documentation | ||
The documentation is made with [jazzy](https://github.com/realm/jazzy). In order to build documentation execute | ||
the following from the root of the project: | ||
```bash | ||
./scripts/generate_appledoc.sh | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
|
||
/* Class = "UILabel"; text = "Use remote configuratioon"; ObjectID = "8Dl-6u-dKQ"; */ | ||
"8Dl-6u-dKQ.text" = "Use remote configuratioon"; | ||
|
||
/* Class = "UILabel"; text = "Wayfinding Example"; ObjectID = "LYZ-5T-B5U"; */ | ||
"LYZ-5T-B5U.text" = "Wayfinding Example"; | ||
|
||
/* Class = "UILabel"; text = "List of available POIs"; ObjectID = "TUz-42-YwY"; */ | ||
"TUz-42-YwY.text" = "List of available POIs"; | ||
|
||
/* Class = "UIButton"; normalTitle = "Load Wayfinding and navigate to coordinate"; ObjectID = "Z1c-hI-Wjv"; */ | ||
"Z1c-hI-Wjv.normalTitle" = "Load Wayfinding and navigate to coordinate"; | ||
|
||
/* Class = "UIButton"; normalTitle = "Load Wayfinding and navigate to POI"; ObjectID = "ey9-zA-wx2"; */ | ||
"ey9-zA-wx2.normalTitle" = "Load Wayfinding and navigate to POI"; | ||
|
||
/* Class = "UIButton"; normalTitle = "Load Wayfinding"; ObjectID = "kYz-PR-o25"; */ | ||
"kYz-PR-o25.normalTitle" = "Load Wayfinding"; | ||
|
||
/* Class = "UIButton"; normalTitle = "Load Wayfinding and select POI"; ObjectID = "xXD-lc-Tl4"; */ | ||
"xXD-lc-Tl4.normalTitle" = "Load Wayfinding and select POI"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.