BestBurning / platform_device_id

flutter plugin to get device id
https://pub.dev/packages?q=platform_device_id
BSD 3-Clause "New" or "Revised" License
81 stars 203 forks source link

platform_device_id-1.0.1 depends on discontinued package: device_info #26

Open 4bSolutionsLLP opened 2 years ago

4bSolutionsLLP commented 2 years ago

platform_device_id-1.0.1 depends on device_info, which has been discontinued - see: https://pub.dev/packages/device_info and is replaced by device_info_plus: https://pub.dev/packages/device_info_plus

ollyde commented 2 years ago

For anyone else who needs to update. This will fix the build error fatal error: module 'device_info' not found for production releases.

For now you can use this inside the pubspec.yaml

platform_device_id:
    git:
      url: https://github.com/ollydixon/platform_device_id
      ref: master
      path: platform_device_id/

I've also created a pull request to fix it; https://github.com/BestBurning/platform_device_id/pull/28

Let's hope the author sees it.

ecp-003 commented 2 years ago

I would like to clarify, since this plugin depends on device_info (now device-Info_plus), which removes AndroidId getter on device_info_plus: ^4.0.0. Will this affect this plugin's get the androidid function as well?

wangbo4020 commented 2 years ago

For anyone else who needs to update. This will fix the build error fatal error: module 'device_info' not found for production releases.

For now you can use this inside the pubspec.yaml

platform_device_id:
    git:
      url: https://github.com/ollydixon/platform_device_id
      ref: master
      path: platform_device_id/

I've also created a pull request to fix it; #28

Let's hope the author sees it.

There is a new, separate https://pub.dev/packages/android_id for getting the correct androidId