Flutterのパッケージを自作してみる③(実装編②)

こんにちは、株式会社Pentagonでアプリ開発をしている石渡港です。
https://pentagon.tokyo
前回
https://note.com/embed/notes/n9ef4e1bbd572
今日は、Flutterのパッケージを自作してみる③(実装編②) について簡単にまとめたいと思います。

目次

■ 公開する準備を整える

pub publish

実行後、Auth認証が走ると思います。その後、LICENSEが入力されていない場合は下記のようなエラーがでます。

LICENSE file LICENSE contains generic TODO.

今回は下記サイトを参考にLICENSEを作成しました。

Copyright <YEAR> <COPYRIGHT HOLDER>

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

■ 何故かエラーが🤔

LICENSE作成後再度コマンドを実行しましたが下記のようなエラーが…

hoge has insufficient permissions to upload new versions of package ripple_effect.

■ 原因

なんと同じパッケージ名のものが存在していたようです😂

■ 次回

次回は名前を考えて続きを行います🙋
https://note.com/embed/notes/ncb0107960c68

採用情報はこちら
目次