Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Commit a3ef1ac

Browse files
committed
[build] - initial commit
0 parents  commit a3ef1ac

File tree

1,061 files changed

+403354
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,061 files changed

+403354
-0
lines changed

.editorconfig

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[*.{kt,kts}]
2+
indent_size=2
3+
insert_final_newline=false
4+
disabled_rules=no-wildcard-imports

.gitignore

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# Gradle files
2+
.gradle/
3+
4+
# IntelliJ files
5+
.idea/
6+
*.iml
7+
8+
# Build files
9+
build/
10+
.externalNativeBuild
11+
**/.cxx
12+
*.so
13+
*.apk
14+
15+
# Local settings
16+
local.properties
17+
gradle/configuration.gradle
18+
19+
# Token file
20+
MapboxGLAndroidSDKTestApp/src/main/res/values/developer-config.xml
21+
22+
# Capture files
23+
captures/
24+
25+
# Generated test cases
26+
MapboxGLAndroidSDKTestApp/src/androidTest/java/com/mapbox/mapboxsdk/testapp/activity/gen/
27+
28+
# Generated list files from code generation
29+
/scripts/generate-style-code.list
30+
31+
# Input files for running render tests
32+
MapboxGLAndroidSDKTestApp/src/main/assets/integration/
33+
34+
# Local AS configuration file
35+
gradle.properties

.gitmodules

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
[submodule "vendor/mapbox-gl-native"]
2+
path = vendor/mapbox-gl-native
3+
url = [email protected]:mapbox/mapbox-gl-native.git
4+
[submodule "vendor/mapbox-events-android"]
5+
path = vendor/mapbox-events-android
6+
url = [email protected]:mapbox/mapbox-events-android.git
7+
[submodule "vendor/mapbox-java"]
8+
path = vendor/mapbox-java
9+
url = [email protected]:mapbox/mapbox-java.git
10+
[submodule "vendor/mapbox-gestures-android"]
11+
path = vendor/mapbox-gestures-android
12+
url = [email protected]:mapbox/mapbox-gestures-android.git

CHANGELOG.md

+1,767
Large diffs are not rendered by default.

DISTRIBUTE.md

+57
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
# Distributing Mapbox GL Native for Android
2+
3+
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.
4+
5+
##### Build types
6+
7+
With a `BUILDTYPE` var you can specify the build type for the `.so` and `.aar` files:
8+
9+
```bash
10+
BUILDTYPE=Debug or BUILDTYPE=Release
11+
```
12+
13+
##### Creating an Android Archive file that supports all ABIs
14+
15+
```sh
16+
BUILDTYPE=Release make apackage
17+
```
18+
19+
This will build native libraries to support following ABIs:
20+
- armeabi
21+
- armeabi-v7a
22+
- arm64-v8a
23+
- x86
24+
- x86_64
25+
- mips
26+
27+
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>`.
28+
29+
##### Build native libraries for a specific ABI
30+
31+
```sh
32+
make android-lib-%%
33+
```
34+
35+
In the command above you'll need to replace `%%` with an ABI key listed below:
36+
37+
| ABI Key | Android ABI |
38+
| ------- | ----------- |
39+
| arm-v5 | armeabi |
40+
| arm-v7 | armeabi-v7a |
41+
| arm-v8 | arm64-v8a |
42+
| x86 | x86 |
43+
| x86-64 | x86_64 |
44+
| mips | mips |
45+
46+
For example, to build the arm64-v8a ABI the Makefile target would be:
47+
48+
```sh
49+
make android-lib-arm-v8
50+
```
51+
52+
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:
53+
54+
```sh
55+
make android-lib-arm-v8
56+
make android-lib-arm-x86-64
57+
```

LICENSE.md

+227
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,227 @@
1+
<!-- This file was generated. Use `make android-license` to update. -->
2+
## Additional Mapbox GL licenses
3+
Mapbox GL uses portions of the Android Arch-Common.
4+
URL: [https://developer.android.com/topic/libraries/architecture/index.html](https://developer.android.com/topic/libraries/architecture/index.html)
5+
License: [The Apache Software License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0.txt)
6+
7+
===========================================================================
8+
9+
Mapbox GL uses portions of the Android Arch-Runtime.
10+
URL: [https://developer.android.com/topic/libraries/architecture/index.html](https://developer.android.com/topic/libraries/architecture/index.html)
11+
License: [The Apache Software License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0.txt)
12+
13+
===========================================================================
14+
15+
Mapbox GL uses portions of the Android Lifecycle LiveData.
16+
URL: [https://developer.android.com/topic/libraries/architecture/index.html](https://developer.android.com/topic/libraries/architecture/index.html)
17+
License: [The Apache Software License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0.txt)
18+
19+
===========================================================================
20+
21+
Mapbox GL uses portions of the Android Lifecycle LiveData Core.
22+
URL: [https://developer.android.com/topic/libraries/architecture/index.html](https://developer.android.com/topic/libraries/architecture/index.html)
23+
License: [The Apache Software License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0.txt)
24+
25+
===========================================================================
26+
27+
Mapbox GL uses portions of the Android Lifecycle Runtime.
28+
URL: [https://developer.android.com/topic/libraries/architecture/index.html](https://developer.android.com/topic/libraries/architecture/index.html)
29+
License: [The Apache Software License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0.txt)
30+
31+
===========================================================================
32+
33+
Mapbox GL uses portions of the Android Lifecycle ViewModel.
34+
URL: [https://developer.android.com/topic/libraries/architecture/index.html](https://developer.android.com/topic/libraries/architecture/index.html)
35+
License: [The Apache Software License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0.txt)
36+
37+
===========================================================================
38+
39+
Mapbox GL uses portions of the Android Lifecycle-Common.
40+
URL: [https://developer.android.com/topic/libraries/architecture/index.html](https://developer.android.com/topic/libraries/architecture/index.html)
41+
License: [The Apache Software License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0.txt)
42+
43+
===========================================================================
44+
45+
Mapbox GL uses portions of the Android Support Library Annotations.
46+
URL: [http://developer.android.com/tools/extras/support-library.html](http://developer.android.com/tools/extras/support-library.html)
47+
License: [The Apache Software License](http://www.apache.org/licenses/LICENSE-2.0.txt)
48+
49+
===========================================================================
50+
51+
Mapbox GL uses portions of the Android Support Library Async Layout Inflater.
52+
URL: [http://developer.android.com/tools/extras/support-library.html](http://developer.android.com/tools/extras/support-library.html)
53+
License: [The Apache Software License](http://www.apache.org/licenses/LICENSE-2.0.txt)
54+
55+
===========================================================================
56+
57+
Mapbox GL uses portions of the Android Support Library collections.
58+
URL: [http://developer.android.com/tools/extras/support-library.html](http://developer.android.com/tools/extras/support-library.html)
59+
License: [The Apache Software License](http://www.apache.org/licenses/LICENSE-2.0.txt)
60+
61+
===========================================================================
62+
63+
Mapbox GL uses portions of the Android Support Library compat.
64+
URL: [http://developer.android.com/tools/extras/support-library.html](http://developer.android.com/tools/extras/support-library.html)
65+
License: [The Apache Software License](http://www.apache.org/licenses/LICENSE-2.0.txt)
66+
67+
===========================================================================
68+
69+
Mapbox GL uses portions of the Android Support Library Coordinator Layout.
70+
URL: [http://developer.android.com/tools/extras/support-library.html](http://developer.android.com/tools/extras/support-library.html)
71+
License: [The Apache Software License](http://www.apache.org/licenses/LICENSE-2.0.txt)
72+
73+
===========================================================================
74+
75+
Mapbox GL uses portions of the Android Support Library core UI.
76+
URL: [http://developer.android.com/tools/extras/support-library.html](http://developer.android.com/tools/extras/support-library.html)
77+
License: [The Apache Software License](http://www.apache.org/licenses/LICENSE-2.0.txt)
78+
79+
===========================================================================
80+
81+
Mapbox GL uses portions of the Android Support Library core utils.
82+
URL: [http://developer.android.com/tools/extras/support-library.html](http://developer.android.com/tools/extras/support-library.html)
83+
License: [The Apache Software License](http://www.apache.org/licenses/LICENSE-2.0.txt)
84+
85+
===========================================================================
86+
87+
Mapbox GL uses portions of the Android Support Library Cursor Adapter.
88+
URL: [http://developer.android.com/tools/extras/support-library.html](http://developer.android.com/tools/extras/support-library.html)
89+
License: [The Apache Software License](http://www.apache.org/licenses/LICENSE-2.0.txt)
90+
91+
===========================================================================
92+
93+
Mapbox GL uses portions of the Android Support Library Custom View.
94+
URL: [http://developer.android.com/tools/extras/support-library.html](http://developer.android.com/tools/extras/support-library.html)
95+
License: [The Apache Software License](http://www.apache.org/licenses/LICENSE-2.0.txt)
96+
97+
===========================================================================
98+
99+
Mapbox GL uses portions of the Android Support Library Custom View.
100+
URL: [http://developer.android.com/tools/extras/support-library.html](http://developer.android.com/tools/extras/support-library.html)
101+
License: [The Apache Software License](http://www.apache.org/licenses/LICENSE-2.0.txt)
102+
103+
===========================================================================
104+
105+
Mapbox GL uses portions of the Android Support Library Document File.
106+
URL: [http://developer.android.com/tools/extras/support-library.html](http://developer.android.com/tools/extras/support-library.html)
107+
License: [The Apache Software License](http://www.apache.org/licenses/LICENSE-2.0.txt)
108+
109+
===========================================================================
110+
111+
Mapbox GL uses portions of the Android Support Library Drawer Layout.
112+
URL: [http://developer.android.com/tools/extras/support-library.html](http://developer.android.com/tools/extras/support-library.html)
113+
License: [The Apache Software License](http://www.apache.org/licenses/LICENSE-2.0.txt)
114+
115+
===========================================================================
116+
117+
Mapbox GL uses portions of the Android Support Library fragment.
118+
URL: [http://developer.android.com/tools/extras/support-library.html](http://developer.android.com/tools/extras/support-library.html)
119+
License: [The Apache Software License](http://www.apache.org/licenses/LICENSE-2.0.txt)
120+
121+
===========================================================================
122+
123+
Mapbox GL uses portions of the Android Support Library Interpolators.
124+
URL: [http://developer.android.com/tools/extras/support-library.html](http://developer.android.com/tools/extras/support-library.html)
125+
License: [The Apache Software License](http://www.apache.org/licenses/LICENSE-2.0.txt)
126+
127+
===========================================================================
128+
129+
Mapbox GL uses portions of the Android Support Library loader.
130+
URL: [http://developer.android.com/tools/extras/support-library.html](http://developer.android.com/tools/extras/support-library.html)
131+
License: [The Apache Software License](http://www.apache.org/licenses/LICENSE-2.0.txt)
132+
133+
===========================================================================
134+
135+
Mapbox GL uses portions of the Android Support Library Local Broadcast Manager.
136+
URL: [http://developer.android.com/tools/extras/support-library.html](http://developer.android.com/tools/extras/support-library.html)
137+
License: [The Apache Software License](http://www.apache.org/licenses/LICENSE-2.0.txt)
138+
139+
===========================================================================
140+
141+
Mapbox GL uses portions of the Android Support Library Print.
142+
URL: [http://developer.android.com/tools/extras/support-library.html](http://developer.android.com/tools/extras/support-library.html)
143+
License: [The Apache Software License](http://www.apache.org/licenses/LICENSE-2.0.txt)
144+
145+
===========================================================================
146+
147+
Mapbox GL uses portions of the Android Support Library Sliding Pane Layout.
148+
URL: [http://developer.android.com/tools/extras/support-library.html](http://developer.android.com/tools/extras/support-library.html)
149+
License: [The Apache Software License](http://www.apache.org/licenses/LICENSE-2.0.txt)
150+
151+
===========================================================================
152+
153+
Mapbox GL uses portions of the Android Support Library View Pager.
154+
URL: [http://developer.android.com/tools/extras/support-library.html](http://developer.android.com/tools/extras/support-library.html)
155+
License: [The Apache Software License](http://www.apache.org/licenses/LICENSE-2.0.txt)
156+
157+
===========================================================================
158+
159+
Mapbox GL uses portions of the Gson.
160+
License: [Apache 2.0](http://www.apache.org/licenses/LICENSE-2.0.txt)
161+
162+
===========================================================================
163+
164+
Mapbox GL uses portions of the Mapbox Accounts SDK for Android.
165+
URL: [https://github.com/mapbox/mapbox-accounts-android](https://github.com/mapbox/mapbox-accounts-android)
166+
License: [Mapbox Terms of Service](https://www.mapbox.com/tos/)
167+
168+
===========================================================================
169+
170+
Mapbox GL uses portions of the Mapbox Android Core Library.
171+
URL: [https://github.com/mapbox/mapbox-events-android](https://github.com/mapbox/mapbox-events-android)
172+
License: [The Apache Software License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0.txt)
173+
174+
===========================================================================
175+
176+
Mapbox GL uses portions of the Mapbox Android Gestures Library.
177+
URL: [https://github.com/mapbox/mapbox-gestures-android](https://github.com/mapbox/mapbox-gestures-android)
178+
License: [BSD](https://opensource.org/licenses/BSD-2-Clause)
179+
180+
===========================================================================
181+
182+
Mapbox GL uses portions of the Mapbox Android Telemetry Library.
183+
URL: [https://github.com/mapbox/mapbox-events-android](https://github.com/mapbox/mapbox-events-android)
184+
License: [The Apache Software License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0.txt)
185+
186+
===========================================================================
187+
188+
Mapbox GL uses portions of the Mapbox Java SDK.
189+
URL: [https://github.com/mapbox/mapbox-java](https://github.com/mapbox/mapbox-java)
190+
License: [The Apache Software License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0.txt)
191+
192+
===========================================================================
193+
194+
Mapbox GL uses portions of the Mapbox Java SDK.
195+
URL: [https://github.com/mapbox/mapbox-java](https://github.com/mapbox/mapbox-java)
196+
License: [The Apache Software License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0.txt)
197+
198+
===========================================================================
199+
200+
Mapbox GL uses portions of the OkHttp.
201+
License: [Apache 2.0](http://www.apache.org/licenses/LICENSE-2.0.txt)
202+
203+
===========================================================================
204+
205+
Mapbox GL uses portions of the Okio.
206+
License: [Apache 2.0](http://www.apache.org/licenses/LICENSE-2.0.txt)
207+
208+
===========================================================================
209+
210+
Mapbox GL uses portions of the SoLoader.
211+
URL: [https://github.com/facebook/soloader](https://github.com/facebook/soloader)
212+
License: [Apache-2](https://github.com/facebook/soloader/blob/master/LICENSE)
213+
214+
===========================================================================
215+
216+
Mapbox GL uses portions of the VersionedParcelable and friends.
217+
URL: [http://developer.android.com/tools/extras/support-library.html](http://developer.android.com/tools/extras/support-library.html)
218+
License: [The Apache Software License](http://www.apache.org/licenses/LICENSE-2.0.txt)
219+
220+
===========================================================================
221+
222+
Mapbox GL uses portions of the Gradle License Plugin.
223+
URL: [https://github.com/jaredsburrows/gradle-license-plugin](https://github.com/jaredsburrows/gradle-license-plugin)
224+
License: [The Apache Software License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0.txt)
225+
226+
===========================================================================
227+

MapboxGLAndroidSDK/.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
dependency-graph-mapbox-libraries.png
2+
src/test/resources/mobile-event*

0 commit comments

Comments
 (0)