Skip to content

Commit 772ed29

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 cf222d4 commit 772ed29

File tree

3 files changed

+20
-10
lines changed

3 files changed

+20
-10
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

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,10 @@ android {
104104
}
105105

106106
defaultConfig {
107+
// NMC: to avoid merge conflicts, we do not change the original version settings.
108+
// NMC: Instead, we override the local values with our own here and not touch the definition above.
109+
versionMajor = 7
110+
// NMC: end
107111
minSdkVersion 24
108112
targetSdkVersion 34
109113
compileSdk 34
@@ -128,15 +132,9 @@ android {
128132
testInstrumentationRunnerArgument "TEST_SERVER_PASSWORD", "${NC_TEST_SERVER_PASSWORD}"
129133
testInstrumentationRunnerArguments disableAnalytics: 'true'
130134

131-
versionCode versionMajor * 10000000 + versionMinor * 10000 + versionPatch * 100 + versionBuild
132-
133-
if (versionBuild > 89) {
134-
versionName "${versionMajor}.${versionMinor}.${versionPatch}"
135-
} else if (versionBuild > 50) {
136-
versionName "${versionMajor}.${versionMinor}.${versionPatch} RC" + (versionBuild - 50)
137-
} else {
138-
versionName "${versionMajor}.${versionMinor}.${versionPatch} Alpha" + (versionBuild + 1)
139-
}
135+
// using short version number for more readability for NMC
136+
versionCode Integer.parseInt("${versionMajor}${versionMinor}${versionPatch}${versionBuild}")
137+
versionName "${versionMajor}.${versionMinor}.${versionPatch}"
140138

141139
// adapt structure from Eclipse to Gradle/Android Studio expectations;
142140
// 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
@@ -21,4 +21,5 @@ org.gradle.parallel=true
2121
org.gradle.configureondemand=true
2222

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

0 commit comments

Comments
 (0)