Commit 7bccafe0 authored by camilo higuita's avatar camilo higuita

updates and set the android manifest

parent 1ddf207a
<?xml version="1.0"?>
<manifest package="org.kde.vvave" xmlns:android="http://schemas.android.com/apk/res/android" android:versionName="1.0" android:versionCode="1" android:installLocation="auto">
<application android:hardwareAccelerated="true" android:name="org.qtproject.qt5.android.bindings.QtApplication" android:label="vvave" android:icon="@drawable/icon">
<activity android:configChanges="orientation|uiMode|screenLayout|screenSize|smallestScreenSize|layoutDirection|locale|fontScale|keyboard|keyboardHidden|navigation" android:name="org.qtproject.qt5.android.bindings.QtActivity" android:label="vvave" android:screenOrientation="unspecified" android:launchMode="singleTop">
android:name=&quot;com.example.android.tools.NotificationClient&quot;
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
<!-- Application arguments -->
<!-- meta-data android:name="android.app.arguments" android:value="arg1 arg2 arg3"/ -->
<!-- Application arguments -->
<meta-data android:name="android.app.lib_name" android:value="vvave"/>
<meta-data android:name="android.app.qt_sources_resource_id" android:resource="@array/qt_sources"/>
<meta-data android:name="android.app.repository" android:value="default"/>
<meta-data android:name="android.app.qt_libs_resource_id" android:resource="@array/qt_libs"/>
<meta-data android:name="android.app.bundled_libs_resource_id" android:resource="@array/bundled_libs"/>
<!-- Deploy Qt libs as part of package -->
<meta-data android:name="android.app.bundle_local_qt_libs" android:value="-- %%BUNDLE_LOCAL_QT_LIBS%% --"/>
<meta-data android:name="android.app.bundled_in_lib_resource_id" android:resource="@array/bundled_in_lib"/>
<meta-data android:name="android.app.bundled_in_assets_resource_id" android:resource="@array/bundled_in_assets"/>
<!-- Run with local libs -->
<meta-data android:name="android.app.use_local_qt_libs" android:value="-- %%USE_LOCAL_QT_LIBS%% --"/>
<meta-data android:name="android.app.libs_prefix" android:value="/data/local/tmp/qt/"/>
<meta-data android:name="android.app.load_local_libs" android:value="-- %%INSERT_LOCAL_LIBS%% --"/>
<meta-data android:name="android.app.load_local_jars" android:value="-- %%INSERT_LOCAL_JARS%% --"/>
<meta-data android:name="android.app.static_init_classes" android:value="-- %%INSERT_INIT_CLASSES%% --"/>
<!-- Used to specify custom system library path to run with local system libs -->
<!-- <meta-data android:name="android.app.system_libs_prefix" android:value="/system/lib/"/> -->
<!-- Messages maps -->
<meta-data android:value="@string/ministro_not_found_msg" android:name="android.app.ministro_not_found_msg"/>
<meta-data android:value="@string/ministro_needed_msg" android:name="android.app.ministro_needed_msg"/>
<meta-data android:value="@string/fatal_error_msg" android:name="android.app.fatal_error_msg"/>
<!-- Messages maps -->
<!-- Splash screen -->
<!-- meta-data android:name="android.app.splash_screen_drawable" android:resource="@drawable/logo"/ -->
<!-- meta-data android:name="android.app.splash_screen_sticky" android:value="true"/ -->
<!-- Splash screen -->
<!-- Background running -->
<!-- Warning: changing this value to true may cause unexpected crashes if the
application still try to draw after
"applicationStateChanged(Qt::ApplicationSuspended)"
signal is sent! -->
<meta-data android:name="android.app.background_running" android:value="false"/>
<!-- Background running -->
<!-- auto screen scale factor -->
<meta-data android:name="android.app.auto_screen_scale_factor" android:value="false"/>
<!-- auto screen scale factor -->
<!-- extract android style -->
<!-- available android:values :
* full - useful QWidget & Quick Controls 1 apps
* minimal - useful for Quick Controls 2 apps, it is much faster than "full"
* none - useful for apps that don't use any of the above Qt modules
-->
<meta-data android:name="android.app.extract_android_style" android:value="minimal"/>
<!-- extract android style -->
</activity>
<!-- For adding service(s) please check: https://wiki.qt.io/AndroidServices -->
<service android:process=":qt" android:name=".MyService">
<!-- android:process=":qt" is needed to force the service to run on a separate process than the Activity -->
<!-- Application arguments -->
<meta-data android:name="android.app.arguments" android:value="-service"/>
<!-- Application arguments -->
<!-- If you are using the same application (.so file) for activity and also for service, then you
need to use *android.app.arguments* to pass some arguments to your service in order to know which
one is which.
-->
<!-- Application to launch -->
<meta-data android:name="android.app.lib_name" android:value="vvave"/>
<!-- Application to launch -->
<!-- Ministro -->
<meta-data android:name="android.app.qt_sources_resource_id" android:resource="@array/qt_sources"/>
<meta-data android:name="android.app.repository" android:value="default"/>
<meta-data android:name="android.app.qt_libs_resource_id" android:resource="@array/qt_libs"/>
<meta-data android:name="android.app.bundled_libs_resource_id" android:resource="@array/bundled_libs"/>
<!-- Ministro -->
<!-- Deploy Qt libs as part of package -->
<meta-data android:name="android.app.bundle_local_qt_libs" android:value="-- %%BUNDLE_LOCAL_QT_LIBS%% --"/>
<meta-data android:name="android.app.bundled_in_lib_resource_id" android:resource="@array/bundled_in_lib"/>
<meta-data android:name="android.app.bundled_in_assets_resource_id" android:resource="@array/bundled_in_assets"/>
<!-- Deploy Qt libs as part of package -->
<!-- Run with local libs -->
<meta-data android:name="android.app.use_local_qt_libs" android:value="-- %%USE_LOCAL_QT_LIBS%% --"/>
<meta-data android:name="android.app.libs_prefix" android:value="/data/local/tmp/qt/"/>
<meta-data android:name="android.app.load_local_libs" android:value="-- %%INSERT_LOCAL_LIBS%% --"/>
<meta-data android:name="android.app.load_local_jars" android:value="-- %%INSERT_LOCAL_JARS%% --"/>
<meta-data android:name="android.app.static_init_classes" android:value="-- %%INSERT_INIT_CLASSES%% --"/>
<!-- Run with local libs -->
<!-- Messages maps -->
<meta-data android:value="@string/ministro_not_found_msg" android:name="android.app.ministro_not_found_msg"/>
<meta-data android:value="@string/ministro_needed_msg" android:name="android.app.ministro_needed_msg"/>
<meta-data android:value="@string/fatal_error_msg" android:name="android.app.fatal_error_msg"/>
<!-- Messages maps -->
<!-- Background running -->
<meta-data android:name="android.app.background_running" android:value="true"/>
<!-- Background running -->
</service>
</application>
<uses-sdk android:minSdkVersion="21"/>
<supports-screens android:largeScreens="true" android:normalScreens="true" android:anyDensity="true" android:smallScreens="true"/>
<!-- The following comment will be replaced upon deployment with default permissions based on the dependencies of the application.
Remove the comment if you do not require these default permissions. -->
<!-- The following comment will be replaced upon deployment with default features based on the dependencies of the application.
Remove the comment if you do not require these default features. -->
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.MOUNT_UNMOUNT_FILESYSTEMS"/>
<uses-permission android:name="android.permission.MOUNT_FORMAT_FILESYSTEMS"/>
<uses-permission android:name="android.permission.INSTALL_PACKAGES"/>
</manifest>
......@@ -242,7 +242,7 @@ Maui.ApplicationWindow
}
footBar.visible: !mainlistEmpty
footBar.implicitHeight: footBar.visible ? toolBarHeight * 1.2 : 0
footBar.implicitHeight: footBar.visible ? Maui.Style.toolBarHeight * 1.2 : 0
footer: ColumnLayout
{
id: _footerLayout
......
......@@ -13,8 +13,8 @@ Maui.Dialog
title: "Add "+ tracks.length +" tracks to..."
property var tracks : []
maxHeight: 400 * unit
page.padding: space.medium
maxHeight: 400 * Maui.Style.unit
page.padding: Maui.Style.space.medium
ColumnLayout
{
......@@ -33,7 +33,7 @@ Maui.Dialog
model: playlistsView.playlistModel
delegate: Maui.LabelDelegate
delegate: Maui.ListDelegate
{
id: delegate
label: model.playlist
......@@ -51,32 +51,27 @@ Maui.Dialog
}
}
RowLayout
Maui.TextField
{
Layout.fillWidth: true
Maui.TextField
id: newPlaylistField
color: Kirigami.Theme.textColor
placeholderText: qsTr("New playlist")
onAccepted:
{
Layout.fillWidth: true
id: newPlaylistField
color: textColor
placeholderText: qsTr("New playlist")
onAccepted:
{
addPlaylist()
playlistsView.playlistList.addTrack(playlistsList.listView.currentIndex, tracks)
clear()
}
addPlaylist()
playlistsView.playlistList.addTrack(playlistsList.listView.currentIndex, tracks)
clear()
}
ToolButton
actions.data: ToolButton
{
icon.name: "checkbox"
icon.color: textColor
icon.color: Kirigami.Theme.textColor
onClicked: addPlaylist()
}
}
}
onAccepted:
......@@ -87,7 +82,6 @@ Maui.Dialog
insert()
}
function insert()
{
playlistsView.playlistList.addTrack(playlistsList.listView.currentIndex, tracks)
......
......@@ -126,7 +126,6 @@ BabeGrid
quickPlayVisible: true
focus: true
list.sortBy: Tracks.TRACK
headBar.plegable: false
holder.emoji: "qrc:/assets/ElectricPlug.png"
holder.isMask: false
......
import QtQuick 2.9
import QtQuick.Layouts 1.3
import QtQuick.Controls 2.2
import org.kde.kirigami 2.6 as Kirigami
import org.kde.kirigami 2.7 as Kirigami
import org.kde.mauikit 1.0 as Maui
import "../../view_models/BabeTable"
......@@ -12,7 +12,6 @@ import "../../utils/Help.js" as H
ColumnLayout
{
id: control
clip: true
spacing: 0
property string playlistQuery
......@@ -69,8 +68,8 @@ ColumnLayout
ColorTagsBar
{
Layout.fillWidth: true
height: rowHeightAlt
recSize: isMobile ? iconSize : 16
height: Maui.Style.rowHeightAlt
recSize: Kirigami.Settings.isMobile ? iconSize : 16
onColorClicked: populate(Q.GET.colorTracks_.arg(color.toLowerCase()))
}
......
......@@ -20,8 +20,7 @@ BabeList
property alias list: _playlistsList
signal playSync(int index)
// title: "Playlists"
topPadding: Maui.Style.contentMargins
Maui.NewDialog
{
......@@ -32,7 +31,6 @@ BabeList
rejectButton.visible: false
}
//headBar.middleStrech: false
headBar.leftContent: Kirigami.ActionToolBar
{
Layout.fillWidth: true
......
......@@ -37,7 +37,6 @@ BabeTable
onClicked: clearSearch()
}
footBar.drawBorder: false
footBar.middleContent: Maui.TextField
{
id: searchInput
......
......@@ -14,7 +14,7 @@ Maui.Dialog
defaultButtons: true
acceptButton.text: qsTr("Add")
rejectButton.text: qsTr("Remove")
page.padding: 0
page.padding: Maui.Style.space.medium
onRejected:
{
......@@ -63,7 +63,7 @@ Maui.Dialog
isMask: false
title : "No Sources!"
body: "Add new sources to organize and play your music collection"
emojiSize: iconSizes.huge
emojiSize: Maui.Style.iconSizes.huge
}
BabeList
......@@ -80,7 +80,7 @@ Maui.Dialog
model: listModel
delegate: Maui.LabelDelegate
delegate: Maui.ListDelegate
{
id: delegate
label: url
......
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