Add missing Qt dependencies to gradle script

This commit is contained in:
Gabriel Calero 2018-01-05 19:45:02 -03:00
parent 8cac98545a
commit 6d732dd8ba
2 changed files with 18 additions and 4 deletions

View file

@ -1,9 +1,5 @@
apply plugin: 'com.android.application'
ext.RELEASE_NUMBER = project.hasProperty('RELEASE_NUMBER') ? project.getProperty('RELEASE_NUMBER') : '0'
ext.RELEASE_TYPE = project.hasProperty('RELEASE_TYPE') ? project.getProperty('RELEASE_TYPE') : 'DEV'
ext.BUILD_BRANCH = project.hasProperty('BUILD_BRANCH') ? project.getProperty('BUILD_BRANCH') : ''
android {
compileSdkVersion 26
defaultConfig {

View file

@ -53,6 +53,8 @@ ext {
'Qt5WebSockets',
'Qt5Widgets',
'Qt5XmlPatterns',
'Qt5Concurrent',
'Qt5Svg',
// Android specific
'Qt5AndroidExtras',
'Qt5WebView',
@ -502,6 +504,22 @@ task generateAssetsFileList() {
}
}
task copyInterfaceAssets() {
doLast {
def resourcesDir = new File("${appDir}/../../interface/resources")
def scriptsDir = new File("${appDir}/../../scripts")
def assetsDir = new File(appDir, 'src/main/assets')
copy {
from resourcesDir
into new File(assetsDir, "resources")
}
copy {
from scriptsDir
into new File(assetsDir, "scripts")
}
}
}
/*
// FIXME derive the path from the gradle environment
def toolchain = [