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

Commit 3311a8a

Browse files
committed
Add Proguard config support
1 parent 50128f7 commit 3311a8a

File tree

4 files changed

+15
-1
lines changed

4 files changed

+15
-1
lines changed

OpenTK.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<Project>
22
<PropertyGroup>
3-
<_OpenTKNugetVersion>0.0.1-alpha</_OpenTKNugetVersion>
3+
<_OpenTKNugetVersion>1.0.0</_OpenTKNugetVersion>
44
</PropertyGroup>
55
</Project>

Projects/OpenTK.Android/OpenTK.Android.csproj

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,5 +74,10 @@
7474
<PackageOutputPath>$(MSBuildThisFileDirectory)..\..\</PackageOutputPath>
7575
<AllowedOutputExtensionsInPackageBuildOutputFolder>.pdb;$(AllowedOutputExtensionsInPackageBuildOutputFolder)</AllowedOutputExtensionsInPackageBuildOutputFolder>
7676
</PropertyGroup>
77+
78+
<ItemGroup>
79+
<None Include="Xamarin.Legacy.OpenTK.targets" PackagePath="build" Pack="true" />
80+
<None Include="OpenTK.cfg" PackagePath="build" Pack="true" />
81+
</ItemGroup>
7782

7883
</Project>

Projects/OpenTK.Android/OpenTK.cfg

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

0 commit comments

Comments
 (0)