From 3311a8acb91d2a80bf5a6d9b29ad4c69ddfa402a Mon Sep 17 00:00:00 2001 From: Dean Ellis Date: Wed, 26 May 2021 14:32:03 +0100 Subject: [PATCH 1/2] 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 From 79ea8095ef19003c92fae8872e76ba96b95988b0 Mon Sep 17 00:00:00 2001 From: Dean Ellis Date: Mon, 7 Jun 2021 14:36:33 +0100 Subject: [PATCH 2/2] rework --- Projects/OpenTK.Android/OpenTK.Android.csproj | 2 +- ...amarin.Legacy.OpenTK.targets => Xamarin.Legacy.OpenTK.props} | 0 2 files changed, 1 insertion(+), 1 deletion(-) rename Projects/OpenTK.Android/{Xamarin.Legacy.OpenTK.targets => Xamarin.Legacy.OpenTK.props} (100%) diff --git a/Projects/OpenTK.Android/OpenTK.Android.csproj b/Projects/OpenTK.Android/OpenTK.Android.csproj index 1dbdb80b..22332380 100644 --- a/Projects/OpenTK.Android/OpenTK.Android.csproj +++ b/Projects/OpenTK.Android/OpenTK.Android.csproj @@ -76,7 +76,7 @@ - + diff --git a/Projects/OpenTK.Android/Xamarin.Legacy.OpenTK.targets b/Projects/OpenTK.Android/Xamarin.Legacy.OpenTK.props similarity index 100% rename from Projects/OpenTK.Android/Xamarin.Legacy.OpenTK.targets rename to Projects/OpenTK.Android/Xamarin.Legacy.OpenTK.props