Skip to content

Conversation

@hermannakos
Copy link
Collaborator

@hermannakos hermannakos commented Sep 29, 2025

Test plan: Smoke test all the apps.

refs: MBL-19081
affects: Student, Teacher, Parent
release note: none

Checklist

  • Run E2E test suite

@hermannakos hermannakos requested a review from Copilot September 29, 2025 15:23
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR updates build dependencies across the Canvas Android project, migrating from KAPT to KSP for annotation processing and removing the document scanning library functionality. The changes modernize the build system and improve build performance while simplifying the codebase.

Key changes:

  • Migration from KAPT to KSP for annotation processing
  • Removal of document scanning functionality and related DocumentScanner library
  • Update of multiple dependencies including Gradle, Android Gradle Plugin, Kotlin, and various libraries

Reviewed Changes

Copilot reviewed 94 out of 102 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
build.gradle files Migrate from kotlin-kapt to KSP plugin and update dependency versions
DocumentScanner library Complete removal of document scanning functionality
Student app Remove document scanning features and related UI components
Global dependencies Update to latest versions of core Android and Kotlin dependencies
Gradle wrapper Update Gradle version to 8.13

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Copy link
Contributor

@tamaskozmer tamaskozmer left a comment

Choose a reason for hiding this comment

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

Approved the code, but I still need to test PSPDFKit


- **UI**: Jetpack Compose (modern), XML layouts + Data Binding (legacy), Material Design 3
- **Networking**: Retrofit 3.0, OkHttp 5.1, Apollo GraphQL 4.3
- **Database**: Room 2.8 with Coroutines
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we also maintain dependency versions here or just tell Claude to read the versions from GlobalDependencies.kt?

const val COMPOSE_UI_TEST = "androidx.compose.ui:ui-test-junit4"
const val COMPOSE_UI_TEST_MANIFEST = "androidx.compose.ui:ui-test-manifest"
const val COMPOSE_MATERIAL_3 = "androidx.compose.material3:material3:1.4.0-alpha12"
const val COMPOSE_MATERIAL_3 = "androidx.compose.material3:material3:1.4.0"
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we need to specify this version? I think it's included in the BOM. I guess we specified it previously because we had to use the alpha version.

@tamaskozmer
Copy link
Contributor

tamaskozmer commented Oct 6, 2025

QA findings:

  • Note feature still doesn't work correctly (Last time I tried to update PSPDFKit it had the same issue and we dismissed it because we had other crash issues, so we didn't update, but I think we need to investigate why this is happening)

  • Grab tool is missing and the order of tools seems incorrect (see screenshot)

  • There is a new tool in the Student CandroidPSPDFActivity that is glitching the Toolbar (I am not sure how this tool supposed to work and if we need it)

Screenshot 2025-10-06 at 13 13 39 Screenshot 2025-10-06 at 13 13 52
Screen_recording_20251006_132028.mp4

# Conflicts:
#	apps/CLAUDE.md
#	libs/pandautils/src/main/java/com/instructure/pandautils/features/inbox/compose/InboxComposeFragment.kt
@instructure instructure deleted a comment from inst-danger Oct 9, 2025
@instructure instructure deleted a comment from inst-danger Oct 9, 2025
@instructure instructure deleted a comment from inst-danger Oct 9, 2025
@instructure instructure deleted a comment from inst-danger Oct 9, 2025
@instructure instructure deleted a comment from inst-danger Oct 9, 2025
@instructure instructure deleted a comment from inst-danger Oct 9, 2025
@inst-danger
Copy link
Contributor

Parent Install Page

@inst-danger
Copy link
Contributor

Teacher Install Page

@inst-danger
Copy link
Contributor

Student Install Page

@inst-danger
Copy link
Contributor

Parent Install Page

@inst-danger
Copy link
Contributor

Student Install Page

@inst-danger
Copy link
Contributor

Teacher Install Page

@hermannakos hermannakos requested a review from adamNagy56 October 9, 2025 09:44
Copy link
Contributor

@adamNagy56 adamNagy56 left a comment

Choose a reason for hiding this comment

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

  • The approved box still appears after adding a note to a file, and the note menu doesn’t display very nicely either. I’m not sure if it’s possible to change this, but if not, I’ll approve it for now.
Screen_Recording_20251009_171147_Canvas.Teacher.mp4

@inst-danger
Copy link
Contributor

Parent Install Page

@inst-danger
Copy link
Contributor

Teacher Install Page

@inst-danger
Copy link
Contributor

Student Install Page

# Conflicts:
#	libs/pandautils/src/main/java/com/instructure/pandautils/features/file/upload/FileUploadEventHandler.kt
#	libs/pandautils/src/main/java/com/instructure/pandautils/features/speedgrader/grade/comments/SpeedGraderCommentsViewModel.kt
@inst-danger
Copy link
Contributor

Parent Install Page

@inst-danger
Copy link
Contributor

Teacher Install Page

The dependency updates increased code size causing R8 minification
to run out of memory with the previous 4g heap limit.
@inst-danger
Copy link
Contributor

Parent Install Page

@inst-danger
Copy link
Contributor

Teacher Install Page

@inst-danger
Copy link
Contributor

Student Install Page

@hermannakos hermannakos merged commit 3ff18b1 into master Oct 16, 2025
6 of 7 checks passed
@hermannakos hermannakos deleted the MBL-19081-dependency-update branch October 16, 2025 10:58
@domonkosadam domonkosadam mentioned this pull request Oct 17, 2025
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.

5 participants