Giter Club home page Giter Club logo

android_res_export's Introduction

  • 👋 Hi, I’m @Ashung
  • 👀 I’m interested in ...
  • 🌱 I’m currently learning ...
  • 💞️ I’m looking to collaborate on ...
  • 📫 How to reach me ...

android_res_export's People

Contributors

drampelt avatar xxdavid avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

android_res_export's Issues

Support Sketch 45 plugin update system

Hi there!

This is a quick note to remind you that Sketch 45 will include a plugin update system.

It would be awesome if you could add support to it (it's really easy!) before Sketch 45 comes out. Ideally, you should release an update for your plugin while we're still in Sketch 44, so your users will have a nice & easy experience when 45 is released.

For more details, please check http://sketchplugins.com/d/229-updating-plugins and http://developer.sketchapp.com/introduction/updating-plugins/

Thanks in advance!

"Can't find Android app icon inside current page." when exporting legacy app icon

Sketch Version 49
Android Res Export 2.3.14

I create page with "New App Icon (Legacy)" and then "Export App Icon", it reports "Can't find Android app icon inside current page."

Running the following script (extracted from export_app_icon.cocoascript),

var doc = context.document;
var page = doc.currentPage();
var iconNormal = page.layerWithID("ic_launcher"),
                iconRound = page.layerWithID("ic_launcher_round");
log(iconNormal)
log(iconRound)

iconNormal and iconRound are both logged as (null).

However if I traverse the layers,

for (var i = 0; i < page.layers().count(); i++) {
    var layer = page.layers()[i];
    if (layer.name() == "ic_launcher") {
        iconNormal = layer;
    } else if (layer.name() == "ic_launcher_round") {
        iconRound = layer;
    }
}
log(iconNormal)
log(iconRound)

iconNormal and iconRound can be found.
If I add the above code to export_app_icon.cocoascript, app icon can be exported as expected.

Export Nine-Patch Assets is not working properly

Nine-patch export was working good until v3. I'm using latest Sketch (51.3 now).

Now it creates half-pixels on that solid black 1px lines for patches that should be solid.
See the example screenshot, zoom in on the top patch.
https://imgur.com/a/OVyfms3

On the older version it was fine (v2.3).

Also, I noticed that under High Sierra, plug-in has problem with exporting to newly created folders (I presume it's due to writing permissions). I go round this problem by exporting to existing folder (Desktop for example).

Export Vector Asset Failed

System: MacOS Mojave 10.14.5
Sketch: 58
Terminal: zsh
Node.js installed
svg2vectordrawable installed

But when I use the plugin to export, it still prompts me to install node.js and the command line for svg2vectordrawable.

Exporting Nine-Patch does nothing

Just tried out your plugin, it's give hopes for Android UI designer :)
However the Nine-Patch export is not working. I tested it on Sketch 46.2

Unable to export vectors even after updating svg2vectordrawable

Upon trying to export a Vector Asset, I get this pop up even though I've already run the command to install svg2vectordrawable.

image

I've reinstalled and updated node (11.9.0), svg2vectordrawable (2.6.5), and android_res_export (3.8.0) and even resorted to restarting my computer with no avail. MacOS 10.12.6

Here's the log from the install.

➜  ~ sudo npm install -g svg2vectordrawable
/usr/local/bin/s2v -> /usr/local/lib/node_modules/svg2vectordrawable/bin/svg2vectordrawable
/usr/local/bin/svg2android -> /usr/local/lib/node_modules/svg2vectordrawable/bin/svg2vectordrawable
/usr/local/bin/svg2avd -> /usr/local/lib/node_modules/svg2vectordrawable/bin/svg2vectordrawable
/usr/local/bin/svg2drawable -> /usr/local/lib/node_modules/svg2vectordrawable/bin/svg2vectordrawable
/usr/local/bin/svg2vector -> /usr/local/lib/node_modules/svg2vectordrawable/bin/svg2vectordrawable
/usr/local/bin/svg2vectordrawable -> /usr/local/lib/node_modules/svg2vectordrawable/bin/svg2vectordrawable
+ [email protected]
added 58 packages from 89 contributors in 3.105s

Export Vector Drawables not working

Wanted to convert a PNG image to Vector Drawable, but no output or error are shown. Steps I'm doing:
1- Open PNG image in Sketch
2- Select the image from the left pane
3- Plugins -> Android Res Export -> Export Vector Drawable
4- Nothing happens, and no error shown

Also tried:
1- Open PNG image in Sketch
2- Select the image from the left pane
3- Plugins -> Android Res Export -> New Vector Drawable Asset
4- Select the folder created in the left pane, then
3- Plugins -> Android Res Export -> Export Vector Drawable
4- Nothing happens, and no error shown

This was tested on Sketch 41.2 (MAC)

Exported Vector Drawables appear to maintain offset internal to transform in artboard

Android Res 3.6.0 in Sketch 52.2

Observed

  • Recently started noticing that when i export a vector drawable and open it in Android Studio, the icon wont be visible in the icon preview because it appears very offset from 0,0 position.
  • If I take my icon and place its transform at 0,0 in my artboard prior to exporting the vector drawable, then it will appear normally in android studio.

Did something change? When bulk exporting lots of assets, its more convenient to leave the drawables arranged in a grid in the Sketch artboard, rather then crushed on top of each other at 0,0. Is it possible to have the plugin do this operation during export? Did it used to do this? Am I missing an update somwhere?

Trying to export Nine-Patches

HI,

I'm trying to export the nine-patches and I'm getting this on the console: "launch path not accessible".

Nothing happens. Running 2.3.1 version.

Thanks

There aren’t any releases here...

There aren't any zip file to be download following the steps described here.

When we are redirected to the page to get the plugin the title of this message is shown...

Error: You need to update svg2vectordrawable

Hi, I installed this plugin today via SketchRunner, and I installed svgo (version 1.0.3) and svg2vectordrawable (version 1.1.9) globally with npm. I used New Vector Drawable Assets a few times, then I tried Export Vector Drawables. It fails with the error "You need to update svg2vectordrawable", even though I have the latest version. Any idea what's going on?

cant export

20240105105207
20240105105239
the button has completed,but when export,the button show “open”,not “export”

点9预览不对

创建点9图片后,试用预览显示的都不对。
创建点9点时区域也和图形不对

app icon export problem

my problem, if I export my adaptive app icon, all files in all folder got a dimension 192px x 192px in the xxxhdpi or mhdpi so the result is a blurry image on the phones.

mipmap-mdpi_and_mipmap-xxxhdpi_and_sketch-export-assets-master

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.