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 {
|
|
|
|
compileSdkVersion = 23
|
|
|
|
buildToolsVersion = "23.0.2"
|
2015-10-24 18:01:55 +00:00
|
|
|
|
2015-11-21 13:52:00 +00:00
|
|
|
defaultConfig.with {
|
|
|
|
applicationId = "eu.faircode.netguard"
|
2016-01-31 17:47:57 +00:00
|
|
|
minSdkVersion.apiLevel = 14
|
2015-11-21 13:52:00 +00:00
|
|
|
targetSdkVersion.apiLevel = 23
|
2016-02-08 20:14:13 +00:00
|
|
|
versionCode = 2016020803
|
2016-02-06 18:23:13 +00:00
|
|
|
versionName = "0.85-beta"
|
2015-11-27 12:44:22 +00:00
|
|
|
archivesBaseName = "NetGuard-v$versionName-$versionCode"
|
2015-11-21 13:52:00 +00:00
|
|
|
}
|
2015-10-24 18:01:55 +00:00
|
|
|
}
|
2016-01-09 11:10:11 +00:00
|
|
|
android.ndk {
|
2016-02-01 12:07:20 +00:00
|
|
|
platformVersion = "14"
|
2016-01-09 11:10:11 +00:00
|
|
|
moduleName = "netguard"
|
|
|
|
toolchain = "clang"
|
|
|
|
ldLibs.add("log")
|
|
|
|
}
|
|
|
|
android.sources {
|
|
|
|
main {
|
|
|
|
jni {
|
|
|
|
source {
|
2016-01-10 14:26:10 +00:00
|
|
|
srcDir "src/main/jni/netguard"
|
|
|
|
}
|
|
|
|
exportedHeaders {
|
2016-01-09 11:10:11 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2015-11-21 13:52:00 +00:00
|
|
|
android.buildTypes {
|
2015-10-24 18:01:55 +00:00
|
|
|
release {
|
2015-12-02 10:32:02 +00:00
|
|
|
minifyEnabled = true
|
2016-02-07 13:23:26 +00:00
|
|
|
useProguard = true
|
2015-12-02 10:32:02 +00:00
|
|
|
proguardFiles.add(file('proguard-rules.pro'))
|
2016-01-23 08:39:21 +00:00
|
|
|
// TODO remove on stable release
|
2016-01-14 14:02:32 +00:00
|
|
|
ndk.with {
|
|
|
|
debuggable = true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
debug {
|
|
|
|
ndk.with {
|
2016-02-07 13:23:26 +00:00
|
|
|
useProguard = false
|
2016-01-14 14:02:32 +00:00
|
|
|
debuggable = true
|
|
|
|
}
|
2015-10-24 18:01:55 +00:00
|
|
|
}
|
|
|
|
}
|
2016-01-09 11:10:11 +00:00
|
|
|
android.productFlavors {
|
|
|
|
create("all") {
|
|
|
|
}
|
|
|
|
}
|
2016-02-07 13:23:26 +00:00
|
|
|
android.lintOptions {
|
2016-02-09 09:53:52 +00:00
|
|
|
abortOnError false
|
2016-02-07 13:23:26 +00:00
|
|
|
}
|
2015-10-24 18:01:55 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
compile fileTree(dir: 'libs', include: ['*.jar'])
|
2015-11-13 09:11:46 +00:00
|
|
|
compile 'com.android.support:appcompat-v7:23.1.+'
|
|
|
|
compile 'com.android.support:recyclerview-v7:23.1.+'
|
|
|
|
compile 'com.squareup.picasso:picasso:2.5.+'
|
2015-10-24 18:01:55 +00:00
|
|
|
}
|