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-11 16:45:56 +08:00
parent ee814cdd88
commit eccbb4c510
4 changed files with 48 additions and 14 deletions

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
}
}
}