mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-19 03:33:36 +01:00
Uses separate App Center tokens for different build types
This commit is contained in:
@@ -12,6 +12,14 @@ import AppCenter
|
|||||||
import AppCenterAnalytics
|
import AppCenterAnalytics
|
||||||
import AppCenterCrashes
|
import AppCenterCrashes
|
||||||
|
|
||||||
|
#if DEBUG
|
||||||
|
private let appCenterAppSecret = "bb08e9bb-c126-408d-bf3f-324c8473fd40"
|
||||||
|
#elseif RELEASE
|
||||||
|
private let appCenterAppSecret = "b6718932-294a-432b-81f2-be1e17ff85c5"
|
||||||
|
#else
|
||||||
|
private let appCenterAppSecret = "e873f6ca-75eb-4685-818f-801e0e375d60"
|
||||||
|
#endif
|
||||||
|
|
||||||
extension AnalyticsManager
|
extension AnalyticsManager
|
||||||
{
|
{
|
||||||
enum EventProperty: String
|
enum EventProperty: String
|
||||||
@@ -80,7 +88,7 @@ extension AnalyticsManager
|
|||||||
{
|
{
|
||||||
func start()
|
func start()
|
||||||
{
|
{
|
||||||
MSAppCenter.start("bb08e9bb-c126-408d-bf3f-324c8473fd40", withServices:[
|
MSAppCenter.start(appCenterAppSecret, withServices:[
|
||||||
MSAnalytics.self,
|
MSAnalytics.self,
|
||||||
MSCrashes.self
|
MSCrashes.self
|
||||||
])
|
])
|
||||||
|
|||||||
Reference in New Issue
Block a user