mirror of
https://github.com/aptabase/aptabase-swift.git
synced 2026-01-18 22:21:17 +01:00
try rename
This commit is contained in:
@@ -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>
|
||||
@@ -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()
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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
|
||||
]
|
||||
Reference in New Issue
Block a user