Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d1cf00e

Browse files
yoavrofetobrun
authored andcommitted
change to Platform View, add user location, simpler token (#71)
1 parent 9c090bb commit d1cf00e

File tree

72 files changed

+1573
-3336
lines changed

Some content is hidden

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

72 files changed

+1573
-3336
lines changed

.circleci/config.yml

Lines changed: 0 additions & 28 deletions
This file was deleted.

.gitignore

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,4 @@
1-
.DS_Store
2-
.atom/
3-
.idea
1+
android/.classpath
2+
android/.project
43
.packages
5-
.pub/
6-
build/
7-
ios/.generated/
8-
packages
9-
pubspec.lock
10-
*.iml
11-
doc/
4+
.vscode/

CHANGELOG.md

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,3 @@
1-
# Changelog for the Flutter Mapbox GL
2-
Mapbox welcomes participation and contributions from everyone. If you'd like to do so please see the [`Contributing Guide`](https://github.com/mapbox/flutter-mapbox-gl/blob/master/CONTRIBUTING.md) first to get started.
1+
## 0.0.1
32

4-
## 0.0.1 - May 7, 2018
5-
- Initial Android proof of concept
6-
- Fix hot-reload issue [#15](https://github.com/mapbox/flutter-mapbox-gl/pull/15)
7-
- Add camera animation functions [#18](https://github.com/mapbox/flutter-mapbox-gl/pull/18)
8-
- Add experimental note to README.md [#26](https://github.com/mapbox/flutter-mapbox-gl/pull/26)
9-
- Add min/max zoomlevel API [#27](https://github.com/mapbox/flutter-mapbox-gl/pull/27)
10-
- Add overview screen to example application [#29](https://github.com/mapbox/flutter-mapbox-gl/pull/29)
11-
- Bugfix on easeTo, update examples [#31](https://github.com/mapbox/flutter-mapbox-gl/pull/31)
12-
- Add Style API [#32](https://github.com/mapbox/flutter-mapbox-gl/pull/32)
13-
- Add improved README.md, add contributing file [#33](https://github.com/mapbox/flutter-mapbox-gl/pull/33)
14-
- Add Projection API [#36](https://github.com/mapbox/flutter-mapbox-gl/pull/36)
15-
- Fix pixelated/overzoomed map [#40](https://github.com/mapbox/flutter-mapbox-gl/pull/40)
3+
* TODO: Describe initial release.

README.md

Lines changed: 8 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -26,38 +26,17 @@ Following examples use Mapbox vector tiles, which require a Mapbox account and a
2626

2727
- Create new Flutter project in your IDE or via terminal
2828
- Add `mapbox_gl: ^0.0.1` dependency to `pubspec.yaml` file and [get the package](https://flutter.io/using-packages/#adding-a-package-dependency-to-an-app)
29-
- Add Mapbox dependency and read token value in Android module `build.gradle` file:
30-
```
31-
android {
32-
compileOptions {
33-
sourceCompatibility JavaVersion.VERSION_1_8
34-
targetCompatibility JavaVersion.VERSION_1_8
35-
}
36-
37-
defaultConfig {
38-
// ...
39-
def mapboxAccessToken = localProperties.getProperty('mapbox.accessToken')
40-
buildConfigField "String", "MAPBOX_ACCESS_TOKEN", "$mapboxAccessToken"
41-
}
42-
}
43-
44-
dependencies {
45-
// ...
46-
implementation "com.mapbox.mapboxsdk:mapbox-android-sdk:6.1.0-SNAPSHOT"
47-
}
48-
```
49-
- Initialize Mapbox in Android `MainActivity` class:
50-
```
51-
override fun onCreate(savedInstanceState: Bundle?) {
52-
// ...
53-
Mapbox.getInstance(this, BuildConfig.MAPBOX_ACCESS_TOKEN)
54-
}
29+
- Add Mapbox read token value in the application manifest `android/app/src/main/AndroidManifest.xml`:
30+
31+
```xml
32+
<manifest ...
33+
<application ...
34+
<meta-data android:name="com.mapbox.token" android:value="YOUR_TOKEN_HERE" />
5535
```
36+
5637
- Import Mapbox widgets and add them to your widget tree
5738
```
58-
import 'package:mapbox_gl/controller.dart';
59-
import 'package:mapbox_gl/flutter_mapbox.dart';
60-
import 'package:mapbox_gl/overlay.dart';
39+
import 'package:mapbox_gl/mapbox_gl.dart';
6140
```
6241

6342
## Documentation
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
connection.project.dir=../example/android
2+
eclipse.preferences.version=1

android/build.gradle

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
group 'com.example.fluttermapbox'
1+
group 'com.mapbox.mapboxgl'
22
version '1.0-SNAPSHOT'
33

44
buildscript {
@@ -8,25 +8,20 @@ buildscript {
88
}
99

1010
dependencies {
11-
classpath 'com.android.tools.build:gradle:3.1.2'
11+
classpath 'com.android.tools.build:gradle:3.2.1'
1212
}
1313
}
1414

15-
rootProject.allprojects { project ->
15+
rootProject.allprojects {
1616
repositories {
1717
google()
1818
jcenter()
1919
mavenCentral()
20-
maven { url "http://oss.sonatype.org/content/repositories/snapshots/" }
2120
}
2221
}
2322

2423
apply plugin: 'com.android.library'
2524

26-
ext {
27-
mapboxSdkVersion = "6.1.0-SNAPSHOT"
28-
}
29-
3025
android {
3126
compileSdkVersion 27
3227

@@ -37,13 +32,11 @@ android {
3732
lintOptions {
3833
disable 'InvalidPackage'
3934
}
40-
4135
compileOptions {
4236
sourceCompatibility JavaVersion.VERSION_1_8
4337
targetCompatibility JavaVersion.VERSION_1_8
4438
}
45-
4639
dependencies {
47-
implementation "com.mapbox.mapboxsdk:mapbox-android-sdk:$mapboxSdkVersion"
40+
implementation "com.mapbox.mapboxsdk:mapbox-android-sdk:6.8.1"
4841
}
4942
}
-53 KB
Binary file not shown.

android/gradle/wrapper/gradle-wrapper.properties

Lines changed: 0 additions & 6 deletions
This file was deleted.

android/gradlew

Lines changed: 0 additions & 172 deletions
This file was deleted.

0 commit comments

Comments
 (0)