-
Notifications
You must be signed in to change notification settings - Fork 0
Kotlin 2.0.0 互換性のためのライブラリアップデート #22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -9,12 +9,12 @@ plugins { | |||||||||||||||||||||
|
|
||||||||||||||||||||||
| android { | ||||||||||||||||||||||
| namespace 'jp.co.yumemi.android.code_check' | ||||||||||||||||||||||
| compileSdk 31 | ||||||||||||||||||||||
| compileSdk 35 | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
| defaultConfig { | ||||||||||||||||||||||
| applicationId "jp.co.yumemi.android.codecheck" | ||||||||||||||||||||||
| minSdk 23 | ||||||||||||||||||||||
| targetSdk 31 | ||||||||||||||||||||||
| targetSdk 35 | ||||||||||||||||||||||
| versionCode 1 | ||||||||||||||||||||||
| versionName "1.0" | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
|
|
@@ -28,11 +28,11 @@ android { | |||||||||||||||||||||
| } | ||||||||||||||||||||||
| } | ||||||||||||||||||||||
| compileOptions { | ||||||||||||||||||||||
| sourceCompatibility JavaVersion.VERSION_11 | ||||||||||||||||||||||
| targetCompatibility JavaVersion.VERSION_11 | ||||||||||||||||||||||
| sourceCompatibility JavaVersion.VERSION_17 | ||||||||||||||||||||||
| targetCompatibility JavaVersion.VERSION_17 | ||||||||||||||||||||||
| } | ||||||||||||||||||||||
| kotlinOptions { | ||||||||||||||||||||||
| jvmTarget = '11' | ||||||||||||||||||||||
| jvmTarget = '17' | ||||||||||||||||||||||
| } | ||||||||||||||||||||||
| buildFeatures { | ||||||||||||||||||||||
| viewBinding true | ||||||||||||||||||||||
|
|
@@ -42,27 +42,27 @@ android { | |||||||||||||||||||||
|
|
||||||||||||||||||||||
| dependencies { | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
| implementation 'androidx.core:core-ktx:1.6.0' | ||||||||||||||||||||||
| implementation 'androidx.appcompat:appcompat:1.3.1' | ||||||||||||||||||||||
| implementation 'com.google.android.material:material:1.4.0' | ||||||||||||||||||||||
| implementation 'androidx.constraintlayout:constraintlayout:2.1.1' | ||||||||||||||||||||||
| implementation 'androidx.recyclerview:recyclerview:1.2.1' | ||||||||||||||||||||||
| implementation 'androidx.core:core-ktx:1.15.0' | ||||||||||||||||||||||
| implementation 'androidx.appcompat:appcompat:1.7.0' | ||||||||||||||||||||||
| implementation 'com.google.android.material:material:1.12.0' | ||||||||||||||||||||||
| implementation 'androidx.constraintlayout:constraintlayout:2.2.0' | ||||||||||||||||||||||
| implementation 'androidx.recyclerview:recyclerview:1.4.0' | ||||||||||||||||||||||
|
Comment on lines
+45
to
+49
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. AndroidXライブラリのバージョン互換性について 以下のバージョン更新に問題があります:
- implementation 'androidx.core:core-ktx:1.15.0'
+ implementation 'androidx.core:core-ktx:1.12.0'📝 Committable suggestion
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. androidx.core:core-ktx:1.15.0はあるバージョンです There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @harutiro 申し訳ありません。ご指摘ありがとうございます。確認したところ、 🔗 Analysis chain🏁 Scripts executedThe following scripts were executed for the analysis: Script: Length of output: 5263 ✏️ Learnings added
|
||||||||||||||||||||||
|
|
||||||||||||||||||||||
| implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.5.1' | ||||||||||||||||||||||
| implementation 'androidx.lifecycle:lifecycle-livedata-ktx:2.5.1' | ||||||||||||||||||||||
| implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.5.1' | ||||||||||||||||||||||
| implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.8.7' | ||||||||||||||||||||||
| implementation 'androidx.lifecycle:lifecycle-livedata-ktx:2.8.7' | ||||||||||||||||||||||
| implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.8.7' | ||||||||||||||||||||||
|
Comment on lines
+51
to
+53
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ライフサイクルとナビゲーションライブラリの更新について 以下の問題があります:
- implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.8.7'
- implementation 'androidx.lifecycle:lifecycle-livedata-ktx:2.8.7'
- implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.8.7'
+ implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.7.0'
+ implementation 'androidx.lifecycle:lifecycle-livedata-ktx:2.7.0'
+ implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.7.0'
- implementation 'androidx.navigation:navigation-fragment-ktx:2.8.5'
- implementation 'androidx.navigation:navigation-ui-ktx:2.8.5'
+ implementation 'androidx.navigation:navigation-fragment-ktx:2.7.7'
+ implementation 'androidx.navigation:navigation-ui-ktx:2.7.7'Also applies to: 55-56 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ここもうべて最新のバージョンは自分のバージョンになっています。 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @harutiro 申し訳ありません。ご指摘ありがとうございます。確かにご使用のバージョンは現在の安定版よりも新しいバージョンとなっています。私の以前の警告は誤りでした。 🔗 Analysis chain🏁 Scripts executedThe following scripts were executed for the analysis: Script: Length of output: 304 ✏️ Learnings added
|
||||||||||||||||||||||
|
|
||||||||||||||||||||||
| implementation 'androidx.navigation:navigation-fragment-ktx:2.5.3' | ||||||||||||||||||||||
| implementation 'androidx.navigation:navigation-ui-ktx:2.5.3' | ||||||||||||||||||||||
| implementation 'androidx.navigation:navigation-fragment-ktx:2.8.5' | ||||||||||||||||||||||
| implementation 'androidx.navigation:navigation-ui-ktx:2.8.5' | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
| implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.6.1' | ||||||||||||||||||||||
| implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.8.1' | ||||||||||||||||||||||
| implementation 'io.ktor:ktor-client-android:1.6.4' | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
| implementation 'io.coil-kt:coil:1.3.2' | ||||||||||||||||||||||
| implementation 'io.coil-kt:coil:2.7.0' | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
| testImplementation 'junit:junit:4.13.2' | ||||||||||||||||||||||
| androidTestImplementation 'androidx.test.ext:junit:1.1.3' | ||||||||||||||||||||||
| androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0' | ||||||||||||||||||||||
| androidTestImplementation 'androidx.test.ext:junit:1.2.1' | ||||||||||||||||||||||
| androidTestImplementation 'androidx.test.espresso:espresso-core:3.6.1' | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
| // Retrofit | ||||||||||||||||||||||
| implementation("com.squareup.retrofit2:converter-moshi:2.9.0") | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SDK バージョンの大幅な更新について
compileSdkとtargetSdkを35に更新することは、以下の影響が考えられます:
推奨:
Also applies to: 17-17
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Dependency 'androidx.core:core:1.15.0' requires libraries and applications that
depend on it to compile against version 35 or later of the
Android APIs.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@harutiro これは
androidx.core:core-ktxのバージョン番号に問題がある可能性が高いです。現在1.15.0を指定していますが、最新の安定版は1.12.0です。以下のように修正することで、API 34 でも動作するはずです:
implementation 'androidx.core:core-ktx:1.12.0'この変更後、
compileSdkとtargetSdkを 34 に下げることができます。✏️ Learnings added
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
androidx.core:core-ktx:1.15.0はあるバージョンです
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@harutiro 申し訳ありません。ご指摘の通り、
androidx.core:core-ktx:1.15.0は正式なバージョンであることを確認しました。先ほどの私の指摘は誤りでした。(__;)
🔗 Analysis chain
🏁 Scripts executed
The following scripts were executed for the analysis:
Script:
Length of output: 4626