From b15dcb94c15a40b4323bc0a2d132047f9726cdca Mon Sep 17 00:00:00 2001 From: Apprentice-Alchemist <53486764+Apprentice-Alchemist@users.noreply.github.com> Date: Thu, 3 Feb 2022 17:23:43 +0100 Subject: [PATCH] Upgrade to android API level 21. --- project/Build.xml | 4 +--- tools/platforms/AndroidPlatform.hx | 16 +++++----------- 2 files changed, 6 insertions(+), 14 deletions(-) diff --git a/project/Build.xml b/project/Build.xml index bac949ff4d..93dfe6bb53 100644 --- a/project/Build.xml +++ b/project/Build.xml @@ -1,8 +1,6 @@ - - - + diff --git a/tools/platforms/AndroidPlatform.hx b/tools/platforms/AndroidPlatform.hx index 19b33a482c..ce399f2411 100644 --- a/tools/platforms/AndroidPlatform.hx +++ b/tools/platforms/AndroidPlatform.hx @@ -71,8 +71,8 @@ class AndroidPlatform extends PlatformTarget for (architecture in architectures) { - var haxeParams = [hxml, "-D", "android", "-D", "PLATFORM=android-16"]; - var cppParams = ["-Dandroid", "-DPLATFORM=android-16"]; + var haxeParams = [hxml, "-D", "android", "-D", "PLATFORM=android-21"]; + var cppParams = ["-Dandroid", "-DPLATFORM=android-21"]; var path = sourceSet + "/jniLibs/armeabi"; var suffix = ".so"; @@ -86,9 +86,6 @@ class AndroidPlatform extends PlatformTarget } else if (architecture == Architecture.ARM64) { - haxeParams = [hxml, "-D", "android", "-D", "PLATFORM=android-21"]; - cppParams = ["-Dandroid", "-DPLATFORM=android-21"]; - haxeParams.push("-D"); haxeParams.push("HXCPP_ARM64"); cppParams.push("-DHXCPP_ARM64"); @@ -105,9 +102,6 @@ class AndroidPlatform extends PlatformTarget } else if (architecture == Architecture.X64) { - haxeParams = [hxml, "-D", "android", "-D", "PLATFORM=android-21"]; - cppParams = ["-Dandroid", "-DPLATFORM=android-21"]; - haxeParams.push("-D"); haxeParams.push("HXCPP_X86_64"); cppParams.push("-DHXCPP_X86_64"); @@ -284,10 +278,10 @@ class AndroidPlatform extends PlatformTarget var commands = []; - if (armv5) commands.push(["-Dandroid", "-DPLATFORM=android-16"]); - if (armv7) commands.push(["-Dandroid", "-DHXCPP_ARMV7", "-DHXCPP_ARM7", "-DPLATFORM=android-16"]); + if (armv5) commands.push(["-Dandroid", "-DPLATFORM=android-21"]); + if (armv7) commands.push(["-Dandroid", "-DHXCPP_ARMV7", "-DHXCPP_ARM7", "-DPLATFORM=android-21"]); if (arm64) commands.push(["-Dandroid", "-DHXCPP_ARM64", "-DPLATFORM=android-21"]); - if (x86) commands.push(["-Dandroid", "-DHXCPP_X86", "-DPLATFORM=android-16"]); + if (x86) commands.push(["-Dandroid", "-DHXCPP_X86", "-DPLATFORM=android-21"]); if (x64) commands.push(["-Dandroid", "-DHXCPP_X86_64", "-DPLATFORM=android-21"]); CPPHelper.rebuild(project, commands);