Skip to content

Fix compile issues in Android (; expected and cannot find symbol)#2184

Merged
rborn merged 1 commit intoreact-native-maps:masterfrom
christoph-jerolimov:fix-compiler-issues
Apr 18, 2018
Merged

Fix compile issues in Android (; expected and cannot find symbol)#2184
rborn merged 1 commit intoreact-native-maps:masterfrom
christoph-jerolimov:fix-compiler-issues

Conversation

@christoph-jerolimov
Copy link
Copy Markdown
Contributor

@christoph-jerolimov christoph-jerolimov commented Apr 11, 2018

Does any other open PR do the same thing?

No.

What issue is this PR fixing?

Fixing a compile issue of the Android version. I did not understand exactly what the (merged) PR #2136 does, but it breaks the Android java build with this error(s):

AirMapUrlTileManager.java:50: error: ';' expected
    view.setMinimumZ(minimumZ)

# .. and after fixing this, also here:

AirMapUrlTile.java:32: error: cannot find symbol
      if(this.maximumZ && zoom > maximumZ) {

How did you test this PR?

  • Use the current master of react-native-maps (for example with yarn upgrade react-native-maps@react-community/react-native-maps#master)
  • Build your android app with react-native run-android
  • This fails with the error above. With this changes it compiles again.

@christoph-jerolimov
Copy link
Copy Markdown
Contributor Author

ping @rborn and @akmjenkins, maybe you can check if the minimumZ > 0 check is what you expect?

@akmjenkins
Copy link
Copy Markdown
Contributor

akmjenkins commented Apr 11, 2018

@jerolimov How embarrassing, a bunch of things about my previous PR went wrong. Thanks for catching this! I forgot that in Android there are default values specified for minimumZ and maximumZ so do we need the check to see if it's greater than 0 in there at all?

@pedrolopes10
Copy link
Copy Markdown

Hi, please merge this PR because master is not compiling in Android since 8 days ago!

@rborn
Copy link
Copy Markdown
Collaborator

rborn commented Apr 18, 2018

@pedrolopes10 can you confirm you tested this PR and it compiles ok ?

@christoph-jerolimov
Copy link
Copy Markdown
Contributor Author

christoph-jerolimov commented Apr 18, 2018

Checkout the diff. It works and it fixes only obvious syntax errors.. 😉

@rborn rborn merged commit 521e5fe into react-native-maps:master Apr 18, 2018
@pedrolopes10
Copy link
Copy Markdown

@rborn sorry about the delay, yes I can confirm that it works fine.

Thanks for the merge and the great work!

pinpong pushed a commit to pinpong/react-native-maps that referenced this pull request Feb 28, 2025
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.

4 participants