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

Replace logo appstore playmarket #1241

Merged

Conversation

sanjayamirthraj
Copy link
Contributor

@sanjayamirthraj sanjayamirthraj commented Nov 3, 2024

Changed logos to Omi logos

Summary by CodeRabbit

  • New Features

    • Introduced an info section in asset JSON files, providing metadata like author and version.
  • Bug Fixes

    • Simplified the structure of image entries in the AppIcon asset set, enhancing readability and organization.
  • Chores

    • Updated the filenames in the app icon assets for consistency and standardization.

Copy link
Contributor

coderabbitai bot commented Nov 3, 2024

Walkthrough

The changes in this pull request involve modifications to the Contents.json files for app icon asset sets in an iOS project. The updates include a restructured JSON format for improved organization, with properties for images now presented on separate lines. An "info" section has been added to include metadata such as "author" and "version." Additionally, the "expected-size" property has been removed from image entries, and the order of properties has been adjusted for clarity. These changes enhance the readability and organization of the asset catalog without introducing new functionality.

Changes

File Path Change Summary
app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json Reformatted JSON structure; added "info" section with "author" and "version"; removed "expected-size" from images.
app/ios/Runner/Assets.xcassets/Contents.json Introduced new JSON structure with "info" object containing "author" and "version".
app/ios/Runner/Assets.xcassets/prodAppIcon.appiconset/Contents.json Updated filenames in "images"; reordered fields in JSON structure; no changes to public entities.

Possibly related PRs

  • Change android and ios logo #1162: The changes in the Contents.json file for the AppIcon asset set in this PR involve a complete overhaul of the structure, which is directly related to the modifications made in the main PR regarding the organization and properties of the JSON structure for app icons.

🐇 In the garden, icons bloom,
With colors bright, they chase the gloom.
A new format, neat and fine,
With info shared, our work will shine!
Author and version, now in sight,
Hopping forward, all feels right! 🌼


Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@sanjayamirthraj sanjayamirthraj marked this pull request as draft November 3, 2024 04:51
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

🧹 Outside diff range and nitpick comments (2)
app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json (1)

46-56: Consider removing legacy icon sizes.

The 57x57 and 114x114 (57pt@1x,2x) sizes are legacy and only required for supporting iOS 6.1 and earlier. Unless you need to support very old iOS versions, these entries could be removed to simplify maintenance.

app/ios/Runner/Assets.xcassets/prodAppIcon.appiconset/Contents.json (1)

46-49: Consider using more descriptive filenames without spaces.

Current filenames like "40 1.png", "40 2.png" use numerical suffixes to distinguish between identical dimensions. Consider using more descriptive names that indicate the device type:

-      "filename": "40 1.png",
+      "filename": "ipad_40x40_2x.png",

This makes it easier to:

  • Avoid potential build issues with spaces in filenames
  • Quickly identify the purpose of each icon
  • Maintain the asset catalog long-term

Also applies to: 64-67, 82-85

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

📥 Commits

Reviewing files that changed from the base of the PR and between 32afe66 and fc1b951.

⛔ Files ignored due to path filters (38)
  • app/ios/Runner/Assets.xcassets/prodAppIcon.appiconset/1024.png is excluded by !**/*.png
  • app/ios/Runner/Assets.xcassets/prodAppIcon.appiconset/120 1.png is excluded by !**/*.png
  • app/ios/Runner/Assets.xcassets/prodAppIcon.appiconset/120.png is excluded by !**/*.png
  • app/ios/Runner/Assets.xcassets/prodAppIcon.appiconset/152.png is excluded by !**/*.png
  • app/ios/Runner/Assets.xcassets/prodAppIcon.appiconset/167.png is excluded by !**/*.png
  • app/ios/Runner/Assets.xcassets/prodAppIcon.appiconset/180.png is excluded by !**/*.png
  • app/ios/Runner/Assets.xcassets/prodAppIcon.appiconset/20.png is excluded by !**/*.png
  • app/ios/Runner/Assets.xcassets/prodAppIcon.appiconset/29 1.png is excluded by !**/*.png
  • app/ios/Runner/Assets.xcassets/prodAppIcon.appiconset/29.png is excluded by !**/*.png
  • app/ios/Runner/Assets.xcassets/prodAppIcon.appiconset/40 1.png is excluded by !**/*.png
  • app/ios/Runner/Assets.xcassets/prodAppIcon.appiconset/40 2.png is excluded by !**/*.png
  • app/ios/Runner/Assets.xcassets/prodAppIcon.appiconset/40.png is excluded by !**/*.png
  • app/ios/Runner/Assets.xcassets/prodAppIcon.appiconset/58 1.png is excluded by !**/*.png
  • app/ios/Runner/Assets.xcassets/prodAppIcon.appiconset/58.png is excluded by !**/*.png
  • app/ios/Runner/Assets.xcassets/prodAppIcon.appiconset/60.png is excluded by !**/*.png
  • app/ios/Runner/Assets.xcassets/prodAppIcon.appiconset/76.png is excluded by !**/*.png
  • app/ios/Runner/Assets.xcassets/prodAppIcon.appiconset/80 1.png is excluded by !**/*.png
  • app/ios/Runner/Assets.xcassets/prodAppIcon.appiconset/80.png is excluded by !**/*.png
  • app/ios/Runner/Assets.xcassets/prodAppIcon.appiconset/87.png is excluded by !**/*.png
  • app/ios/Runner/Assets.xcassets/prodAppIcon.appiconset/[email protected] is excluded by !**/*.png
  • app/ios/Runner/Assets.xcassets/prodAppIcon.appiconset/[email protected] is excluded by !**/*.png
  • app/ios/Runner/Assets.xcassets/prodAppIcon.appiconset/[email protected] is excluded by !**/*.png
  • app/ios/Runner/Assets.xcassets/prodAppIcon.appiconset/[email protected] is excluded by !**/*.png
  • app/ios/Runner/Assets.xcassets/prodAppIcon.appiconset/[email protected] is excluded by !**/*.png
  • app/ios/Runner/Assets.xcassets/prodAppIcon.appiconset/[email protected] is excluded by !**/*.png
  • app/ios/Runner/Assets.xcassets/prodAppIcon.appiconset/[email protected] is excluded by !**/*.png
  • app/ios/Runner/Assets.xcassets/prodAppIcon.appiconset/[email protected] is excluded by !**/*.png
  • app/ios/Runner/Assets.xcassets/prodAppIcon.appiconset/[email protected] is excluded by !**/*.png
  • app/ios/Runner/Assets.xcassets/prodAppIcon.appiconset/[email protected] is excluded by !**/*.png
  • app/ios/Runner/Assets.xcassets/prodAppIcon.appiconset/[email protected] is excluded by !**/*.png
  • app/ios/Runner/Assets.xcassets/prodAppIcon.appiconset/[email protected] is excluded by !**/*.png
  • app/ios/Runner/Assets.xcassets/prodAppIcon.appiconset/[email protected] is excluded by !**/*.png
  • app/ios/Runner/Assets.xcassets/prodAppIcon.appiconset/[email protected] is excluded by !**/*.png
  • app/ios/Runner/Assets.xcassets/prodAppIcon.appiconset/[email protected] is excluded by !**/*.png
  • app/web/icons/Icon-192.png is excluded by !**/*.png
  • app/web/icons/Icon-512.png is excluded by !**/*.png
  • app/web/icons/Icon-maskable-192.png is excluded by !**/*.png
  • app/web/icons/Icon-maskable-512.png is excluded by !**/*.png
📒 Files selected for processing (3)
  • app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json (1 hunks)
  • app/ios/Runner/Assets.xcassets/Contents.json (1 hunks)
  • app/ios/Runner/Assets.xcassets/prodAppIcon.appiconset/Contents.json (1 hunks)
✅ Files skipped from review due to trivial changes (1)
  • app/ios/Runner/Assets.xcassets/Contents.json
🔇 Additional comments (6)
app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json (3)

76-79: LGTM!

The info section is correctly structured with appropriate metadata values.


1-2: LGTM!

The JSON structure follows Apple's asset catalog format and is well-organized.

Also applies to: 75-80


3-74: Verify the new Omi logo images.

While the icon size specifications are correct, please ensure:

  1. All referenced PNG files contain the new Omi logos
  2. The logos are properly centered and scaled in each image
  3. The images meet Apple's quality guidelines (no transparency, correct color space)
app/ios/Runner/Assets.xcassets/prodAppIcon.appiconset/Contents.json (3)

1-122: LGTM: All required iOS app icon sizes are present.

The asset catalog includes all mandatory icon sizes for iPhone, iPad, and App Store submission.


118-121: LGTM: Standard Xcode asset catalog metadata.

The info section contains the expected metadata for an Xcode-generated asset catalog.


2-116: Verify that the new Omi logo image files exist with correct dimensions.

@sanjayamirthraj sanjayamirthraj marked this pull request as ready for review November 3, 2024 19:56
@sanjayamirthraj sanjayamirthraj mentioned this pull request Nov 3, 2024
@beastoin
Copy link
Collaborator

beastoin commented Nov 4, 2024

better naming pls @sanjayamirthraj

@beastoin
Copy link
Collaborator

@sanjayamirthraj could you finish this task by a tiniy fix ? rename the files:

  • Not good: Screenshot 2024-11-10 at 15 37 20

  • Good enough: Screenshot 2024-11-10 at 15 37 25

Ref: https://developer.apple.com/design/human-interface-guidelines/app-icons

@mdmohsin7
Copy link
Collaborator

@sanjayamirthraj you can use https://icon.kitchen/ as well to generate the icons with correct names as requested by @beastoin

@beastoin
Copy link
Collaborator

@mdmohsin7 pls take over it.

@sanjayamirthraj
Copy link
Contributor Author

@sanjayamirthraj you can use https://icon.kitchen/ as well to generate the icons with correct names as requested by @beastoin

The names are properly changed I believe; this displays properly in local testing

@beastoin
Copy link
Collaborator

lgtm 🥳 @sanjayamirthraj @mdmohsin7

@beastoin beastoin merged commit 5b76d54 into BasedHardware:main Nov 11, 2024
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