platform_device_id icon indicating copy to clipboard operation
platform_device_id copied to clipboard

platform_device_id-1.0.1 depends on discontinued package: device_info

Open 4bSolutionsLLP opened this issue 3 years ago • 3 comments

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

4bSolutionsLLP avatar Mar 04 '22 14:03 4bSolutionsLLP

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.

ollyde avatar May 28 '22 10:05 ollyde

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?

ecp-003 avatar Jul 11 '22 06:07 ecp-003

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

wangbo4020 avatar Aug 30 '22 07:08 wangbo4020