Skip to content

Commit 54873b5

Browse files
authored
update license file & generator script (#6790)
* update license file & generator script * remove duplicate text
1 parent 5f67450 commit 54873b5

File tree

2 files changed

+7
-10
lines changed

2 files changed

+7
-10
lines changed

LICENSE.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,9 @@ Mapbox Navigation for Android version 2.0
33

44
Mapbox Navigation Android SDK
55

6-
Copyright ©2022 Mapbox
6+
Copyright ©2022 - 2023 Mapbox, Inc. All rights reserved.
77

8-
All rights reserved.
9-
10-
Mapbox Navigation for Android version 2.0 (“Mapbox Navigation Android SDK“) or higher must be used according to the Mapbox Terms of Service. This license allows developers with a current active Mapbox account to use and modify the Mapbox Navigation Android SDK. Developers may modify the Mapbox Navigation Android SDK code so long as the modifications do not change or interfere with marked portions of the code related to billing, accounting, and data collection. The Mapbox Navigation Android SDK sends limited de-identified location and usage data, which Mapbox uses in accordance with the Mapbox Data Processing Addendum. This license terminates automatically if a user no longer has an active Mapbox account.
11-
12-
For the full license terms, please see the Mapbox Terms of Service at https://www.mapbox.com/legal/tos/
8+
The software and files in this repository (collectively, "Software") are licensed under the Mapbox TOS for use only with the relevant Mapbox product(s) listed at www.mapbox.com/pricing. This license allows developers with a current active Mapbox account to use and modify the authorized portions of the Software as needed for use only with the relevant Mapbox product(s) through their Mapbox account in accordance with the Mapbox TOS. This license terminates automatically if a developer no longer has a Mapbox account in good standing or breaches the Mapbox TOS. For the license terms, please see the Mapbox TOS at https://www.mapbox.com/legal/tos/ which incorporates the Mapbox Product Terms at www.mapbox.com/legal/service-terms. If this Software is a SDK, modifications that change or interfere with marked portions of the code related to billing, accounting, or data collection are not authorized and the SDK sends limited de-identified location and usage data which is used in accordance with the Mapbox TOS. [Updated 2023-01]
139

1410
---------------------------------------
1511
Mapbox Navigation uses portions of the Gradle License Plugin.

scripts/generate-license.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
import os
55
import json
6+
import datetime
67
import codecs
78

89
path = os.getcwd()
@@ -67,13 +68,13 @@ def writeToFile(file, filePath) :
6768
]
6869

6970
with codecs.open(licensePath, 'w', encoding='utf-8') as licenseFile:
71+
now = datetime.datetime.now()
72+
7073
licenseFile.write("### License\n")
7174
licenseFile.write("Mapbox Navigation for Android version 2.0\n\n")
7275
licenseFile.write("Mapbox Navigation Android SDK\n\n")
73-
licenseFile.write("Copyright " + u'©' + "2022 Mapbox\n\n")
74-
licenseFile.write("All rights reserved.\n\n")
75-
licenseFile.write("Mapbox Navigation for Android version 2.0 (" + u"“" + "Mapbox Navigation Android SDK" + u"“" + ") or higher must be used according to the Mapbox Terms of Service. This license allows developers with a current active Mapbox account to use and modify the Mapbox Navigation Android SDK. Developers may modify the Mapbox Navigation Android SDK code so long as the modifications do not change or interfere with marked portions of the code related to billing, accounting, and data collection. The Mapbox Navigation Android SDK sends limited de-identified location and usage data, which Mapbox uses in accordance with the Mapbox Data Processing Addendum. This license terminates automatically if a user no longer has an active Mapbox account.\n\n")
76-
licenseFile.write("For the full license terms, please see the Mapbox Terms of Service at https://www.mapbox.com/legal/tos/\n\n")
76+
licenseFile.write("Copyright " + u'©' + "2022 - {} Mapbox, Inc. All rights reserved.\n\n".format(now.year))
77+
licenseFile.write("The software and files in this repository (collectively, \"Software\") are licensed under the Mapbox TOS for use only with the relevant Mapbox product(s) listed at www.mapbox.com/pricing. This license allows developers with a current active Mapbox account to use and modify the authorized portions of the Software as needed for use only with the relevant Mapbox product(s) through their Mapbox account in accordance with the Mapbox TOS. This license terminates automatically if a developer no longer has a Mapbox account in good standing or breaches the Mapbox TOS. For the license terms, please see the Mapbox TOS at https://www.mapbox.com/legal/tos/ which incorporates the Mapbox Product Terms at www.mapbox.com/legal/service-terms. If this Software is a SDK, modifications that change or interfere with marked portions of the code related to billing, accounting, or data collection are not authorized and the SDK sends limited de-identified location and usage data which is used in accordance with the Mapbox TOS. [Updated {}-{:02d}]\n\n".format(now.year, now.month))
7778
licenseFile.write("---------------------------------------\n")
7879
[licenseFile.write(l.text()) for l in staticLicenses]
7980

0 commit comments

Comments
 (0)