build.gradle 1.58 KB
Newer Older
Daniel Agar's avatar
Daniel Agar committed
1
buildscript {
Jin Chengde's avatar
Jin Chengde committed
2

Daniel Agar's avatar
Daniel Agar committed
3
    repositories {
Jin Chengde's avatar
Jin Chengde committed
4
        maven  {
5
            url "https://repo1.maven.org/maven2"
Jin Chengde's avatar
Jin Chengde committed
6
        }
Daniel Agar's avatar
Daniel Agar committed
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56
    }

    dependencies {
        classpath 'com.android.tools.build:gradle:1.1.0'
    }
}

allprojects {
    repositories {
        jcenter()
    }
}

apply plugin: 'com.android.application'

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
}

android {
    /*******************************************************
     * The following variables:
     * - androidBuildToolsVersion,
     * - androidCompileSdkVersion
     * - qt5AndroidDir - holds the path to qt android files
     *                   needed to build any Qt application
     *                   on Android.
     *
     * are defined in gradle.properties file. This file is
     * updated by QtCreator and androiddeployqt tools.
     * Changing them manually might break the compilation!
     *******************************************************/

    compileSdkVersion androidCompileSdkVersion.toInteger()

    buildToolsVersion androidBuildToolsVersion

    sourceSets {
        main {
            manifest.srcFile 'AndroidManifest.xml'
            java.srcDirs = [qt5AndroidDir + '/src', 'src', 'java']
            aidl.srcDirs = [qt5AndroidDir + '/src', 'src', 'aidl']
            res.srcDirs = [qt5AndroidDir + '/res', 'res']
            resources.srcDirs = ['src']
            renderscript.srcDirs = ['src']
            assets.srcDirs = ['assets']
            jniLibs.srcDirs = ['libs']
       }
    }

57 58 59 60
    aaptOptions {
        cruncherEnabled = false
    }

Daniel Agar's avatar
Daniel Agar committed
61 62 63 64
    lintOptions {
        abortOnError false
    }
}