Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Crash on Android,use Plugins Nano SVG,
Started by 6_xyvery Aug 09 2018 01:58 AM

No replies to this topic
android
[TOPIC CONTROLS]
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

6_xyvery

[GLOBAL: userInfoPane.html]
6_xyvery
  • Observer

  • 1 posts
  • Corona SDK

main.lua local nanosvg = require( "plugin.nanosvg" ) local halfW = display.contentWidth * 0.5 local halfH = display.contentHeight * 0.5 -- Code here runs when the scene is first created but has not yet appeared on screen local nanosvg = require( "plugin.nanosvg" ) local background = display.newRect( halfW , halfH, halfW*2, halfH*2 ) local circle = nanosvg.newImage( { filename = "/svg/test.svg", x = display.contentCenterX, y = display.contentCenterY, width = 100, height = 100 }) build.settings settings = { orientation = { -- Supported values for orientation: -- portrait, portraitUpsideDown, landscapeLeft, landscapeRight default = "portrait", supported = { "portrait", }, }, -- -- Android section -- android = { usesPermissions = { "android.permission.INTERNET", }, }, -- -- iOS section -- iphone = { xcassets = "Images.xcassets", plist = { UIStatusBarHidden = false, UILaunchStoryboardName = "LaunchScreen", }, }, -- -- Plugins section -- plugins = { ["plugin.nanosvg"] = { publisherId = "com.coronalabs" }, }, -- -- Project section -- excludeFiles = { -- Exclude unnecessary files for each platform all = { "Icon.png", "Icon-*dpi.png", "Images.xcassets", }, android = { "LaunchScreen.storyboardc", }, }, }


[topic_controls]
[/topic_controls]

Also tagged with one or more of these keywords: android