import com.android.builder.model.ProductFlavor import org.apache.tools.ant.taskdefs.condition.Os apply plugin: 'com.android.application' android { compileSdkVersion 25 buildToolsVersion '25.0.2' defaultConfig { minSdkVersion 16 targetSdkVersion 25 versionName "4.8.3" versionCode = 115 } productFlavors { root { applicationId "com.limelight.root" ndk { abiFilters "armeabi-v7a", "arm64-v8a", "x86", "x86_64", "mips", "mips64" } } nonRoot { applicationId "com.limelight" ndk { abiFilters "armeabi-v7a", "arm64-v8a", "x86", "x86_64", "mips", "mips64" } } } lintOptions { disable 'MissingTranslation' } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt' } } // These lines are required to avoid dexing issues with the BouncyCastle library // bundled with limelight-common.jar packagingOptions { exclude 'META-INF/BCKEY.SF' exclude 'META-INF/BCKEY.DSA' } externalNativeBuild { ndkBuild { path "src/main/jni/Android.mk" } } } dependencies { compile 'org.bouncycastle:bcprov-jdk15on:1.52' compile 'org.bouncycastle:bcpkix-jdk15on:1.52' compile 'com.squareup.okhttp:okhttp:2.4.0' compile 'com.squareup.okio:okio:1.5.0' compile files('libs/jmdns-3.4.2.jar') compile files('libs/limelight-common.jar') compile files('libs/tinyrtsp.jar') compile files('libs/jcodec-0.1.9-patched.jar') }