This repository has been archived by the owner on Jun 21, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 118
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit a3ef1ac
Showing
1,061 changed files
with
403,354 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
[*.{kt,kts}] | ||
indent_size=2 | ||
insert_final_newline=false | ||
disabled_rules=no-wildcard-imports |
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,35 @@ | ||
# Gradle files | ||
.gradle/ | ||
|
||
# IntelliJ files | ||
.idea/ | ||
*.iml | ||
|
||
# Build files | ||
build/ | ||
.externalNativeBuild | ||
**/.cxx | ||
*.so | ||
*.apk | ||
|
||
# Local settings | ||
local.properties | ||
gradle/configuration.gradle | ||
|
||
# Token file | ||
MapboxGLAndroidSDKTestApp/src/main/res/values/developer-config.xml | ||
|
||
# Capture files | ||
captures/ | ||
|
||
# Generated test cases | ||
MapboxGLAndroidSDKTestApp/src/androidTest/java/com/mapbox/mapboxsdk/testapp/activity/gen/ | ||
|
||
# Generated list files from code generation | ||
/scripts/generate-style-code.list | ||
|
||
# Input files for running render tests | ||
MapboxGLAndroidSDKTestApp/src/main/assets/integration/ | ||
|
||
# Local AS configuration file | ||
gradle.properties |
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,12 @@ | ||
[submodule "vendor/mapbox-gl-native"] | ||
path = vendor/mapbox-gl-native | ||
url = git@github.com:mapbox/mapbox-gl-native.git | ||
[submodule "vendor/mapbox-events-android"] | ||
path = vendor/mapbox-events-android | ||
url = git@github.com:mapbox/mapbox-events-android.git | ||
[submodule "vendor/mapbox-java"] | ||
path = vendor/mapbox-java | ||
url = git@github.com:mapbox/mapbox-java.git | ||
[submodule "vendor/mapbox-gestures-android"] | ||
path = vendor/mapbox-gestures-android | ||
url = git@github.com:mapbox/mapbox-gestures-android.git |
Large diffs are not rendered by default.
Oops, something went wrong.
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,57 @@ | ||
# Distributing Mapbox GL Native for Android | ||
|
||
Depending on your use case, you may want to support all or just a subset of [Android ABIs](http://developer.android.com/ndk/guides/abis.html). This document covers building an `.aar` file from the Mapbox Maps SDK for Android and building `.so` files for specific ABIs. In normal circumstances an application developer will use [APK splits](https://developer.android.com/studio/build/configure-apk-splits.html) to optimize this at application level. | ||
|
||
##### Build types | ||
|
||
With a `BUILDTYPE` var you can specify the build type for the `.so` and `.aar` files: | ||
|
||
```bash | ||
BUILDTYPE=Debug or BUILDTYPE=Release | ||
``` | ||
|
||
##### Creating an Android Archive file that supports all ABIs | ||
|
||
```sh | ||
BUILDTYPE=Release make apackage | ||
``` | ||
|
||
This will build native libraries to support following ABIs: | ||
- armeabi | ||
- armeabi-v7a | ||
- arm64-v8a | ||
- x86 | ||
- x86_64 | ||
- mips | ||
|
||
After succesfully finish building the native libraries, gradle will build the MapboxAndroidSDK module and generate an Android Archive file in `MapboxAndroidSDK/build/outputs/aar `. The packaged native libraries can be found in `MapboxAndroidSDK/src/main/jniLibs/<abi>`. | ||
|
||
##### Build native libraries for a specific ABI | ||
|
||
```sh | ||
make android-lib-%% | ||
``` | ||
|
||
In the command above you'll need to replace `%%` with an ABI key listed below: | ||
|
||
| ABI Key | Android ABI | | ||
| ------- | ----------- | | ||
| arm-v5 | armeabi | | ||
| arm-v7 | armeabi-v7a | | ||
| arm-v8 | arm64-v8a | | ||
| x86 | x86 | | ||
| x86-64 | x86_64 | | ||
| mips | mips | | ||
|
||
For example, to build the arm64-v8a ABI the Makefile target would be: | ||
|
||
```sh | ||
make android-lib-arm-v8 | ||
``` | ||
|
||
It's also possible to build multiple ABI (without having to build them all) by running the Makefile multiple times. For example to build arm64-v8a and x86_64 in the same project the commands would be: | ||
|
||
```sh | ||
make android-lib-arm-v8 | ||
make android-lib-arm-x86-64 | ||
``` |
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,227 @@ | ||
<!-- 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. | ||
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 Async Layout Inflater. | ||
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 collections. | ||
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 Coordinator Layout. | ||
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 Cursor Adapter. | ||
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 Custom View. | ||
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 Custom View. | ||
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 Document File. | ||
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 Drawer Layout. | ||
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 Android Support Library Interpolators. | ||
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 loader. | ||
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 Local Broadcast Manager. | ||
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 Print. | ||
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 Sliding Pane Layout. | ||
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 View Pager. | ||
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 Accounts SDK for Android. | ||
URL: [https://github.com/mapbox/mapbox-accounts-android](https://github.com/mapbox/mapbox-accounts-android) | ||
License: [Mapbox Terms of Service](https://www.mapbox.com/tos/) | ||
|
||
=========================================================================== | ||
|
||
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](https://opensource.org/licenses/BSD-2-Clause) | ||
|
||
=========================================================================== | ||
|
||
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 Java 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 Mapbox Java 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 SoLoader. | ||
URL: [https://github.com/facebook/soloader](https://github.com/facebook/soloader) | ||
License: [Apache-2](https://github.com/facebook/soloader/blob/master/LICENSE) | ||
|
||
=========================================================================== | ||
|
||
Mapbox GL uses portions of the VersionedParcelable and friends. | ||
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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
dependency-graph-mapbox-libraries.png | ||
src/test/resources/mobile-event* |
Oops, something went wrong.