parameters: (ctx)
docstring: Gets a list of android apis that pre-built libs could be built against based
      on the current build target e.g. NDK_PLATFORM
docstring_summary: Gets a list of android apis that pre-built libs could be built against based
      on the current build target e.g. NDK_PLATFORM
docstring_tokens: Gets a list of android apis that pre - built libs could be built against based on the current build target e . g . NDK_PLATFORM
function: def get_android_api_lib_list(ctx):
      """
      Gets a list of android apis that pre-built libs could be built against based
      on the current build target e.g. NDK_PLATFORM
      """
      ndk_platform = ctx.get_android_ndk_platform()
      try:
          index = SUPPORTED_NDK_PLATFORMS.index(ndk_platform)
      except:
          ctx.fatal('[ERROR] Unsupported Android NDK platform version %s', ndk_platform)
      else:
          # we can only use libs built with api levels lower or equal to the one being used
          return SUPPORTED_NDK_PLATFORMS[:index + 1]
function_tokens: def get_android_api_lib_list ( ctx ) : ndk_platform = ctx . get_android_ndk_platform ( ) try : index = SUPPORTED_NDK_PLATFORMS . index ( ndk_platform ) except : ctx . fatal ( '[ERROR] Unsupported Android NDK platform version %s' , ndk_platform ) else : # we can only use libs built with api levels lower or equal to the one being used return SUPPORTED_NDK_PLATFORMS [ : index + 1 ]