summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2020-03-29 01:18:38 -0600
committerJason A. Donenfeld <Jason@zx2c4.com>2020-03-29 01:18:46 -0600
commit79e766c4e1c6fd3a16e35e5fc17d3fe2c3c40fc0 (patch)
tree9242df428394398a184197b9a16bb6e8e835113a
parent183273dcf5b5aaebbd541b44dc3631781fbb661b (diff)
tunnel: fix package name being passed through to cmake
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
-rw-r--r--tunnel/build.gradle16
-rw-r--r--ui/build.gradle10
2 files changed, 16 insertions, 10 deletions
diff --git a/tunnel/build.gradle b/tunnel/build.gradle
index f306292c..2f5835c1 100644
--- a/tunnel/build.gradle
+++ b/tunnel/build.gradle
@@ -26,6 +26,22 @@ android {
events 'passed', 'skipped', 'failed', 'standardOut', 'standardError'
}
}
+ buildTypes {
+ release {
+ externalNativeBuild {
+ cmake {
+ arguments "-DANDROID_PACKAGE_NAME=${groupName}"
+ }
+ }
+ }
+ debug {
+ externalNativeBuild {
+ cmake {
+ arguments "-DANDROID_PACKAGE_NAME=${groupName}.debug"
+ }
+ }
+ }
+ }
}
dependencies {
diff --git a/ui/build.gradle b/ui/build.gradle
index 2ebfc1af..d00f4d64 100644
--- a/ui/build.gradle
+++ b/ui/build.gradle
@@ -51,22 +51,12 @@ android {
buildTypes {
release {
if (keystorePropertiesFile.exists()) signingConfig signingConfigs.release
- externalNativeBuild {
- cmake {
- arguments "-DANDROID_PACKAGE_NAME=${android.defaultConfig.applicationId}"
- }
- }
minifyEnabled true
proguardFiles "proguard-android-optimize.txt", "proguard-rules.pro"
}
debug {
applicationIdSuffix ".debug"
versionNameSuffix "-debug"
- externalNativeBuild {
- cmake {
- arguments "-DANDROID_PACKAGE_NAME=${android.defaultConfig.applicationId}${applicationIdSuffix}"
- }
- }
}
}
}