1
0
Fork 0
mirror of https://github.com/M66B/NetGuard.git synced 2025-03-12 07:04:42 +00:00
NetGuard/app/build.gradle

92 lines
3.1 KiB
Groovy
Raw Normal View History

apply plugin: 'com.android.application'
2015-10-24 20:01:55 +02:00
2019-01-19 19:28:49 +00:00
def keystorePropertiesFile = rootProject.file("keystore.properties")
def keystoreProperties = new Properties()
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
android {
2019-06-06 11:58:22 +02:00
compileSdkVersion = 29
2015-10-24 20:01:55 +02:00
defaultConfig {
applicationId = "eu.faircode.netguard"
2019-07-23 20:47:23 +02:00
versionName = "2.255"
2018-10-17 13:57:38 +00:00
minSdkVersion 22
2019-06-06 11:58:22 +02:00
targetSdkVersion 29
2019-07-23 20:47:23 +02:00
versionCode = 2019072301
archivesBaseName = "NetGuard-v$versionName"
2016-02-09 12:00:14 +01:00
externalNativeBuild {
cmake {
cppFlags ""
2017-11-06 07:05:50 +01:00
arguments "-DANDROID_PLATFORM=android-22"
// https://developer.android.com/ndk/guides/cmake.html
}
2016-04-03 08:15:41 +02:00
}
2016-02-09 12:00:14 +01:00
ndk {
// https://developer.android.com/ndk/guides/abis.html#sa
abiFilters 'armeabi-v7a', 'arm64-v8a', 'x86', 'x86_64'
2016-02-09 12:00:14 +01:00
}
}
2019-01-19 19:28:49 +00:00
signingConfigs {
release {
storeFile file(keystoreProperties['storeFile'])
storePassword keystoreProperties['storePassword']
keyAlias keystoreProperties['keyAlias']
keyPassword keystoreProperties['keyPassword']
}
}
2016-02-09 12:00:14 +01:00
2018-10-02 06:11:11 +00:00
lintOptions {
disable 'MissingTranslation'
}
externalNativeBuild {
cmake {
path "CMakeLists.txt"
2016-01-14 15:02:32 +01:00
}
}
2016-02-09 12:00:14 +01:00
buildTypes {
release {
minifyEnabled = true
useProguard = true
proguardFiles.add(file('proguard-rules.pro'))
2019-01-19 19:28:49 +00:00
signingConfig signingConfigs.release
buildConfigField "boolean", "PLAY_STORE_RELEASE", "false"
buildConfigField "String", "HOSTS_FILE_URI", "\"http://www.netguard.me/hosts\""
buildConfigField "String", "GITHUB_LATEST_API", "\"https://api.github.com/repos/M66B/NetGuard/releases/latest\""
2015-10-24 20:01:55 +02:00
}
2018-12-21 12:01:02 +01:00
play {
minifyEnabled = true
useProguard = true
2019-01-19 19:28:49 +00:00
signingConfig signingConfigs.release
2018-12-21 12:01:02 +01:00
proguardFiles.add(file('proguard-rules.pro'))
buildConfigField "boolean", "PLAY_STORE_RELEASE", "true"
buildConfigField "String", "HOSTS_FILE_URI", "\"\""
buildConfigField "String", "GITHUB_LATEST_API", "\"\""
}
debug {
minifyEnabled = true
useProguard = true
proguardFiles.add(file('proguard-rules.pro'))
buildConfigField "boolean", "PLAY_STORE_RELEASE", "false"
buildConfigField "String", "HOSTS_FILE_URI", "\"http://www.netguard.me/hosts\""
buildConfigField "String", "GITHUB_LATEST_API", "\"https://api.github.com/repos/M66B/NetGuard/releases/latest\""
2016-01-09 12:10:11 +01:00
}
}
2015-10-24 20:01:55 +02:00
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
2017-09-20 09:54:28 +02:00
2019-04-16 19:46:35 +02:00
// https://developer.android.com/jetpack/androidx/releases/
2018-11-17 17:32:36 +01:00
implementation 'androidx.appcompat:appcompat:1.0.2'
implementation 'androidx.recyclerview:recyclerview:1.0.0'
2019-04-16 19:46:35 +02:00
annotationProcessor 'androidx.annotation:annotation:1.0.2'
2017-09-20 09:54:28 +02:00
2018-01-10 06:45:15 +01:00
// https://bumptech.github.io/glide/
2019-04-16 19:46:35 +02:00
implementation 'com.github.bumptech.glide:glide:4.9.0'
annotationProcessor 'com.github.bumptech.glide:compiler:4.9.0'
2015-10-24 20:01:55 +02:00
}