/* * This file is part of TD. * * TD is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 2 of the License, or * (at your option) any later version. * * TD is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with TD. If not, see . * * Copyright 2014-2018 Arseny Smirnov * 2014-2018 Aliaksei Levin */ apply plugin: 'com.android.library' android { compileSdkVersion 25 buildToolsVersion '25.0.3' sourceSets.main { jniLibs.srcDir 'src/main/libs' //jni.srcDirs = [] //disable automatic ndk-build call } defaultConfig { minSdkVersion 9 targetSdkVersion 25 versionCode 1 versionName "1.0" } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt' } } lintOptions { // use this line to check all rules except those listed disable 'InvalidPackage' } externalNativeBuild { cmake { path 'src/main/jni/CMakeLists.txt' } } defaultConfig { externalNativeBuild { cmake { targets "tdjni", "tdjnitest" arguments "-DANDROID_TOOLCHAIN=clang" arguments "-DANDROID_STL=c++_static" abiFilters "arm64-v8a", "armeabi-v7a", "x86" } } testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" } } dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) compile 'com.android.support:support-annotations:25.3.1' androidTestCompile 'com.android.support:support-annotations:25.3.1' androidTestCompile 'com.android.support.test:runner:0.5' androidTestCompile 'com.android.support.test:rules:0.5' }