You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It appears the icons and most android stuff is done in reflex-platform. Relevant issue reflex-frp/reflex-platform#688
It seems icons can be set with android.iconPath = "path" in default.nix, however, that inserts the path to the attribute android:icon directly. It's not clear how to use the icon build script in reflex-platform to build the icons from a PNG file in obelisk.
So I skipped using the Obelisk icon build utility. One cryptic problem with android.iconPath = "path" is that even if you set it to a png file (where the file is specified without quotes so that nix pulls in the file when building), it still won't work, giving a Gradle error that seems to say the formatting of the icon is wrong. The cause is that the icon path isn't a file path, it needs to be using android style paths, such as "@drawable/ic_launcher", where the icon is located in /project-root/res/drawable/ic_launcher.png.
Then you need to also add this to default.nix: android.resources = ./res; so that obelisk builds with the local res folder. It seems like this line sets the resource folder to be some obelisk owned resources folder? https://github.com/reflex-frp/reflex-platform/blob/develop/android/default.nix#L32. Or maybe I made some mistake? I'm not sure.
Hello!
I have been searching around for how to add an icon when compiling an app, but I haven't found any documentation on this.
Is there a way to do this at the moment, besides modifying the icon after the fact in something like APK Editor Studio?
Thank you!
The text was updated successfully, but these errors were encountered: