Use custom domain to avoid GitHub redirect

Badly handled by iOS.

Fixes #29
This commit is contained in:
Davide De Rosa 2018-12-06 10:25:05 +01:00
parent eb38b20994
commit d25753a263
2 changed files with 7 additions and 1 deletions

View File

@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## Unreleased
### Fixed
- Infrastructures not refreshed. [#29](https://github.com/passepartoutvpn/passepartout-ios/issues/29)
## 1.0 RC4 1271 (2018-12-04) ## 1.0 RC4 1271 (2018-12-04)
### Changed ### Changed

View File

@ -154,7 +154,7 @@ class AppConstants {
class Repos { class Repos {
private static let githubRoot = URL(string: "https://github.com/passepartoutvpn/")! private static let githubRoot = URL(string: "https://github.com/passepartoutvpn/")!
private static let githubRawRoot = URL(string: "https://passepartoutvpn.github.io/")! private static let githubRawRoot = URL(string: "https://\(Domain.name)/")!
private static func github(repo: String) -> URL { private static func github(repo: String) -> URL {
return githubRoot.appendingPathComponent(repo) return githubRoot.appendingPathComponent(repo)