Code Monkey home page Code Monkey logo

Comments (12)

wasappi avatar wasappi commented on September 28, 2024

+1
Makes the GFQuery observers unusable for the moment

from geofire-objc.

jcampbell05 avatar jcampbell05 commented on September 28, 2024

This is the code to make it somewhat usable.

public extension GFQuery {

    //Enum for compatibility with Geofire's Obj-C Interface
    enum EventType: UInt32
    {
        case Entered = 0
        case Exited
        case Moved
    }
}

You then have to use it like so:

let type = GFEventType(rawValue: eventType.rawValue)

ref.observeEventType(type)
{
//Block code
}

Would be 200% better if we didn't need this work around :)

from geofire-objc.

jwngr avatar jwngr commented on September 28, 2024

@jdimond / @mcdonamp - Can either of you please provide some feedback here?

from geofire-objc.

rursache avatar rursache commented on September 28, 2024

is also queryAtLocation affected by this? im trying the basic implementation but i get no response

from geofire-objc.

asciimike avatar asciimike commented on September 28, 2024

@iphonewsro the issue here is that the enums aren't exported correctly in Swift--it shouldn't affect the API responses if the enums exist. Is the issue that you can't get the method to work (as in it doesn't compile), or that it compiles but doesn't return what you expect?

We're taking a look into exporting the correct enums using NSEnum--as always, PRs are welcome :)

from geofire-objc.

rursache avatar rursache commented on September 28, 2024

it compiles but doesn't return what i expect. probably i'll just need help implementing this

from geofire-objc.

asciimike avatar asciimike commented on September 28, 2024

Ok, then it's not related to this. StackOverflow or our Google Group might be good places to start looking for similar problems, and if you can't find anything posting there asking for help would good.

from geofire-objc.

asciimike avatar asciimike commented on September 28, 2024

Ok, should be solved in #29. Might be a few days before we merge it, and then get it out to Cocoapods. Since NS_ENUM is backwards compatible, I believe this will be 1.1.3.

from geofire-objc.

ricardosobral avatar ricardosobral commented on September 28, 2024

Would be useful to get either this asap in an interim or know when 1.1.3 is coming out. Tks. Quite unusable in iOS without these enums.

from geofire-objc.

jwngr avatar jwngr commented on September 28, 2024

Sorry about that! We will get 1.1.3 out on Monday.

from geofire-objc.

asciimike avatar asciimike commented on September 28, 2024

Hey folks--hold up on the release with some CocoaPods issues, so it might still be a few days. That said, the code is merged and the v1.1.3 branch exists, so you can use:

pod 'Geofire', :git => 'https://github.com/firebase/geofire-objc.git', :tag => 'v1.1.3'

Thanks!

from geofire-objc.

jwngr avatar jwngr commented on September 28, 2024

Version 1.1.3 has been released to CocoaPods. Thanks for your patience. Let us know if you run into any issues with the latest bits!

from geofire-objc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.