Suggest Migration to Declarative Plugin DSL in Android Gradle Build
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 35/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- android, flutter
- 領域
- build-system, mobile
調査の方向性
リンクされている Flutter 移行ドキュメントを読み、その後 android/settings.gradle と android/app/build.gradle を確認して、現在のレガシーなプラグイン適用と提案されている宣言的な構造を比較してください。これらのファイルで plugin management ブロックと plugins ブロックが従来の buildscript と apply plugin の使用に置き換われば、作業は完了です。
索引モデルが issue の本文から書いたものです。
説明
Feature Suggestion
Feature Description
I would like to suggest an update for the Android Gradle build configuration within the Firebase Quickstart Flutter project to utilize Gradle's declarative Plugin DSL, moving away from the legacy imperative apply script method. This suggestion aligns with the best practices recommended by Flutter from version 3.16 onwards and aims to enhance build configuration maintainability and facilitate easier future enhancements.
Why Is This Change Important?
- Adherence to Best Practices: According to Flutter's official documentation, the recommended approach for applying Gradle plugins in Flutter projects is now through the declarative Plugin DSL. Adopting this method would ensure the project remains up-to-date with Flutter's best practices.
- Improved Maintainability: By utilizing the Plugin DSL, the project's Gradle plugin management becomes cleaner and more straightforward, improving the overall maintainability of the build configuration.
- Future-Proofing: Preparing the project for potential future updates that could leverage new Gradle features, possibly including the adoption of Kotlin for Gradle scripts.
Proposed Changes
The update would involve modifications to the android/settings.gradle and android/app/build.gradle files to define and apply plugins using the declarative syntax. The key adjustments include:
- Implementing the
pluginManagementandplugins {}blocks insettings.gradlefor managing plugin versions and applications. - Eliminating the legacy
buildscriptblocks and replacing imperativeapply plugin:commands with the declarativeplugins {}block inapp/build.gradle.
- 主要言語
- Dart
- スター
- 199
- フォーク
- 75
- PR マージ指標
- 30日以内にマージされた PR はありません
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
firebase/quickstart-flutter のほかの issue
-
難易度 5/5 1週間以上 初心者へのやさしさ 10/100
firebase/quickstart-flutter#116 · コメント 2 件 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 15/100
firebase/quickstart-flutter#115 ·
-
ExecutionException: java.lang.NullPointerException: Firebase Messaging component is not present, オープン
難易度 4/5 3〜5日 初心者へのやさしさ 20/100
firebase/quickstart-flutter#88 · コメント 1 件 ·
-
firebase/quickstart-flutter#13 · 担当者 1 名 ·
firebase/quickstart-flutter の issue をすべて見る
似ている issue
-
status: needs-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 90/100
a2ui-project/a2ui#2782 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
MaikuB/flutter_local_notifications#2832 · コメント 1 件 ·
-
bug triage
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
fluttercommunity/plus_plugins#3979 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
flutter-webrtc/flutter-webrtc#2206 ·
-
from.page-issue
難易度 1/5 1時間未満 初心者へのやさしさ 85/100