File tree Expand file tree Collapse file tree 3 files changed +14
-9
lines changed Expand file tree Collapse file tree 3 files changed +14
-9
lines changed Original file line number Diff line number Diff line change
1
+ wireguardVersionCode =501
2
+ wireguardVersionName =1.0.20230502
3
+ wireguardPackageName =com.wireguard.android
4
+
1
5
# When configured, Gradle will run in incubating parallel mode.
2
6
# This option should only be used with decoupled projects. More details, visit
3
7
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
@@ -63,9 +67,6 @@ android.suppressUnsupportedOptionWarnings=android.keepWorkerActionServicesBetwee
63
67
android.enableAppCompileTimeRClass,\
64
68
android.suppressUnsupportedOptionWarnings
65
69
66
- wireguardVersionCode =501
67
- wireguardVersionName =1.0.20230502
68
-
69
70
# OSSRH sometimes struggles with slow deployments, so this makes Gradle
70
71
# more tolerant to those delays.
71
72
systemProp.org.gradle.internal.http.connectionTimeout =500000
Original file line number Diff line number Diff line change 1
1
@file:Suppress(" UnstableApiUsage" )
2
2
import org.gradle.api.tasks.testing.logging.TestLogEvent
3
3
4
+ val pkg: String = providers.gradleProperty(" wireguardPackageName" ).get()
5
+
4
6
plugins {
5
7
alias(libs.plugins.android.library)
6
8
`maven- publish`
@@ -13,7 +15,7 @@ android {
13
15
sourceCompatibility = JavaVersion .VERSION_17
14
16
targetCompatibility = JavaVersion .VERSION_17
15
17
}
16
- namespace = " com.wireguard.android .tunnel"
18
+ namespace = " ${pkg} .tunnel"
17
19
defaultConfig {
18
20
minSdk = 21
19
21
}
@@ -37,14 +39,14 @@ android {
37
39
release {
38
40
externalNativeBuild {
39
41
cmake {
40
- arguments(" -DANDROID_PACKAGE_NAME=com.wireguard.android " )
42
+ arguments(" -DANDROID_PACKAGE_NAME=${pkg} " )
41
43
}
42
44
}
43
45
}
44
46
debug {
45
47
externalNativeBuild {
46
48
cmake {
47
- arguments(" -DANDROID_PACKAGE_NAME=com.wireguard.android .debug" )
49
+ arguments(" -DANDROID_PACKAGE_NAME=${pkg} .debug" )
48
50
}
49
51
}
50
52
}
@@ -71,7 +73,7 @@ dependencies {
71
73
publishing {
72
74
publications {
73
75
register<MavenPublication >(" release" ) {
74
- groupId = " com.wireguard.android "
76
+ groupId = pkg
75
77
artifactId = " tunnel"
76
78
version = providers.gradleProperty(" wireguardVersionName" ).get()
77
79
afterEvaluate {
Original file line number Diff line number Diff line change 2
2
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
3
3
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
4
4
5
+ val pkg: String = providers.gradleProperty(" wireguardPackageName" ).get()
6
+
5
7
plugins {
6
8
alias(libs.plugins.android.application)
7
9
alias(libs.plugins.kotlin.android)
@@ -15,9 +17,9 @@ android {
15
17
dataBinding = true
16
18
viewBinding = true
17
19
}
18
- namespace = " com.wireguard.android "
20
+ namespace = pkg
19
21
defaultConfig {
20
- applicationId = " com.wireguard.android "
22
+ applicationId = pkg
21
23
minSdk = 21
22
24
targetSdk = 33
23
25
versionCode = providers.gradleProperty(" wireguardVersionCode" ).get().toInt()
You can’t perform that action at this time.
0 commit comments