flutter-form-builder-ecosystem / phone_number

Flutter plugin for parsing, formatting and validating international phone numbers.
https://pub.dev/packages/phone_number
BSD 3-Clause "New" or "Revised" License
81 stars 63 forks source link

[CocoaPods]: PhoneNumberKit/PhoneNumberKitCore version differs repo from pub.dev #111

Open hazzo opened 1 year ago

hazzo commented 1 year ago

Is there an existing issue for this?

Package/Plugin version

2.0.1

Platforms

Flutter doctor

Flutter doctor ```bash [!] Flutter (Channel stable, 3.10.6, on macOS 13.3 22E252 darwin-arm64, locale en-ES) ! Warning: `dart` on your path resolves to /opt/homebrew/Cellar/dart/2.19.1/libexec/bin/dart, which is not inside your current Flutter SDK checkout at /Users/guido/fvm/versions/3.10.6. Consider adding /Users/guido/fvm/versions/3.10.6/bin to the front of your path. [✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0-rc5) [✓] Xcode - develop for iOS and macOS (Xcode 14.3.1) [✓] Chrome - develop for the web [✓] Android Studio (version 2022.1) [✓] Connected device (2 available) [✓] Network resources ```

Minimal code example

Code sample Not required

Current Behavior

After updating form_builder_phone_field to last version witch depends on phone_number 2.0.1 I could not build app due to PhoneNumberKit/PhoneNumberKitCore version not found in CocoaPods. Then I realised that phone_number.podspec in repo and in pub dev are different.

Pub.dev podspec: s.dependency 'PhoneNumberKit/PhoneNumberKitCore', '3.5.10'

Repo podspec s.dependency 'PhoneNumberKit/PhoneNumberKitCore', '3.6.6'

Expected Behavior

Updating form_builder_phone_field should use the correct phone_number version and build app correctly.

Steps To Reproduce

  1. flutter pub get
  2. flutter run

Aditional information

No response

hazzo commented 1 year ago

Current temporary solution:

dependency_overrides:
  phone_number:
    git:
      url: https://github.com/flutter-form-builder-ecosystem/phone_number.git
njovy commented 1 year ago

When is it going to be fixed?

immadisairaj commented 1 year ago

This issues still persists, and thanks to @hazzo's comment I am able to run the application.