Skip to content

Commit

Permalink
update to new url endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
goenning committed Apr 20, 2023
1 parent b3b7f1a commit ca0e698
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
8 changes: 4 additions & 4 deletions Sources/Aptabase/Aptabase.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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()
}
Expand Down

0 comments on commit ca0e698

Please sign in to comment.