Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[stable-3.29] Nmc/1927 License versioning #244

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
Although the code for this android client is free and available under the GPL2 license, Deutsche Telekom
(including T-Systems) fully reserves all rights to the Telekom brand. To prevent users from getting confused about
the source of a digital product or experience, there are stringent restrictions on using the Telekom brand and design,
even when built into code that we provide. For any customization other than explicitly for Telekom or T-Systems, you must
replace the Deutsche Telekom and T-Systems brand elements contained in the provided sources.

To help you identify the brand elements, see:
./drawable: folder contains brand-design specific icons or images
Brand-protected Magenta colour definitions are (unfortunately) spread over the source code.


GNU GENERAL PUBLIC LICENSE
Version 2, June 1991

Expand Down
24 changes: 11 additions & 13 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,10 @@ android {


defaultConfig {
// NMC: to avoid merge conflicts, we do not change the original version settings.
// NMC: Instead, we override the local values with our own here and not touch the definition above.
versionMajor = 7
// NMC: end
minSdkVersion 24
targetSdkVersion 34
compileSdk 34
Expand All @@ -124,15 +128,9 @@ android {
testInstrumentationRunnerArgument "TEST_SERVER_PASSWORD", "${NC_TEST_SERVER_PASSWORD}"
testInstrumentationRunnerArguments disableAnalytics: 'true'

versionCode versionMajor * 10000000 + versionMinor * 10000 + versionPatch * 100 + versionBuild

if (versionBuild > 89) {
versionName "${versionMajor}.${versionMinor}.${versionPatch}"
} else if (versionBuild > 50) {
versionName "${versionMajor}.${versionMinor}.${versionPatch} RC" + (versionBuild - 50)
} else {
versionName "${versionMajor}.${versionMinor}.${versionPatch} Alpha" + (versionBuild + 1)
}
//using short version number for more readability for NMC
versionCode Integer.parseInt("${versionMajor}${versionMinor}${versionPatch}${versionBuild}")
versionName "${versionMajor}.${versionMinor}.${versionPatch}"

// adapt structure from Eclipse to Gradle/Android Studio expectations;
// see http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Configuring-the-Structure
Expand Down Expand Up @@ -169,15 +167,15 @@ android {
versionDev {
applicationId "com.nextcloud.android.beta"
dimension "default"
versionCode 20220322
versionName "20220322"
versionCode 71200129
versionName "71200129"
}

qa {
applicationId "com.nextcloud.android.qa"
dimension "default"
versionCode 1
versionName "1"
versionCode 74
versionName "1.74"
}
}

Expand Down
3 changes: 2 additions & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,5 @@ org.gradle.parallel=true
org.gradle.configureondemand=true

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