diff --git a/CHANGELOG.md b/CHANGELOG.md index 0d71c71..864427f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## 0.0.4 + +* Updated to new API endpoints + ## 0.0.3 * Moved from static functions to the 'shared' singleton pattern. \ No newline at end of file diff --git a/LICENSE b/LICENSE index f1488c2..a5e3447 100644 --- a/LICENSE +++ b/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 diff --git a/README.md b/README.md index 6f3272a..73b7913 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/Sources/Aptabase/Aptabase.swift b/Sources/Aptabase/Aptabase.swift index 1014abd..c295fe8 100644 --- a/Sources/Aptabase/Aptabase.swift +++ b/Sources/Aptabase/Aptabase.swift @@ -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() }