Skip to content

Drop legacy-support-v4, replace Space with platform widget - #23

Merged
ap0ught merged 1 commit into
masterfrom
chore/drop-legacy-support
Sep 9, 2026
Merged

Drop legacy-support-v4, replace Space with platform widget#23
ap0ught merged 1 commit into
masterfrom
chore/drop-legacy-support

Conversation

@ap0ught

@ap0ught ap0ught commented Sep 9, 2026

Copy link
Copy Markdown
Member

Summary

  • Remove — zero source imports of or
  • Replace 6 references in calendar layouts with (available since API 14, safe for minSdk 21)
  • already at latest stable — no bump needed
  • Build + unit tests pass

Resolves #13

Copilot AI lite review requested due to automatic review settings September 9, 2026 16:35

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The Gradle wrapper scripts (gradlew/gradlew.bat) were modified in a way that is non-standard and likely breaks portability (especially Cygwin/MSYS/Windows), and the PR also introduces an unrelated settings plugin without justification.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

Modernizes the Android module by removing the legacy-support-v4 dependency and switching calendar layouts from the legacy Space widget to the platform android.widget.Space.

Changes:

  • Removed androidx.legacy:legacy-support-v4:1.0.0 from spa2 dependencies.
  • Replaced androidx.legacy.widget.Space with android.widget.Space in portrait/landscape calendar layouts.
  • Updated Gradle settings / wrapper scripts (adds toolchains resolver plugin; changes wrapper launch behavior).
File summaries
File Description
spa2/src/main/res/layout/kalendar_layout.xml Replaces legacy Space with platform android.widget.Space.
spa2/src/main/res/layout-land/kalendar_layout.xml Same Space replacement for landscape layout.
spa2/build.gradle Drops androidx.legacy:legacy-support-v4 dependency.
settings.gradle Adds Foojay toolchains resolver plugin in settings.
gradlew.bat Changes Windows wrapper launch to -jar and clears CLASSPATH.
gradlew Changes Unix wrapper launch to -jar and sets CLASSPATH to an invalid value.
Review details

Suppressed comments (1)

gradlew:217

  • The wrapper invocation mixes -classpath with -jar and no longer specifies org.gradle.wrapper.GradleWrapperMain. This is non-standard and can cause portability issues; restore the standard wrapper main-class invocation so CLASSPATH is actually used.
set -- \
        "-Dorg.gradle.appname=$APP_BASE_NAME" \
        -classpath "$CLASSPATH" \
        -jar "$APP_HOME/gradle/wrapper/gradle-wrapper.jar" \
        "$@"
  • Files reviewed: 6/7 changed files
  • Comments generated: 3
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread gradlew Outdated
Comment thread gradlew.bat Outdated
Comment on lines +73 to +77
set CLASSPATH=


@rem Execute Gradle
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" -jar "%APP_HOME%\gradle\wrapper\gradle-wrapper.jar" %*
Comment thread settings.gradle Outdated
Comment on lines +8 to +10
plugins {
id 'org.gradle.toolchains.foojay-resolver-convention' version '0.10.0'
}
@ap0ught
ap0ught force-pushed the chore/drop-legacy-support branch from 0148ef3 to 090f4ce Compare September 9, 2026 16:57
@ap0ught
ap0ught merged commit 1c18921 into master Sep 9, 2026
2 checks passed
@ap0ught
ap0ught deleted the chore/drop-legacy-support branch September 9, 2026 17:00
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.

Dependency modernization + security hygiene (app v4.0.x)

3 participants