2021-07-25 18:31:32 +02:00
|
|
|
plugins {
|
|
|
|
id 'com.android.library'
|
|
|
|
}
|
2020-03-09 14:30:14 +01:00
|
|
|
|
2020-03-10 15:58:29 +01:00
|
|
|
version wireguardVersionName
|
|
|
|
group groupName
|
|
|
|
|
2020-03-09 14:30:14 +01:00
|
|
|
android {
|
2020-08-25 17:47:05 +02:00
|
|
|
compileSdkVersion 30
|
2020-03-09 14:30:14 +01:00
|
|
|
compileOptions {
|
|
|
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
|
|
targetCompatibility JavaVersion.VERSION_1_8
|
|
|
|
}
|
|
|
|
defaultConfig {
|
|
|
|
minSdkVersion 21
|
2020-08-25 17:47:05 +02:00
|
|
|
targetSdkVersion 30
|
2020-03-10 04:54:27 +01:00
|
|
|
versionCode wireguardVersionCode
|
|
|
|
versionName wireguardVersionName
|
2020-03-09 14:30:14 +01:00
|
|
|
}
|
|
|
|
externalNativeBuild {
|
|
|
|
cmake {
|
|
|
|
path 'tools/CMakeLists.txt'
|
|
|
|
}
|
|
|
|
}
|
2020-03-14 06:02:12 +01:00
|
|
|
testOptions.unitTests.all {
|
|
|
|
testLogging {
|
|
|
|
events 'passed', 'skipped', 'failed', 'standardOut', 'standardError'
|
|
|
|
}
|
|
|
|
}
|
2020-03-29 09:18:38 +02:00
|
|
|
buildTypes {
|
|
|
|
release {
|
|
|
|
externalNativeBuild {
|
|
|
|
cmake {
|
2020-03-29 10:28:41 +02:00
|
|
|
arguments "-DANDROID_PACKAGE_NAME=${groupName}", "-DGRADLE_USER_HOME=${project.gradle.gradleUserHomeDir}"
|
2020-03-29 09:18:38 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
debug {
|
|
|
|
externalNativeBuild {
|
|
|
|
cmake {
|
2020-03-29 10:28:41 +02:00
|
|
|
arguments "-DANDROID_PACKAGE_NAME=${groupName}.debug", "-DGRADLE_USER_HOME=${project.gradle.gradleUserHomeDir}"
|
2020-03-29 09:18:38 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2020-04-18 22:29:51 +02:00
|
|
|
lintOptions {
|
|
|
|
disable('LongLogTag')
|
2020-11-07 14:23:06 +01:00
|
|
|
disable('NewApi') // Desugaring!
|
2020-04-18 22:29:51 +02:00
|
|
|
}
|
2020-03-09 14:30:14 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
implementation "androidx.annotation:annotation:$annotationsVersion"
|
|
|
|
implementation "androidx.collection:collection:$collectionVersion"
|
2021-10-27 22:19:02 +02:00
|
|
|
compileOnly "com.google.code.findbugs:jsr305:$jsr305Version"
|
2020-03-14 06:02:12 +01:00
|
|
|
testImplementation "junit:junit:$junitVersion"
|
2020-03-09 14:30:14 +01:00
|
|
|
}
|
2020-03-10 07:21:51 +01:00
|
|
|
|
|
|
|
apply from: "publish.gradle"
|