From d0cfddbb85c86a502dc076846a7a53d87dcd43cd Mon Sep 17 00:00:00 2001 From: A117870935 Date: Thu, 18 May 2023 20:13:02 +0530 Subject: [PATCH 1/2] License, Build version configuration and User agent updated for the following branches: nmcfeat/1240-license-branding feature/NMCLOUD-703 feature/NMC-1904 --- LICENSE.txt | 11 +++++++++++ app/build.gradle | 16 +++++++--------- gradle.properties | 3 ++- 3 files changed, 20 insertions(+), 10 deletions(-) diff --git a/LICENSE.txt b/LICENSE.txt index 4fc88098775c..74f1504175fd 100644 --- a/LICENSE.txt +++ b/LICENSE.txt @@ -1,3 +1,14 @@ +Although the code for this android client is free and available under the GPL2 license, Deutsche Telekom +(including T-Systems) fully reserves all rights to the Telekom brand. To prevent users from getting confused about +the source of a digital product or experience, there are stringent restrictions on using the Telekom brand and design, +even when built into code that we provide. For any customization other than explicitly for Telekom or T-Systems, you must +replace the Deutsche Telekom and T-Systems brand elements contained in the provided sources. + +To help you identify the brand elements, see: + ./drawable: folder contains brand-design specific icons or images + Brand-protected Magenta colour definitions are (unfortunately) spread over the source code. + + GNU GENERAL PUBLIC LICENSE Version 2, June 1991 diff --git a/app/build.gradle b/app/build.gradle index e05dff65d506..55783484c9e2 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -105,6 +105,10 @@ android { defaultConfig { applicationId "com.nextcloud.client" + // NMC: to avoid merge conflicts, we do not change the original version settings. + // NMC: Instead, we override the local values with our own here and not touch the definition above. + versionMajor = 7 + // NMC: end minSdkVersion 26 targetSdkVersion 35 compileSdk 35 @@ -129,15 +133,9 @@ android { testInstrumentationRunnerArgument "TEST_SERVER_PASSWORD", "${NC_TEST_SERVER_PASSWORD}" testInstrumentationRunnerArguments disableAnalytics: "true" - versionCode versionMajor * 10000000 + versionMinor * 10000 + versionPatch * 100 + versionBuild - - if (versionBuild > 89) { - versionName "${versionMajor}.${versionMinor}.${versionPatch}" - } else if (versionBuild > 50) { - versionName "${versionMajor}.${versionMinor}.${versionPatch} RC" + (versionBuild - 50) - } else { - versionName "${versionMajor}.${versionMinor}.${versionPatch} Alpha" + (versionBuild + 1) - } + // using short version number for more readability for NMC + versionCode Integer.parseInt("${versionMajor}${versionMinor}${versionPatch}${versionBuild}") + versionName "${versionMajor}.${versionMinor}.${versionPatch}" // adapt structure from Eclipse to Gradle/Android Studio expectations; // see http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Configuring-the-Structure diff --git a/gradle.properties b/gradle.properties index 14f2cb920c7e..7111c601eb53 100644 --- a/gradle.properties +++ b/gradle.properties @@ -22,4 +22,5 @@ org.gradle.configureondemand=true kapt.incremental.apt=true # Needed for local libs -# org.gradle.dependency.verification=lenient +# uncomment below line for NMC Customization so that build won't fail due to gradle dependency verification +org.gradle.dependency.verification=lenient \ No newline at end of file From 4f58ce1bcf77ebc064fc12ba581dc0b3fd469f0e Mon Sep 17 00:00:00 2001 From: tobiasKaminsky Date: Wed, 13 Aug 2025 11:54:07 +0200 Subject: [PATCH 2/2] changed location of version update --- app/build.gradle | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 55783484c9e2..e90f91b73d20 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -78,6 +78,10 @@ configurations.configureEach { // semantic versioning for version code def versionMajor = 3 +// NMC: to avoid merge conflicts, we do not change the original version settings. +// NMC: Instead, we override the local values with our own here and not touch the definition above. +versionMajor = 7 +// NMC: end def versionMinor = 32 def versionPatch = 0 def versionBuild = 51 // 0-50=Alpha / 51-98=RC / 90-99=stable @@ -105,10 +109,6 @@ android { defaultConfig { applicationId "com.nextcloud.client" - // NMC: to avoid merge conflicts, we do not change the original version settings. - // NMC: Instead, we override the local values with our own here and not touch the definition above. - versionMajor = 7 - // NMC: end minSdkVersion 26 targetSdkVersion 35 compileSdk 35