Commit c99b1475 authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧
Browse files

Port to Qt 5.14 + Android

Summary: There's a series of things that should be done differently nowadays on Android.

Test Plan: Tested the application on my Android phone.

Reviewers: #android, vkrause

Reviewed By: #android, vkrause

Subscribers: vatra, vkrause, kde-edu

Tags: #kde_edu

Differential Revision:
parent 20481014
......@@ -16,8 +16,7 @@
<meta-data android:name="" android:resource="@array/bundled_libs"/>
<!-- Deploy Qt libs as part of package -->
<meta-data android:name="" android:value="1"/>
<meta-data android:name="" android:resource="@array/bundled_in_lib"/>
<meta-data android:name="" android:resource="@array/bundled_in_assets"/>
<meta-data android:name="" android:resource="@array/load_local_libs"/>
<!-- Run with local libs -->
<meta-data android:name="" android:value="1"/>
<meta-data android:name="" android:value="/data/local/tmp/qt/"/>
<?xml version='1.0' encoding='utf-8'?>
<array name="qt_sources">
<!-- The following is handled automatically by the deployment tool. It should
not be edited manually. -->
<array name="bundled_libs">
<!-- %%INSERT_EXTRA_LIBS%% -->
<array name="qt_libs">
<!-- %%INSERT_QT_LIBS%% -->
<array name="bundled_in_lib">
<array name="bundled_in_assets">
......@@ -66,6 +66,9 @@ Q_DECL_EXPORT int main(int argc, char *argv[])
engine.rootContext()->setContextProperty(QStringLiteral("app"), &widget);
#ifdef __ANDROID__
engine.rootContext()->setContextObject(new KLocalizedContext(&engine));
......@@ -27,7 +27,7 @@
QString PluginsModel::pluginsDirectoryPath()
#ifdef __ANDROID__
return "/data/data/org.kde.kalgebramobile/qt-reserved-files/share/kalgebramobile/plugins";
return QStringLiteral("assets:/share/kalgebramobile/plugins");
return QStandardPaths::locate(QStandardPaths::DataLocation, QStringLiteral("plugins"), QStandardPaths::LocateDirectory);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment