-
Notifications
You must be signed in to change notification settings - Fork 1
Migration/navigation 3 #100
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
base: develop
Are you sure you want to change the base?
Changes from all commits
6fcbce1
5844ed8
57c2d0a
a5c8e2d
0271014
8a4698a
b1164bd
0d8d2fc
5a62525
7119d83
8808241
6c33bf0
0741c71
70df26a
bc0c6d9
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 |
|---|---|---|
| @@ -0,0 +1,42 @@ | ||
| name: CI | ||
|
|
||
| on: | ||
| pull_request: | ||
| branches: [ "**" ] | ||
| push: | ||
| branches: [ "main" ] | ||
|
|
||
| jobs: | ||
| build: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Set up JDK | ||
| uses: actions/setup-java@v4 | ||
| with: | ||
| distribution: temurin | ||
| java-version: '21' | ||
|
|
||
| - name: Setup Gradle | ||
| uses: gradle/actions/setup-gradle@v4 | ||
|
|
||
| - name: Deep clean (project-local only) | ||
| run: ./gradlew --no-daemon deepClean | ||
|
|
||
| - name: Build | ||
| run: ./gradlew --no-daemon build | ||
|
|
||
| - name: Spotless check (soft enforcement for initial adoption) | ||
| run: ./gradlew --no-daemon spotlessCheckAll | ||
| continue-on-error: true | ||
|
|
||
| - name: Detekt (soft enforcement for initial adoption) | ||
| run: ./gradlew --no-daemon detektAll | ||
| continue-on-error: true | ||
|
|
||
| # Notes: | ||
| # - Spotless and Detekt steps are set to soft-fail initially to avoid breaking CI before the first formatting commit. | ||
| # After running `./gradlew applyCodeCleanup` and committing the formatting changes, set `continue-on-error: false` | ||
| # (or remove those lines) to enforce style and static analysis strictly on PRs. | ||
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -1,4 +1,4 @@ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| import org.jetbrains.kotlin.compose.compiler.gradle.ComposeFeatureFlag | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| import org.jetbrains.kotlin.gradle.dsl.JvmTarget | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| plugins { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| id("com.android.application") | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
@@ -23,7 +23,10 @@ android { | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
| versionName = ConfigData.versionName | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| multiDexEnabled = ConfigData.multiDexEnabled | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| testInstrumentationRunner = "bose.ankush.weatherify.helper.HiltTestRunner" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| resourceConfigurations.addAll(listOf("en", "hi", "iw")) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| @Suppress("UnstableApiUsage") | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| androidResources { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| localeFilters.addAll(listOf("en", "hi", "iw")) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+26
to
+29
Contributor
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. 💡 Verification agent 🧩 Analysis chainandroidResources.localeFilters placement and language code
defaultConfig {
...
- @Suppress("UnstableApiUsage")
- androidResources {
- localeFilters.addAll(listOf("en", "hi", "iw"))
- }
}
+ @Suppress("UnstableApiUsage")
+ androidResources {
+ // Prefer modern BCP-47 tags; 'iw' (Hebrew) is deprecated -> use 'he'
+ localeFilters.addAll(listOf("en", "hi", "he"))
+ }Please confirm your AGP version supports 🏁 Script executed: #!/bin/bash
# AGP plugin version in buildscript dependencies
echo "=== AGP plugin version in buildscript dependencies ==="
grep -R "com.android.tools.build:gradle" -n .
echo ""
echo "=== AGP plugin version in plugins DSL ==="
grep -R 'id("com.android.application")' -n .
echo ""
echo "=== defaultConfig context ==="
grep -n -C5 'defaultConfig' app/build.gradle.kts
echo ""
echo "=== androidResources context ==="
grep -n -C5 'androidResources' app/build.gradle.ktsLength of output: 1623 🏁 Script executed: #!/bin/bash
# Locate AGP plugin version constant in buildSrc
grep -R -n -C3 "buildGradle" buildSrcLength of output: 1074 Move The project is using AGP 8.12.0 (≥ 8.3), so Please apply the following mandatory refactor in
app/build.gradle.kts
android {
compileSdk = ConfigData.compileSdkVersion
defaultConfig {
applicationId = "bose.ankush.weatherify"
minSdk = ConfigData.minSdkVersion
targetSdk = ConfigData.targetSdkVersion
versionCode = ConfigData.versionCode
versionName = ConfigData.versionName
multiDexEnabled = ConfigData.multiDexEnabled
testInstrumentationRunner = "bose.ankush.weatherify.helper.HiltTestRunner"
- @Suppress("UnstableApiUsage")
- androidResources {
- localeFilters.addAll(listOf("en", "hi", "iw"))
- }
}
+ @Suppress("UnstableApiUsage")
+ androidResources {
+ // Use modern BCP-47 tags; 'he' replaces deprecated 'iw'
+ localeFilters.addAll(listOf("en", "hi", "he"))
+ }
kapt {
…📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| kapt { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
@@ -58,17 +61,6 @@ android { | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
| sourceCompatibility = JavaVersion.VERSION_17 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| targetCompatibility = JavaVersion.VERSION_17 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| kotlinOptions { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| jvmTarget = JavaVersion.VERSION_17.toString() | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| kotlin { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| sourceSets.all { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| languageSettings { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| languageVersion = Versions.kotlinCompiler | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| lint { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| abortOnError = false | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
@@ -77,10 +69,9 @@ android { | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
| namespace = "bose.ankush.weatherify" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| composeCompiler { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| featureFlags = setOf( | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ComposeFeatureFlag.StrongSkipping.disabled() | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| kapt { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| correctErrorTypes = true | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| dependencies { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
@@ -111,6 +102,7 @@ dependencies { | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
| debugImplementation(Deps.composeUiTooling) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| implementation(Deps.composeUiToolingPreview) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| implementation(Deps.composeMaterial3) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| implementation(Deps.composeIconsExtended) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| // Unit Testing | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| testImplementation(Deps.junit) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
@@ -133,11 +125,16 @@ dependencies { | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
| // Networking | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| implementation(Deps.gson) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| // Room runtime for providing WeatherDatabase from app DI | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| implementation(Deps.room) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| implementation(Deps.roomKtx) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+129
to
132
Contributor
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. Room compiler missing — annotation processing will fail at build time You’ve added Room runtime but not the processor. Without dependencies {
@@
- // Room runtime for providing WeatherDatabase from app DI
- implementation(Deps.room)
- implementation(Deps.roomKtx)
+ // Room
+ implementation(Deps.room)
+ implementation(Deps.roomKtx)
+ kapt(Deps.roomCompiler)
}If you’re migrating to KSP, replace kapt with 🤖 Prompt for AI Agents |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| // Firebase | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| implementation(platform(Deps.firebaseBom)) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| implementation(Deps.firebaseConfig) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| implementation(Deps.firebaseAnalytics) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| implementation(Deps.firebasePerformanceMonitoring) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| implementation(Deps.firebaseMessaging) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| // Coroutines | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| implementation(Deps.coroutinesCore) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
@@ -147,12 +144,27 @@ dependencies { | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
| implementation(Deps.hilt) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| implementation(Deps.hiltNavigationCompose) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| kapt(Deps.hiltDaggerAndroidCompiler) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| kapt(Deps.hiltAndroidXCompiler) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| // Miscellaneous | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| implementation(Deps.timber) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| implementation(Deps.lottieCompose) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| // Removed Lottie dependency as per requirements | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| implementation(Deps.coilCompose) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| // Memory leak | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| debugImplementation(Deps.leakCanary) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| // Payment SDK moved to app module | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| implementation(Deps.razorPay) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| kotlin { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| compilerOptions { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| jvmTarget.set(JvmTarget.JVM_17) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| freeCompilerArgs.addAll( | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "-Xopt-in=kotlin.RequiresOptIn", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "-Xopt-in=androidx.compose.animation.ExperimentalAnimationApi" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
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.
💡 Verification agent
🧩 Analysis chain
Android builds typically require SDK installation; add setup-android step if AGP modules are present.
The project appears to include Android modules (Compose app). Without an SDK, ./gradlew build often fails on CI.
First, confirm AGP usage:
If present, add before Build:
- name: Set up JDK uses: actions/setup-java@v4 with: distribution: temurin java-version: '21' + - name: Set up Android SDK + uses: android-actions/setup-android@v3 + with: + api-level: 34 + ndk: 26.1.10909125 - name: Setup Gradle uses: gradle/actions/setup-gradle@v4🏁 Script executed:
Length of output: 124
🏁 Script executed:
Length of output: 3348
🏁 Script executed:
Length of output: 656
Add Android SDK setup to CI workflow
This repository defines multiple Android modules (application and library plugins detected in
build.gradle.kts) all targetingcompileSdkVersion = 36(seebuildSrc/src/main/java/ConfigData.kt) and will fail to build on CI without the Android SDK installed. Insert an Android SDK setup step before the Gradle setup:- name: Set up JDK uses: actions/setup-java@v4 with: distribution: temurin java-version: '21' + - name: Set up Android SDK + uses: android-actions/setup-android@v3 + with: + api-level: 36 # matches ConfigData.compileSdkVersion + components: # install required SDK components + - build-tools;36.0.0 + - platform-tools + # ndk: <version> # add if you have native code - name: Setup Gradle uses: gradle/actions/setup-gradle@v4ConfigData.compileSdkVersion(36) to satisfy the AGP modules.📝 Committable suggestion
🤖 Prompt for AI Agents