1
0
Fork 0
mirror of https://github.com/M66B/NetGuard.git synced 2025-03-04 10:48:34 +00:00
NetGuard/app/build.gradle

93 lines
2.6 KiB
Groovy
Raw Normal View History

apply plugin: 'com.android.model.application'
2015-10-24 20:01:55 +02:00
model {
android {
2016-10-20 08:41:37 +02:00
compileSdkVersion = 25
2017-05-12 07:55:22 +02:00
buildToolsVersion = "25.0.3"
2015-10-24 20:01:55 +02:00
2016-02-09 12:00:14 +01:00
defaultConfig {
2016-03-11 10:45:46 +01:00
applicationId = "eu.faircode.netguard"
2016-01-09 12:10:11 +01:00
}
2016-02-09 12:00:14 +01:00
2016-04-03 08:15:41 +02:00
compileOptions.with {
sourceCompatibility JavaVersion.VERSION_1_7
targetCompatibility JavaVersion.VERSION_1_7
}
2016-02-09 12:00:14 +01:00
ndk {
platformVersion = "14"
2016-02-09 12:00:14 +01:00
moduleName = "netguard"
toolchain = "clang"
ldLibs.add("log")
}
sources {
main {
jni {
source {
2016-03-19 12:18:31 +01:00
srcDirs.removeAll()
srcDirs.add('src/main/jni/netguard')
2016-02-09 12:00:14 +01:00
}
exportedHeaders {
}
}
2016-01-14 15:02:32 +01:00
}
}
2016-02-09 12:00:14 +01:00
buildTypes {
release {
2016-03-11 10:45:46 +01:00
minifyEnabled = true
2016-02-09 12:00:14 +01:00
useProguard = true
proguardFiles.add(file('proguard-rules.pro'))
ndk.with {
debuggable = false
2016-02-09 12:00:14 +01:00
}
}
debug {
2016-03-19 12:12:20 +01:00
minifyEnabled = true
useProguard = true
proguardFiles.add(file('proguard-rules.pro'))
ndk.with {
debuggable = false
2016-02-09 12:00:14 +01:00
}
2016-01-14 15:02:32 +01:00
}
2015-10-24 20:01:55 +02:00
}
2016-02-09 12:00:14 +01:00
productFlavors {
2016-07-25 08:10:47 +02:00
create("all") {
2017-06-01 22:10:32 +02:00
versionName = "2.100"
2016-07-25 08:10:47 +02:00
minSdkVersion.apiLevel = 14
2016-10-20 08:54:56 +02:00
targetSdkVersion.apiLevel = 25
2017-06-01 22:10:32 +02:00
versionCode = 2017060101
2016-07-25 08:10:47 +02:00
archivesBaseName = "NetGuard-v$versionName"
}
create("lollipop-and-later") {
2017-06-01 22:10:32 +02:00
versionName = "2.100"
minSdkVersion.apiLevel = 20
2016-10-20 08:54:56 +02:00
targetSdkVersion.apiLevel = 25
2017-06-01 22:10:32 +02:00
versionCode = 2017060111
archivesBaseName = "NetGuard-v$versionName"
}
create("kitkat-and-earlier") {
2017-06-01 22:10:32 +02:00
versionName = "2.100"
minSdkVersion.apiLevel = 14
maxSdkVersion = 19
2016-10-20 08:54:56 +02:00
targetSdkVersion.apiLevel = 25
2017-06-01 22:10:32 +02:00
versionCode = 2017060121
archivesBaseName = "NetGuard-v$versionName"
2016-02-09 12:00:14 +01:00
}
2016-01-09 12:10:11 +01:00
}
}
2015-10-24 20:01:55 +02:00
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
2016-11-06 17:06:36 +01:00
compile 'com.android.support:appcompat-v7:25.+'
compile 'com.android.support:recyclerview-v7:25.+'
2015-11-13 10:11:46 +01:00
compile 'com.squareup.picasso:picasso:2.5.+'
2017-03-11 17:56:29 +01:00
compile 'com.google.firebase:firebase-core:10.2.+'
compile 'com.google.firebase:firebase-ads:10.2.+'
2015-10-24 20:01:55 +02:00
}
2016-07-24 18:02:56 +02:00
apply plugin: 'com.google.gms.google-services'