1
0
Fork 0
mirror of https://github.com/M66B/NetGuard.git synced 2024-12-30 20:05:04 +00:00
NetGuard/app/build.gradle
2017-09-21 07:53:36 +02:00

101 lines
3 KiB
Groovy

apply plugin: 'com.android.model.application'
model {
android {
compileSdkVersion = 26
buildToolsVersion = "26.0.1"
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.136"
minSdkVersion.apiLevel = 14
targetSdkVersion.apiLevel = 26
versionCode = 2017091901
archivesBaseName = "NetGuard-v$versionName"
}
create("lollipop-and-later") {
versionName = "2.136"
minSdkVersion.apiLevel = 20
targetSdkVersion.apiLevel = 26
versionCode = 2017091911
archivesBaseName = "NetGuard-v$versionName"
}
create("kitkat-and-earlier") {
versionName = "2.136"
minSdkVersion.apiLevel = 14
maxSdkVersion = 19
targetSdkVersion.apiLevel = 26
versionCode = 2017091921
archivesBaseName = "NetGuard-v$versionName"
}
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
// https://developer.android.com/topic/libraries/support-library/revisions.html
compile 'com.android.support:appcompat-v7:26.1.+'
compile 'com.android.support:recyclerview-v7:26.1.+'
// https://developers.google.com/android/guides/setup
compile 'com.google.android.gms:play-services-base:11.4.+'
// https://firebase.google.com/docs/android/setup
compile 'com.google.firebase:firebase-core:11.4.+'
compile 'com.google.firebase:firebase-ads:11.4.+'
// https://mvnrepository.com/artifact/com.squareup.picasso/picasso
compile 'com.squareup.picasso:picasso:2.5.+'
}
apply plugin: 'com.google.gms.google-services'