Skip to content
This repository has been archived by the owner on Oct 1, 2024. It is now read-only.

Commit

Permalink
Add Proguard config support
Browse files Browse the repository at this point in the history
  • Loading branch information
dellis1972 committed May 26, 2021
1 parent 50128f7 commit 3311a8a
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion OpenTK.props
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<Project>
<PropertyGroup>
<_OpenTKNugetVersion>0.0.1-alpha</_OpenTKNugetVersion>
<_OpenTKNugetVersion>1.0.0</_OpenTKNugetVersion>
</PropertyGroup>
</Project>
5 changes: 5 additions & 0 deletions Projects/OpenTK.Android/OpenTK.Android.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -74,5 +74,10 @@
<PackageOutputPath>$(MSBuildThisFileDirectory)..\..\</PackageOutputPath>
<AllowedOutputExtensionsInPackageBuildOutputFolder>.pdb;$(AllowedOutputExtensionsInPackageBuildOutputFolder)</AllowedOutputExtensionsInPackageBuildOutputFolder>
</PropertyGroup>

<ItemGroup>
<None Include="Xamarin.Legacy.OpenTK.targets" PackagePath="build" Pack="true" />
<None Include="OpenTK.cfg" PackagePath="build" Pack="true" />
</ItemGroup>

</Project>
4 changes: 4 additions & 0 deletions Projects/OpenTK.Android/OpenTK.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
-keep class opentk.platform.android.AndroidGameView { *; <init>(...); }
-keep class opentk.GameViewBase { *; <init>(...); }
-keep class opentk_1_0.platform.android.AndroidGameView { *; <init>(...); }
-keep class opentk_1_0.GameViewBase { *; <init>(...); }
5 changes: 5 additions & 0 deletions Projects/OpenTK.Android/Xamarin.Legacy.OpenTK.targets
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>
<ProguardConfiguration Include="$(MSBuildThisFileDirectory)OpenTK.cfg" />
</ItemGroup>
</Project>

0 comments on commit 3311a8a

Please sign in to comment.