Skip to content

Commit 3d18e40

Browse files
Create UserReport iOS SDK project
0 parents  commit 3d18e40

File tree

97 files changed

+4620
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

97 files changed

+4620
-0
lines changed

.swift-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
4.0

Example/Example.xcodeproj/project.pbxproj

Lines changed: 499 additions & 0 deletions
Large diffs are not rendered by default.

Example/Example.xcodeproj/project.xcworkspace/contents.xcworkspacedata

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 115 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,115 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<Scheme
3+
LastUpgradeVersion = "0900"
4+
version = "1.3">
5+
<BuildAction
6+
parallelizeBuildables = "YES"
7+
buildImplicitDependencies = "YES">
8+
<BuildActionEntries>
9+
<BuildActionEntry
10+
buildForTesting = "YES"
11+
buildForRunning = "YES"
12+
buildForProfiling = "YES"
13+
buildForArchiving = "YES"
14+
buildForAnalyzing = "YES">
15+
<BuildableReference
16+
BuildableIdentifier = "primary"
17+
BlueprintIdentifier = "110746E21F4492E700150955"
18+
BuildableName = "Example.app"
19+
BlueprintName = "Example"
20+
ReferencedContainer = "container:Example.xcodeproj">
21+
</BuildableReference>
22+
</BuildActionEntry>
23+
</BuildActionEntries>
24+
</BuildAction>
25+
<TestAction
26+
buildConfiguration = "Debug"
27+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
28+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
29+
language = ""
30+
shouldUseLaunchSchemeArgsEnv = "YES">
31+
<Testables>
32+
</Testables>
33+
<MacroExpansion>
34+
<BuildableReference
35+
BuildableIdentifier = "primary"
36+
BlueprintIdentifier = "110746E21F4492E700150955"
37+
BuildableName = "Example.app"
38+
BlueprintName = "Example"
39+
ReferencedContainer = "container:Example.xcodeproj">
40+
</BuildableReference>
41+
</MacroExpansion>
42+
<AdditionalOptions>
43+
</AdditionalOptions>
44+
</TestAction>
45+
<LaunchAction
46+
buildConfiguration = "Debug"
47+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
48+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
49+
language = ""
50+
launchStyle = "0"
51+
useCustomWorkingDirectory = "NO"
52+
ignoresPersistentStateOnLaunch = "NO"
53+
debugDocumentVersioning = "YES"
54+
debugServiceExtension = "internal"
55+
allowLocationSimulation = "YES">
56+
<BuildableProductRunnable
57+
runnableDebuggingMode = "0">
58+
<BuildableReference
59+
BuildableIdentifier = "primary"
60+
BlueprintIdentifier = "110746E21F4492E700150955"
61+
BuildableName = "Example.app"
62+
BlueprintName = "Example"
63+
ReferencedContainer = "container:Example.xcodeproj">
64+
</BuildableReference>
65+
</BuildableProductRunnable>
66+
<EnvironmentVariables>
67+
<EnvironmentVariable
68+
key = "USERREPORT_SERVER_URL_API"
69+
value = "https://api.userreport.com/collect/v1"
70+
isEnabled = "YES">
71+
</EnvironmentVariable>
72+
<EnvironmentVariable
73+
key = "USERREPORT_SERVER_URL_SAK"
74+
value = "https://sak.userreport.com"
75+
isEnabled = "YES">
76+
</EnvironmentVariable>
77+
<EnvironmentVariable
78+
key = "USERREPORT_SERVER_URL_LOG"
79+
value = "https://qa-relay.userreport.com/f/qa1-android-sdk-log/json"
80+
isEnabled = "YES">
81+
</EnvironmentVariable>
82+
<EnvironmentVariable
83+
key = "USERREPORT_SERVER_URL_AUDIENCES"
84+
value = "https://visitanalytics.userreport.com"
85+
isEnabled = "YES">
86+
</EnvironmentVariable>
87+
</EnvironmentVariables>
88+
<AdditionalOptions>
89+
</AdditionalOptions>
90+
</LaunchAction>
91+
<ProfileAction
92+
buildConfiguration = "Release"
93+
shouldUseLaunchSchemeArgsEnv = "YES"
94+
savedToolIdentifier = ""
95+
useCustomWorkingDirectory = "NO"
96+
debugDocumentVersioning = "YES">
97+
<BuildableProductRunnable
98+
runnableDebuggingMode = "0">
99+
<BuildableReference
100+
BuildableIdentifier = "primary"
101+
BlueprintIdentifier = "110746E21F4492E700150955"
102+
BuildableName = "Example.app"
103+
BlueprintName = "Example"
104+
ReferencedContainer = "container:Example.xcodeproj">
105+
</BuildableReference>
106+
</BuildableProductRunnable>
107+
</ProfileAction>
108+
<AnalyzeAction
109+
buildConfiguration = "Debug">
110+
</AnalyzeAction>
111+
<ArchiveAction
112+
buildConfiguration = "Release"
113+
revealArchiveInOrganizer = "YES">
114+
</ArchiveAction>
115+
</Scheme>
Lines changed: 117 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,117 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<Scheme
3+
LastUpgradeVersion = "0900"
4+
version = "1.3">
5+
<BuildAction
6+
parallelizeBuildables = "YES"
7+
buildImplicitDependencies = "YES">
8+
<BuildActionEntries>
9+
<BuildActionEntry
10+
buildForTesting = "YES"
11+
buildForRunning = "YES"
12+
buildForProfiling = "YES"
13+
buildForArchiving = "YES"
14+
buildForAnalyzing = "YES">
15+
<BuildableReference
16+
BuildableIdentifier = "primary"
17+
BlueprintIdentifier = "110746BF1F44921900150955"
18+
BuildableName = "UserReport.framework"
19+
BlueprintName = "UserReport"
20+
ReferencedContainer = "container:../UserReport/UserReport.xcodeproj">
21+
</BuildableReference>
22+
</BuildActionEntry>
23+
<BuildActionEntry
24+
buildForTesting = "YES"
25+
buildForRunning = "YES"
26+
buildForProfiling = "YES"
27+
buildForArchiving = "YES"
28+
buildForAnalyzing = "YES">
29+
<BuildableReference
30+
BuildableIdentifier = "primary"
31+
BlueprintIdentifier = "110746E21F4492E700150955"
32+
BuildableName = "Example.app"
33+
BlueprintName = "Example"
34+
ReferencedContainer = "container:Example.xcodeproj">
35+
</BuildableReference>
36+
</BuildActionEntry>
37+
</BuildActionEntries>
38+
</BuildAction>
39+
<TestAction
40+
buildConfiguration = "Debug"
41+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
42+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
43+
language = ""
44+
shouldUseLaunchSchemeArgsEnv = "YES">
45+
<Testables>
46+
<TestableReference
47+
skipped = "NO">
48+
<BuildableReference
49+
BuildableIdentifier = "primary"
50+
BlueprintIdentifier = "110746F61F4492E700150955"
51+
BuildableName = "Tests.xctest"
52+
BlueprintName = "Tests"
53+
ReferencedContainer = "container:Example.xcodeproj">
54+
</BuildableReference>
55+
</TestableReference>
56+
</Testables>
57+
<MacroExpansion>
58+
<BuildableReference
59+
BuildableIdentifier = "primary"
60+
BlueprintIdentifier = "110746E21F4492E700150955"
61+
BuildableName = "Example.app"
62+
BlueprintName = "Example"
63+
ReferencedContainer = "container:Example.xcodeproj">
64+
</BuildableReference>
65+
</MacroExpansion>
66+
<AdditionalOptions>
67+
</AdditionalOptions>
68+
</TestAction>
69+
<LaunchAction
70+
buildConfiguration = "Debug"
71+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
72+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
73+
language = ""
74+
launchStyle = "0"
75+
useCustomWorkingDirectory = "NO"
76+
ignoresPersistentStateOnLaunch = "NO"
77+
debugDocumentVersioning = "YES"
78+
debugServiceExtension = "internal"
79+
allowLocationSimulation = "YES">
80+
<BuildableProductRunnable
81+
runnableDebuggingMode = "0">
82+
<BuildableReference
83+
BuildableIdentifier = "primary"
84+
BlueprintIdentifier = "110746E21F4492E700150955"
85+
BuildableName = "Example.app"
86+
BlueprintName = "Example"
87+
ReferencedContainer = "container:Example.xcodeproj">
88+
</BuildableReference>
89+
</BuildableProductRunnable>
90+
<AdditionalOptions>
91+
</AdditionalOptions>
92+
</LaunchAction>
93+
<ProfileAction
94+
buildConfiguration = "Release"
95+
shouldUseLaunchSchemeArgsEnv = "YES"
96+
savedToolIdentifier = ""
97+
useCustomWorkingDirectory = "NO"
98+
debugDocumentVersioning = "YES">
99+
<BuildableProductRunnable
100+
runnableDebuggingMode = "0">
101+
<BuildableReference
102+
BuildableIdentifier = "primary"
103+
BlueprintIdentifier = "110746E21F4492E700150955"
104+
BuildableName = "Example.app"
105+
BlueprintName = "Example"
106+
ReferencedContainer = "container:Example.xcodeproj">
107+
</BuildableReference>
108+
</BuildableProductRunnable>
109+
</ProfileAction>
110+
<AnalyzeAction
111+
buildConfiguration = "Debug">
112+
</AnalyzeAction>
113+
<ArchiveAction
114+
buildConfiguration = "Release"
115+
revealArchiveInOrganizer = "YES">
116+
</ArchiveAction>
117+
</Scheme>
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>SchemeUserState</key>
6+
<dict>
7+
<key>Example-Debug.xcscheme</key>
8+
<dict>
9+
<key>orderHint</key>
10+
<integer>1</integer>
11+
</dict>
12+
<key>Example.xcscheme</key>
13+
<dict>
14+
<key>isShown</key>
15+
<true/>
16+
<key>orderHint</key>
17+
<integer>0</integer>
18+
</dict>
19+
</dict>
20+
<key>SuppressBuildableAutocreation</key>
21+
<dict>
22+
<key>110746E21F4492E700150955</key>
23+
<dict>
24+
<key>primary</key>
25+
<true/>
26+
</dict>
27+
<key>110746F61F4492E700150955</key>
28+
<dict>
29+
<key>primary</key>
30+
<true/>
31+
</dict>
32+
</dict>
33+
</dict>
34+
</plist>

Example/Example/AppDelegate.swift

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
//
2+
// Copyright © 2017 UserReport. All rights reserved.
3+
//
4+
5+
import UIKit
6+
import UserReport
7+
8+
@UIApplicationMain
9+
class AppDelegate: UIResponder, UIApplicationDelegate {
10+
11+
var window: UIWindow?
12+
13+
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
14+
15+
// Initialize UserReport SDK
16+
let user = User()
17+
user.email = "[email protected]"
18+
UserReport.configure(sakId: "ios-playground", mediaId: "df5be674-b6a8-4bb8-8f44-4c8229a01bc2", user: user)
19+
20+
return true
21+
}
22+
23+
}
24+

0 commit comments

Comments
 (0)