Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- buildscript {
- repositories {
- jcenter()
- google()
- }
- dependencies {
- classpath 'com.android.tools.build:gradle:3.1.2'
- }
- }
- allprojects {
- repositories {
- jcenter()
- google()
- maven { url "https://jitpack.io" }
- }
- }
- apply plugin: 'com.android.application'
- 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()
- compileSdkVersion 26
- // androidBuildToolsVersion
- buildToolsVersion "26.0.2"
- 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']
- }
- }
- lintOptions {
- abortOnError false
- }
- }
- dependencies {
- compile fileTree(dir: 'libs', include: ['*.jar'])
- compile 'com.github.felHR85:UsbSerial:4.5.2'
- implementation 'com.android.support:appcompat-v7:27.0.2'
- implementation 'com.android.support:design:27.0.2'
- implementation 'com.android.support.constraint:constraint-layout:1.1.0'
- implementation 'android.arch.lifecycle:extensions:1.0.0'
- /*testImplementation 'junit:junit:4.12'
- androidTestImplementation 'com.android.support.test:runner:1.0.2'
- androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'*/
- }
- // beware! the following fix is necessary for gradle 4+, but an upstream fix is to be expected in the future.
- // Try removing the following lines if the apk is not found by QtCreator.
- // see also: https://bugreports.qt.io/browse/QTCREATORBUG-19553
- android {
- applicationVariants.all {
- variant -> variant.outputs.all {
- outputFileName = "../" + outputFileName
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement