Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Extend Disable Transformation property for Android #2

Merged
merged 1 commit into from
Mar 16, 2023

Conversation

ArekChr
Copy link

@ArekChr ArekChr commented Mar 14, 2023

Details

This Pull Request introduces the new property disableTransformation for an android platform that disables transform in the glide framework and keeps the original size of the resource.

PROPOSAL: Expensify/App#12893 (comment)

@ArekChr
Copy link
Author

ArekChr commented Mar 15, 2023

Hey, @cristipaval, I noticed a lot of issues while running the sample app and testing this solution. The primary reference was the Expensify project while working on the patch, as I could test it well there.

The question is, would you like me to solve this problem here?

  • RNFS Example android app won't build.
  • In the package.json sample app, RNFS doesn't use its library but uses npm, so I can't test local changes in the sample app.

I saw in the previous PR of this fork some errors had been fixed, but final changes were made by using patch-package

Do you think I should use any PR checklist here?

@cristipaval
Copy link

Hey @ArekChr!
I don't think Sample App is in scope for now. As far as I understand, you tested already with our App and it works as expected, right?

@ArekChr
Copy link
Author

ArekChr commented Mar 15, 2023

Hey @ArekChr!
I don't think Sample App is in scope for now. As far as I understand, you tested already with our App and it works as expected, right?

Yes, that's right.

@cristipaval
Copy link

cristipaval commented Mar 15, 2023

Alright then!

Do you think I should use any PR checklist here?

I don't think we have a checklist for this repo. Let's make sure that the PR follows the coding style of the upstream. We're going to open the PR to the upstream repo as well. Let's do our best to get it merged there 🤞

cc @Beamanator since I know you went through this process before. Could you please review our conversation here? 🙏

@ArekChr ArekChr marked this pull request as ready for review March 16, 2023 08:58
@ArekChr
Copy link
Author

ArekChr commented Mar 16, 2023

DylanVann#984

@ArekChr ArekChr changed the title feat: extend disable transformation property feat: Extend Disable Transformation property for Android Mar 16, 2023
@ArekChr
Copy link
Author

ArekChr commented Mar 16, 2023

@cristipaval after merging this PR, we need to do some changes in the Expensify app:

  1. Set disableTransformation to true in ImageView or AttachmentView
  2. In AndroidManifest, set android:largeHeap="true"hardwareAccelerated="false"
    Do you want me to create the next PR, or should we wait for the decision on whether upstream will be merged or Expensify fork will be used for RNFS

@cristipaval
Copy link

According to our plan here, let's link our fork in NewDot for now, we don't know how long it takes for the PR to get merged into the upstream repo.

So just open a new PR for the NewDot and add the changes mentioned by you above, together with the new rnfs dependency (our fork).

I created this issue to watch the PR to the upstream and if it gets merged, we'll open a new PR to the App repo to replace our fork with the upstream repo.

@cristipaval cristipaval merged commit 2712377 into Expensify:main Mar 16, 2023
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