[android] Move into platform subdirectory
10
.gitignore
vendored
@@ -4,11 +4,11 @@
|
||||
*.actual.png
|
||||
*.diff.png
|
||||
*.pyc
|
||||
/android/debug
|
||||
/android/sdk
|
||||
/android/**/.classpath
|
||||
/android/**/.project
|
||||
/android/**/.settings/
|
||||
/platform/android/debug
|
||||
/platform/android/sdk
|
||||
/platform/android/**/.classpath
|
||||
/platform/android/**/.project
|
||||
/platform/android/**/.settings/
|
||||
/mason_packages
|
||||
/config/*.gypi
|
||||
/build
|
||||
|
||||
12
Makefile
@@ -87,13 +87,13 @@ android-lib: ; $(RUN) HOST=android Makefile/androidapp
|
||||
|
||||
# Builds the selected/default Android library
|
||||
android: android-lib
|
||||
cd android && ./gradlew --parallel --max-workers=$(JOBS) assemble$(BUILDTYPE)
|
||||
cd platform/android && ./gradlew --parallel --max-workers=$(JOBS) assemble$(BUILDTYPE)
|
||||
|
||||
# Builds all android architectures for distribution.
|
||||
apackage: android-lib-arm-v5 android-lib-arm-v7
|
||||
apackage: android-lib-x86
|
||||
apackage: android-lib-mips
|
||||
cd android && ./gradlew --parallel-threads=$(JOBS) assemble$(BUILDTYPE)
|
||||
cd platform/android && ./gradlew --parallel-threads=$(JOBS) assemble$(BUILDTYPE)
|
||||
|
||||
# Builds the Node.js library
|
||||
.PHONY: node
|
||||
@@ -158,8 +158,12 @@ clean: clear_sqlite_cache clear_xcode_cache
|
||||
-rm -rf ./ios/build
|
||||
-rm -rf ./test/build
|
||||
-rm -rf ./config/*.gypi
|
||||
-rm -rf ./android/build ./android/MapboxGLAndroidSDK/build ./android/MapboxGLAndroidSDKTestApp/build
|
||||
-rm -rf ./android/MapboxGLAndroidSDK/src/main/jniLibs ./android/MapboxGLAndroidSDK/src/main/obj.target ./android/MapboxGLAndroidSDK/src/main/assets
|
||||
-rm -rf ./platform/android/build \
|
||||
./platform/android/MapboxGLAndroidSDK/build \
|
||||
./platform/android/MapboxGLAndroidSDKTestApp/build \
|
||||
./platform/android/MapboxGLAndroidSDK/src/main/jniLibs \
|
||||
./platform/android/MapboxGLAndroidSDK/src/main/obj.target \
|
||||
./platform/android/MapboxGLAndroidSDK/src/main/assets
|
||||
|
||||
distclean: clean
|
||||
-rm -rf ./mason_packages
|
||||
|
||||
@@ -26,10 +26,10 @@ you can edit `developer-config.xml` and add the value manually.
|
||||
|
||||
## Developing In Android Studio
|
||||
|
||||
To work with the Mapbox Android SDK, you'll first need to get it set up as a Project in Android Studio. To do so Open Android Studio and select "Import project (Eclipse ADT, Gradle, etc.)" from the Welcome to Android Studio dialog. From there select the `android` directory from the local file system where `mapbox-gl-native` was cloned. For example:
|
||||
To work with the Mapbox Android SDK, you'll first need to get it set up as a Project in Android Studio. To do so Open Android Studio and select "Import project (Eclipse ADT, Gradle, etc.)" from the Welcome to Android Studio dialog. From there select the `platform/android` directory from the local file system where `mapbox-gl-native` was cloned. For example:
|
||||
|
||||
```sh
|
||||
/Users/<user>/development/mapbox-gl-native/android
|
||||
/Users/<user>/development/mapbox-gl-native/platform/android
|
||||
```
|
||||
|
||||
The Mapbox Android SDK is a multi-module Gradle based project. Specifically, the SDK itself is an [Android Library](http://developer.android.com/tools/projects/index.html#LibraryModules) module and it utilizes a companion [test module](http://developer.android.com/tools/projects/index.html#testing) (aka "the TestApp") for daily development. When Android Studio finishes importing the project both `MapboxGLAndroidSDK` and `MapboxGLAndroidSDKTestApp` modules should be visible.
|
||||
|
||||
|
Before Width: | Height: | Size: 3.3 KiB After Width: | Height: | Size: 3.3 KiB |
|
Before Width: | Height: | Size: 3.7 KiB After Width: | Height: | Size: 3.7 KiB |
|
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB |
|
Before Width: | Height: | Size: 2.7 KiB After Width: | Height: | Size: 2.7 KiB |
|
Before Width: | Height: | Size: 5.8 KiB After Width: | Height: | Size: 5.8 KiB |
|
Before Width: | Height: | Size: 2.5 KiB After Width: | Height: | Size: 2.5 KiB |
|
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.9 KiB |
|
Before Width: | Height: | Size: 2.4 KiB After Width: | Height: | Size: 2.4 KiB |
|
Before Width: | Height: | Size: 1010 B After Width: | Height: | Size: 1010 B |
|
Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 2.0 KiB |
|
Before Width: | Height: | Size: 3.5 KiB After Width: | Height: | Size: 3.5 KiB |
|
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.9 KiB |
|
Before Width: | Height: | Size: 4.4 KiB After Width: | Height: | Size: 4.4 KiB |
|
Before Width: | Height: | Size: 4.7 KiB After Width: | Height: | Size: 4.7 KiB |
|
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.9 KiB |
|
Before Width: | Height: | Size: 3.4 KiB After Width: | Height: | Size: 3.4 KiB |
|
Before Width: | Height: | Size: 8.0 KiB After Width: | Height: | Size: 8.0 KiB |
|
Before Width: | Height: | Size: 3.2 KiB After Width: | Height: | Size: 3.2 KiB |
|
Before Width: | Height: | Size: 6.9 KiB After Width: | Height: | Size: 6.9 KiB |
|
Before Width: | Height: | Size: 7.4 KiB After Width: | Height: | Size: 7.4 KiB |
|
Before Width: | Height: | Size: 2.9 KiB After Width: | Height: | Size: 2.9 KiB |
|
Before Width: | Height: | Size: 4.9 KiB After Width: | Height: | Size: 4.9 KiB |
|
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 13 KiB |
|
Before Width: | Height: | Size: 4.6 KiB After Width: | Height: | Size: 4.6 KiB |
|
Before Width: | Height: | Size: 9.2 KiB After Width: | Height: | Size: 9.2 KiB |
|
Before Width: | Height: | Size: 928 B After Width: | Height: | Size: 928 B |
|
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 18 KiB |
|
Before Width: | Height: | Size: 3.9 KiB After Width: | Height: | Size: 3.9 KiB |
|
Before Width: | Height: | Size: 5.1 KiB After Width: | Height: | Size: 5.1 KiB |
|
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 11 KiB |