Skip to content

Commit a2114f5

Browse files
committedApr 16, 2023
maui: add separate AppCenter key
1 parent 2f5854a commit a2114f5

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed
 

‎Maui/SimpleWeather.Maui/App.xaml.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public App()
6161

6262
#if !MACCATALYST
6363
AppCenter.LogLevel = AppCenterLogLevel.Verbose;
64-
AppCenter.Start(APIKeys.GetAppCenterSecret(), typeof(Analytics), typeof(Crashes));
64+
AppCenter.Start($"ios={APIKeys.GetiOSAppCenterSecret()}", typeof(Analytics), typeof(Crashes));
6565
#endif
6666

6767
// Initialize depencies for library

‎SimpleWeather.Weather-API/Keys/Keys.cs

+6-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,12 @@ public static String GetAQICNKey()
2424
return null;
2525
}
2626

27-
public static String GetAppCenterSecret()
27+
public static String GetUWPAppCenterSecret()
28+
{
29+
return null;
30+
}
31+
32+
public static String GetiOSAppCenterSecret()
2833
{
2934
return null;
3035
}

‎SimpleWeather.Windows/App.xaml.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ public App()
107107
MemoryManager.AppMemoryUsageIncreased += MemoryManager_AppMemoryUsageIncreased;
108108

109109
AppCenter.LogLevel = AppCenterLogLevel.Verbose;
110-
AppCenter.Start(APIKeys.GetAppCenterSecret(), typeof(Analytics), typeof(Crashes));
110+
AppCenter.Start(APIKeys.GetUWPAppCenterSecret(), typeof(Analytics), typeof(Crashes));
111111

112112
// Initialize depencies for library
113113
InitializeDependencies();

0 commit comments

Comments
 (0)
Please sign in to comment.