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

Commit

Permalink
Exclude code that's not trimmer safe. (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
rolfbjarne authored Oct 16, 2024
1 parent 77b3337 commit d157950
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions MonoTouch.Dialog/Reflect.cs
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ public RangeAttribute (float low, float high)
public bool ShowCaption;
}

#if !ONLY_TRIMMER_SAFE
public class BindingContext : IDisposable {
public RootElement Root;
Dictionary<Element,MemberAndInstance> mappings;
Expand Down Expand Up @@ -467,4 +468,5 @@ public void Fetch ()
}
}
}
#endif // !ONLY_TRIMMER_SAFE
}
3 changes: 3 additions & 0 deletions MonoTouch.Dialog/dotnet/shared.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@

<!-- 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 -->
<NoWarn>$(NoWarn);CA1422</NoWarn>

<!-- Exclude code that's not trimmer-safe -->
<DefineConstants>$(DefineConstants);ONLY_TRIMMER_SAFE</DefineConstants>
</PropertyGroup>
<ItemGroup>
<Compile Include="$(RootDirectory)Elements.cs" />
Expand Down

0 comments on commit d157950

Please sign in to comment.