LuckSiege / LuckSiege/PictureSelector

添加混淆忽略后, 部分图片无法加载出来

Open
#2,892 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
13.6k
Forks
3.1k
PR merge metrics
No merged PRs in 30d

Description

## Current use version?
#### 当前使用的版本是多少?

```
V3.11.2
```

## Will this problem occur in demo?
#### Demo能否复现这问题?

```
不能
```

## Describe the problem or provide an error log?
#### 描述问题或提供错误log?

```
release开启混淆后,部分图片无法加载,
![image](https://github.com/LuckSiege/PictureSelector/assets/35214125/74e6b4c5-5352-4f97-8b70-4aa4c0d747ff)
![image](https://github.com/LuckSiege/PictureSelector/assets/35214125/d35431b5-a565-4b62-88a7-6eb8b54da0e1)

```
已添加混淆忽略
-keep class com.luck.picture.lib.** { *; }
# use Camerax
-keep class com.luck.lib.camerax.** { *; }
# use uCrop
# https://github.com/Yalantis/uCrop
-dontwarn com.yalantis.ucrop**
-keep class com.yalantis.ucrop** { *; }
-keep interface com.yalantis.ucrop** { *; }

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the release build on Android with version V3.11.2 and the listed obfuscation rules, then compare the images that load with those that do not. Check the image-selection and image-loading behavior around the configured CameraX and uCrop integrations. Done means the previously failing images load correctly in a release build with obfuscation enabled.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java
Domain
mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.