Offline GuideWithMe travel guides based on Wikivoyage articles.
3rdparty | ||
android | ||
builder | ||
data | ||
env | ||
iOS | ||
std | ||
storage | ||
tools | ||
.gitignore | ||
defines.pri | ||
readme.md | ||
tests.pro |
How to add country
To add new country to genenarion list follow next 3 steps:
- Add country's name from file all_countries.txt to file countries_to_generate.txt
- Add default image for this country into the folder default_images this image will be used for articles which don't have image (or we dont have image for them). It's name must be <country_name>.jpg.
- Remove file process_html if exists to update data.
Now you'r ready to build new amazing guides with me!
- run
bash build.sh
to prepare data for guides and Android files.
More Android notes
There is one script you need to use to build guides for Android: build-with-android.sh. It places it's result (obb, apk) into countries folder Countries/<country_name>.
Android applications have package name made of lowercased country name and underscores replaced with dotes, added to "com.guidewithme.". For instance: United_States -> com.guidewithme.united.states
United_Kingdom hack
We have package name "com.guidewithme.uk" for it for the sake compatibility with first release. obb and apk files are generated accordingly.