2017-10-23 19:51:27 +00:00
|
|
|
apply plugin: 'com.android.application'
|
2015-10-24 18:01:55 +00:00
|
|
|
|
2017-10-23 19:51:27 +00:00
|
|
|
android {
|
2018-10-12 13:32:16 +00:00
|
|
|
compileSdkVersion = 28
|
2015-10-24 18:01:55 +00:00
|
|
|
|
2017-10-23 19:51:27 +00:00
|
|
|
defaultConfig {
|
|
|
|
applicationId = "eu.faircode.netguard"
|
2018-12-07 13:06:42 +00:00
|
|
|
versionName = "2.218"
|
2018-10-17 13:57:38 +00:00
|
|
|
minSdkVersion 22
|
2018-10-12 13:32:16 +00:00
|
|
|
targetSdkVersion 28
|
2018-12-07 13:06:42 +00:00
|
|
|
versionCode = 2018120701
|
2017-10-23 19:51:27 +00:00
|
|
|
archivesBaseName = "NetGuard-v$versionName"
|
2016-02-09 11:00:14 +00:00
|
|
|
|
2017-10-23 19:51:27 +00:00
|
|
|
externalNativeBuild {
|
|
|
|
cmake {
|
|
|
|
cppFlags ""
|
2017-11-06 06:05:50 +00:00
|
|
|
arguments "-DANDROID_PLATFORM=android-22"
|
2017-10-23 19:51:27 +00:00
|
|
|
// https://developer.android.com/ndk/guides/cmake.html
|
|
|
|
}
|
2016-04-03 06:15:41 +00:00
|
|
|
}
|
|
|
|
|
2016-02-09 11:00:14 +00:00
|
|
|
ndk {
|
2017-12-20 16:30:00 +00:00
|
|
|
// https://developer.android.com/ndk/guides/abis.html#sa
|
2018-01-12 06:26:34 +00:00
|
|
|
abiFilters 'armeabi-v7a', 'arm64-v8a', 'x86', 'x86_64'
|
2016-02-09 11:00:14 +00:00
|
|
|
}
|
2017-10-23 19:51:27 +00:00
|
|
|
}
|
2016-02-09 11:00:14 +00:00
|
|
|
|
2018-10-02 06:11:11 +00:00
|
|
|
lintOptions {
|
|
|
|
disable 'MissingTranslation'
|
|
|
|
}
|
|
|
|
|
2017-10-23 19:51:27 +00:00
|
|
|
externalNativeBuild {
|
|
|
|
cmake {
|
|
|
|
path "CMakeLists.txt"
|
2016-01-14 14:02:32 +00:00
|
|
|
}
|
2017-10-23 19:51:27 +00:00
|
|
|
}
|
2016-02-09 11:00:14 +00:00
|
|
|
|
2017-10-23 19:51:27 +00:00
|
|
|
buildTypes {
|
|
|
|
release {
|
|
|
|
minifyEnabled = true
|
|
|
|
useProguard = true
|
|
|
|
proguardFiles.add(file('proguard-rules.pro'))
|
2015-10-24 18:01:55 +00:00
|
|
|
}
|
2017-10-23 19:51:27 +00:00
|
|
|
debug {
|
|
|
|
minifyEnabled = true
|
|
|
|
useProguard = true
|
|
|
|
proguardFiles.add(file('proguard-rules.pro'))
|
2016-01-09 11:10:11 +00:00
|
|
|
}
|
|
|
|
}
|
2015-10-24 18:01:55 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2017-10-23 19:51:27 +00:00
|
|
|
implementation fileTree(dir: 'libs', include: ['*.jar'])
|
2017-09-20 07:54:28 +00:00
|
|
|
|
|
|
|
// https://developer.android.com/topic/libraries/support-library/revisions.html
|
2018-11-17 16:32:36 +00:00
|
|
|
implementation 'androidx.appcompat:appcompat:1.0.2'
|
|
|
|
implementation 'androidx.recyclerview:recyclerview:1.0.0'
|
2017-09-20 07:54:28 +00:00
|
|
|
|
2018-01-10 05:45:15 +00:00
|
|
|
// https://bumptech.github.io/glide/
|
2018-10-12 13:32:16 +00:00
|
|
|
implementation 'com.github.bumptech.glide:glide:4.8.0'
|
2018-11-17 16:32:36 +00:00
|
|
|
annotationProcessor 'androidx.annotation:annotation:1.0.0'
|
2018-10-12 13:32:16 +00:00
|
|
|
annotationProcessor 'com.github.bumptech.glide:compiler:4.8.0'
|
2015-10-24 18:01:55 +00:00
|
|
|
}
|