Skip to content

Commit 3c1911e

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 e625f45 commit 3c1911e

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
@@ -150,15 +144,15 @@ android {
150144
versionDev {
151145
applicationId "com.nextcloud.android.beta"
152146
dimension "default"
153-
versionCode 20220322
154-
versionName "20220322"
147+
versionCode 71200129
148+
versionName "71200129"
155149
}
156150

157151
qa {
158152
applicationId "com.nextcloud.android.qa"
159153
dimension "default"
160-
versionCode 1
161-
versionName "1"
154+
versionCode 74
155+
versionName "1.74"
162156
}
163157
}
164158

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)