duckduckgo / BrowserServicesKit

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

BrowserServicesKit

We are hiring!

DuckDuckGo is growing fast and we continue to expand our fully distributed team. We embrace diverse perspectives, and seek out passionate, self-motivated people, committed to our shared vision of raising the standard of trust online. If you are a senior software engineer capable in either iOS or Android, visit our careers page to find out more about our openings!

What is it?

BrowserServicesKit is a package that contains modules shared between DuckDuckGo projects.

Building

The package uses submodules, which will need to be cloned in order for the project to build:

Run git submodule update --init --recursive

BrowserServicesKit can be built manually two ways:

  1. Build the BrowserServicesKit scheme by opening the Swift package in Xcode
  2. Run swift build -c release to build a release binary

Testing

Run swift test on the project root folder. Please note that running the tests on Xcode will not work.

Additional configuration

In projects utilizing the Swift Package Manager, it may not be possible to specify a custom file name when creating new Swift files within Xcode, resulting in the generation of placeholder names (i.e. "File.swift"). To resolve this issue:

Run scripts/setup-new-file-template.sh

It will add a template named "Swift File For Package" to your Xcode templates, allowing for the specification of a custom file name when creating new Swift files.

SwiftLint

We use SwiftLint for enforcing Swift style and conventions, so you'll need to install it.

License

DuckDuckGo is distributed under the Apache 2.0 license.

About

License:Apache License 2.0


Languages

Language:Swift 98.7%Language:JavaScript 0.8%Language:Shell 0.3%Language:C 0.2%Language:Objective-C++ 0.0%Language:Objective-C 0.0%Language:HTML 0.0%