Giter Club home page Giter Club logo

devkit-core's People

Contributors

angeloyazar avatar chromakode avatar collingreen avatar derekburch avatar fairfieldt avatar jishnu7 avatar jwilm avatar lunarraid avatar martell avatar rogueskib avatar royten avatar yofreke avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 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

devkit-core's Issues

devkit install throws error

When initiating:

devkit init helloworld

It throws this error.

[devkit]  [error]  Git exited unexpectedly while installing a module. The message from git was during `git status --porcelain --ignore-submodules=untracked (/Users/apple/Library/Application Support/devkit/cache/devkit-core)`: fatal: Not a git repository: /Users/apple/Library/Application Support/devkit/cache/35221697471976184170/.git/modules/modules/native-android/modules/barista
                    fatal: 'git status --porcelain' failed in submodule modules/native-android

npm: 2.14.4
node: v4.1.1
Mac OSX: 10.11.6

unable to take debug ios build

The project is running well in browser, but when i try take build for ios (devkit debug native-ios), im getting the following error.
[build] [error] build failed
[build] [error] Error: No ios config found for at getModuleConfig (/home/lakeba/projects/wordfinder/modules/devkit-core/modules/native-ios/build.js:26:11) at installModule (/home/lakeba/projects/wordfinder/modules/devkit-core/modules/native-ios/build.js:43:24) at /home/lakeba/projects/wordfinder/modules/devkit-core/modules/native-ios/build.js:209:7

MultiplyFilter has no effect on some views

import ui.View as View;
import ui.ImageView as ImageView;
import ui.ImageScaleView as ImageScaleView;
from ui.filter import MultiplyFilter;


exports = Class( GC.Application, function()
{
    this.initUI = function()
    {
        // This app has only been tested in the Chrome Browser on OSX.

        var colorFilter = new MultiplyFilter( { r: 255, g: 255, b: 0 } );

        // Regular ImageView, filter works as expected

        var image = new ImageView({
            superview: this,
            image: "resources/images/round-rectangle.png",
            x: 0,
            y: 0,
            width: 128,
            height: 128
        });

        image.setFilter( colorFilter );

        // ImageScaleView with no slicing applied, filter works as expected

        var nonScaledImage = new ImageScaleView({
            superview: this,
            x: 128,
            y: 0,
            width: 128,
            height: 128,
            image: "resources/images/round-rectangle.png"
        });

        nonScaledImage.setFilter( colorFilter );

        // ImageScaleView with slicing, filter has no effect

        var scaledImage = new ImageScaleView({
            superview: this,
            x: 256,
            y: 0,
            width: 128,
            height: 128,
            image: "resources/images/round-rectangle.png",
            scaleMethod: "9slice",
            sourceSlices: {
                horizontal: { left: 30, center: 2, right: 30 },
                vertical: { top: 30, middle: 2, bottom: 30 }
            }
        });

        scaledImage.setFilter( colorFilter );

        // Regular View with a child inside. Filter has no effect, though I cannot tell
        // from the docs whether this is intended behavior or not. Including just in case.

        var container = new View({
            superview: this,
            x: 0,
            y: 128,
            width: 128,
            height: 128
        });

        container.setFilter( colorFilter );

        new ImageView({
            superview: container,
            image: "resources/images/round-rectangle.png",
            x: 0,
            y: 0,
            width: 128,
            height: 128
        });

    };
} );

ui.resource.image not loading base64 data in native android

while creating a new image(ui.resource.image) using the constructor, it is given in the documentation that the source can be either a url or a base64 encoded uri(url {string} —A URL or a base64 encoded image string.) .
This is working as expected in the browser(tested with both local file path and with base64 encoded image string). But when trying to load the image using a base64 encoded image uri(actually a screen shot of the screen captured using the line( GC.app.__root._ctx.canvas.toDataURL();) it takes the content(base64 encoded image string) as the path to load instead of considering it as data (IN ANDROID DEVICE).
I am also unable to save the screen shot(base64 data) in to local disk as a file.Is there a workaround to load actual data in to image object in NATIVE ANDROID.

devkit-core preinstall.sh throws errors during devkit init

Hi,
I'm running ubuntu 16, node v6.3.0 and npm 3.10.3.
I installed devkit throw npm.

devkit-core preinstall.sh throws errors during devkit init

I tried to run it with node v4 but I get the same error.

`➜ /tmp devkit init hello
(node:11982) DeprecationWarning: 'GLOBAL' is deprecated, use 'global'
[apps] Creating app using default template
Creating app using default application template
[install] Installing devkit-core...
Adding devkit-core
[module] set version [email protected]
[install] Copying /tmp/hello/modules
[cache] installing devkit-core at /tmp/hello/modules/devkit-core/
[module] running install scripts...

[email protected] preinstall /tmp/hello/modules/devkit-core
sh scripts/preinstall.sh

Synchronizing submodule url for 'modules/native-android'
Synchronizing submodule url for 'modules/native-ios'
Synchronizing submodule url for 'modules/squill'
Synchronizing submodule url for 'modules/timestep'

[email protected] preinstall /tmp/hello/modules/devkit-core/modules/native-android
sh ./preinstall.sh

Synchronizing submodule url for 'barista'
fatal: Not a git repository: /home/amir/.config/devkit/cache/26620230863654590862/.git/modules/modules/native-android/modules/barista
fatal: Not a git repository: /home/amir/.config/devkit/cache/26620230863654590862/.git/modules/modules/native-android/modules/barista
fatal: Not a git repository: /home/amir/.config/devkit/cache/26620230863654590862/.git/modules/modules/native-android/modules/barista
Synchronizing submodule url for 'native-core'
fatal: Not a git repository: /home/amir/.config/devkit/cache/26620230863654590862/.git/modules/modules/native-android/modules/native-core
fatal: Not a git repository: /home/amir/.config/devkit/cache/26620230863654590862/.git/modules/modules/native-android/modules/native-core
fatal: Not a git repository: /home/amir/.config/devkit/cache/26620230863654590862/.git/modules/modules/native-android/modules/native-core
fatal: Not a git repository: /home/amir/.config/devkit/cache/26620230863654590862/.git/modules/modules/native-android/modules/barista
Unable to find current revision in submodule path 'barista'

npm ERR! Linux 4.4.0-28-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install"
npm ERR! node v6.3.0
npm ERR! npm v3.10.3
npm ERR! code ELIFECYCLE
npm ERR! [email protected] preinstall: sh ./preinstall.sh
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] preinstall script 'sh ./preinstall.sh'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the native-android package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! sh ./preinstall.sh
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs native-android
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls native-android
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! /tmp/hello/modules/devkit-core/modules/native-android/npm-debug.log
Stopping at 'modules/native-android'; script returned non-zero status.

npm WARN [email protected] No license field.
npm ERR! Linux 4.4.0-28-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install"
npm ERR! node v6.3.0
npm ERR! npm v3.10.3
npm ERR! code ELIFECYCLE
npm ERR! [email protected] preinstall: sh scripts/preinstall.sh
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] preinstall script 'sh scripts/preinstall.sh'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the devkit-core package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! sh scripts/preinstall.sh
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs devkit-core
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls devkit-core
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! /tmp/hello/modules/devkit-core/npm-debug.log

      [devkit]  [error]  npm install for module devkit-core failed (exit code 1).

`

EDIT:
If after the init fails I run sudo sh scripts/preinstall.sh then the installation passes and everything seems to be working
Thanks,
Amir.

ES6 Class / Module Support

Any chance we could get full es6 syntax support in devkit. It would be really cool to write:

class HomeView extends View {
    constructor() {
        //this would be your init function
     }
    // ...
}

devkit init should fail if app already exists

devkit init should fail and notify the user if the given app name already exists. Currently it just looks like it succeeds, doesn't apply the desired template, and follows a different flow than if the file didn't already exist.

Devkit-Core fails to load in directories with spaces.

When running devkit apps with an app registered with a directory with spaces, I receive

         [apps]    [warn]  Module /Users/usandfriends/Documents/My Programs/DevKit/testgame/modules/devkit-core failed to load

When trying devkit serve and running the app in-browser, I get a blank screen and

         [apps]    [warn]  Module /Users/usandfriends/Documents/My Programs/DevKit/testgame/modules/devkit-core failed to load
        ..........
        [build]    [error]  build failed
        [build]    [error]  Error: Build target `native-ios` not found
        ..........

devkit install is breaking

reason:

jsio is specified as both node package and git submodule.
When you run npm install node module installs first. Then when it reaches git submodule init stage, since there already exists a folder, script is breaking.

Shim for browser-desktop and browser-mobile

Hi,

I'm trying to build for target browser-desktop, but NATIVE is undefined for these targets. What changes are required to build for browser-* targets? Any help would be useful

Is it correct to include src/clientapi/debugging/nativeShim.js when building for browser-* targets?

how to fix error when build android ?

events.js:154
throw er; // Unhandled 'error' event
^

Error: spawn ndk-build ENOENT
at exports._errnoException (util.js:893:11)
at Process.ChildProcess._handle.onexit (internal/child_process.js:182:32)
at onErrorNT (internal/child_process.js:348:16)
at _combinedTickCallback (internal/process/next_tick.js:74:11)
at process._tickCallback (internal/process/next_tick.js:98:9)

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.