Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GeoJson plugin #38

Closed
wants to merge 23 commits into from
Closed

GeoJson plugin #38

wants to merge 23 commits into from

Conversation

bkhezry
Copy link

@bkhezry bkhezry commented May 23, 2017

#37

  • create GeoJson plugin use for loading GeoJson file from url, assets or path.
  • add OnLoadingGeoJsonListener for handle preload, loaded and loadFailed event of GeoJson loading.
  • create onMarkerClickListener for handle marker click event and return JSONObject of point properties.

@zugaldia zugaldia requested review from tobrun and cammace May 25, 2017 17:28
@zugaldia
Copy link
Member

Pinging @tobrun and/or @cammace to help us review this PR. Great job @bkhezry and thank you very much for the contribution!

@bkhezry
Copy link
Author

bkhezry commented May 25, 2017

Thank you @zugaldia.
Please review this PR @tobrun

Copy link
Member

@tobrun tobrun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I reviewed a part of the PR, most comments are related to codestyle, missing javadoc etc.

One thing I would like to see differently is that you are constantly using a new GeoJsonPluginBuilder. This is not ideal if a user want to constantly update their GeoJson. It would make more sense building it once and allowing to update the underlying sources direclty on the plugin. This will be faster and will result in generating less garbage.

public void onMapReady(MapboxMap mapboxMap) {
this.mapboxMap = mapboxMap;
mapboxMap.moveCamera(CameraUpdateFactory.newLatLngZoom(new LatLng(32.6546, 51.6680), 7));

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit whiteline

}
}
})
.draw();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

a builder pattern normally ends with calling a method with using the build() method signature

}
})
.draw();
requestExternalStoragePermission();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if I understand requesting the external storage permissions after you have read from permissions?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

may I use https://github.com/afollestad/material-dialogs#file-selector-dialogs for selecting GeoJson file from external storage?

if (checkSelfPermission(android.Manifest.permission.WRITE_EXTERNAL_STORAGE)
== PackageManager.PERMISSION_GRANTED) {
Log.v(TAG, "Permission is granted");
//drawFromPath();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

comment, no-op

}
} else { //permission is automatically granted on sdk<23 upon installation
Log.v(TAG, "Permission is granted");
//drawFromPath();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

comment, no-op

@@ -0,0 +1,12 @@
package com.mapbox.mapboxsdk.plugins.geojson.listener;

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missing javadoc

public interface OnLoadingGeoJsonListener {
void onPreLoading();

void onLoaded();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missing javadoc

package com.mapbox.mapboxsdk.plugins.geojson.listener;

public interface OnLoadingGeoJsonListener {
void onPreLoading();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missing javadoc

import org.json.JSONObject;

public interface OnMarkerEventListener {
/**
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missing javadoc

import com.mapbox.mapboxsdk.annotations.Marker;

import org.json.JSONObject;

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missing javadoc

@bkhezry
Copy link
Author

bkhezry commented May 30, 2017

It would make more sense building it once and allowing to update the underlying sources directly on the plugin.

@tobrun
I will be adding setUrl, setAssetsName and setFilePath functions to GeoJsonPlugin. after creating it with GeoJsonPluginBuilder we can update GeoJson data with them.

LatLngBounds.Builder builder = new LatLngBounds.Builder();
try {
JSONObject json = new JSONObject(geoJson);
JSONArray features = json.getJSONArray("features");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have an open source library that handles GeoJson transparently without the need to use the lower level JSONObject classes. Any reason not to use for the plugin? It comes includes by default with the Maps SDK so you should be able to use it without having to add any external dependencies.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't know about this GeoJson handler. I just use example of this link
https://www.mapbox.com/android-sdk/examples/geojson/
Will be replacing.
Thanks for your review.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bkhezry Thank you! We'll definitely update that example to use the library I was mentioning, good catch.

@bkhezry
Copy link
Author

bkhezry commented Jun 3, 2017

almost of review have been fixed.

Why is getting a random material color part of this plugin?

with multiple Polygon or Polyline in GeoJson file, selecting random color may be useful.
photo_2017-06-03_23-05-00

This 50+ line method has multiple responsibilities and can be re factored into smaller classes that can be unit tested.

manual parsing GeoJson string replaced with SDK of Mapbox.
please review this PR again and write the review if necessary.
@tobrun @zugaldia

@zugaldia
Copy link
Member

Hey @bkhezry, sorry this plugin is taking some time to review, we're sprinting to finalize v5.1.0 of the SDK and this is taking all our resources (release candidate launched last week mapbox/mapbox-gl-native#9231 🎉 ). Thank you for your patience!

@bkhezry
Copy link
Author

bkhezry commented Jul 6, 2017

Hi @zugaldia,
What happened to review of this PR? 😊

@zugaldia
Copy link
Member

zugaldia commented Jul 7, 2017

@bkhezry My bad - holidays got us derailed O:-) We'll be looking into it next week.

@tobrun Anything else to add to your review?

@tobrun
Copy link
Member

tobrun commented Jul 14, 2017

@bkhezry changes looking great! will work on putting the finishing touches on this so we can get this merged. Great job! Thank you for the contribution.

@tobrun
Copy link
Member

tobrun commented Jul 19, 2017

@bkhezry things are looking good for a first release, can you resolve the conflicting files?

bkhezry added 5 commits July 20, 2017 01:06
# Conflicts:
#	plugins/app/build.gradle
#	plugins/app/src/main/AndroidManifest.xml
#	plugins/app/src/main/res/values/strings.xml
#	plugins/build.gradle
#	plugins/settings.gradle
…eojson-plugin

# Conflicts:
#	plugins/app/build.gradle
#	plugins/app/src/main/AndroidManifest.xml
#	plugins/build.gradle
#	plugins/settings.gradle
…eojson-plugin

# Conflicts:
#	plugins/app/build.gradle
#	plugins/app/src/main/AndroidManifest.xml
#	plugins/build.gradle
#	plugins/settings.gradle
@bkhezry
Copy link
Author

bkhezry commented Jul 19, 2017

Hi @tobrun
The conflicting files have been resolved :-)

@tobrun
Copy link
Member

tobrun commented Aug 1, 2017

@bkhezry our CI build is failing on checkstyle:


[ant:checkstyle] [ERROR] /bitrise/src/plugins/app/src/main/java/com/mapbox/mapboxsdk/plugins/testapp/activity/GeoJsonActivity.java:41: Line is longer than 120 characters (found 167). [LineLength]
[ant:checkstyle] [ERROR] /bitrise/src/plugins/app/src/main/java/com/mapbox/mapboxsdk/plugins/testapp/activity/GeoJsonActivity.java:42: 'member def modifier' has incorrect indentation level 4, expected level should be 2. [Indentation]
[ant:checkstyle] [ERROR] /bitrise/src/plugins/app/src/main/java/com/mapbox/mapboxsdk/plugins/testapp/activity/GeoJsonActivity.java:44: 'member def modifier' has incorrect indentation level 4, expected level should be 2. [Indentation]
[ant:checkstyle] [ERROR] /bitrise/src/plugins/app/src/main/java/com/mapbox/mapboxsdk/plugins/testapp/activity/GeoJsonActivity.java:46: 'member def modifier' has incorrect indentation level 4, expected level should be 2. [Indentation]
[ant:checkstyle] [ERROR] /bitrise/src/plugins/app/src/main/java/com/mapbox/mapboxsdk/plugins/testapp/activity/GeoJsonActivity.java:48: 'member def modifier' has incorrect indentation level 4, expected level should be 2. [Indentation]
[ant:checkstyle] [ERROR] /bitrise/src/plugins/app/src/main/java/com/mapbox/mapboxsdk/plugins/testapp/activity/GeoJsonActivity.java:50: 'member def modifier' has incorrect indentation level 4, expected level should be 2. [Indentation]
[ant:checkstyle] [ERROR] /bitrise/src/plugins/app/src/main/java/com/mapbox/mapboxsdk/plugins/testapp/activity/GeoJsonActivity.java:52: 'member def modifier' has incorrect indentation level 4, expected level should be 2. [Indentation]
[ant:checkstyle] [ERROR] /bitrise/src/plugins/app/src/main/java/com/mapbox/mapboxsdk/plugins/testapp/activity/GeoJsonActivity.java:53: 'member def modifier' has incorrect indentation level 4, expected level should be 2. [Indentation]
[ant:checkstyle] [ERROR] /bitrise/src/plugins/app/src/main/java/com/mapbox/mapboxsdk/plugins/testapp/activity/GeoJsonActivity.java:55: 'method def modifier' has incorrect indentation level 4, expected level should be 2. [Indentation]
[ant:checkstyle] [ERROR] /bitrise/src/plugins/app/src/main/java/com/mapbox/mapboxsdk/plugins/testapp/activity/GeoJsonActivity.java:57: 'method def' child has incorrect indentation level 8, expected level should be 4. [Indentation]
[ant:checkstyle] [ERROR] /bitrise/src/plugins/app/src/main/java/com/mapbox/mapboxsdk/plugins/testapp/activity/GeoJsonActivity.java:58: 'method def' child has incorrect indentation level 8, expected level should be 4. [Indentation]
[ant:checkstyle] [ERROR] /bitrise/src/plugins/app/src/main/java/com/mapbox/mapboxsdk/plugins/testapp/activity/GeoJsonActivity.java:59: 'method def' child has incorrect indentation level 8, expected level should be 4. [Indentation]
[ant:checkstyle] [ERROR] /bitrise/src/plugins/app/src/main/java/com/mapbox/mapboxsdk/plugins/testapp/activity/GeoJsonActivity.java:60: 'method def' child has incorrect indentation level 8, expected level should be 4. [Indentation]
[ant:checkstyle] [ERROR] /bitrise/src/plugins/app/src/main/java/com/mapbox/mapboxsdk/plugins/testapp/activity/GeoJsonActivity.java:62: 'method def' child has incorrect indentation level 8, expected level should be 4. [Indentation]
[ant:checkstyle] [ERROR] /bitrise/src/plugins/app/src/main/java/com/mapbox/mapboxsdk/plugins/testapp/activity/GeoJsonActivity.java:63: 'method def' child has incorrect indentation level 8, expected level should be 4. [Indentation]
[ant:checkstyle] [ERROR] /bitrise/src/plugins/app/src/main/java/com/mapbox/mapboxsdk/plugins/testapp/activity/GeoJsonActivity.java:64: 'method def' child has incorrect indentation level 8, expected level should be 4. [Indentation]
[ant:checkstyle] [ERROR] /bitrise/src/plugins/app/src/main/java/com/mapbox/mapboxsdk/plugins/testapp/activity/GeoJsonActivity.java:65: 'method def rcurly' has incorrect indentation level 4, expected level should be 2. [Indentation]
[ant:checkstyle] [ERROR] /bitrise/src/plugins/app/src/main/java/com/mapbox/mapboxsdk/plugins/testapp/activity/GeoJsonActivity.java:67: 'method def modifier' has incorrect indentation level 4, expected level should be 2. [Indentation]
[ant:checkstyle] [ERROR] /bitrise/src/plugins/app/src/main/java/com/mapbox/mapboxsdk/plugins/testapp/activity/GeoJsonActivity.java:69: 'method def' child has incorrect indentation level 8, expected level should be 4. [Indentation]
[ant:checkstyle] [ERROR] /bitrise/src/plugins/app/src/main/java/com/mapbox/mapboxsdk/plugins/testapp/activity/GeoJsonActivity.java:70: 'method def' child has incorrect indentation level 8, expected level should be 4. [Indentation]
[ant:checkstyle] [ERROR] /bitrise/src/plugins/app/src/main/java/com/mapbox/mapboxsdk/plugins/testapp/activity/GeoJsonActivity.java:79: 'method def' child has incorrect indentation level 8, expected level should be 4. [Indentation]
[ant:checkstyle] [ERROR] /bitrise/src/plugins/app/src/main/java/com/mapbox/mapboxsdk/plugins/testapp/activity/GeoJsonActivity.java:81: 'method def rcurly' has incorrect indentation level 4, expected level should be 2. [Indentation]
[ant:checkstyle] [ERROR] /bitrise/src/plugins/app/src/main/java/com/mapbox/mapboxsdk/plugins/testapp/activity/GeoJsonActivity.java:83: 'method def modifier' has incorrect indentation level 4, expected level should be 2. [Indentation]
[ant:checkstyle] [ERROR] /bitrise/src/plugins/app/src/main/java/com/mapbox/mapboxsdk/plugins/testapp/activity/GeoJsonActivity.java:85: 'if' has incorrect indentation level 8, expected level should be 4. [Indentation]
[ant:checkstyle] [ERROR] /bitrise/src/plugins/app/src/main/java/com/mapbox/mapboxsdk/plugins/testapp/activity/GeoJsonActivity.java:86: 'if' child has incorrect indentation level 12, expected level should be 6. [Indentation]
[ant:checkstyle] [ERROR] /bitrise/src/plugins/app/src/main/java/com/mapbox/mapboxsdk/plugins/testapp/activity/GeoJsonActivity.java:87: 'if' child has incorrect indentation level 12, expected level should be 6. [Indentation]
[ant:checkstyle] [ERROR] /bitrise/src/plugins/app/src/main/java/com/mapbox/mapboxsdk/plugins/testapp/activity/GeoJsonActivity.java:89: 'if rcurly' has incorrect indentation level 8, expected level should be 4. [Indentation]
[ant:checkstyle] [ERROR] /bitrise/src/plugins/app/src/main/java/com/mapbox/mapboxsdk/plugins/testapp/activity/GeoJsonActivity.java:90: 'method def rcurly' has incorrect indentation level 4, expected level should be 2. [Indentation]
[ant:checkstyle] [ERROR] /bitrise/src/plugins/app/src/main/java/com/mapbox/mapboxsdk/plugins/testapp/activity/GeoJsonActivity.java:92: 'method def modifier' has incorrect indentation level 4, expected level should be 2. [Indentation]
[ant:checkstyle] [ERROR] /bitrise/src/plugins/app/src/main/java/com/mapbox/mapboxsdk/plugins/testapp/activity/GeoJsonActivity.java:94: 'if' has incorrect indentation level 8, expected level should be 4. [Indentation]
[ant:checkstyle] [ERROR] /bitrise/src/plugins/app/src/main/java/com/mapbox/mapboxsdk/plugins/testapp/activity/GeoJsonActivity.java:95: 'if' child has incorrect indentation level 12, expected level should be 6. [Indentation]
[ant:checkstyle] [ERROR] /bitrise/src/plugins/app/src/main/java/com/mapbox/mapboxsdk/plugins/testapp/activity/GeoJsonActivity.java:96: 'if' child has incorrect indentation level 12, expected level should be 6. [Indentation]
[ant:checkstyle] [ERROR] /bitrise/src/plugins/app/src/main/java/com/mapbox/mapboxsdk/plugins/testapp/activity/GeoJsonActivity.java:97: 'if rcurly' has incorrect indentation level 8, expected level should be 4. [Indentation]
[ant:checkstyle] [ERROR] /bitrise/src/plugins/app/src/main/java/com/mapbox/mapboxsdk/plugins/testapp/activity/GeoJsonActivity.java:98: 'method def rcurly' has incorrect indentation level 4, expected level should be 2. [Indentation]
[ant:checkstyle] [ERROR] /bitrise/src/plugins/app/src/main/java/com/mapbox/mapboxsdk/plugins/testapp/activity/GeoJsonActivity.java:100: 'method def modifier' has incorrect indentation level 4, expected level should be 2. [Indentation]
[ant:checkstyle] [ERROR] /bitrise/src/plugins/app/src/main/java/com/mapbox/mapboxsdk/plugins/testapp/activity/GeoJsonActivity.java:102: 'if' has incorrect indentation level 8, expected level should be 4. [Indentation]
[ant:checkstyle] [ERROR] /bitrise/src/plugins/app/src/main/java/com/mapbox/mapboxsdk/plugins/testapp/activity/GeoJsonActivity.java:103: 'if' has incorrect indentation level 12, expected level should be 6. [Indentation]
[ant:checkstyle] [ERROR] /bitrise/src/plugins/app/src/main/java/com/mapbox/mapboxsdk/plugins/testapp/activity/GeoJsonActivity.java:105: 'if' child has incorrect indentation level 16, expected level should be 8. [Indentation]
[ant:checkstyle] [ERROR] /bitrise/src/plugins/app/src/main/java/com/mapbox/mapboxsdk/plugins/testapp/activity/GeoJsonActivity.java:106: 'if' child has incorrect indentation level 16, expected level should be 8. [Indentation]
[ant:checkstyle] [ERROR] /bitrise/src/plugins/app/src/main/java/com/mapbox/mapboxsdk/plugins/testapp/activity/GeoJsonActivity.java:107: 'if rcurly' has incorrect indentation level 12, expected level should be 6. [Indentation]
[ant:checkstyle] [ERROR] /bitrise/src/plugins/app/src/main/java/com/mapbox/mapboxsdk/plugins/testapp/activity/GeoJsonActivity.java:109: 'else' child has incorrect indentation level 16, expected level should be 8. [Indentation]
[ant:checkstyle] [ERROR] /bitrise/src/plugins/app/src/main/java/com/mapbox/mapboxsdk/plugins/testapp/activity/GeoJsonActivity.java:110: 'else' child has incorrect indentation level 16, expected level should be 8. [Indentation]
[ant:checkstyle] [ERROR] /bitrise/src/plugins/app/src/main/java/com/mapbox/mapboxsdk/plugins/testapp/activity/GeoJsonActivity.java:111: 'else rcurly' has incorrect indentation level 12, expected level should be 6. [Indentation]
[ant:checkstyle] [ERROR] /bitrise/src/plugins/app/src/main/java/com/mapbox/mapboxsdk/plugins/testapp/activity/GeoJsonActivity.java:112: 'if rcurly' has incorrect indentation level 8, expected level should be 4. [Indentation]
[ant:checkstyle] [ERROR] /bitrise/src/plugins/app/src/main/java/com/mapbox/mapboxsdk/plugins/testapp/activity/GeoJsonActivity.java:113: 'else' child has incorrect indentation level 12, expected level should be 6. [Indentation]
[ant:checkstyle] [ERROR] /bitrise/src/plugins/app/src/main/java/com/mapbox/mapboxsdk/plugins/testapp/activity/GeoJsonActivity.java:114: 'else' child has incorrect indentation level 12, expected level should be 6. [Indentation]
[ant:checkstyle] [ERROR] /bitrise/src/plugins/app/src/main/java/com/mapbox/mapboxsdk/plugins/testapp/activity/GeoJsonActivity.java:115: 'else rcurly' has incorrect indentation level 8, expected level should be 4. [Indentation]
[ant:checkstyle] [ERROR] /bitrise/src/plugins/app/src/main/java/com/mapbox/mapboxsdk/plugins/testapp/activity/GeoJsonActivity.java:117: 'method def rcurly' has incorrect indentation level 4, expected level should be 2. [Indentation]
[ant:checkstyle] [ERROR] /bitrise/src/plugins/app/src/main/java/com/mapbox/mapboxsdk/plugins/testapp/activity/GeoJsonActivity.java:119: 'method def modifier' has incorrect indentation level 4, expected level should be 2. [Indentation]
[ant:checkstyle] [ERROR] /bitrise/src/plugins/app/src/main/java/com/mapbox/mapboxsdk/plugins/testapp/activity/GeoJsonActivity.java:120: 'method def' child has incorrect indentation level 8, expected level should be 4. [Indentation]
[ant:checkstyle] [ERROR] /bitrise/src/plugins/app/src/main/java/com/mapbox/mapboxsdk/plugins/testapp/activity/GeoJsonActivity.java:124: 'method def rcurly' has incorrect indentation level 4, expected level should be 2. [Indentation]
[ant:checkstyle] [ERROR] /bitrise/src/plugins/app/src/main/java/com/mapbox/mapboxsdk/plugins/testapp/activity/GeoJsonActivity.java:131: 'method def modifier' has incorrect indentation level 4, expected level should be 2. [Indentation]
[ant:checkstyle] [ERROR] /bitrise/src/plugins/app/src/main/java/com/mapbox/mapboxsdk/plugins/testapp/activity/GeoJsonActivity.java:132: 'method def' child has incorrect indentation level 8, expected level should be 4. [Indentation]
[ant:checkstyle] [ERROR] /bitrise/src/plugins/app/src/main/java/com/mapbox/mapboxsdk/plugins/testapp/activity/GeoJsonActivity.java:133: 'if' has incorrect indentation level 8, expected level should be 4. [Indentation]
[ant:checkstyle] [ERROR] /bitrise/src/plugins/app/src/main/java/com/mapbox/mapboxsdk/plugins/testapp/activity/GeoJsonActivity.java:134: 'if' child has incorrect indentation level 12, expected level should be 6. [Indentation]
[ant:checkstyle] [ERROR] /bitrise/src/plugins/app/src/main/java/com/mapbox/mapboxsdk/plugins/testapp/activity/GeoJsonActivity.java:135: 'if' child has incorrect indentation level 12, expected level should be 6. [Indentation]
[ant:checkstyle] [ERROR] /bitrise/src/plugins/app/src/main/java/com/mapbox/mapboxsdk/plugins/testapp/activity/GeoJsonActivity.java:136: 'if rcurly' has incorrect indentation level 8, expected level should be 4. [Indentation]
[ant:checkstyle] [ERROR] /bitrise/src/plugins/app/src/main/java/com/mapbox/mapboxsdk/plugins/testapp/activity/GeoJsonActivity.java:137: 'method def rcurly' has incorrect indentation level 4, expected level should be 2. [Indentation]
[ant:checkstyle] [ERROR] /bitrise/src/plugins/app/src/main/java/com/mapbox/mapboxsdk/plugins/testapp/activity/GeoJsonActivity.java:139: 'method def modifier' has incorrect indentation level 4, expected level should be 2. [Indentation]
[ant:checkstyle] [ERROR] /bitrise/src/plugins/app/src/main/java/com/mapbox/mapboxsdk/plugins/testapp/activity/GeoJsonActivity.java:141: 'method def' child has incorrect indentation level 8, expected level should be 4. [Indentation]
[ant:checkstyle] [ERROR] /bitrise/src/plugins/app/src/main/java/com/mapbox/mapboxsdk/plugins/testapp/activity/GeoJsonActivity.java:142: 'method def' child has incorrect indentation level 8, expected level should be 4. [Indentation]
[ant:checkstyle] [ERROR] /bitrise/src/plugins/app/src/main/java/com/mapbox/mapboxsdk/plugins/testapp/activity/GeoJsonActivity.java:143: 'method def rcurly' has incorrect indentation level 4, expected level should be 2. [Indentation]
[ant:checkstyle] [ERROR] /bitrise/src/plugins/app/src/main/java/com/mapbox/mapboxsdk/plugins/testapp/activity/GeoJsonActivity.java:145: 'method def modifier' has incorrect indentation level 4, expected level should be 2. [Indentation]
[ant:checkstyle] [ERROR] /bitrise/src/plugins/app/src/main/java/com/mapbox/mapboxsdk/plugins/testapp/activity/GeoJsonActivity.java:147: 'method def' child has incorrect indentation level 8, expected level should be 4. [Indentation]
[ant:checkstyle] [ERROR] /bitrise/src/plugins/app/src/main/java/com/mapbox/mapboxsdk/plugins/testapp/activity/GeoJsonActivity.java:148: 'method def' child has incorrect indentation level 8, expected level should be 4. [Indentation]
[ant:checkstyle] [ERROR] /bitrise/src/plugins/app/src/main/java/com/mapbox/mapboxsdk/plugins/testapp/activity/GeoJsonActivity.java:149: 'method def rcurly' has incorrect indentation level 4, expected level should be 2. [Indentation]
[ant:checkstyle] [ERROR] /bitrise/src/plugins/app/src/main/java/com/mapbox/mapboxsdk/plugins/testapp/activity/GeoJsonActivity.java:151: 'method def modifier' has incorrect indentation level 4, expected level should be 2. [Indentation]
[ant:checkstyle] [ERROR] /bitrise/src/plugins/app/src/main/java/com/mapbox/mapboxsdk/plugins/testapp/activity/GeoJsonActivity.java:153: 'method def' child has incorrect indentation level 8, expected level should be 4. [Indentation]
[ant:checkstyle] [ERROR] /bitrise/src/plugins/app/src/main/java/com/mapbox/mapboxsdk/plugins/testapp/activity/GeoJsonActivity.java:154: 'method def' child has incorrect indentation level 8, expected level should be 4. [Indentation]
[ant:checkstyle] [ERROR] /bitrise/src/plugins/app/src/main/java/com/mapbox/mapboxsdk/plugins/testapp/activity/GeoJsonActivity.java:155: 'method def rcurly' has incorrect indentation level 4, expected level should be 2. [Indentation]
[ant:checkstyle] [ERROR] /bitrise/src/plugins/app/src/main/java/com/mapbox/mapboxsdk/plugins/testapp/activity/GeoJsonActivity.java:157: 'method def modifier' has incorrect indentation level 4, expected level should be 2. [Indentation]
[ant:checkstyle] [ERROR] /bitrise/src/plugins/app/src/main/java/com/mapbox/mapboxsdk/plugins/testapp/activity/GeoJsonActivity.java:159: 'method def' child has incorrect indentation level 8, expected level should be 4. [Indentation]
[ant:checkstyle] [ERROR] /bitrise/src/plugins/app/src/main/java/com/mapbox/mapboxsdk/plugins/testapp/activity/GeoJsonActivity.java:160: 'method def' child has incorrect indentation level 8, expected level should be 4. [Indentation]
[ant:checkstyle] [ERROR] /bitrise/src/plugins/app/src/main/java/com/mapbox/mapboxsdk/plugins/testapp/activity/GeoJsonActivity.java:161: 'method def rcurly' has incorrect indentation level 4, expected level should be 2. [Indentation]
[ant:checkstyle] [ERROR] /bitrise/src/plugins/app/src/main/java/com/mapbox/mapboxsdk/plugins/testapp/activity/GeoJsonActivity.java:163: 'method def modifier' has incorrect indentation level 4, expected level should be 2. [Indentation]
[ant:checkstyle] [ERROR] /bitrise/src/plugins/app/src/main/java/com/mapbox/mapboxsdk/plugins/testapp/activity/GeoJsonActivity.java:165: 'method def' child has incorrect indentation level 8, expected level should be 4. [Indentation]
[ant:checkstyle] [ERROR] /bitrise/src/plugins/app/src/main/java/com/mapbox/mapboxsdk/plugins/testapp/activity/GeoJsonActivity.java:166: 'method def' child has incorrect indentation level 8, expected level should be 4. [Indentation]
[ant:checkstyle] [ERROR] /bitrise/src/plugins/app/src/main/java/com/mapbox/mapboxsdk/plugins/testapp/activity/GeoJsonActivity.java:167: 'method def rcurly' has incorrect indentation level 4, expected level should be 2. [Indentation]
[ant:checkstyle] [ERROR] /bitrise/src/plugins/app/src/main/java/com/mapbox/mapboxsdk/plugins/testapp/activity/GeoJsonActivity.java:169: 'method def modifier' has incorrect indentation level 4, expected level should be 2. [Indentation]
[ant:checkstyle] [ERROR] /bitrise/src/plugins/app/src/main/java/com/mapbox/mapboxsdk/plugins/testapp/activity/GeoJsonActivity.java:171: 'method def' child has incorrect indentation level 8, expected level should be 4. [Indentation]
[ant:checkstyle] [ERROR] /bitrise/src/plugins/app/src/main/java/com/mapbox/mapboxsdk/plugins/testapp/activity/GeoJsonActivity.java:172: 'method def' child has incorrect indentation level 8, expected level should be 4. [Indentation]
[ant:checkstyle] [ERROR] /bitrise/src/plugins/app/src/main/java/com/mapbox/mapboxsdk/plugins/testapp/activity/GeoJsonActivity.java:173: 'method def rcurly' has incorrect indentation level 4, expected level should be 2. [Indentation]
[ant:checkstyle] [ERROR] /bitrise/src/plugins/app/src/main/java/com/mapbox/mapboxsdk/plugins/testapp/activity/GeoJsonActivity.java:175: 'method def modifier' has incorrect indentation level 4, expected level should be 2. [Indentation]
[ant:checkstyle] [ERROR] /bitrise/src/plugins/app/src/main/java/com/mapbox/mapboxsdk/plugins/testapp/activity/GeoJsonActivity.java:177: 'method def' child has incorrect indentation level 8, expected level should be 4. [Indentation]
[ant:checkstyle] [ERROR] /bitrise/src/plugins/app/src/main/java/com/mapbox/mapboxsdk/plugins/testapp/activity/GeoJsonActivity.java:178: 'method def' child has incorrect indentation level 8, expected level should be 4. [Indentation]
[ant:checkstyle] [ERROR] /bitrise/src/plugins/app/src/main/java/com/mapbox/mapboxsdk/plugins/testapp/activity/GeoJsonActivity.java:179: 'method def rcurly' has incorrect indentation level 4, expected level should be 2. [Indentation]
[ant:checkstyle] [ERROR] /bitrise/src/plugins/app/src/main/java/com/mapbox/mapboxsdk/plugins/testapp/activity/GeoJsonActivity.java:181: 'method def modifier' has incorrect indentation level 4, expected level should be 2. [Indentation]
[ant:checkstyle] [ERROR] /bitrise/src/plugins/app/src/main/java/com/mapbox/mapboxsdk/plugins/testapp/activity/GeoJsonActivity.java:182: Line is longer than 120 characters (found 121). [LineLength]
[ant:checkstyle] [ERROR] /bitrise/src/plugins/app/src/main/java/com/mapbox/mapboxsdk/plugins/testapp/activity/GeoJsonActivity.java:183: 'method def' child has incorrect indentation level 8, expected level should be 4. [Indentation]
[ant:checkstyle] [ERROR] /bitrise/src/plugins/app/src/main/java/com/mapbox/mapboxsdk/plugins/testapp/activity/GeoJsonActivity.java:184: 'if' has incorrect indentation level 8, expected level should be 4. [Indentation]
[ant:checkstyle] [ERROR] /bitrise/src/plugins/app/src/main/java/com/mapbox/mapboxsdk/plugins/testapp/activity/GeoJsonActivity.java:185: 'if' child has incorrect indentation level 12, expected level should be 6. [Indentation]
[ant:checkstyle] [ERROR] /bitrise/src/plugins/app/src/main/java/com/mapbox/mapboxsdk/plugins/testapp/activity/GeoJsonActivity.java:186: 'if' child has incorrect indentation level 12, expected level should be 6. [Indentation]
[ant:checkstyle] [ERROR] /bitrise/src/plugins/app/src/main/java/com/mapbox/mapboxsdk/plugins/testapp/activity/GeoJsonActivity.java:187: 'if rcurly' has incorrect indentation level 8, expected level should be 4. [Indentation]
[ant:checkstyle] [ERROR] /bitrise/src/plugins/app/src/main/java/com/mapbox/mapboxsdk/plugins/testapp/activity/GeoJsonActivity.java:188: 'method def rcurly' has incorrect indentation level 4, expected level should be 2. [Indentation]
[ant:checkstyle] [ERROR] /bitrise/src/plugins/app/src/main/java/com/mapbox/mapboxsdk/plugins/testapp/activity/GeoJsonActivity.java:190: 'method def modifier' has incorrect indentation level 4, expected level should be 2. [Indentation]
[ant:checkstyle] [ERROR] /bitrise/src/plugins/app/src/main/java/com/mapbox/mapboxsdk/plugins/testapp/activity/GeoJsonActivity.java:192: 'method def' child has incorrect indentation level 8, expected level should be 4. [Indentation]
[ant:checkstyle] [ERROR] /bitrise/src/plugins/app/src/main/java/com/mapbox/mapboxsdk/plugins/testapp/activity/GeoJsonActivity.java:193: 'method def rcurly' has incorrect indentation level 4, expected level should be 2. [Indentation]
[ant:checkstyle] [ERROR] /bitrise/src/plugins/app/src/main/java/com/mapbox/mapboxsdk/plugins/testapp/activity/GeoJsonActivity.java:195: 'method def modifier' has incorrect indentation level 4, expected level should be 2. [Indentation]
[ant:checkstyle] [ERROR] /bitrise/src/plugins/app/src/main/java/com/mapbox/mapboxsdk/plugins/testapp/activity/GeoJsonActivity.java:198: 'method def rcurly' has incorrect indentation level 4, expected level should be 2. [Indentation]
[ant:checkstyle] [ERROR] /bitrise/src/plugins/app/src/main/java/com/mapbox/mapboxsdk/plugins/testapp/activity/GeoJsonActivity.java:200: 'method def modifier' has incorrect indentation level 4, expected level should be 2. [Indentation]
[ant:checkstyle] [ERROR] /bitrise/src/plugins/app/src/main/java/com/mapbox/mapboxsdk/plugins/testapp/activity/GeoJsonActivity.java:202: 'method def' child has incorrect indentation level 8, expected level should be 4. [Indentation]
[ant:checkstyle] [ERROR] /bitrise/src/plugins/app/src/main/java/com/mapbox/mapboxsdk/plugins/testapp/activity/GeoJsonActivity.java:203: 'method def rcurly' has incorrect indentation level 4, expected level should be 2. [Indentation]
[ant:checkstyle] [ERROR] /bitrise/src/plugins/app/src/main/java/com/mapbox/mapboxsdk/plugins/testapp/activity/GeoJsonActivity.java:205: 'method def modifier' has incorrect indentation level 4, expected level should be 2. [Indentation]
[ant:checkstyle] [ERROR] /bitrise/src/plugins/app/src/main/java/com/mapbox/mapboxsdk/plugins/testapp/activity/GeoJsonActivity.java:207: 'method def' child has incorrect indentation level 8, expected level should be 4. [Indentation]
[ant:checkstyle] [ERROR] /bitrise/src/plugins/app/src/main/java/com/mapbox/mapboxsdk/plugins/testapp/activity/GeoJsonActivity.java:208: 'method def' child has incorrect indentation level 8, expected level should be 4. [Indentation]
[ant:checkstyle] [ERROR] /bitrise/src/plugins/app/src/main/java/com/mapbox/mapboxsdk/plugins/testapp/activity/GeoJsonActivity.java:209: 'method def rcurly' has incorrect indentation level 4, expected level should be 2. [Indentation]
[ant:checkstyle] [ERROR] /bitrise/src/plugins/app/src/main/java/com/mapbox/mapboxsdk/plugins/testapp/activity/GeoJsonActivity.java:211: 'method def modifier' has incorrect indentation level 4, expected level should be 2. [Indentation]
[ant:checkstyle] [ERROR] /bitrise/src/plugins/app/src/main/java/com/mapbox/mapboxsdk/plugins/testapp/activity/GeoJsonActivity.java:213: 'method def' child has incorrect indentation level 8, expected level should be 4. [Indentation]
[ant:checkstyle] [ERROR] /bitrise/src/plugins/app/src/main/java/com/mapbox/mapboxsdk/plugins/testapp/activity/GeoJsonActivity.java:214: 'method def' child has incorrect indentation level 8, expected level should be 4. [Indentation]
[ant:checkstyle] [ERROR] /bitrise/src/plugins/app/src/main/java/com/mapbox/mapboxsdk/plugins/testapp/activity/GeoJsonActivity.java:214: Line is longer than 120 characters (found 123). [LineLength]
[ant:checkstyle] [ERROR] /bitrise/src/plugins/app/src/main/java/com/mapbox/mapboxsdk/plugins/testapp/activity/GeoJsonActivity.java:215: 'method def' child has incorrect indentation level 8, expected level should be 4. [Indentation]
[ant:checkstyle] [ERROR] /bitrise/src/plugins/app/src/main/java/com/mapbox/mapboxsdk/plugins/testapp/activity/GeoJsonActivity.java:216: 'method def rcurly' has incorrect indentation level 4, expected level should be 2. [Indentation]
[ant:checkstyle] [ERROR] /bitrise/src/plugins/app/src/main/java/com/mapbox/mapboxsdk/plugins/testapp/activity/GeoJsonActivity.java:218: 'method def modifier' has incorrect indentation level 4, expected level should be 2. [Indentation]
[ant:checkstyle] [ERROR] /bitrise/src/plugins/app/src/main/java/com/mapbox/mapboxsdk/plugins/testapp/activity/GeoJsonActivity.java:220: 'method def' child has incorrect indentation level 8, expected level should be 4. [Indentation]
[ant:checkstyle] [ERROR] /bitrise/src/plugins/app/src/main/java/com/mapbox/mapboxsdk/plugins/testapp/activity/GeoJsonActivity.java:221: 'method def rcurly'

Here is more information how to setup checkstyle cfr Mapbox checkstyle.

@bkhezry
Copy link
Author

bkhezry commented Aug 1, 2017

@tobrun checkstyle errors fixed. sorry about that.

@tobrun tobrun mentioned this pull request Aug 1, 2017
@tobrun
Copy link
Member

tobrun commented Aug 1, 2017

CI isn't starting, going to create a new PR in #70, additionally will cleanup git history.
Thanks again for the contribution @bkhezry!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants