Skip to content

Commit 39ced39

Browse files
committed
License, Build version configuration and User agent updated for the following branches:
nmcfeat/1240-license-branding feature/NMCLOUD-703 feature/NMC-1904
1 parent b0522e1 commit 39ced39

File tree

3 files changed

+20
-7
lines changed

3 files changed

+20
-7
lines changed

LICENSE.txt

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
Although the code for this android client is free and available under the GPL2 license, Deutsche Telekom
2+
(including T-Systems) fully reserves all rights to the Telekom brand. To prevent users from getting confused about
3+
the source of a digital product or experience, there are stringent restrictions on using the Telekom brand and design,
4+
even when built into code that we provide. For any customization other than explicitly for Telekom or T-Systems, you must
5+
replace the Deutsche Telekom and T-Systems brand elements contained in the provided sources.
6+
7+
To help you identify the brand elements, see:
8+
./drawable: folder contains brand-design specific icons or images
9+
Brand-protected Magenta colour definitions are (unfortunately) spread over the source code.
10+
11+
112
GNU GENERAL PUBLIC LICENSE
213
Version 2, June 1991
314

app/build.gradle.kts

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,10 @@ android {
9494

9595
defaultConfig {
9696
applicationId = "com.nextcloud.client"
97+
// NMC: to avoid merge conflicts, we do not change the original version settings.
98+
// NMC: Instead, we override the local values with our own here and not touch the definition above.
99+
versionMajor = 7
100+
// NMC: end
97101
minSdk = 27
98102
targetSdk = 36
99103
compileSdk = 36
@@ -116,12 +120,9 @@ android {
116120
)
117121
testInstrumentationRunnerArguments["disableAnalytics"] = "true"
118122

119-
versionCode = versionMajor * 10000000 + versionMinor * 10000 + versionPatch * 100 + versionBuild
120-
versionName = when {
121-
versionBuild > 89 -> "${versionMajor}.${versionMinor}.${versionPatch}"
122-
versionBuild > 50 -> "${versionMajor}.${versionMinor}.${versionPatch} RC" + (versionBuild - 50)
123-
else -> "${versionMajor}.${versionMinor}.${versionPatch} Alpha" + (versionBuild + 1)
124-
}
123+
// using short version number for more readability for NMC
124+
versionCode Integer.parseInt("${versionMajor}${versionMinor}${versionPatch}${versionBuild}")
125+
versionName "${versionMajor}.${versionMinor}.${versionPatch}"
125126

126127
// adapt structure from Eclipse to Gradle/Android Studio expectations;
127128
// see http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Configuring-the-Structure

gradle.properties

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,5 @@ org.gradle.daemon=true
2222
org.gradle.configuration-cache=true
2323

2424
# Needed for local libs
25-
# org.gradle.dependency.verification=lenient
25+
# uncomment below line for NMC Customization so that build won't fail due to gradle dependency verification
26+
org.gradle.dependency.verification=lenient

0 commit comments

Comments
 (0)