NetGuard/app/build.gradle

82 lines
2.2 KiB
Groovy
Raw Normal View History

apply plugin: 'com.android.model.application'
2015-10-24 18:01:55 +00:00
model {
android {
2016-07-02 09:51:26 +00:00
compileSdkVersion = 24
2016-07-23 12:21:19 +00:00
buildToolsVersion = "24.0.1"
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 {
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'))
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'))
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 {
create("kitkat") {
2016-07-24 09:27:07 +00:00
versionName = "2.44"
minSdkVersion.apiLevel = 14
2016-07-24 09:27:07 +00:00
maxSdkVersion = 19
targetSdkVersion.apiLevel = 24
versionCode = 2016072411
archivesBaseName = "NetGuard-v$versionName"
}
create("lollipop") {
2016-07-24 09:27:07 +00:00
versionName = "2.44"
minSdkVersion.apiLevel = 20
targetSdkVersion.apiLevel = 24
2016-07-24 09:27:07 +00:00
versionCode = 2016072421
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'])
2016-07-02 09:51:26 +00:00
compile 'com.android.support:appcompat-v7:24.+'
compile 'com.android.support:recyclerview-v7:24.+'
2015-11-13 09:11:46 +00:00
compile 'com.squareup.picasso:picasso:2.5.+'
2015-10-24 18:01:55 +00:00
}