mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 23:07:35 +00:00
Ladybird: Add new template Kotlin Android application without Qt
This template app from Android Studio should hopefully be more fun to work on than the Qt wrapped application we were using before. :^) It currently builds the native code using gradle rules, and has a stub WebViewImplementationNative class that will wrap a c++ class of the same name that inhertis from WebView::ViewImplementation. Spawning helper processes and creating proper views in Kotlin is next on the list.
This commit is contained in:
parent
6e8f1549a3
commit
7bc009d80f
50 changed files with 943 additions and 370 deletions
|
@ -22,10 +22,6 @@ ErrorOr<String> application_directory()
|
|||
|
||||
void platform_init()
|
||||
{
|
||||
#ifdef AK_OS_ANDROID
|
||||
extern void android_platform_init();
|
||||
android_platform_init();
|
||||
#else
|
||||
s_serenity_resource_root = [] {
|
||||
auto const* source_dir = getenv("SERENITY_SOURCE_DIR");
|
||||
if (source_dir) {
|
||||
|
@ -37,13 +33,12 @@ void platform_init()
|
|||
if (FileSystem::is_directory(home_lagom))
|
||||
return home_lagom;
|
||||
auto app_dir = application_directory().release_value_but_fixme_should_propagate_errors().to_deprecated_string();
|
||||
# ifdef AK_OS_MACOS
|
||||
#ifdef AK_OS_MACOS
|
||||
return LexicalPath(app_dir).parent().append("Resources"sv).string();
|
||||
# else
|
||||
#else
|
||||
return LexicalPath(app_dir).parent().append("share"sv).string();
|
||||
# endif
|
||||
}();
|
||||
#endif
|
||||
}();
|
||||
}
|
||||
|
||||
ErrorOr<Vector<String>> get_paths_for_helper_process(StringView process_name)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue