Browse Source

remove debug code

pull/11848/head
Emmanuel Hansen 3 years ago
parent
commit
3f56045885
  1. 11
      samples/MobileSandbox.Android/MainActivity.cs
  2. 4
      samples/MobileSandbox.Android/MobileSandbox.Android.csproj
  3. 3
      src/Android/Avalonia.Android/Avalonia.Android.csproj
  4. 2
      src/Android/Avalonia.Android/Platform/SkiaPlatform/TopLevelImpl.cs

11
samples/MobileSandbox.Android/MainActivity.cs

@ -10,16 +10,5 @@ namespace MobileSandbox.Android
[Activity(Label = "MobileSandbox.Android", Theme = "@style/MyTheme.NoActionBar", Icon = "@drawable/icon", MainLauncher = true, ConfigurationChanges = ConfigChanges.Orientation | ConfigChanges.ScreenSize)]
public class MainActivity : AvaloniaMainActivity<App>
{
protected override void OnCreate(Bundle savedInstanceState)
{
AppDomain.CurrentDomain.UnhandledException += CurrentDomainUnhandledException;
base.OnCreate(savedInstanceState);
}
private void CurrentDomainUnhandledException(object sender, UnhandledExceptionEventArgs e)
{
System.Diagnostics.Debug.WriteLine(e.ToString());
}
}
}

4
samples/MobileSandbox.Android/MobileSandbox.Android.csproj

@ -38,10 +38,6 @@
<DebugSymbols>True</DebugSymbols>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<EmbedAssembliesIntoApk>True</EmbedAssembliesIntoApk>
</PropertyGroup>
<ItemGroup>
<AndroidEnvironment Condition="'$(IsEmulator)'=='True'" Include="environment.emulator.txt" />
<AndroidEnvironment Condition="'$(IsEmulator)'!='True'" Include="environment.device.txt" />

3
src/Android/Avalonia.Android/Avalonia.Android.csproj

@ -7,9 +7,6 @@
<DebugType>portable</DebugType>
<AndroidResgenNamespace>Avalonia.Android.Internal</AndroidResgenNamespace>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<EmbedAssembliesIntoApk>True</EmbedAssembliesIntoApk>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\..\..\packages\Avalonia\Avalonia.csproj" />
<PackageReference Include="Xamarin.AndroidX.AppCompat" Version="1.3.1.3" />

2
src/Android/Avalonia.Android/Platform/SkiaPlatform/TopLevelImpl.cs

@ -526,8 +526,6 @@ namespace Avalonia.Android.Platform.SkiaPlatform
}
var compositionText = text.SubSequence(0, text.Length());
System.Diagnostics.Debug.WriteLine($"Composition Changed: {compositionText}");
if (_inputMethod.IsActive && !_commitInProgress)
{
if (string.IsNullOrEmpty(compositionText))

Loading…
Cancel
Save