mirror of
https://github.com/aptabase/aptabase-swift.git
synced 2026-01-16 22:11:17 +01:00
update to new url endpoints
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
## 0.0.4
|
||||
|
||||
* Updated to new API endpoints
|
||||
|
||||
## 0.0.3
|
||||
|
||||
* Moved from static functions to the 'shared' singleton pattern.
|
||||
2
LICENSE
2
LICENSE
@@ -1,6 +1,6 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2023 Sumbit Labs Limited
|
||||
Copyright (c) 2023 Sumbit Labs Ltd.
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
[](https://swiftpackageindex.com/aptabase/aptabase-swift)
|
||||
|
||||
|
||||
Instrument your apps with Aptabase, a privacy-first analytics platform for desktop, mobile and web apps.
|
||||
Instrument your apps with Aptabase, an Open Source, Privacy-First and Simple Analytics for Mobile, Desktop and Web Apps.
|
||||
|
||||
## Install
|
||||
|
||||
|
||||
@@ -23,9 +23,9 @@ public class Aptabase {
|
||||
public static let shared = Aptabase()
|
||||
|
||||
private var _regions = [
|
||||
"US": "https://api-us.aptabase.com",
|
||||
"EU": "https://api-eu.aptabase.com",
|
||||
"DEV": "http://localhost:5251"
|
||||
"US": "https://us.aptabase.com",
|
||||
"EU": "https://eu.aptabase.com",
|
||||
"DEV": "http://localhost:3000"
|
||||
]
|
||||
|
||||
// Initializes the client with given App Key
|
||||
@@ -39,7 +39,7 @@ public class Aptabase {
|
||||
let region = parts[1]
|
||||
let baseURL = _regions[region] ?? _regions["DEV"]!
|
||||
|
||||
_apiURL = URL(string: "\(baseURL)/v0/event")!
|
||||
_apiURL = URL(string: "\(baseURL)/api/v0/event")!
|
||||
_appKey = appKey
|
||||
_env = EnvironmentInfo.get()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user