From 3311a8acb91d2a80bf5a6d9b29ad4c69ddfa402a Mon Sep 17 00:00:00 2001 From: Dean Ellis Date: Wed, 26 May 2021 14:32:03 +0100 Subject: [PATCH] Add Proguard config support --- OpenTK.props | 2 +- Projects/OpenTK.Android/OpenTK.Android.csproj | 5 +++++ Projects/OpenTK.Android/OpenTK.cfg | 4 ++++ Projects/OpenTK.Android/Xamarin.Legacy.OpenTK.targets | 5 +++++ 4 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 Projects/OpenTK.Android/OpenTK.cfg create mode 100644 Projects/OpenTK.Android/Xamarin.Legacy.OpenTK.targets diff --git a/OpenTK.props b/OpenTK.props index 9f20b3d1..56e8eac3 100644 --- a/OpenTK.props +++ b/OpenTK.props @@ -1,5 +1,5 @@ - <_OpenTKNugetVersion>0.0.1-alpha + <_OpenTKNugetVersion>1.0.0 \ No newline at end of file diff --git a/Projects/OpenTK.Android/OpenTK.Android.csproj b/Projects/OpenTK.Android/OpenTK.Android.csproj index 67f01852..1dbdb80b 100644 --- a/Projects/OpenTK.Android/OpenTK.Android.csproj +++ b/Projects/OpenTK.Android/OpenTK.Android.csproj @@ -74,5 +74,10 @@ $(MSBuildThisFileDirectory)..\..\ .pdb;$(AllowedOutputExtensionsInPackageBuildOutputFolder) + + + + + \ No newline at end of file diff --git a/Projects/OpenTK.Android/OpenTK.cfg b/Projects/OpenTK.Android/OpenTK.cfg new file mode 100644 index 00000000..3b494b55 --- /dev/null +++ b/Projects/OpenTK.Android/OpenTK.cfg @@ -0,0 +1,4 @@ +-keep class opentk.platform.android.AndroidGameView { *; (...); } +-keep class opentk.GameViewBase { *; (...); } +-keep class opentk_1_0.platform.android.AndroidGameView { *; (...); } +-keep class opentk_1_0.GameViewBase { *; (...); } \ No newline at end of file diff --git a/Projects/OpenTK.Android/Xamarin.Legacy.OpenTK.targets b/Projects/OpenTK.Android/Xamarin.Legacy.OpenTK.targets new file mode 100644 index 00000000..a1fdc781 --- /dev/null +++ b/Projects/OpenTK.Android/Xamarin.Legacy.OpenTK.targets @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file