This repository has been archived by the owner on Aug 8, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[android] - added Android licenses make target
- Loading branch information
1 parent
3584ee4
commit 2096908
Showing
6 changed files
with
177 additions
and
82 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,119 @@ | ||
<!-- This file was generated. Use `make android-license` to update. --> | ||
## Additional Mapbox GL licenses | ||
Mapbox GL uses portions of the Android Arch-Common. | ||
URL: [https://developer.android.com/topic/libraries/architecture/index.html](https://developer.android.com/topic/libraries/architecture/index.html) | ||
License: [The Apache Software License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0.txt) | ||
|
||
=========================================================================== | ||
|
||
Mapbox GL uses portions of the Android Arch-Runtime. | ||
URL: [https://developer.android.com/topic/libraries/architecture/index.html](https://developer.android.com/topic/libraries/architecture/index.html) | ||
License: [The Apache Software License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0.txt) | ||
|
||
=========================================================================== | ||
|
||
Mapbox GL uses portions of the Android Lifecycle LiveData Core. | ||
URL: [https://developer.android.com/topic/libraries/architecture/index.html](https://developer.android.com/topic/libraries/architecture/index.html) | ||
License: [The Apache Software License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0.txt) | ||
|
||
=========================================================================== | ||
|
||
Mapbox GL uses portions of the Android Lifecycle Runtime. | ||
URL: [https://developer.android.com/topic/libraries/architecture/index.html](https://developer.android.com/topic/libraries/architecture/index.html) | ||
License: [The Apache Software License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0.txt) | ||
|
||
=========================================================================== | ||
|
||
Mapbox GL uses portions of the Android Lifecycle ViewModel. | ||
URL: [https://developer.android.com/topic/libraries/architecture/index.html](https://developer.android.com/topic/libraries/architecture/index.html) | ||
License: [The Apache Software License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0.txt) | ||
|
||
=========================================================================== | ||
|
||
Mapbox GL uses portions of the Android Lifecycle-Common. | ||
URL: [https://developer.android.com/topic/libraries/architecture/index.html](https://developer.android.com/topic/libraries/architecture/index.html) | ||
License: [The Apache Software License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0.txt) | ||
|
||
=========================================================================== | ||
|
||
Mapbox GL uses portions of the Android Support Library Annotations. | ||
URL: [http://developer.android.com/tools/extras/support-library.html](http://developer.android.com/tools/extras/support-library.html) | ||
License: [The Apache Software License](http://www.apache.org/licenses/LICENSE-2.0.txt) | ||
|
||
=========================================================================== | ||
|
||
Mapbox GL uses portions of the Android Support Library compat. | ||
URL: [http://developer.android.com/tools/extras/support-library.html](http://developer.android.com/tools/extras/support-library.html) | ||
License: [The Apache Software License](http://www.apache.org/licenses/LICENSE-2.0.txt) | ||
|
||
=========================================================================== | ||
|
||
Mapbox GL uses portions of the Android Support Library core UI. | ||
URL: [http://developer.android.com/tools/extras/support-library.html](http://developer.android.com/tools/extras/support-library.html) | ||
License: [The Apache Software License](http://www.apache.org/licenses/LICENSE-2.0.txt) | ||
|
||
=========================================================================== | ||
|
||
Mapbox GL uses portions of the Android Support Library core utils. | ||
URL: [http://developer.android.com/tools/extras/support-library.html](http://developer.android.com/tools/extras/support-library.html) | ||
License: [The Apache Software License](http://www.apache.org/licenses/LICENSE-2.0.txt) | ||
|
||
=========================================================================== | ||
|
||
Mapbox GL uses portions of the Android Support Library fragment. | ||
URL: [http://developer.android.com/tools/extras/support-library.html](http://developer.android.com/tools/extras/support-library.html) | ||
License: [The Apache Software License](http://www.apache.org/licenses/LICENSE-2.0.txt) | ||
|
||
=========================================================================== | ||
|
||
Mapbox GL uses portions of the Gson. | ||
License: [Apache 2.0](http://www.apache.org/licenses/LICENSE-2.0.txt) | ||
|
||
=========================================================================== | ||
|
||
Mapbox GL uses portions of the Mapbox Android Core Library. | ||
URL: [https://github.com/mapbox/mapbox-events-android](https://github.com/mapbox/mapbox-events-android) | ||
License: [The Apache Software License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0.txt) | ||
|
||
=========================================================================== | ||
|
||
Mapbox GL uses portions of the Mapbox Android Gestures Library. | ||
URL: [https://github.com/mapbox/mapbox-gestures-android](https://github.com/mapbox/mapbox-gestures-android) | ||
License: [BSD 2-Clause "Simplified" License](https://github.com/raw/mapbox/mapbox-gestures-android/master/LICENSE.md) | ||
|
||
=========================================================================== | ||
|
||
Mapbox GL uses portions of the Mapbox Android Telemetry Library. | ||
URL: [https://github.com/mapbox/mapbox-events-android](https://github.com/mapbox/mapbox-events-android) | ||
License: [The Apache Software License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0.txt) | ||
|
||
=========================================================================== | ||
|
||
Mapbox GL uses portions of the Mapbox Services SDK. | ||
URL: [https://github.com/mapbox/mapbox-java](https://github.com/mapbox/mapbox-java) | ||
License: [The Apache Software License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0.txt) | ||
|
||
=========================================================================== | ||
|
||
Mapbox GL uses portions of the OkHttp. | ||
License: [Apache 2.0](http://www.apache.org/licenses/LICENSE-2.0.txt) | ||
|
||
=========================================================================== | ||
|
||
Mapbox GL uses portions of the Okio. | ||
License: [Apache 2.0](http://www.apache.org/licenses/LICENSE-2.0.txt) | ||
|
||
=========================================================================== | ||
|
||
Mapbox GL uses portions of the Timber. | ||
URL: [https://github.com/JakeWharton/timber](https://github.com/JakeWharton/timber) | ||
License: [The Apache Software License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0.txt) | ||
|
||
=========================================================================== | ||
|
||
Mapbox GL uses portions of the Gradle License Plugin. | ||
URL: [https://github.com/jaredsburrows/gradle-license-plugin](https://github.com/jaredsburrows/gradle-license-plugin) | ||
License: [The Apache Software License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0.txt) | ||
|
||
=========================================================================== | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
#!/usr/bin/python | ||
|
||
import os | ||
import json | ||
|
||
path = os.getcwd() + "/platform/android/" | ||
with open(path + "LICENSE.md", 'w') as licenseFile: | ||
licenseFile.write("<!-- This file was generated. Use `make android-license` to update. -->\n") | ||
licenseFile.write("## Additional Mapbox GL licenses\n") | ||
with open(path + "MapboxGLAndroidSDK/build/reports/licenses/licenseReleaseReport.json", 'r') as dataFile: | ||
data = json.load(dataFile) | ||
|
||
gradleLicensePlugin =""" | ||
{ | ||
"project": "Gradle License Plugin", | ||
"url": "https://github.com/jaredsburrows/gradle-license-plugin", | ||
"licenses": [ | ||
{ | ||
"license": "The Apache Software License, Version 2.0", | ||
"license_url": "http://www.apache.org/licenses/LICENSE-2.0.txt" | ||
} | ||
] | ||
} | ||
""" | ||
data.append(json.loads(gradleLicensePlugin)) | ||
|
||
licenseName = "" | ||
licenseUrl = "" | ||
for entry in data: | ||
projectName = entry["project"] | ||
projectUrl = entry["url"] | ||
for license in entry["licenses"]: | ||
licenseName = license["license"] | ||
licenseUrl = license["license_url"] | ||
|
||
licenseFile.write("Mapbox GL uses portions of the %s.\n" % projectName + | ||
("URL: [%s](%s)\n" % (projectUrl, projectUrl) if projectUrl is not None else "") + | ||
"License: [%s](%s)" % (licenseName, licenseUrl) + | ||
"\n\n===========================================================================\n\n") |