Commit 16585270 authored by Thomas Markiewicz's avatar Thomas Markiewicz

Added all missing files by copying over directory from github master

parent 6be00ec5
......@@ -5,7 +5,7 @@
<key>CFBundleDevelopmentRegion</key>
<string>$(DEVELOPMENT_LANGUAGE)</string>
<key>CFBundleDisplayName</key>
<string>Librem Tunnel AdBlocker</string>
<string>PIA VPN AdBlocker</string>
<key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIdentifier</key>
......@@ -28,6 +28,6 @@
<string>$(PRODUCT_MODULE_NAME).ContentBlockerRequestHandler</string>
</dict>
<key>NSHumanReadableDescription</key>
<string>Librem Tunnel AdBlocker</string>
<string>PIA VPN AdBlocker</string>
</dict>
</plist>
......@@ -5,7 +5,7 @@
<key>CFBundleDevelopmentRegion</key>
<string>en</string>
<key>CFBundleDisplayName</key>
<string>Librem Tunnel</string>
<string>PIA VPN Tunnel</string>
<key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIdentifier</key>
......
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>com.apple.developer.networking.networkextension</key>
<array>
<string>packet-tunnel-provider</string>
</array>
<key>com.apple.security.application-groups</key>
<array>
<string>group.one.librem</string>
</array>
<key>keychain-access-groups</key>
<array>
<string>$(AppIdentifierPrefix)group.one.librem</string>
</array>
</dict>
</plist>
......@@ -5,7 +5,7 @@
<key>CFBundleDevelopmentRegion</key>
<string>$(DEVELOPMENT_LANGUAGE)</string>
<key>CFBundleDisplayName</key>
<string>Librem Tunnel WG</string>
<string>PIA VPN WG Tunnel</string>
<key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIdentifier</key>
......
......@@ -8,11 +8,11 @@
</array>
<key>com.apple.security.application-groups</key>
<array>
<string>group.one.librem</string>
<string>group.com.privateinternetaccess</string>
</array>
<key>keychain-access-groups</key>
<array>
<string>$(AppIdentifierPrefix)group.one.librem</string>
<string>$(AppIdentifierPrefix)group.com.privateinternetaccess</string>
</array>
</dict>
</plist>
This diff is collapsed.
......@@ -25,16 +25,16 @@ import PIALibrary
struct AppConstants {
static let appId = "" /// TODO: update for Librem One
static let teamId = "CNQ74B27V5"
static let appId = "955626407"
static let teamId = "5357M5NW9W"
static let appGroup = "group.one.librem"
static let appGroup = "group.com.privateinternetaccess"
static let appCenterAppId = ""
static let appCenterAppId = "a2397c42-40ac-48e8-97e6-7498f0df0e1a"
struct Reviews {
static var appReviewUrl = "https://itunes.apple.com/app/id\(appId)?action=write-review"
static var feedbackUrl = "https://librem.one/support/"
static var feedbackUrl = "https://www.privateinternetaccess.com/helpdesk/new-ticket"
}
struct Flags {
......@@ -70,10 +70,10 @@ struct AppConstants {
}
struct Extensions {
static let tunnelBundleIdentifier = "one.librem.tunnel.Tunnel"
static let tunnelWireguardBundleIdentifier = "one.librem.tunnel.WG-Tunnel"
static let tunnelBundleIdentifier = "com.privateinternetaccess.ios.PIA-VPN.Tunnel"
static let tunnelWireguardBundleIdentifier = "com.privateinternetaccess.ios.PIA-VPN.WG-Tunnel"
static let adBlockerBundleIdentifier = "one.librem.tunnel.AdBlocker"
static let adBlockerBundleIdentifier = "com.privateinternetaccess.ios.PIA-VPN.AdBlocker"
}
struct SiriShortcuts {
......@@ -82,13 +82,13 @@ struct AppConstants {
}
struct Web {
static let homeURL = URL(string: "https://librem.one/")!
static let homeURL = URL(string: "https://www.privateinternetaccess.com/")!
static let supportURL = URL(string: "https://librem.one/support/")!
static let supportURL = URL(string: "https://www.privateinternetaccess.com/helpdesk")!
static let privacyURL = URL(string: "https://librem.one/policy/")!
static let privacyURL = URL(string: "https://www.privateinternetaccess.com/pages/privacy-policy/")!
static let csEmail = "support@librem.one"
static let csEmail = "helpdesk+vpnpermissions.ios@privateinternetaccess.com"
static var stagingEndpointURL: URL? = {
guard let path = Bundle.main.path(forResource: "staging", ofType: "endpoint") else {
......@@ -163,7 +163,6 @@ struct AppConstants {
static let subscriptions = "itms-apps://apps.apple.com/account/subscriptions"
}
/// TODO: update for Librem One
struct Browser {
static let browserAppId = "598907571"
static let scheme = "inbrowser://?www.privateinternetaccess.com"
......@@ -177,12 +176,12 @@ struct AppConstants {
}
struct MagicLink {
static let url = "libremtunnel:login?token="
static let url = "piavpn:login?token="
}
struct Widget {
static let connect = "libremtunnel:connect"
static let view = "libremtunnel:view"
static let connect = "piavpn:connect"
static let view = "piavpn:view"
}
struct FeatureFlags {
......
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<array>
<dict>
<key>PIA DNS</key>
<array/>
</dict>
</array>
</plist>
//
// DataUnit.swift
// PIA VPN
//
// Created by Davide De Rosa on 12/16/17.
// Copyright © 2017 London Trust Media. All rights reserved.
//
import Foundation
enum DataUnit: Int, CustomStringConvertible {
case bit
case byte
case kilobit
case kilobyte
case megabit
case megabyte
case gigabit
case gigabyte
private static let allNames: [DataUnit: String] = [
.bit: "Bits",
.byte: "Bytes",
.kilobit: "Kilobits",
.kilobyte: "Kilobytes",
.megabit: "Megabits",
.megabyte: "Megabytes",
.gigabit: "Gigabits",
.gigabyte: "Gigabytes"
]
private static let allBits: [DataUnit: UInt64] = [
.bit: 1,
.byte: 8,
.kilobit: 1000,
.kilobyte: 8192,
.megabit: 1000000,
.megabyte: 8388608,
.gigabit: 1000000000,
.gigabyte: 8589934592
]
private static let allDescriptions: [DataUnit: String] = [
.bit: "bit",
.byte: "B",
.kilobit: "kbit",
.kilobyte: "kB",
.megabit: "Mbit",
.megabyte: "MB",
.gigabit: "Gbit",
.gigabyte: "GB"
]
var name: String {
return DataUnit.allNames[self]!
}
var bits: UInt64 {
return DataUnit.allBits[self]!
}
var description: String {
return DataUnit.allDescriptions[self]!
}
}
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>usesDevelopmentClient</key>
<true/>
<key>customizesClientEnvironment</key>
<false/>
<key>customizesWelcomePreset</key>
<false/>
<key>usesMockAccount</key>
<false/>
<key>usesMockInApp</key>
<false/>
<key>usesMockVPN</key>
<false/>
<key>alwaysShowsWalkthrough</key>
<false/>
<key>enablesResetSettings</key>
<true/>
<key>enablesProtocolSelection</key>
<true/>
<key>enablesMACESetting</key>
<false/>
<key>enablesContentBlockerSetting</key>
<true/>
<key>enablesEncryptionSettings</key>
<true/>
<key>enablesDNSSettings</key>
<true/>
<key>enablesDevelopmentSettings</key>
<true/>
<key>customizesVPNRenegotiation</key>
<false/>
</dict>
</plist>
{
"images" : [
{
"idiom" : "iphone",
"size" : "20x20",
"scale" : "2x"
},
{
"idiom" : "iphone",
"size" : "20x20",
"scale" : "3x"
},
{
"idiom" : "iphone",
"size" : "29x29",
"scale" : "1x"
},
{
"idiom" : "iphone",
"size" : "29x29",
"scale" : "2x"
},
{
"idiom" : "iphone",
"size" : "29x29",
"scale" : "3x"
},
{
"idiom" : "iphone",
"size" : "40x40",
"scale" : "2x"
},
{
"idiom" : "iphone",
"size" : "40x40",
"scale" : "3x"
},
{
"idiom" : "iphone",
"size" : "57x57",
"scale" : "1x"
},
{
"idiom" : "iphone",
"size" : "57x57",
"scale" : "2x"
},
{
"size" : "60x60",
"idiom" : "iphone",
"filename" : "Icon-60@2x.png",
"scale" : "2x"
},
{
"size" : "60x60",
"idiom" : "iphone",
"filename" : "Icon-60@3x.png",
"scale" : "3x"
},
{
"idiom" : "ipad",
"size" : "20x20",
"scale" : "1x"
},
{
"idiom" : "ipad",
"size" : "20x20",
"scale" : "2x"
},
{
"idiom" : "ipad",
"size" : "29x29",
"scale" : "1x"
},
{
"idiom" : "ipad",
"size" : "29x29",
"scale" : "2x"
},
{
"idiom" : "ipad",
"size" : "40x40",
"scale" : "1x"
},
{
"idiom" : "ipad",
"size" : "40x40",
"scale" : "2x"
},
{
"idiom" : "ipad",
"size" : "50x50",
"scale" : "1x"
},
{
"idiom" : "ipad",
"size" : "50x50",
"scale" : "2x"
},
{
"idiom" : "ipad",
"size" : "72x72",
"scale" : "1x"
},
{
"idiom" : "ipad",
"size" : "72x72",
"scale" : "2x"
},
{
"size" : "76x76",
"idiom" : "ipad",
"filename" : "Icon-76.png",
"scale" : "1x"
},
{
"size" : "76x76",
"idiom" : "ipad",
"filename" : "Icon-76@2x.png",
"scale" : "2x"
},
{
"size" : "83.5x83.5",
"idiom" : "ipad",
"filename" : "Icon-83.5@2x.png",
"scale" : "2x"
},
{
"size" : "1024x1024",
"idiom" : "ios-marketing",
"filename" : "Icon-1024.png",
"scale" : "1x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
\ No newline at end of file
{
"info" : {
"version" : 1,
"author" : "xcode"
}
}
\ No newline at end of file
{
"info" : {
"version" : 1,
"author" : "xcode"
}
}
\ No newline at end of file
{
"info" : {
"version" : 1,
"author" : "xcode"
}
}
\ No newline at end of file
{
"images" : [
{
"idiom" : "universal",
"filename" : "icon-green.pdf"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
\ No newline at end of file
{
"info" : {
"version" : 1,
"author" : "xcode"
}
}
\ No newline at end of file
{
"images" : [
{
"idiom" : "universal",
"filename" : "dragDark.pdf"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
\ No newline at end of file
{
"images" : [
{
"idiom" : "universal",
"filename" : "dragLight.pdf"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
\ No newline at end of file
{
"images" : [
{
"idiom" : "universal",
"filename" : "combinedShape-3.pdf"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
\ No newline at end of file
{
"images" : [
{
"idiom" : "universal",
"filename" : "combinedShape.pdf"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
\ No newline at end of file
{
"images" : [
{
"idiom" : "universal",
"filename" : "combinedShape-4.pdf"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
\ No newline at end of file
{
"images" : [
{
"idiom" : "universal",
"filename" : "combinedShape-2.pdf"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
\ No newline at end of file
{
"images" : [
{
"idiom" : "universal",
"filename" : "heart.pdf"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
\ No newline at end of file
{
"images" : [
{
"idiom" : "universal",
"filename" : "heart7Copy.pdf"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
\ No newline at end of file