Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Warning: Your pubspec.yaml includes an "author" section which is no longer used and may be removed

Tags:

flutter

I want to publish my library and same as before, I have included author name in the pubspec file.
Running flutter pub pub publish --dry-run gives me the following warning:

Warning: Your pubspec.yaml includes an "author" section which is no longer used and may be removed

I will authorize my publishing using the email in my author value. If I remove it, how will I authorize.

I'll be thankful to know more about this.

like image 282
Mahdi-Malv Avatar asked Dec 22 '22 19:12

Mahdi-Malv


2 Answers

Instead of using author or authors to verify yourself, the new way is that you make yourself a verified publisher.

According to documents:

To create a verified publisher, follow these steps:

  • Go to pub.dev.

  • Log in to pub.dev using a Google Account.

  • In the user menu in the top-right corner, select Create Publisher.

  • Enter the domain name that you want to associate with your publisher (for example, dart.dev), and click Create Publisher.

  • In the confirmation dialog, select OK.

  • If prompted, complete the verification flow, which opens the Google Search Console.

  • When adding DNS records, it may take a few hours before the Search Console reflects the changes. When the verification flow is complete, return to step 4.

like image 134
Mahdi-Malv Avatar answered Jan 12 '23 01:01

Mahdi-Malv


You should now use authors instead of author:

name: my_package
authors:
  - [email protected]
  - [email protected]
...
like image 45
Rémi Rousselet Avatar answered Jan 12 '23 00:01

Rémi Rousselet