-
Notifications
You must be signed in to change notification settings - Fork 0
ライブラリ/環境の更新 #306
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
ライブラリ/環境の更新 #306
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -8,9 +8,11 @@ android { | |||||||||||||||||||
| namespace = "me.nya_n.notificationnotifier.ui" | ||||||||||||||||||||
| @Suppress("UnstableApiUsage") | ||||||||||||||||||||
| experimentalProperties["android.experimental.enableScreenshotTest"] = true | ||||||||||||||||||||
| } | ||||||||||||||||||||
|
|
||||||||||||||||||||
| kotlinOptions { | ||||||||||||||||||||
| jvmTarget = "17" | ||||||||||||||||||||
| kotlin { | ||||||||||||||||||||
| compilerOptions { | ||||||||||||||||||||
| jvmTarget = org.jetbrains.kotlin.gradle.dsl.JvmTarget.JVM_17 | ||||||||||||||||||||
| } | ||||||||||||||||||||
| } | ||||||||||||||||||||
|
|
||||||||||||||||||||
|
|
@@ -32,4 +34,9 @@ dependencies { | |||||||||||||||||||
| // その他 | ||||||||||||||||||||
| implementation(libs.io.insert.koin) | ||||||||||||||||||||
| implementation(libs.io.insert.koin.compose) | ||||||||||||||||||||
| } | ||||||||||||||||||||
|
|
||||||||||||||||||||
| tasks.withType<Test>().configureEach { | ||||||||||||||||||||
| // FIXME: ScreenshotTestを全部コメントアウトしてるので一時的にfalseにしておく | ||||||||||||||||||||
| failOnNoDiscoveredTests = false | ||||||||||||||||||||
|
Comment on lines
+39
to
+41
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. 🧩 Analysis chain🏁 Script executed: # First, let's examine the build.gradle.kts file
cat -n AndroidApp/ui/build.gradle.kts | head -60Repository: ptkNktq/AndroidNotificationNotifier Length of output: 1552 🏁 Script executed: # Search for screenshot test references in the codebase
rg -i "screenshot" AndroidApp/ui/ --type kotlin --type gradle -B 2 -A 2Repository: ptkNktq/AndroidNotificationNotifier Length of output: 11719 🏁 Script executed: # Look for Test task configuration and custom tasks
rg -i "tasks\.with|test" AndroidApp/ui/build.gradle.kts -B 2 -A 5Repository: ptkNktq/AndroidNotificationNotifier Length of output: 891 🏁 Script executed: # Check if there are other test-related tasks or configurations
rg -i "unitTest|androidTest|paparazzi\|screenshot" AndroidApp/ui/ --type kotlin --type gradle | head -20Repository: ptkNktq/AndroidNotificationNotifier Length of output: 151 🏁 Script executed: # Check for other test sources in the ui module
find AndroidApp/ui/src -type d -name "*test*" | head -20Repository: ptkNktq/AndroidNotificationNotifier Length of output: 61 🏁 Script executed: # List all test-related directories and files
ls -la AndroidApp/ui/src/Repository: ptkNktq/AndroidNotificationNotifier Length of output: 303 🏁 Script executed: # Search for any unitTest or androidTest test classes
find AndroidApp/ui -path "*/src/*/kotlin/*Test*.kt" -o -path "*/src/*/java/*Test*.java" 2>/dev/nullRepository: ptkNktq/AndroidNotificationNotifier Length of output: 166 🏁 Script executed: # Check what other modules look like to see if this pattern is normal
find AndroidApp -name "build.gradle.kts" -exec grep -l "failOnNoDiscoveredTests" {} \;Repository: ptkNktq/AndroidNotificationNotifier Length of output: 109 🏁 Script executed: # Check what test tasks paparazzi creates - look for gradle logs or inspect plugin behavior
# by searching for any references to paparazzi or screenshot task naming
rg -i "paparazzi\|screenshot.*test\|test.*screenshot" --type gradle --type kotlin -B 1 -A 1Repository: ptkNktq/AndroidNotificationNotifier Length of output: 61 🏁 Script executed: # Look for gradle files to understand the test task naming better
find AndroidApp -name "*.gradle.kts" | xargs grep -l "Test" | head -5Repository: ptkNktq/AndroidNotificationNotifier Length of output: 188 🏁 Script executed: # Let's verify if there are androidTest or unitTest sources anywhere
find AndroidApp/ui -type d \( -name "androidTest" -o -name "unitTest" -o -name "test" \)Repository: ptkNktq/AndroidNotificationNotifier Length of output: 61 🏁 Script executed: # Check all test source sets in the ui module
find AndroidApp/ui/src -maxdepth 1 -type dRepository: ptkNktq/AndroidNotificationNotifier Length of output: 152 スクリーンショット関連タスクに限定して 全 🛠️ 例: Paparazziタスクのみに限定 tasks.withType<Test>().configureEach {
// FIXME: ScreenshotTestを全部コメントアウトしてるので一時的にfalseにしておく
- failOnNoDiscoveredTests = false
+ if (name.contains("paparazzi", ignoreCase = true)) {
+ failOnNoDiscoveredTests = false
+ }
}📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||||||||
| } | ||||||||||||||||||||
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.
🧩 Analysis chain
🌐 Web query:
Gradle 9.3.0 AGP 8.13.2 compatibility💡 Result:
Short answer: Not officially — AGP 8.13.2 declares Gradle 8.13 as the required/default Gradle version, so the supported/expected combination is AGP 8.13.2 + Gradle 8.13. (developer.android.com)
Detail important for trying Gradle 9.3.0:
Recommendation: stay on Gradle 8.13 with AGP 8.13.2 for guaranteed support. If you need Gradle 9.3, test thoroughly (CI + full clean builds) or upgrade AGP to a 9.x release that explicitly targets Gradle 9.0+. (developer.android.com)
Citations:
🌐 Web query:
Android Gradle Plugin 8.13.2 required Gradle version💡 Result:
Android Gradle Plugin 8.13.2 requires Gradle 8.13. [1][2]
Sources:
[1] Android Developers — Android Gradle plugin release notes/compatibility.
[2] Gradle 8.13 release notes.
Gradle 9.3.0 は AGP 8.13.2 と互換性がありません。
AGP 8.13.2 の公式要件は Gradle 8.13 です。Gradle 9.3.0 は AGP >= 8.4 を要件としますが、AGP 8.13.2 は Gradle 9.3.0 との組み合わせについて公式にはテストされていません。以下のいずれかの対応が必要です:
現在の構成では、ビルド失敗やプラグイン非互換性が発生する可能性があります。
🤖 Prompt for AI Agents