Better share version information between modules

Move important version properties to buildSrc directory to access between modules
as needed.

Also add a simple task to generate a simple BuildConfig class to access version name.
This is better than adding dependency on a third-party library/plugin.

Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
This commit is contained in:
Aayush Gupta
2026-05-20 18:27:08 +08:00
parent 53f36154aa
commit d1bc8c23cf
4 changed files with 48 additions and 14 deletions
+2 -2
View File
@@ -25,8 +25,8 @@ compose.desktop {
nativeDistributions {
targetFormats(TargetFormat.Dmg, TargetFormat.Msi, TargetFormat.Deb)
packageName = "net.newpipe.app"
packageVersion = "1.0.0"
packageName = NEWPIPE_APPLICATION_ID_NEW
packageVersion = NEWPIPE_VERSION_NAME
}
}
}