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