public override bool FinishedLaunching(UIApplication application, NSDictionary launchOptions) { var versionString = UIDevice.CurrentDevice.SystemVersion; systemVersion = Convert.ToInt32(versionString.Split(new [] { "." }, StringSplitOptions.None)[0]); // Attach bug tracker #if (!DEBUG) RaygunClient.Attach(Build.RaygunApiKey); TestFairy.Begin(Build.TestFairyApiToken); #endif // Component initialisation. RegisterComponents(); // Setup Google sign in SetupGoogleServices(); Toggl.Ross.Theme.Style.Initialize(); // Start app window = new TogglWindow(UIScreen.MainScreen.Bounds); window.RootViewController = new MainViewController(); window.MakeKeyAndVisible(); // Make sure critical services are running are running: ServiceContainer.Resolve <UpgradeManger> ().TryUpgrade(); ServiceContainer.Resolve <ILoggerClient> (); ServiceContainer.Resolve <LoggerUserManager> (); ServiceContainer.Resolve <ITracker> (); ServiceContainer.Resolve <APNSManager> (); return(true); }
public override bool FinishedLaunching(UIApplication application, NSDictionary launchOptions) { TestFairy.Begin("5b3af35e59a1e074e2d50675b1b629306cf0cfbd"); // Override point for customization after application launch. // If not required for your application you can safely delete this method return(true); }
private void CreateHiddenSubtitle() { // this subtitle will be shown on device or simulator, but won't be in the // video generated by testfairy subtitle = new UITextView { Frame = new Rectangle(0, (int)View.Frame.Height - 48, (int)View.Frame.Width, 48), TextAlignment = UITextAlignment.Center, Font = UIFont.BoldSystemFontOfSize(12), Text = "Secret Text!", TextColor = UIColor.Red, }; View.AddSubview(subtitle); // pass UIView to TestFairy, let it know to hide this in next frames TestFairy.HideView(subtitle); }
protected override void OnCreate(Bundle savedInstanceState) { base.OnCreate(savedInstanceState); // Invoke TestFairy begin to start session recording TestFairy.Begin(this, "5b3af35e59a1e074e2d50675b1b629306cf0cfbd"); // Set our view from the "main" layout resource SetContentView(Resource.Layout.Main); var animation = AnimationUtils.LoadAnimation(this, Resource.Animation.rotate_centre); View rotating = FindViewById <View> (Resource.Id.rotating_box); rotating.StartAnimation(animation); View hidden = FindViewById <View> (Resource.Id.secret_text); TestFairy.HideView(hidden); }
// // This method is invoked when the application has loaded and is ready to run. In this // method you should instantiate the window, load the UI into it and then make the window // visible. // // You have 17 seconds to return from this method, or iOS will terminate your application. // public override bool FinishedLaunching(UIApplication app, NSDictionary options) { // Xamarin insights Insights.HasPendingCrashReport += (sender, isStartupCrash) => { if (isStartupCrash) { Insights.PurgePendingCrashReports().Wait(); } }; Insights.Initialize(ConfigurationManager.AppSettings.XamarinInsightsApiKey); TestFairy.Begin(ConfigurationManager.AppSettings.TestFairyAppToken); // Initialize Appstart.Initialize(); ParseInitializer.Initialize(); ParsePushInitialize(); if (ParseUser.CurrentUser != null) { TestFairy.SetCorrelationId(ParseUser.CurrentUser.Email); } Xamarin.Forms.Forms.Init(); Xamarin.FormsMaps.Init(); LoadApplication(new App()); // Newer version of Xamarin Studio and Visual Studio provide the // ENABLE_TEST_CLOUD compiler directive in the Debug configuration, // but not the Release configuration. #if ENABLE_TEST_CLOUD Xamarin.Calabash.Start(); #endif return(base.FinishedLaunching(app, options)); }
protected override void OnCreate(Bundle bundle) { //Xamarin.Insights.Initialize (global::WMP.Droid.XamarinInsights.ApiKey, this); base.OnCreate(bundle); this.ActionBar.SetIcon(Android.Resource.Color.Transparent); global::Xamarin.Forms.Forms.Init(this, bundle); //InitializeHockeyApp(); TestFairy.Begin(this, "b13a46d6a2e460bf6137d7160b6768b06d136e3e"); if (Intent.Data != null && Intent.Scheme.Equals("usaid")) { ////coming from URL //var email = Intent.Data.GetQueryParameters("email")[0]; //var password = Intent.Data.GetQueryParameters("password")[0]; //if (dealerKey != null && partnerKey != null) //{ // UserInfoService userInfoService = new UserInfoService(); // userInfoService.SaveUserInfo(new Shared.Models.UserInfoModel { Email = email, PartnerKey = partnerKey }); //} } LoadApplication(new App(new Setup())); }
// Start is called before the first frame update void Start() { TestFairy.begin("cc38070ec3d9684a91879a2ec0e8a21fc67b36ed"); TestFairy.setUserId("UnityUser-test"); }
void OnLevelWasLoaded(int level) { TestFairy.setScreenName(Application.loadedLevelName); }
void Start() { TestFairy.begin("3605499da10758d7a07f0cf6bd71b298267f2a96"); }
// Use this for initialization void Start() { TestFairy.begin("82c8b91dfa4f43927868b8f2ac4969ba622f55b1"); }
// Start is called before the first frame update void Start() { Application.logMessageReceivedThreaded += CaptureLogThread; TestFairy.begin("5b3af35e59a1e074e2d50675b1b629306cf0cfbd"); }
void CaptureLogThread(string message, string stacktrace, LogType type) { TestFairy.log(message); }
// Start is called before the first frame update void Start() { TestFairy.begin("cc38070ec3d9684a91879a2ec0e8a21fc67b36ed"); }