build.gradle 932 Bytes
Newer Older
1 2 3
apply plugin: 'com.android.library'

android {
4 5
    compileSdkVersion rootProject.ext.compileSdkVersion
    buildToolsVersion rootProject.ext.buildToolsVersion
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28

    sourceSets {
    main {
        jni.srcDirs = [] //this prevents gradle to build native code with ndk, we have our own MakeFile for it.
        jniLibs.srcDir 'libs' //that's were generated .so files are put.
        manifest.srcFile 'AndroidManifest.xml'
        java.srcDirs = ['src']
        resources.srcDirs = ['src']
        aidl.srcDirs = ['src']
        renderscript.srcDirs = ['src']
        res.srcDirs = ['res']
        assets.srcDirs = ['assets']
    }
    }

    defaultConfig {
        applicationId "org.videolan"
        minSdkVersion 7
        targetSdkVersion 21
    }

    buildTypes {
        release {
29
            minifyEnabled false
30 31 32 33
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
        }
    }
}