Skip to content
This repository was archived by the owner on May 29, 2021. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
175 changes: 84 additions & 91 deletions Telemetry.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 10 additions & 16 deletions Telemetry.xcodeproj/xcshareddata/xcschemes/Telemetry.xcscheme
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "0820"
LastUpgradeVersion = "1200"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
Expand All @@ -26,8 +26,16 @@
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
language = ""
shouldUseLaunchSchemeArgsEnv = "YES">
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "D0E1781E1E773B7F00CD2264"
BuildableName = "Telemetry.framework"
BlueprintName = "Telemetry"
ReferencedContainer = "container:Telemetry.xcodeproj">
</BuildableReference>
</MacroExpansion>
<Testables>
<TestableReference
skipped = "NO">
Expand All @@ -40,23 +48,11 @@
</BuildableReference>
</TestableReference>
</Testables>
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "D0E1781E1E773B7F00CD2264"
BuildableName = "Telemetry.framework"
BlueprintName = "Telemetry"
ReferencedContainer = "container:Telemetry.xcodeproj">
</BuildableReference>
</MacroExpansion>
<AdditionalOptions>
</AdditionalOptions>
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
language = ""
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
Expand All @@ -72,8 +68,6 @@
ReferencedContainer = "container:Telemetry.xcodeproj">
</BuildableReference>
</MacroExpansion>
<AdditionalOptions>
</AdditionalOptions>
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
Expand Down
2 changes: 1 addition & 1 deletion Telemetry/TelemetryMeasurements.swift
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ public class UserDefaultsMeasurement: TelemetryMeasurement {

let userDefaults = configuration.userDefaultsSuiteName != nil ? UserDefaults(suiteName: configuration.userDefaultsSuiteName) : UserDefaults()

for var measuredUserDefault in configuration.measuredUserDefaults {
for measuredUserDefault in configuration.measuredUserDefaults {
if let key = measuredUserDefault["key"] as? String {
if let value = userDefaults?.object(forKey: key) {
settings[key] = TelemetryUtils.asString(value)
Expand Down
2 changes: 1 addition & 1 deletion Telemetry/TelemetryScheduler.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class TelemetryScheduler {
}

func scheduleUpload(pingType: String, completionHandler: @escaping () -> Void) {
var pingSequence = storage.sequence(forPingType: pingType)
let pingSequence = storage.sequence(forPingType: pingType)

func uploadNextPing() {
guard let ping = pingSequence.next() else {
Expand Down
5 changes: 3 additions & 2 deletions TelemetryTests/TelemetryTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

import XCTest
import OHHTTPStubs
import OHHTTPStubsSwift

@testable import Telemetry

Expand Down Expand Up @@ -64,7 +65,7 @@ class TelemetryTests: XCTestCase {
}

let err = NSError(domain: NSURLErrorDomain, code: statusCode.rawValue, userInfo: nil)
return OHHTTPStubsResponse(error: err)
return HTTPStubsResponse(error: err)
}
}

Expand All @@ -89,7 +90,7 @@ class TelemetryTests: XCTestCase {
}
}

return OHHTTPStubsResponse(jsonObject: ["foo": "bar"], statusCode: statusCode, headers: ["Content-Type": "application/json"])
return HTTPStubsResponse(jsonObject: ["foo": "bar"], statusCode: statusCode, headers: ["Content-Type": "application/json"])
}
}

Expand Down
84 changes: 57 additions & 27 deletions TestApp/Assets.xcassets/AppIcon.appiconset/Contents.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,67 +2,97 @@
"images" : [
{
"idiom" : "iphone",
"size" : "29x29",
"scale" : "2x"
"scale" : "2x",
"size" : "20x20"
},
{
"idiom" : "iphone",
"size" : "29x29",
"scale" : "3x"
"scale" : "3x",
"size" : "20x20"
},
{
"idiom" : "iphone",
"size" : "40x40",
"scale" : "2x"
"scale" : "2x",
"size" : "29x29"
},
{
"idiom" : "iphone",
"size" : "40x40",
"scale" : "3x"
"scale" : "3x",
"size" : "29x29"
},
{
"idiom" : "iphone",
"size" : "60x60",
"scale" : "2x"
"scale" : "2x",
"size" : "40x40"
},
{
"idiom" : "iphone",
"size" : "60x60",
"scale" : "3x"
"scale" : "3x",
"size" : "40x40"
},
{
"idiom" : "iphone",
"scale" : "2x",
"size" : "60x60"
},
{
"idiom" : "iphone",
"scale" : "3x",
"size" : "60x60"
},
{
"idiom" : "ipad",
"scale" : "1x",
"size" : "20x20"
},
{
"idiom" : "ipad",
"size" : "29x29",
"scale" : "1x"
"scale" : "2x",
"size" : "20x20"
},
{
"idiom" : "ipad",
"size" : "29x29",
"scale" : "2x"
"scale" : "1x",
"size" : "29x29"
},
{
"idiom" : "ipad",
"size" : "40x40",
"scale" : "1x"
"scale" : "2x",
"size" : "29x29"
},
{
"idiom" : "ipad",
"size" : "40x40",
"scale" : "2x"
"scale" : "1x",
"size" : "40x40"
},
{
"idiom" : "ipad",
"size" : "76x76",
"scale" : "1x"
"scale" : "2x",
"size" : "40x40"
},
{
"idiom" : "ipad",
"size" : "76x76",
"scale" : "2x"
"scale" : "1x",
"size" : "76x76"
},
{
"idiom" : "ipad",
"scale" : "2x",
"size" : "76x76"
},
{
"idiom" : "ipad",
"scale" : "2x",
"size" : "83.5x83.5"
},
{
"idiom" : "ios-marketing",
"scale" : "1x",
"size" : "1024x1024"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
"author" : "xcode",
"version" : 1
}
}
}
5 changes: 0 additions & 5 deletions tests-only-Cartfile

This file was deleted.