From d9d06eba119f6b937d21f6e81b7f5e0f98d6b4b4 Mon Sep 17 00:00:00 2001 From: "HuYingzhuo(hugo/hyzboy)" Date: Wed, 26 Jul 2023 22:28:48 +0800 Subject: [PATCH] added android_api_version_string --- inc/hgl/platform/Android.h | 39 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/inc/hgl/platform/Android.h b/inc/hgl/platform/Android.h index 2616df1..52e324f 100644 --- a/inc/hgl/platform/Android.h +++ b/inc/hgl/platform/Android.h @@ -15,4 +15,43 @@ namespace hgl * 根据版本号取得Android的APILevel,如若出错返回-1 */ const int GetAndroidAPILevel(const AndroidVersion &); + + constexpr const char *android_api_version_string[]= + { + "0", //0 + "1.0", //1 + "1.1", //2 + "1.5", //3 + "1.6", //4 + "2.0", //5 + "2.0.1", //6 + "2.1", //7 + "2.2", //8 + "2.3", //9 + "2.3.3", //10 + "3.0", //11 + "3.1", //12 + "3.2", //13 + "4.0", //14 + "4.0.3", //15 + "4.1", //16 + "4.2", //17 + "4.3", //18 + "4.4", //19 + "4.4W", //20 + "5.0", //21 + "5.1", //22 + "6.0", //23 + "7.0", //24 + "7.1", //25 + "8.0", //26 + "8.1", //27 + "9", //28 + "10", //29 + "11", //30 + "12", //31 + "12L", //32 + "13", //33 + "14", //34 + }; }//namespace hgl