Giter Site home page Giter Site logo

dart_phone_metadata's Introduction

Hi there ๐Ÿ‘‹

Cedvdb's GitHub stats

dart_phone_metadata's People

Contributors

bitsdominicada avatar cedvdb avatar ooglek avatar sumitsharansatsangi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

dart_phone_metadata's Issues

Don't duplicate metadata between light and extended?

Hi!
I discover the library and notice one small thing (I might be wrong).
It seems extendedMetadataByIsoCode is a super set of lightMetadataByIsoCode. And extendedMetadata duplicate all the data from lightMetadata.
I'm a bit worried that it is super easy to use both the LightParser and FullParser without noticing. So we will end up pulling both light and extended metadata. Thus, increasing the code size and the memory.

Is it possible to re-organise the metadata so the extendedMetadata only reference the added data. So there is no duplication?

const metaData = /* all shared data */
const extendedMetaData = /* only the extra info */

Metadata json update

Hi, thanks for the package :)

I have kind request to update the metadata json - it's 8 months old and we got some new providers in Philippines that aren't supported by the current version.

Thank you!

Improve the update metadata mechanism

Currently the update steps for updating the metadata are a bit manual as opposed to run a simple script.

the steps are described in resources/readme. A better alternative would be to make an update.sh script that's a run and done thing so it's easier for people to contribute (and for this library to stay up to date with the latest metadata).

The update.sh script would:

  • fetch lib phone number metadata.xml
  • convert the xml to json (using libphonenuber update.sh thing)
  • convert the generated json into our own json format
  • convert the json format into the dart metadata files.
  • clean garbage at the end.

remaining manual steps (or maybe could be automated):

  • bump pubspec.yaml version
  • add changelog line "# semver: updated metadata"

The goal here is to reduce the friction as to reupdate the metadata in the future although it's arguably fine now.

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.