2020-03-09 14:30:14 +01:00
|
|
|
apply plugin: 'com.android.library'
|
|
|
|
|
2020-03-10 15:58:29 +01:00
|
|
|
version wireguardVersionName
|
|
|
|
group groupName
|
|
|
|
|
2020-03-09 14:30:14 +01:00
|
|
|
android {
|
|
|
|
buildToolsVersion '29.0.3'
|
|
|
|
compileSdkVersion 29
|
|
|
|
compileOptions {
|
|
|
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
|
|
targetCompatibility JavaVersion.VERSION_1_8
|
|
|
|
}
|
|
|
|
defaultConfig {
|
|
|
|
minSdkVersion 21
|
|
|
|
targetSdkVersion 29
|
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-04-08 13:34:08 +02:00
|
|
|
libraryVariants.all {
|
|
|
|
it.generateBuildConfigProvider.configure { enabled = false }
|
|
|
|
}
|
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-03-09 14:30:14 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2020-03-12 07:23:03 +01:00
|
|
|
api "net.sourceforge.streamsupport:android-retrostreams:$streamsupportVersion"
|
2020-03-09 14:30:14 +01:00
|
|
|
implementation "androidx.annotation:annotation:$annotationsVersion"
|
|
|
|
implementation "androidx.collection:collection:$collectionVersion"
|
2020-03-09 14:39:34 +01:00
|
|
|
implementation "com.google.code.findbugs:jsr305:$jsr305Version"
|
2020-03-09 14:30:14 +01:00
|
|
|
implementation "com.jakewharton.threetenabp:threetenabp:$threetenabpVersion"
|
2020-03-09 16:06:28 +01:00
|
|
|
implementation "net.i2p.crypto:eddsa:$eddsaVersion"
|
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"
|