try rename

This commit is contained in:
goenning
2023-05-25 08:07:53 +01:00
parent 16ff9d8da7
commit 457a088e14
4 changed files with 5 additions and 13 deletions

View File

@@ -1,8 +0,0 @@
<?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>IDEDidComputeMac32BitWarning</key>
<true/>
</dict>
</plist>

View File

@@ -9,7 +9,7 @@ struct CounterView: View {
Text("Count = \(count)")
Button(action: {
self.count += 1
Aptabase.shared.trackEvent("Increment", with: ["count": self.count])
AptabaseClient.shared.trackEvent("Increment", with: ["count": self.count])
}) {
Text("Increment")
}.padding()

View File

@@ -4,7 +4,7 @@ import Aptabase
@main
struct HelloWorldApp: App {
init() {
Aptabase.shared.initialize(appKey: "A-DEV-0000000000");
AptabaseClient.shared.initialize(appKey: "A-DEV-0000000000");
}
var body: some Scene {

View File

@@ -17,7 +17,7 @@ public struct InitOptions {
}
// The Aptabase client used to track events
public class Aptabase {
public class AptabaseClient {
private static var SDK_VERSION = "aptabase-swift@0.0.7";
// Session expires after 1 hour of inactivity
@@ -28,7 +28,7 @@ public class Aptabase {
private var _lastTouched = Date()
private var _apiURL: URL?
public static let shared = Aptabase()
public static let shared = AptabaseClient()
private var _hosts = [
"US": "https://us.aptabase.com",
@@ -93,7 +93,7 @@ public class Aptabase {
"locale": env.locale,
"appVersion": env.appVersion,
"appBuildNumber": env.appBuildNumber,
"sdkVersion": Aptabase.SDK_VERSION
"sdkVersion": AptabaseClient.SDK_VERSION
] as [String : Any],
"props": props
]