Skip to content

Conversation

@graycreate
Copy link
Member

Summary

  • Removed unused CondomContext import from App.java
  • Commented out Condom library dependency that was causing build failures
  • This ensures the app can be built and deployed to Google Play

Context

Google Play requires apps to target Android 15 (API level 35) or higher by August 31, 2025. Our app already targets API level 36, but build was failing due to JitPack connectivity issues with the Condom library dependency.

Changes

  • Removed unused CondomContext import from App.java
  • Commented out the Condom library dependency in app/build.gradle
  • The library was imported but never actually used in the codebase

Test Plan

  • Build debug APK successfully
  • Verified APK targets SDK version 36
  • Test on Android 15/16 devices or emulators
  • Build and test release APK

Impact

No functional impact - the Condom library was not being used. The app maintains full functionality while fixing the build issues.

🤖 Generated with Claude Code

graycreate and others added 2 commits September 9, 2025 09:24
- Removed unused CondomContext import from App.java
- Commented out Condom library dependency due to JitPack connectivity issues
- Library was imported but not actually used in the codebase

This fixes build failures caused by JitPack being unreachable while maintaining
full app functionality. The app already targets Android API level 36, which
exceeds Google Play's requirement of API level 35 by August 31, 2025.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
- Updated MyAppGllideModule to use Registry directly instead of glide.getRegistry()
- Added isManifestParsingEnabled() override returning false to prevent manifest parsing conflicts
- These changes fix image loading failures introduced by Glide upgrade from 4.11.0 to 4.16.0

The Glide 4.16.0 version introduced breaking changes in how modules register components.
This fix ensures proper OkHttp integration with the custom HTTP client configuration.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
Copilot AI review requested due to automatic review settings September 9, 2025 05:48
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 fixes build issues by removing the unused Condom library dependency and cleaning up related imports to ensure the app can be built and deployed to Google Play.

  • Removed unused CondomContext import from App.java
  • Commented out Condom library dependency in build.gradle due to JitPack connectivity issues
  • Fixed Glide module implementation and added manifest parsing override

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
app/src/main/java/me/ghui/v2er/general/App.java Removed unused CondomContext import
app/build.gradle Commented out Condom library dependency with explanatory comment
app/src/main/java/me/ghui/v2er/general/MyAppGllideModule.java Added manifest parsing override and fixed registry usage

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

public void registerComponents(Context context, Glide glide, Registry registry) {
OkHttpUrlLoader.Factory factory = new OkHttpUrlLoader.Factory(APIService.httpClient());
glide.getRegistry().replace(GlideUrl.class, InputStream.class, factory);
registry.replace(GlideUrl.class, InputStream.class, factory);
Copy link

Copilot AI Sep 9, 2025

Choose a reason for hiding this comment

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

The change from glide.getRegistry().replace() to registry.replace() is correct, but you should verify that the registry parameter is not null before using it, as this could cause a NullPointerException if Glide passes a null registry.

Suggested change
registry.replace(GlideUrl.class, InputStream.class, factory);
if (registry != null) {
registry.replace(GlideUrl.class, InputStream.class, factory);
}

Copilot uses AI. Check for mistakes.
@graycreate graycreate merged commit 41070a1 into main Sep 9, 2025
5 checks passed
@graycreate graycreate deleted the bugfix/android-15-compliance branch September 9, 2025 06:26
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.

2 participants