Commit 11745dd6 authored by Sylvain Berfini's avatar Sylvain Berfini 🎩

Only use Debug.WriteLine, seems to work everywhere

parent 7feb1b96
Pipeline #230 failed with stage
in 0 seconds
......@@ -7,7 +7,6 @@ using Xamarin.Forms.Xaml;
#if ANDROID
using Android.Util;
using Android.Content;
#endif
[assembly: XamlCompilation (XamlCompilationOptions.Compile)]
......@@ -94,11 +93,7 @@ namespace Xamarin
private void OnGlobal(Core lc, GlobalState gstate, string message)
{
#if WINDOWS_UWP
Debug.WriteLine("Global state changed: " + gstate);
#else
Console.WriteLine("Global state changed: " + gstate);
#endif
}
#if WINDOWS_UWP
......
......@@ -2,11 +2,8 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Diagnostics;
using Xamarin.Forms;
using Android.Util;
namespace Xamarin
{
......@@ -23,11 +20,7 @@ namespace Xamarin
private void OnRegistration(Core lc, ProxyConfig config, RegistrationState state, string message)
{
#if WINDOWS_UWP
Debug.WriteLine("Registration state changed: " + state);
#else
Console.WriteLine("Registration state changed: " + state);
#endif
registration_status.Text = "Registration state changed: " + state;
......@@ -40,11 +33,7 @@ namespace Xamarin
private void OnCall(Core lc, Call lcall, CallState state, string message)
{
#if WINDOWS_UWP
Debug.WriteLine("Call state changed: " + state);
#else
Console.WriteLine("Call state changed: " + state);
#endif
call_status.Text = "Call state changed: " + state;
......@@ -83,22 +72,15 @@ namespace Xamarin
private void OnStats(Core lc, Call call, CallStats stats)
{
#if WINDOWS_UWP
Debug.WriteLine("Call stats: " + stats.DownloadBandwidth + " kbits/s / " + stats.UploadBandwidth + " kbits/s");
#else
Console.WriteLine("Call stats: " + stats.DownloadBandwidth + " kbits/s / " + stats.UploadBandwidth + " kbits/s");
#endif
call_stats.Text = "Call stats: " + stats.DownloadBandwidth + " kbits/s / " + stats.UploadBandwidth + " kbits/s";
}
private void OnLogCollectionUpload(Core lc, CoreLogCollectionUploadState state, string info)
{
#if WINDOWS_UWP
Debug.WriteLine("Logs upload state changed: " + state + ", url is " + info);
#else
Console.WriteLine("Logs upload state changed: " + state + ", url is " + info);
#endif
logsUrl.Text = info;
var tapGestureRecognizer = new TapGestureRecognizer();
tapGestureRecognizer.Tapped += (s, e) => {
......@@ -244,11 +226,7 @@ namespace Xamarin
}
catch (ArithmeticException)
{
#if WINDOWS_UWP
Debug.WriteLine("Cannot swtich camera : no camera");
#else
Console.WriteLine("Cannot swtich camera : no camera");
#endif
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment