Giter Site home page Giter Site logo

Comments (7)

Mihai-github avatar Mihai-github commented on May 5, 2024 1

Hey, I'm back... with the solution for anyone else who's gonna run into this problem and my approach will solve the problem.

Here's how I've solved this problem that is specific for android:

appicon_custom_sizes: {
'android/app/src/development/res/mipmap-port-ldpi/splash_icon.png' => '200x320',
'android/app/src/development/res/mipmap-port-mdpi/splash_icon.png' => '320x480',
'android/app/src/development/res/mipmap-port-hdpi/splash_icon.png' => '480x800',
'android/app/src/development/res/mipmap-port-xhdpi/splash_icon.png' => '720x1280',
'android/app/src/development/res/mipmap-port-xxhdpi/splash_icon.png' => '960x1600',
'android/app/src/development/res/mipmap-port-xxxhdpi/splash_icon.png' => '1280x1920',
'android/app/src/development/res/mipmap-land-ldpi/splash_icon.png' => '320x200',
'android/app/src/development/res/mipmap-land-mdpi/splash_icon.png' => '480x320',
'android/app/src/development/res/mipmap-land-hdpi/splash_icon.png' => '800x480',
'android/app/src/development/res/mipmap-land-xhdpi/splash_icon.png' => '1280x720',
'android/app/src/development/res/mipmap-land-xxhdpi/splash_icon.png' => '1600x960',
'android/app/src/development/res/mipmap-land-xxxhdpi/splash_icon.png' => '1920x1280',
}

If something is not clear just leave a comment and I will respond back. :D

from fastlane-plugin-appicon.

Mihai-github avatar Mihai-github commented on May 5, 2024

For Android I've found this option:
-> appicon_image_file
-> appicon_icon_types
-> appicon_path
-> appicon_filename
-> appicon_custom_sizes
-> generate_rounded

appicon_custom_sizes must be a Hash, but I don't know what kind or type must be...

from fastlane-plugin-appicon.

DwCleb avatar DwCleb commented on May 5, 2024

Hello @Mihai-github !

Can you explain the lane where you used this code?

Thanks

from fastlane-plugin-appicon.

Mihai-github avatar Mihai-github commented on May 5, 2024

Hi @DwCleb,

in an android lane for generating the splash icon dynamically. The docs from what I saw at that time do not tell anything about this but from many trials and errors, in the logs, I saw this and came up with this solution to generate dynamic sizes for the splash icon. 

from fastlane-plugin-appicon.

DwCleb avatar DwCleb commented on May 5, 2024

@Mihai-github Thanks!

But the image still stretch or cut :/

from fastlane-plugin-appicon.

Mihai-github avatar Mihai-github commented on May 5, 2024

Use an image 1024x1024. Also, keep in mind that the options that I gave you will work in most cases but sometimes for different phones resolutions you should make manually the changes.

You can check if the image fits ok for android in Android Studio and for Ios in Xcode.

from fastlane-plugin-appicon.

stvmachine avatar stvmachine commented on May 5, 2024

Is there a way to achieve the same but for iOS?

from fastlane-plugin-appicon.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.