UserAgent is the internal name for the new Cliqz iOS browser. A diferent name was chosen to highlight the new project, differentiate the project from the previous code bases, and to keep the option open to build multiple apps (e.g. Cliqz and Ghostery) out of the same codebase.
- Xcode 10 or higher (from the App Store)
$ brew install carthage
$ brew install cocoapods
$ brew install npm
Building the Code
- Clone the repository:
git clone firstname.lastname@example.org:cliqz/user-agent-ios.git
- Run the bootstrap script to install dependencies
cd user-agent-ios sh ./bootstrap.sh
Localization works as described in the Apple Documentation or this helpful tutorial. Strings files are included in the project and can be exported to and imported from Xliff files if necessary for translation by external translation agencies.
Strings files live in the
To test localization, you can edit your currently active scheme, and in "Options", set the "Application Language". Don't commit this change please.
Code is licensed under the Mozilla Public License 2.0.
- Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.
Creating a pull request
- All pull requests must be associated with a specific Issue. If an issue doesn't exist please first create it.
- Please fill out the pull request template to your best ability.
- Swift code should generally follow the conventions listed at https://github.com/raywenderlich/swift-style-guide.
- Exception: we use 4-space indentation instead of 2.
- This is a loose standard. We do our best to follow this style
- New code should not contain any trailing whitespace.
- We recommend enabling both the "Automatically trim trailing whitespace" and "Including whitespace-only lines" preferences in Xcode (under Text Editing).
git rebase --whitespace=fixcan also be used to remove whitespace from your commits before issuing a pull request.
- Each commit should have a single clear purpose. If a commit contains multiple unrelated changes, those changes should be split into separate commits.
- If a commit requires another commit to build properly, those commits should be squashed.