android-project/app/build.gradle
changeset 11649 fe6769530709
parent 11647 5816b27073a4
child 11854 934d77867168
equal deleted inserted replaced
11648:ed5bc0abae1b 11649:fe6769530709
     1 apply plugin: 'com.android.application'
     1 apply plugin: 'com.android.application'
     2 
     2 
     3 android {
     3 android {
     4     compileSdkVersion 25
     4     compileSdkVersion 16
     5     buildToolsVersion "25.0.1"
     5     buildToolsVersion "26.0.1"
     6     defaultConfig {
     6     defaultConfig {
     7         applicationId "org.libsdl.app"
     7         applicationId "org.libsdl.app"
     8         minSdkVersion 10
     8         minSdkVersion 14
     9         targetSdkVersion 16
     9         targetSdkVersion 16
    10         versionCode 1
    10         versionCode 1
    11         versionName "1.0"
    11         versionName "1.0"
       
    12         externalNativeBuild {
       
    13             ndkBuild {
       
    14                 arguments "APP_PLATFORM=android-14"
       
    15             }
       
    16         }
    12         testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
    17         testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
    13     }
    18     }
    14     buildTypes {
    19     buildTypes {
    15         release {
    20         release {
    16             minifyEnabled false
    21             minifyEnabled false
    17             proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
    22             proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
    18         }
    23         }
    19     }
    24     }
    20     sourceSets.main {
    25     sourceSets.main {
    21         jniLibs.srcDir 'libs'
    26         jniLibs.srcDir 'libs'
    22         jni.srcDirs = [] //disable automatic ndk-build call
    27     }
       
    28     externalNativeBuild {
       
    29         ndkBuild {
       
    30             path 'jni/Android.mk'
       
    31         }
    23     }
    32     }
    24     lintOptions {
    33     lintOptions {
    25         abortOnError false
    34         abortOnError false
    26     }
    35     }
    27 }
    36 }
    28 
    37 
    29 dependencies {
    38 dependencies {
    30     compile fileTree(dir: 'libs', include: ['*.jar'])
    39     compile fileTree(include: ['*.jar'], dir: 'libs')
    31     androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
    40     androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
    32         exclude group: 'com.android.support', module: 'support-annotations'
    41         exclude group: 'com.android.support', module: 'support-annotations'
    33     })
    42     })
    34     testCompile 'junit:junit:4.12'
    43     testCompile 'junit:junit:4.12'
    35 }
    44 }