Skip to content

Commit 6873bf3

Browse files
authored
fix example and bump dependencies (#12)
Co-authored-by: Alan Charles <[email protected]>
1 parent 7658157 commit 6873bf3

File tree

5 files changed

+138
-28
lines changed

5 files changed

+138
-28
lines changed

Example/BasicExample/BasicExample.xcodeproj/project.pbxproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -438,6 +438,7 @@
438438
CODE_SIGN_STYLE = Automatic;
439439
CURRENT_PROJECT_VERSION = 1;
440440
DEVELOPMENT_ASSET_PATHS = "\"BasicExample/Preview Content\"";
441+
DEVELOPMENT_TEAM = "";
441442
ENABLE_PREVIEWS = YES;
442443
GENERATE_INFOPLIST_FILE = YES;
443444
INFOPLIST_KEY_UIApplicationSceneManifest_Generation = YES;
@@ -466,6 +467,7 @@
466467
CODE_SIGN_STYLE = Automatic;
467468
CURRENT_PROJECT_VERSION = 1;
468469
DEVELOPMENT_ASSET_PATHS = "\"BasicExample/Preview Content\"";
470+
DEVELOPMENT_TEAM = "";
469471
ENABLE_PREVIEWS = YES;
470472
GENERATE_INFOPLIST_FILE = YES;
471473
INFOPLIST_KEY_UIApplicationSceneManifest_Generation = YES;
Lines changed: 104 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,104 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<Scheme
3+
LastUpgradeVersion = "1420"
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 = "46EDC6F127C6B8D100B870D7"
18+
BuildableName = "BasicExample.app"
19+
BlueprintName = "BasicExample"
20+
ReferencedContainer = "container:BasicExample.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+
shouldUseLaunchSchemeArgsEnv = "YES">
30+
<Testables>
31+
<TestableReference
32+
skipped = "NO">
33+
<BuildableReference
34+
BuildableIdentifier = "primary"
35+
BlueprintIdentifier = "46EDC70127C6B8D200B870D7"
36+
BuildableName = "BasicExampleTests.xctest"
37+
BlueprintName = "BasicExampleTests"
38+
ReferencedContainer = "container:BasicExample.xcodeproj">
39+
</BuildableReference>
40+
</TestableReference>
41+
<TestableReference
42+
skipped = "NO">
43+
<BuildableReference
44+
BuildableIdentifier = "primary"
45+
BlueprintIdentifier = "46EDC70B27C6B8D200B870D7"
46+
BuildableName = "BasicExampleUITests.xctest"
47+
BlueprintName = "BasicExampleUITests"
48+
ReferencedContainer = "container:BasicExample.xcodeproj">
49+
</BuildableReference>
50+
</TestableReference>
51+
</Testables>
52+
</TestAction>
53+
<LaunchAction
54+
buildConfiguration = "Debug"
55+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
56+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
57+
launchStyle = "0"
58+
useCustomWorkingDirectory = "NO"
59+
ignoresPersistentStateOnLaunch = "NO"
60+
debugDocumentVersioning = "YES"
61+
debugServiceExtension = "internal"
62+
allowLocationSimulation = "YES">
63+
<BuildableProductRunnable
64+
runnableDebuggingMode = "0">
65+
<BuildableReference
66+
BuildableIdentifier = "primary"
67+
BlueprintIdentifier = "46EDC6F127C6B8D100B870D7"
68+
BuildableName = "BasicExample.app"
69+
BlueprintName = "BasicExample"
70+
ReferencedContainer = "container:BasicExample.xcodeproj">
71+
</BuildableReference>
72+
</BuildableProductRunnable>
73+
<CommandLineArguments>
74+
<CommandLineArgument
75+
argument = "-FIRAnalyticsDebugEnabled"
76+
isEnabled = "YES">
77+
</CommandLineArgument>
78+
</CommandLineArguments>
79+
</LaunchAction>
80+
<ProfileAction
81+
buildConfiguration = "Release"
82+
shouldUseLaunchSchemeArgsEnv = "YES"
83+
savedToolIdentifier = ""
84+
useCustomWorkingDirectory = "NO"
85+
debugDocumentVersioning = "YES">
86+
<BuildableProductRunnable
87+
runnableDebuggingMode = "0">
88+
<BuildableReference
89+
BuildableIdentifier = "primary"
90+
BlueprintIdentifier = "46EDC6F127C6B8D100B870D7"
91+
BuildableName = "BasicExample.app"
92+
BlueprintName = "BasicExample"
93+
ReferencedContainer = "container:BasicExample.xcodeproj">
94+
</BuildableReference>
95+
</BuildableProductRunnable>
96+
</ProfileAction>
97+
<AnalyzeAction
98+
buildConfiguration = "Debug">
99+
</AnalyzeAction>
100+
<ArchiveAction
101+
buildConfiguration = "Release"
102+
revealArchiveInOrganizer = "YES">
103+
</ArchiveAction>
104+
</Scheme>

Example/BasicExample/BasicExample.xcworkspace/xcshareddata/swiftpm/Package.resolved

Lines changed: 25 additions & 25 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Example/BasicExample/BasicExample/BasicExampleApp.swift

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,23 @@ import SegmentFirebase
1111

1212
@main
1313
struct BasicExampleApp: App {
14+
1415
var body: some Scene {
1516
WindowGroup {
1617
ContentView()
1718
}
1819
}
20+
21+
init() {
22+
Analytics.main.add(plugin: FirebaseDestination())
23+
}
1924
}
2025

2126
extension Analytics {
2227
static var main: Analytics {
2328
let analytics = Analytics(configuration: Configuration(writeKey: "<YOUR WRITE KEY>")
2429
.flushAt(3)
2530
.trackApplicationLifecycleEvents(true))
26-
analytics.add(plugin: FirebaseDestination())
2731
return analytics
2832
}
2933
}

Package.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@ let package = Package(
2323
.package(
2424
name: "Segment",
2525
url: "https://github.com/segmentio/analytics-swift.git",
26-
from: "1.1.2"
26+
from: "1.3.4"
2727
),
2828
.package(
2929
name: "Firebase",
3030
url: "https://github.com/firebase/firebase-ios-sdk",
31-
from: "9.1.0"
31+
from: "10.0.0"
3232
)
3333
],
3434
targets: [

0 commit comments

Comments
 (0)