mirror of
https://github.com/zhigang1992/RubyMotion-PixateFreestyle.git
synced 2026-04-30 05:35:45 +08:00
update for Pixate free edition
This commit is contained in:
@@ -21,15 +21,15 @@ class PixateConfig
|
||||
private
|
||||
|
||||
def create_code
|
||||
unless @user && @key
|
||||
raise "Need to configure `app.pixate.user' and `app.pixate.key' variables"
|
||||
license = ""
|
||||
if @user && @key
|
||||
license = "PXEngine.licenseKey('#{@key}', forUser:'#{@user}')\n"
|
||||
end
|
||||
|
||||
code = <<EOF
|
||||
# This file is automatically generated. Do not edit.
|
||||
|
||||
PXEngine.licenseKey('#{@key}', forUser:'#{@user}')
|
||||
|
||||
#{license}
|
||||
def style(str)
|
||||
PXStylesheet.styleSheetFromSource(str, withOrigin:0)
|
||||
PXStylesheet.applyStylesheets
|
||||
|
||||
Reference in New Issue
Block a user