2020-09-08 19:31:50 +00:00
|
|
|
// Copyright 2020, Collabora, Ltd.
|
|
|
|
// SPDX-License-Identifier: BSL-1.0
|
|
|
|
/*!
|
|
|
|
* @file
|
|
|
|
* @brief Function for loading Java code from a package.
|
|
|
|
* @author Ryan Pavlik <ryan.pavlik@collabora.com>
|
|
|
|
* @ingroup aux_android
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <xrt/xrt_config_os.h>
|
|
|
|
|
2020-09-25 17:59:08 +00:00
|
|
|
#include "wrap/android.app.h"
|
|
|
|
|
2020-09-08 19:31:50 +00:00
|
|
|
#ifdef XRT_OS_ANDROID
|
|
|
|
|
2020-09-25 17:59:08 +00:00
|
|
|
using wrap::android::content::pm::ApplicationInfo;
|
2020-09-08 19:31:50 +00:00
|
|
|
|
2020-09-25 17:59:08 +00:00
|
|
|
ApplicationInfo
|
|
|
|
getAppInfo(std::string const &packageName, jobject application_context);
|
2020-09-08 19:31:50 +00:00
|
|
|
|
2020-09-25 17:59:08 +00:00
|
|
|
wrap::java::lang::Class
|
|
|
|
loadClassFromPackage(ApplicationInfo applicationInfo,
|
|
|
|
jobject application_context,
|
|
|
|
const char *clazz_name);
|
2020-09-08 19:31:50 +00:00
|
|
|
|
|
|
|
#endif // XRT_OS_ANDROID
|