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

Commit

Permalink
Merge pull request #30 from dellis1972/proguard
Browse files Browse the repository at this point in the history
Add Proguard config support
  • Loading branch information
dellis1972 authored Jun 7, 2021
2 parents 50128f7 + 79ea809 commit 3de39a4
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.props" 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.props
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 3de39a4

Please sign in to comment.