-
-
Notifications
You must be signed in to change notification settings - Fork 29
/
Copy pathFormsApp.xaml.cs
44 lines (39 loc) · 1.09 KB
/
FormsApp.xaml.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#if RELEASE
using Chameleon.Services;
using Microsoft.AppCenter;
using Microsoft.AppCenter.Analytics;
using Microsoft.AppCenter.Crashes;
#endif
using Xamarin.Forms;
using FormsDevice = Xamarin.Forms.Device;
namespace Chameleon.Core
{
public partial class FormsApp : Application
{
public FormsApp()
{
InitializeComponent();
FormsDevice.SetFlags(new[] {
"CarouselView_Experimental",
"IndicatorView_Experimental",
"SwipeView_Experimental"
});
}
protected override void OnStart()
{
// Handle when your app starts
#if RELEASE
AppCenter.Start($"android={AppSettings.AndroidAppcenterSecret}; uwp={AppSettings.UwpAppcenterSecret}; ios={AppSettings.IosAppcenterSecret}",
typeof(Analytics), typeof(Crashes));
#endif
}
protected override void OnSleep()
{
// Handle when your app sleeps
}
protected override void OnResume()
{
// Handle when your app resumes
}
}
}