Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Dec 15, 2025

Capacitor 7.4.4 requires androidx.core:core:1.15.0 which mandates compileSdk 35. AGP 8.5.2 only supports SDK 34, blocking builds.

Build Configuration

  • AGP: 8.5.2 → 8.7.3
  • compileSdk/targetSdk: 34 → 35
  • minSdk: 23 → 24 (Capacitor 7 requirement)
  • Updated AndroidX libraries: appcompat:1.7.0, junit:1.2.1, espresso-core:3.6.1
  • Added explicit androidxCoreVersion = 1.15.0

Resource Fixes

  • Removed duplicate splash.png conflicting with splash.xml
  • Added missing title_activity_main string
  • Created colors.xml with Material theme colors
  • Fixed theme reference: @android:style/Theme.Material3.DayNight@style/Theme.Material3.DayNight

Glance 1.1.0 API Updates

The update() method with appWidgetId is now internal. Updated to public API:

// Before (compilation error)
WeatherWidget().update(context, appWidgetId)

// After
val glanceId = GlanceAppWidgetManager(context).getGlanceIdBy(appWidgetId)
WeatherWidget().update(context, glanceId)

Affected: WeatherWidget.kt, WeatherWidgetReceiver.kt, WeatherWidgetConfigActivity.kt

Requirements

  • Java 21 (Capacitor 7 requirement)
  • Gradle 8.11.1+ (no changes needed)

Includes SDK_AGP_UPGRADE_REPORT.md with dependency analysis and CI/CD recommendations.

Original prompt

This section details on the original issue you should resolve

<issue_title>Investigate SDK/AGP version mismatch: compileSdk 34 vs 35 requirement</issue_title>
<issue_description>A secondary issue was discovered during local testing: the project currently uses compileSdk 34 but some dependencies require compileSdk 35. Additionally, the Android Gradle Plugin (AGP) version 8.5.2 does not support SDK 35 and will need to be updated. This issue requires separate investigation and coordination of the following tasks:

  • Check all dependencies for SDK 35 requirements
  • Determine impact of upgrading compileSdk to 35
  • Assess and test updating AGP to a version that supports SDK 35
  • Document any build or compatibility issues

This is not addressed in the current PR and should be handled independently.</issue_description>

Comments on the Issue (you are @copilot in this section)


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI and others added 4 commits December 15, 2025 01:05
Co-authored-by: LuminLynx <212206643+LuminLynx@users.noreply.github.com>
Co-authored-by: LuminLynx <212206643+LuminLynx@users.noreply.github.com>
…cumentation

Co-authored-by: LuminLynx <212206643+LuminLynx@users.noreply.github.com>
Co-authored-by: LuminLynx <212206643+LuminLynx@users.noreply.github.com>
Copilot AI changed the title [WIP] Investigate SDK and AGP version mismatch issues Upgrade AGP to 8.7.3 and SDK to 35 for Capacitor 7.4.4 compatibility Dec 15, 2025
Copilot AI requested a review from LuminLynx December 15, 2025 01:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Investigate SDK/AGP version mismatch: compileSdk 34 vs 35 requirement

2 participants