Skip to content
This repository was archived by the owner on Jan 10, 2025. It is now read-only.

Commit d157950

Browse files
authored
Exclude code that's not trimmer safe. (#5)
1 parent 77b3337 commit d157950

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

MonoTouch.Dialog/Reflect.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ public RangeAttribute (float low, float high)
123123
public bool ShowCaption;
124124
}
125125

126+
#if !ONLY_TRIMMER_SAFE
126127
public class BindingContext : IDisposable {
127128
public RootElement Root;
128129
Dictionary<Element,MemberAndInstance> mappings;
@@ -467,4 +468,5 @@ public void Fetch ()
467468
}
468469
}
469470
}
471+
#endif // !ONLY_TRIMMER_SAFE
470472
}

MonoTouch.Dialog/dotnet/shared.csproj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@
1212

1313
<!-- warning CA1422: This call site is reachable on: '...' obsoleted on: '...': MonoTouch.Dialog isn't really maintained, so we're not removing usage of obsoleted APIs unless we really have to, so just ignore any such warnings -->
1414
<NoWarn>$(NoWarn);CA1422</NoWarn>
15+
16+
<!-- Exclude code that's not trimmer-safe -->
17+
<DefineConstants>$(DefineConstants);ONLY_TRIMMER_SAFE</DefineConstants>
1518
</PropertyGroup>
1619
<ItemGroup>
1720
<Compile Include="$(RootDirectory)Elements.cs" />

0 commit comments

Comments
 (0)