mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-12-08 06:09:58 +00:00
Android: Keep up with the times
While some of the changes are due to syntax and have no effect on the functionality, others are more important. The major changes are - Use Painter instead of now removed DeprecatedPainter - Remove the need of LibArchive by using Java's native zip support - Have a proper C++23 compiler by updating NDK to r29 beta 2 - Store user data and config in an user accessible way - Update AGP to 8.11 and update compile target to SDK level 35
This commit is contained in:
parent
c99a467cdb
commit
6f350c51fd
Notes:
github-actions[bot]
2025-07-10 21:47:01 +00:00
Author: https://github.com/Olekoop
Commit: 6f350c51fd
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5053
Reviewed-by: https://github.com/ADKaster ✅
19 changed files with 113 additions and 222 deletions
|
|
@ -15,20 +15,24 @@
|
|||
#include <LibFileSystem/FileSystem.h>
|
||||
#include <LibIPC/SingleServer.h>
|
||||
#include <LibTLS/TLSv12.h>
|
||||
#include <LibWebView/Utilities.h>
|
||||
#include <RequestServer/ConnectionFromClient.h>
|
||||
#include <RequestServer/HttpProtocol.h>
|
||||
#include <RequestServer/HttpsProtocol.h>
|
||||
#include <UI/Utilities.h>
|
||||
|
||||
namespace RequestServer {
|
||||
|
||||
extern ByteString g_default_certificate_path;
|
||||
|
||||
}
|
||||
|
||||
ErrorOr<int> service_main(int ipc_socket)
|
||||
{
|
||||
|
||||
RequestServer::g_default_certificate_path = ByteString::formatted("{}/res/ladybird/cacert.pem", WebView::s_ladybird_resource_root);
|
||||
|
||||
Core::EventLoop event_loop;
|
||||
|
||||
RequestServer::HttpProtocol::install();
|
||||
RequestServer::HttpsProtocol::install();
|
||||
|
||||
auto socket = TRY(Core::LocalSocket::adopt_fd(ipc_socket));
|
||||
auto client = TRY(RequestServer::ConnectionFromClient::try_create(move(socket)));
|
||||
auto client = TRY(RequestServer::ConnectionFromClient::try_create(make<IPC::Transport>(move(socket))));
|
||||
|
||||
return event_loop.exec();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue