Skip to content

Commit 95dd985

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 99edead commit 95dd985

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: 9 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,9 @@ configurations.configureEach {
5757
}
5858

5959
// semantic versioning for version code
60-
def versionMajor = 3
60+
def versionMajor = 7
6161
def versionMinor = 26
62-
def versionPatch = 0
62+
def versionPatch = 21
6363
def versionBuild = 0 // 0-50=Alpha / 51-98=RC / 90-99=stable
6464

6565

@@ -104,15 +104,9 @@ android {
104104

105105
multiDexEnabled true
106106

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

117111
// adapt structure from Eclipse to Gradle/Android Studio expectations;
118112
// see http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Configuring-the-Structure
@@ -145,15 +139,15 @@ android {
145139
versionDev {
146140
applicationId "com.nextcloud.android.beta"
147141
dimension "default"
148-
versionCode 20220322
149-
versionName "20220322"
142+
versionCode 71200129
143+
versionName "71200129"
150144
}
151145

152146
qa {
153147
applicationId "com.nextcloud.android.qa"
154148
dimension "default"
155-
versionCode 1
156-
versionName "1"
149+
versionCode 74
150+
versionName "1.74"
157151
}
158152
}
159153

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<resources>
33
<!-- Beta indicator -->
4-
<bool name="is_beta">true</bool>
4+
<bool name="is_beta">false</bool>
55
<bool name="dev_version_direct_download_enabled">false</bool>
66

77
<!-- App name and other strings-->
@@ -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)