mirror of
https://github.com/M66B/NetGuard.git
synced 2024-12-23 16:27:55 +00:00
76 lines
1.9 KiB
Groovy
76 lines
1.9 KiB
Groovy
apply plugin: 'com.android.model.application'
|
|
|
|
model {
|
|
android {
|
|
compileSdkVersion = 23
|
|
buildToolsVersion = "23.0.3"
|
|
|
|
defaultConfig {
|
|
applicationId = "eu.faircode.netguard"
|
|
minSdkVersion.apiLevel = 14
|
|
targetSdkVersion.apiLevel = 23
|
|
versionCode = 2016032201
|
|
versionName = "2.12"
|
|
archivesBaseName = "NetGuard-v$versionName-$versionCode"
|
|
|
|
buildConfigFields {
|
|
create() {
|
|
type "int"
|
|
name "VALUE"
|
|
value "1"
|
|
}
|
|
}
|
|
}
|
|
|
|
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 {
|
|
debuggable = true
|
|
}
|
|
}
|
|
debug {
|
|
minifyEnabled = true
|
|
useProguard = true
|
|
proguardFiles.add(file('proguard-rules.pro'))
|
|
ndk {
|
|
debuggable = true
|
|
}
|
|
}
|
|
}
|
|
|
|
productFlavors {
|
|
create("all") {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
compile fileTree(dir: 'libs', include: ['*.jar'])
|
|
compile 'com.android.support:appcompat-v7:23.2.+'
|
|
compile 'com.android.support:recyclerview-v7:23.2.+'
|
|
compile 'com.squareup.picasso:picasso:2.5.+'
|
|
}
|