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

Add Proguard config support #30

Merged
merged 2 commits into from
Jun 7, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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>