Commit 4ab366ac authored by Jose Blaya's avatar Jose Blaya
Browse files

- Update to PIALibrary latest commit

- Log crashes ONLY for internal DEV versions
parent 6a70b9e5
......@@ -14,6 +14,8 @@ import iRate
#if PIA_DEV
import HockeySDK
import Firebase
import Fabric
import Crashlytics
#endif
class Bootstrapper {
......@@ -31,9 +33,22 @@ class Bootstrapper {
}
func bootstrap() {
let console = ConsoleDestination()
#if PIA_DEV
console.minLevel = .debug
let hockey = BITHockeyManager.shared()
hockey.isMetricsManagerDisabled = true
hockey.configure(withIdentifier: AppConstants.hockeyAppId)
hockey.start()
if let path = Bundle.main.url(forResource: "GoogleService-Info", withExtension: "plist"),
let plist = NSDictionary(contentsOf: path) as? [String: Any],
plist.count > 0 {
FirebaseApp.configure()
Fabric.sharedSDK().debug = true
Fabric.with([Crashlytics.self()])
}
#else
console.minLevel = .info
#endif
......@@ -130,20 +145,6 @@ class Bootstrapper {
rater.daysUntilPrompt = AppConfiguration.Rating.daysUntilPrompt
rater.remindPeriod = AppConfiguration.Rating.remindPeriod
#if PIA_DEV
let hockey = BITHockeyManager.shared()
hockey.isMetricsManagerDisabled = true
hockey.configure(withIdentifier: AppConstants.hockeyAppId)
hockey.start()
if let path = Bundle.main.url(forResource: "GoogleService-Info", withExtension: "plist"),
let plist = NSDictionary(contentsOf: path) as? [String: Any],
plist.count > 0 {
FirebaseApp.configure()
}
#endif
// Notifications
let nc = NotificationCenter.default
......
<?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>CFBundleDevelopmentRegion</key>
<string>en</string>
<key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIdentifier</key>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>$(PRODUCT_NAME)</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>2.8.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleSpokenName</key>
<string>P I A V P N</string>
<key>CFBundleURLTypes</key>
<array>
<dict>
<key>CFBundleTypeRole</key>
<string>Viewer</string>
<key>CFBundleURLName</key>
<string>com.privateinternetaccess</string>
<key>CFBundleURLSchemes</key>
<array>
<string>privateinternetaccess</string>
</array>
</dict>
</array>
<key>CFBundleVersion</key>
<string>1</string>
<key>ITSAppUsesNonExemptEncryption</key>
<false/>
<key>LSApplicationCategoryType</key>
<string></string>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>NSCameraUsageDescription</key>
<string>We need camera access to scan a code from an gift card</string>
<key>NSFaceIDUsageDescription</key>
<string>Authenticate to reveal</string>
<key>UIAppFonts</key>
<array>
<string>Roboto-Light.ttf</string>
<string>Roboto-Medium.ttf</string>
<string>Roboto-Regular.ttf</string>
<string>Roboto-Thin.ttf</string>
</array>
<key>UIBackgroundModes</key>
<array>
<string>network-authentication</string>
</array>
<key>UILaunchStoryboardName</key>
<string>Launch Screen</string>
<key>UIMainStoryboardFile</key>
<string>Main</string>
<key>UIRequiredDeviceCapabilities</key>
<array>
<string>arm64</string>
</array>
<key>UIRequiresFullScreen</key>
<true/>
<key>UIStatusBarHidden</key>
<false/>
<key>UIStatusBarStyle</key>
<string>UIStatusBarStyleDefault</string>
<key>UISupportedInterfaceOrientations</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationPortraitUpsideDown</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
<key>UISupportedInterfaceOrientations~ipad</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
<string>UIInterfaceOrientationPortraitUpsideDown</string>
</array>
<key>UIViewControllerBasedStatusBarAppearance</key>
<true/>
<key>Fabric</key>
<dict>
<key>APIKey</key>
<string>970f0999b1ac221604548824b2a49d005754ca32</string>
<key>Kits</key>
<array>
<dict>
<key>KitInfo</key>
<dict/>
<key>KitName</key>
<string>Crashlytics</string>
</dict>
</array>
</dict>
</dict>
</plist>
......@@ -53,7 +53,7 @@ end
def shared_main_pods
pod 'AlamofireImage'
#library_by_path('')
library_by_git('6621cf2')
library_by_git('22c31aa')
#library_by_version('~> 1.1.3')
end
......
......@@ -104,10 +104,10 @@ DEPENDENCIES:
- HockeySDK
- iRate
- MBProgressHUD
- PIALibrary/Library (from `https://github.com/pia-foss/client-library-apple`, commit `6621cf2`)
- PIALibrary/Mock (from `https://github.com/pia-foss/client-library-apple`, commit `6621cf2`)
- PIALibrary/UI (from `https://github.com/pia-foss/client-library-apple`, commit `6621cf2`)
- PIALibrary/VPN (from `https://github.com/pia-foss/client-library-apple`, commit `6621cf2`)
- PIALibrary/Library (from `https://github.com/pia-foss/client-library-apple`, commit `22c31aa`)
- PIALibrary/Mock (from `https://github.com/pia-foss/client-library-apple`, commit `22c31aa`)
- PIALibrary/UI (from `https://github.com/pia-foss/client-library-apple`, commit `22c31aa`)
- PIALibrary/VPN (from `https://github.com/pia-foss/client-library-apple`, commit `22c31aa`)
- PIATunnel (from `https://github.com/pia-foss/tunnel-apple`, commit `269d6d1`)
- SideMenu (= 3.1.5)
- TPKeyboardAvoiding
......@@ -138,7 +138,7 @@ SPEC REPOS:
EXTERNAL SOURCES:
PIALibrary:
:commit: 6621cf2
:commit: 22c31aa
:git: https://github.com/pia-foss/client-library-apple
PIATunnel:
:commit: 269d6d1
......@@ -146,7 +146,7 @@ EXTERNAL SOURCES:
CHECKOUT OPTIONS:
PIALibrary:
:commit: 6621cf2
:commit: 22c31aa
:git: https://github.com/pia-foss/client-library-apple
PIATunnel:
:commit: 269d6d1
......@@ -177,6 +177,6 @@ SPEC CHECKSUMS:
SwiftyBeaver: ccfcdf85a04d429f1633f668650b0ce8020bda3a
TPKeyboardAvoiding: cb69d5ddbe90ce0170e4bc2db1e5e41d4a3ad9a4
PODFILE CHECKSUM: da85c5713f2405118340eb087909234bc6af3ead
PODFILE CHECKSUM: a04450989d901659656c00044d59574ca8952ea0
COCOAPODS: 1.5.3
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment