-
-
Notifications
You must be signed in to change notification settings - Fork 194
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: introduce assets generation #3435
Merged
Merged
Commits on Mar 21, 2018
-
feat: introduce assets generation
Introduce ``generate-icons`` and ``generate-splashscreens`` commands to generate assets needed for iOS and Android. The operations are as follow: - Icons: - For all platforms we just resize the provided image. - Splash screens: - For Android we generate 2 png for each dpi: blank with background(background.png) and resized image based on provided image(logo.png). During the app start the logo overlays the background. - For iOS we generate 1 png for each dpi which has resized and centered image on the background. All resources with corresponding sizes and operations are described in image-definitions.ts. Added image-generation-test.png in order to provide easy way to test this functionality. For image resizing we use https://github.com/oliver-moran/jimp.
Configuration menu - View commit details
-
Copy full SHA for bd1098d - Browse repository at this point
Copy the full SHA bd1098dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6143320 - Browse repository at this point
Copy the full SHA 6143320View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9aabb6c - Browse repository at this point
Copy the full SHA 9aabb6cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5493cef - Browse repository at this point
Copy the full SHA 5493cefView commit details -
Configuration menu - View commit details
-
Copy full SHA for 25f63c3 - Browse repository at this point
Copy the full SHA 25f63c3View commit details -
feat: Introduce methods to get current assets structure
Introduce new methods in `projectDataService` to get the current assets strucuture. Use a predefined .json file in the resources to get information about image sizes. For iOS read the Contents.json file in specific iOS Resource directories. For Android - enumerate the files and construct required objects. Use the new method in the assetsGenerationService. Generate icons and splashes based on the argument. Require projectDir instead of resourcesDir for assets generation in order to get all CLI's specific files info (nsconfig, package.json, project location, etc.). Fix comands for generating assets to have mandatory command parameter - previously it had a non-mandatory param. Add newly exposed methods to the tests.
Configuration menu - View commit details
-
Copy full SHA for 075686c - Browse repository at this point
Copy the full SHA 075686cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5a97228 - Browse repository at this point
Copy the full SHA 5a97228View commit details -
Configuration menu - View commit details
-
Copy full SHA for b5e3bc9 - Browse repository at this point
Copy the full SHA b5e3bc9View commit details -
Configuration menu - View commit details
-
Copy full SHA for d5bfec2 - Browse repository at this point
Copy the full SHA d5bfec2View commit details -
Configuration menu - View commit details
-
Copy full SHA for dd2c26d - Browse repository at this point
Copy the full SHA dd2c26dView commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.