Skip to content

Commit 6823a35

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 2e55cc5 commit 6823a35

File tree

3 files changed

+24
-16
lines changed

3 files changed

+24
-16
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: 10 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,9 @@ configurations.configureEach {
5959
}
6060

6161
// semantic versioning for version code
62-
def versionMajor = 3
63-
def versionMinor = 27
64-
def versionPatch = 0
62+
def versionMajor = 7
63+
def versionMinor = 26
64+
def versionPatch = 21
6565
def versionBuild = 0 // 0-50=Alpha / 51-98=RC / 90-99=stable
6666

6767

@@ -105,15 +105,9 @@ android {
105105

106106
multiDexEnabled true
107107

108-
versionCode versionMajor * 10000000 + versionMinor * 10000 + versionPatch * 100 + versionBuild
109-
110-
if (versionBuild > 89) {
111-
versionName "${versionMajor}.${versionMinor}.${versionPatch}"
112-
} else if (versionBuild > 50) {
113-
versionName "${versionMajor}.${versionMinor}.${versionPatch} RC" + (versionBuild - 50)
114-
} else {
115-
versionName "${versionMajor}.${versionMinor}.${versionPatch} Alpha" + (versionBuild + 1)
116-
}
108+
//using short version number for more readability for NMC
109+
versionCode Integer.parseInt("${versionMajor}${versionMinor}${versionPatch}")
110+
versionName "${versionMajor}.${versionMinor}.${versionPatch}"
117111

118112
// adapt structure from Eclipse to Gradle/Android Studio expectations;
119113
// see http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Configuring-the-Structure
@@ -146,15 +140,15 @@ android {
146140
versionDev {
147141
applicationId "com.nextcloud.android.beta"
148142
dimension "default"
149-
versionCode 20220322
150-
versionName "20220322"
143+
versionCode 71200129
144+
versionName "71200129"
151145
}
152146

153147
qa {
154148
applicationId "com.nextcloud.android.qa"
155149
dimension "default"
156-
versionCode 1
157-
versionName "1"
150+
versionCode 74
151+
versionName "1.74"
158152
}
159153
}
160154

app/src/main/res/values/setup.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@
1919
<string name="default_display_name_for_root_folder">Nextcloud</string>
2020
<string name="nextcloud_user_agent">Mozilla/5.0 (Android) Nextcloud-android/%1$s</string>
2121
<string name="only_office_user_agent">Mozilla/5.0 (Android %1$s) Mobile Nextcloud-android/%2$s</string>
22+
<!-- todo need to enabled the below code later for NMC -->
23+
<!-- <string name="nextcloud_user_agent">Mozilla/5.0 (Android) MagentaCLOUD-android/%1$s</string>
24+
<string name="only_office_user_agent">Mozilla/5.0 (Android %1$s) Mobile MagentaCLOUD-android/%2$s</string>-->
2225

2326
<!-- URLs and flags related -->
2427
<bool name="show_server_url_input">true</bool>

0 commit comments

Comments
 (0)