Skip to content

feat:Move New Resources to Important#60

Open
yuvrajjsingh0 wants to merge 1 commit into
mainfrom
move-new-resources-to-important
Open

feat:Move New Resources to Important#60
yuvrajjsingh0 wants to merge 1 commit into
mainfrom
move-new-resources-to-important

Conversation

@yuvrajjsingh0
Copy link
Copy Markdown
Contributor

No description provided.

@yuvrajjsingh0 yuvrajjsingh0 force-pushed the move-new-resources-to-important branch 2 times, most recently from d20ca61 to 45c0adf Compare July 9, 2025 14:25
HPJPResource *newResource = newResources[resourceKey];
HPJPResource *localResource = localResources[resourceKey];

if (!localResource || ![newResource.url.absoluteString isEqualToString:localResource.url.absoluteString]) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Can you match filepath also here?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

But the key of both the resources would be same if they are same right? And key itself is filepath

HPJPResource *localResource = localResources[resourceKey];

if (!localResource || ![newResource.url.absoluteString isEqualToString:localResource.url.absoluteString]) {
[resourcesToMoveToImportant addObject:newResource];
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This resource will always go to package in all the subsequent runs. We should decide if a resource is new after checking for that resource in package also.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Same with android as well.

Copy link
Copy Markdown
Contributor Author

@yuvrajjsingh0 yuvrajjsingh0 Jul 31, 2025

Choose a reason for hiding this comment

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

Done, added a check to see if we have it in pkg important as well before moving

@yuvrajjsingh0 yuvrajjsingh0 force-pushed the move-new-resources-to-important branch 2 times, most recently from 036c4c2 to ef205c9 Compare July 31, 2025 08:15
@Yash02Rajput Yash02Rajput force-pushed the move-new-resources-to-important branch 2 times, most recently from 867c578 to bf55156 Compare October 16, 2025 06:26
@Yash02Rajput Yash02Rajput force-pushed the move-new-resources-to-important branch from be8febc to aed17fe Compare October 16, 2025 07:21
AJPApplicationPackage *transformedPackage = [[AJPApplicationPackage alloc] init];
transformedPackage.version = downloadedManifest.package.version;
transformedPackage.name = downloadedManifest.package.name;
transformedPackage.important = [downloadedManifest.package.important mutableCopy];
Copy link
Copy Markdown
Contributor

@balaganesh-juspay balaganesh-juspay Oct 30, 2025

Choose a reason for hiding this comment

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

@yuvrajjsingh0 Can you set index & properties as well in transformedPackage?

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.

3 participants