Skip to content

Commit

Permalink
Merge pull request #43 from kean/remote-logger
Browse files Browse the repository at this point in the history
Draft: Pulse Pro
  • Loading branch information
kean authored Oct 4, 2021
2 parents bddcaf8 + 09f876c commit 7a1fc54
Show file tree
Hide file tree
Showing 55 changed files with 3,323 additions and 962 deletions.
14 changes: 7 additions & 7 deletions App/Shared/Mocks/MockDataTask.swift
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ private let mockLoginRequest: URLRequest = {
request.setValue("gzip", forHTTPHeaderField: "Accept-Encoding")
request.setValue("github.com", forHTTPHeaderField: "Host")
request.setValue("Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.0.2 Safari/605.1.15", forHTTPHeaderField: "User-Agent")
request.setValue("text/json", forHTTPHeaderField: "Content-Type")
request.setValue("application/json", forHTTPHeaderField: "Content-Type")
request.setValue("no-cache", forHTTPHeaderField: "Cache-Control")
request.setValue("en-us", forHTTPHeaderField: "Accept-Language")
request.setValue("text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8", forHTTPHeaderField: "Accept")
Expand All @@ -39,7 +39,7 @@ private let mockLoginRequest: URLRequest = {

private let mockLoginResponse = HTTPURLResponse(url: URL(string: "https://github.com/login")!, statusCode: 200, httpVersion: "2.0", headerFields: [
"Content-Length": "2298",
"Content-Type": "text/json; charset=utf-8",
"Content-Type": "application/json; charset=utf-8",
"Cache-Control": "no-store",
"Content-Encoding": "gzip",
"Set-Cookie": "_device_id=11111111111; path=/; expires=Sun, 30 Jan 2022 21:49:04 GMT; secure; HttpOnly; SameSite=Lax"
Expand Down Expand Up @@ -152,7 +152,7 @@ private let mockProfileFailureRequest: URLRequest = {
request.setValue("gzip", forHTTPHeaderField: "Accept-Encoding")
request.setValue("github.com", forHTTPHeaderField: "Host")
request.setValue("Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.0.2 Safari/605.1.15", forHTTPHeaderField: "User-Agent")
request.setValue("text/json", forHTTPHeaderField: "Content-Type")
request.setValue("application/json", forHTTPHeaderField: "Content-Type")
request.setValue("no-cache", forHTTPHeaderField: "Cache-Control")
request.setValue("en-us", forHTTPHeaderField: "Accept-Language")
request.setValue("text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8", forHTTPHeaderField: "Accept")
Expand All @@ -162,7 +162,7 @@ private let mockProfileFailureRequest: URLRequest = {

private let mockProfileFailureResponse = HTTPURLResponse(url: URL(string: "https://github.com/profile/valdo")!, statusCode: 404, httpVersion: "2.0", headerFields: [
"Content-Length": "18",
"Content-Type": "text/json; charset=utf-8",
"Content-Type": "application/json; charset=utf-8",
"Cache-Control": "no-store",
"Content-Encoding": "gzip"
])!
Expand Down Expand Up @@ -279,7 +279,7 @@ let mockStatsFailureRequest: URLRequest = {
request.setValue("gzip", forHTTPHeaderField: "Accept-Encoding")
request.setValue("github.com", forHTTPHeaderField: "Host")
request.setValue("Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.0.2 Safari/605.1.15", forHTTPHeaderField: "User-Agent")
request.setValue("text/json", forHTTPHeaderField: "Content-Type")
request.setValue("application/json", forHTTPHeaderField: "Content-Type")
request.setValue("no-cache", forHTTPHeaderField: "Cache-Control")
request.setValue("en-us", forHTTPHeaderField: "Accept-Language")
request.setValue("text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8", forHTTPHeaderField: "Accept")
Expand All @@ -304,7 +304,7 @@ private let mockReposRequest: URLRequest = {
request.setValue("gzip", forHTTPHeaderField: "Accept-Encoding")
request.setValue("github.com", forHTTPHeaderField: "Host")
request.setValue("Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.0.2 Safari/605.1.15", forHTTPHeaderField: "User-Agent")
request.setValue("text/json", forHTTPHeaderField: "Content-Type")
request.setValue("application/json", forHTTPHeaderField: "Content-Type")
request.setValue("no-cache", forHTTPHeaderField: "Cache-Control")
request.setValue("en-us", forHTTPHeaderField: "Accept-Language")
request.setValue("text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8", forHTTPHeaderField: "Accept")
Expand All @@ -314,7 +314,7 @@ private let mockReposRequest: URLRequest = {

private let mockReposResponse = HTTPURLResponse(url: URL(string: "https://github.com/repos")!, statusCode: 200, httpVersion: "2.0", headerFields: [
"Content-Length": "2298",
"Content-Type": "text/json; charset=utf-8",
"Content-Type": "application/json; charset=utf-8",
"Cache-Control": "no-store",
"Content-Encoding": "gzip",
"Set-Cookie": "_device_id=11111111111; path=/; expires=Sun, 30 Jan 2022 21:49:04 GMT; secure; HttpOnly; SameSite=Lax"
Expand Down
44 changes: 44 additions & 0 deletions App/Shared/Resources/contributors.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
[
{
"login": "Spaceghost",
"id": 251370,
"node_id": "MDQ6VXNlcjI1MTM3MA==",
"avatar_url": "https://avatars.githubusercontent.com/u/251370?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Spaceghost",
"html_url": "https://github.com/Spaceghost",
"followers_url": "https://api.github.com/users/Spaceghost/followers",
"following_url": "https://api.github.com/users/Spaceghost/following{/other_user}",
"gists_url": "https://api.github.com/users/Spaceghost/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Spaceghost/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Spaceghost/subscriptions",
"organizations_url": "https://api.github.com/users/Spaceghost/orgs",
"repos_url": "https://api.github.com/users/Spaceghost/repos",
"events_url": "https://api.github.com/users/Spaceghost/events{/privacy}",
"received_events_url": "https://api.github.com/users/Spaceghost/received_events",
"type": "User",
"site_admin": false,
"contributions": 1
},
{
"login": "octocat",
"id": 583231,
"node_id": "MDQ6VXNlcjU4MzIzMQ==",
"avatar_url": "https://avatars.githubusercontent.com/u/583231?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/octocat",
"html_url": "https://github.com/octocat",
"followers_url": "https://api.github.com/users/octocat/followers",
"following_url": "https://api.github.com/users/octocat/following{/other_user}",
"gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
"starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
"organizations_url": "https://api.github.com/users/octocat/orgs",
"repos_url": "https://api.github.com/users/octocat/repos",
"events_url": "https://api.github.com/users/octocat/events{/privacy}",
"received_events_url": "https://api.github.com/users/octocat/received_events",
"type": "User",
"site_admin": false,
"contributions": 1
}
]
Loading

0 comments on commit 7a1fc54

Please sign in to comment.