apply plugin: 'com.android.model.application' model { android { compileSdkVersion = 24 buildToolsVersion = "24.0.3" defaultConfig { applicationId = "eu.faircode.netguard" } compileOptions.with { sourceCompatibility JavaVersion.VERSION_1_7 targetCompatibility JavaVersion.VERSION_1_7 } ndk { platformVersion = "14" moduleName = "netguard" toolchain = "clang" ldLibs.add("log") } sources { main { jni { source { srcDirs.removeAll() srcDirs.add('src/main/jni/netguard') } exportedHeaders { } } } } buildTypes { release { minifyEnabled = true useProguard = true proguardFiles.add(file('proguard-rules.pro')) ndk.with { debuggable = false } } debug { minifyEnabled = true useProguard = true proguardFiles.add(file('proguard-rules.pro')) ndk.with { debuggable = false } } } productFlavors { create("all") { versionName = "2.55" minSdkVersion.apiLevel = 14 targetSdkVersion.apiLevel = 24 versionCode = 2016101201 archivesBaseName = "NetGuard-v$versionName" } create("lollipop-and-later") { versionName = "2.55" minSdkVersion.apiLevel = 20 targetSdkVersion.apiLevel = 24 versionCode = 2016101211 archivesBaseName = "NetGuard-v$versionName" } create("kitkat-and-earlier") { versionName = "2.55" minSdkVersion.apiLevel = 14 maxSdkVersion = 19 targetSdkVersion.apiLevel = 24 versionCode = 2016101221 archivesBaseName = "NetGuard-v$versionName" } } } } dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) compile 'com.android.support:appcompat-v7:24.+' compile 'com.android.support:recyclerview-v7:24.+' compile 'com.squareup.picasso:picasso:2.5.+' compile 'com.google.firebase:firebase-core:9.2.+' compile 'com.google.firebase:firebase-ads:9.2.+' } apply plugin: 'com.google.gms.google-services'