From 4f90aebf1654d9d5869dc25a39f4c74297b97a3c Mon Sep 17 00:00:00 2001
From: Benjamin Erhart <berhart@netzarchitekten.com>
Date: Mon, 30 May 2022 13:43:33 +0200
Subject: [PATCH] Added support for macOS. Increased minimal Android API to 19
 to be able to use Android NDK 24.0 for compilation.

---
 build.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/build.sh b/build.sh
index 43b43f8..ac719fe 100755
--- a/build.sh
+++ b/build.sh
@@ -1,6 +1,6 @@
 #!/bin/sh
 
-TARGET=ios
+TARGET=ios,iossimulator,macos
 OUTPUT=IPtProxy.xcframework
 
 if test "$1" = "android"; then
@@ -54,6 +54,6 @@ cd IPtProxy.go || exit 1
 
 gomobile init
 
-gomobile bind -target=$TARGET -o ../$OUTPUT -iosversion 11.0 -v
+gomobile bind -target=$TARGET -o ../$OUTPUT -iosversion 11.0 -androidapi 19 -v
 
 printf '\n\n--- Done.\n\n'
-- 
GitLab