[general] moving ios and android project under ./platform folder
3
.gitmodules
vendored
@@ -55,3 +55,6 @@
|
|||||||
[submodule "platform/ios/platform/darwin/docs/theme"]
|
[submodule "platform/ios/platform/darwin/docs/theme"]
|
||||||
path = platform/ios/platform/darwin/docs/theme
|
path = platform/ios/platform/darwin/docs/theme
|
||||||
url = https://github.com/mapbox/jazzy-theme.git
|
url = https://github.com/mapbox/jazzy-theme.git
|
||||||
|
[submodule "platform/android/vendor/mapbox-events-android"]
|
||||||
|
path = platform/android/vendor/mapbox-events-android
|
||||||
|
url = https://github.com/mapbox/mapbox-events-android.git
|
||||||
|
|||||||
30
README.md
@@ -6,10 +6,10 @@ For iOS and Android
|
|||||||
|
|
||||||
| SDK | Build | Build status |
|
| SDK | Build | Build status |
|
||||||
|---------------------------------------------------------------|---------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
|---------------------------------------------------------------|---------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
||||||
| [Mapbox Maps SDK for iOS](mapbox-gl-native-ios/platform/ios/) | CI | [](https://github.com/maptiler/maplibre-gl-native/workflows/ios-ci) |
|
| [Mapbox Maps SDK for iOS](platform/ios/) | CI | [](https://github.com/maptiler/maplibre-gl-native/workflows/ios-ci) |
|
||||||
| [Mapbox Maps SDK for iOS](mapbox-gl-native-ios/platform/ios/) | Release | [](https://github.com/maptiler/maplibre-gl-native/workflows/ios-release) |
|
| [Mapbox Maps SDK for iOS](platform/ios/) | Release | [](https://github.com/maptiler/maplibre-gl-native/workflows/ios-release) |
|
||||||
| [Mapbox Maps SDK for Android](mapbox-gl-native-android/) | CI | [](https://github.com/maptiler/maplibre-gl-native/workflows/android-ci) |
|
| [Mapbox Maps SDK for Android](platform/android/) | CI | [](https://github.com/maptiler/maplibre-gl-native/workflows/android-ci) |
|
||||||
| [Mapbox Maps SDK for Android](mapbox-gl-native-iandroid/) | Release | [](https://github.com/maptiler/maplibre-gl-native/workflows/android-release) |
|
| [Mapbox Maps SDK for Android](platform/android/) | Release | [](https://github.com/maptiler/maplibre-gl-native/workflows/android-release) |
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
@@ -57,40 +57,40 @@ You can also download pre-build from releases in this repository.
|
|||||||
### Source code checkout
|
### Source code checkout
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
git clone --recurse-submodules https://github.com/maptiler/mapbox-gl-mobile.git
|
git clone --recurse-submodules https://github.com/maptiler/maplibre-gl-native.git
|
||||||
```
|
```
|
||||||
|
|
||||||
### Build
|
### Build
|
||||||
|
|
||||||
#### Android
|
#### Android
|
||||||
|
|
||||||
> Make sure you have set Android SDK path in mapbox-gl-native-android/local.properties, variable sdk.dir
|
> Make sure you have set Android SDK path in platform/android/local.properties, variable sdk.dir
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
cd mapbox-gl-native-android
|
cd platform/android
|
||||||
BUILDTYPE=Release make apackage
|
BUILDTYPE=Release make apackage
|
||||||
```
|
```
|
||||||
|
|
||||||
Binaries are produced in `mapbox-gl-native-android/MapboxGLAndroidSDK/build/outputs/aar/MapboxGLAndroidSDK-release.aar`
|
Binaries are produced in `platform/android/MapboxGLAndroidSDK/build/outputs/aar/MapboxGLAndroidSDK-release.aar`
|
||||||
Please refer to [Mapbox Maps SDK for Android](mapbox-gl-native-android/) for detailed instructions.
|
Please refer to [Mapbox Maps SDK for Android](platform/android/) for detailed instructions.
|
||||||
|
|
||||||
#### iOS
|
#### iOS
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
cd mapbox-gl-native-ios
|
cd platform/ios
|
||||||
make xcframework BUILDTYPE=Release
|
make xcframework BUILDTYPE=Release
|
||||||
```
|
```
|
||||||
|
|
||||||
The packaging script will produce a `build/ios/pkg/dynamic`
|
The packaging script will produce a `platform/ios/build/ios/pkg/dynamic`
|
||||||
Please refer to [Mapbox Maps SDK for iOS](mapbox-gl-native-ios/platform/ios/) for detailed instructions.
|
Please refer to [Mapbox Maps SDK for iOS](platform/ios/platform/ios/) for detailed instructions.
|
||||||
|
|
||||||
|
|
||||||
#### MacOS
|
#### MacOS
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
cd mapbox-gl-native-ios
|
cd platform/ios
|
||||||
make xpackage
|
make xpackage
|
||||||
```
|
```
|
||||||
|
|
||||||
This produces a `Mapbox.framework` in the `build/macos/pkg/` folder.
|
This produces a `Mapbox.framework` in the `platform/ios/build/macos/pkg/` folder.
|
||||||
Please refer to [Mapbox Maps SDK for macos](mapbox-gl-native-ios/platform/macos/) for detailed instructions.
|
Please refer to [Mapbox Maps SDK for macos](platform/ios/platform/macos/) for detailed instructions.
|
||||||
|
Before Width: | Height: | Size: 3.3 KiB After Width: | Height: | Size: 3.3 KiB |
|
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 2.2 KiB |
|
Before Width: | Height: | Size: 4.7 KiB After Width: | Height: | Size: 4.7 KiB |
|
Before Width: | Height: | Size: 7.5 KiB After Width: | Height: | Size: 7.5 KiB |
|
Before Width: | Height: | Size: 1010 B After Width: | Height: | Size: 1010 B |