Code Monkey home page Code Monkey logo

Comments (6)

Nimrodda avatar Nimrodda commented on June 1, 2024 1

1.2.0 is released to pub.dev

from flutter_nsd.

egaga avatar egaga commented on June 1, 2024

Oh, it seems this has been fixed? 7caf86a#diff-d522d7763ab9c2fbd638d00d7042d518aa2f9a15e0a7ae3da32a9ca782b5baf9

But flutter package repository has old code!? Could you publish newer version there, please?

from flutter_nsd.

Nimrodda avatar Nimrodda commented on June 1, 2024

I haven't had the chance yet to test the latest code in master so that's why I haven't published it. Have you tried cloning the repo and trying it locally to see if it fixes the issue? You can use a path instead of a version in pubspec.yaml to try it out.

dependencies:
  flutter_nsd: 
    path: /path/to/repo

from flutter_nsd.

egaga avatar egaga commented on June 1, 2024

Thanks, I tried it earlier quickly, but not comprehensively, just by replacing the plugin file locally in the flutter cache directory.
I didn't review the code properly but hopefully it works even when one of the resolving fails, so that the rest of the queue will be handled.

Great to know you can reference by repo, thanks!

from flutter_nsd.

Nimrodda avatar Nimrodda commented on June 1, 2024

I did a brief test of master branch yesterday evening and found out that the discovered service is emitted twice in my case. Prior to #6 the same test resulted in one emitted service. I'll have to take a deeper look either in the following evenings or in the weekend before I publish 1.2.0 to pub.dev.

Have you noticed the same issue on your end?

from flutter_nsd.

egaga avatar egaga commented on June 1, 2024

No, I just re-tested, and everything works, without duplicates.

Sure, you get duplicates if you press start / stop multiple times. e.g. If you press the start, and a little bit later again, you might see multiple values, but that's because the example code adds new values to the services.

In the listen callback, no duplicates, either.
Also if I register a new service after the app is already running, the listener finds it 👍🏼 .

I tested with Android Pixel 3a and also verified that iPhone works the same (both tested using usb-connection)
Of course, I have done this only a couple of times, so there could be some problem. Did you get a duplicate just by pressing start once and with a fresh build/run?

I ran flutter clean and build having this dependency definition for flutter_nsd:

flutter_nsd:
    git:
      url: git://github.com/Nimrodda/flutter_nsd.git

from flutter_nsd.

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.