mirror of
https://github.com/M66B/NetGuard.git
synced 2024-12-30 20:05:04 +00:00
60 lines
1.5 KiB
Groovy
60 lines
1.5 KiB
Groovy
apply plugin: 'com.android.model.application'
|
|
|
|
model {
|
|
android {
|
|
compileSdkVersion = 23
|
|
buildToolsVersion = "23.0.2"
|
|
|
|
defaultConfig.with {
|
|
applicationId = "eu.faircode.netguard"
|
|
minSdkVersion.apiLevel = 14
|
|
targetSdkVersion.apiLevel = 23
|
|
versionCode = 2016020501
|
|
versionName = "0.84-beta"
|
|
archivesBaseName = "NetGuard-v$versionName-$versionCode"
|
|
}
|
|
}
|
|
android.ndk {
|
|
platformVersion = "14"
|
|
moduleName = "netguard"
|
|
toolchain = "clang"
|
|
ldLibs.add("log")
|
|
}
|
|
android.sources {
|
|
main {
|
|
jni {
|
|
source {
|
|
srcDir "src/main/jni/netguard"
|
|
}
|
|
exportedHeaders {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
android.buildTypes {
|
|
release {
|
|
minifyEnabled = true
|
|
proguardFiles.add(file('proguard-rules.pro'))
|
|
// TODO remove on stable release
|
|
ndk.with {
|
|
debuggable = true
|
|
}
|
|
}
|
|
debug {
|
|
ndk.with {
|
|
debuggable = true
|
|
}
|
|
}
|
|
}
|
|
android.productFlavors {
|
|
create("all") {
|
|
}
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
compile fileTree(dir: 'libs', include: ['*.jar'])
|
|
compile 'com.android.support:appcompat-v7:23.1.+'
|
|
compile 'com.android.support:recyclerview-v7:23.1.+'
|
|
compile 'com.squareup.picasso:picasso:2.5.+'
|
|
}
|