update to new url endpoints

This commit is contained in:
goenning
2023-04-20 15:28:16 +01:00
parent b3b7f1a382
commit ca0e6984b8
4 changed files with 10 additions and 6 deletions

View File

@@ -1,3 +1,7 @@
## 0.0.4
* Updated to new API endpoints
## 0.0.3
* Moved from static functions to the 'shared' singleton pattern.

View File

@@ -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

View File

@@ -6,7 +6,7 @@
[![](https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2Faptabase%2Faptabase-swift%2Fbadge%3Ftype%3Dplatforms)](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

View File

@@ -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()
}