Skip to content

Commit 35131d1

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 07ee20a commit 35131d1

File tree

3 files changed

+21
-8
lines changed

3 files changed

+21
-8
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: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ configurations.configureEach {
6262
}
6363

6464
// semantic versioning for version code
65-
val versionMajor = 33
65+
var versionMajor = 33
6666
val versionMinor = 0
6767
val versionPatch = 0
6868
val versionBuild = 90 // 0-50=Alpha / 51-98=RC / 90-99=stable
@@ -100,6 +100,10 @@ android {
100100
"disableAnalytics" to "true"
101101
)
102102
applicationId = "com.nextcloud.client"
103+
// NMC: to avoid merge conflicts, we do not change the original version settings.
104+
// NMC: Instead, we override the local values with our own here and not touch the definition above.
105+
versionMajor = 8
106+
// NMC: end
103107
minSdk = 28
104108
targetSdk = 36
105109
compileSdk = 36
@@ -115,12 +119,9 @@ android {
115119
testInstrumentationRunner = if (shotTest) "com.karumi.shot.ShotTestRunner"
116120
else "com.nextcloud.client.TestRunner"
117121

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

125126
// adapt structure from Eclipse to Gradle/Android Studio expectations;
126127
// 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
@@ -30,4 +30,5 @@ android.builtInKotlin=false
3030
android.newDsl=false
3131

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

0 commit comments

Comments
 (0)