NativeScript / NativeScript/android
Determine a suitable default value for minSdkVersion
オープン
まだ誰も着手していません。
- 主要言語
- C++
- スター
- 563
- フォーク
- 144
- 平均マージ
- 10時間 46分
- マージ済み PR(30日)
- 14
説明
The minSdkVersion is currently set to 17 (Android-4 2012).
When building the app with a common plugin like @nativescript/background-http the build will fail.
Execution failed for task ':app:processDebugMainManifest'.
Manifest merger failed : uses-sdk:minSdkVersion 17 cannot be smaller than version 21 declared in library [net.gotev:uploadservice:4.7.0] /Users/ianbrindley/.gradle/caches/transforms-3/24fa1312ea1be6efbab27240facdcfb1/transformed/jetified-uploadservice-4.7.0/AndroidManifest.xml as the library might be using APIs not available in 17
Suggestion: use a compatible library with a minSdk of at most 17,
or increase this project's minSdk version to at least 21,
or use tools:overrideLibrary="net.gotev.uploadservice" to force usage (may lead to runtime failures)
Instead I have to add additional configuration to gradle to get this plugin to work.
I suggest that the minSdkVersion is set to 21.
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
デフォルトの minSdkVersion を定義している Android のビルド設定から始め、@nativescript/background-http で manifest-merger の失敗を再現します。デフォルトを 17 から 21 に変更することによる互換性への影響を確認し、その後、追加の Gradle 設定なしでプラグインをビルドできることを検証します。プロジェクトが合意したデフォルトを使用し、報告されたビルドが成功すれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- android
- 領域
- build-system, mobile
- issue の種類
- 機能追加
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100