GithubHelp home page GithubHelp logo

pkdevboxy / cordova-osx Goto Github PK

View Code? Open in Web Editor NEW

This project forked from apache/cordova-osx

0.0 2.0 0.0 4.02 MB

Mirror of Apache Cordova mac

License: Apache License 2.0

Objective-C 68.55% C 1.38% JavaScript 24.17% CSS 1.78% HTML 2.87% Shell 1.26%

cordova-osx's Introduction

Cordova OSX

CordovaLib is a framework that enables users to include Cordova in their OS X application projects easily, and also create new Cordova based OS X application projects.

Note that the current focus of this cordova platform is to provide kiosk-like applications for OSX, that usually run fullscreen and have little desktop interaction. So there is no direct support for menus, dock integration, finder integration, documents, etc. Think of it as a mobile app running on a very big screen.

Pre-requisites

Make sure you have installed the latest released OS X SDK which comes with Xcode 6 or later. Download it at http://developer.apple.com/downloads or the Mac App Store.

Use Development versions for your build

Since OSX is not officially released yet, we need to use the development versions of the respective modules where OSX was already added. currently those are:

  • cordova-lib
  • cordova-plugman
  • cordova-plugin-file
  1. checkout the master branch of cordova-lib, cordova-plugman, cordova-cli and all the plugins you require

  2. link the development version if cordova-lib to cordova-cli and cordova-plugman (see https://github.com/apache/cordova-lib#setup)

    $ cd cordova-lib/cordova-lib
    $ npm install && npm link
    $ cd ../../cordova-cli
    $ npm link cordova-lib && npm install 
    $ cd ../cordova-plugman
    $ npm link cordova-lib && npm install
    

Create your project

  1. (Optionally) Follow the instructions in the Command-Line Usage section of the Cordova Docs to create a new project. For example

    $ cordova create hello com.example.hello HelloWorld
    
  2. add the osx platform:

    $ cordova platform add osx
    $ cordova run osx
    
  3. You can also open the project in XCode:

    $ open platforms/osx/<yourproject>.xcodeproj
    

Add plugins

  1. if you need the file-plugin add the master branch version, eg:

    $ cordova plugin add https://github.com/apache/cordova-plugin-file.git
    

Create a Cordova OSX Standalone project

  1. Download the source

  2. execute the create command to setup an empty project:

    $ bin/create <path_to_new_project> <package_name> <project_name>
    

    for example

    $ bin/create ../Foo org.apache.foo FooBar
    

Add plugins

  1. if you need the file-plugin add the master branch version, eg:

    $ cordova plugin add https://github.com/apache/cordova-plugin-file.git
    

Updating a CordovaLib subproject reference in your project

When you update to a new Cordova version, you may need to update the CordovaLib reference in an existing project. Cordova comes with a script that will help you to do this.

  1. Launch Terminal.app
  2. Go to the location where you installed Cordova, in the bin sub-folder
  3. Run update /path/to/your/project

FAQ

How do debug the webview?

You need to enable the WebDeveloperExtras for your bundle:

defaults write com.yourcompany.yourbundleid WebKitDeveloperExtras -bool true

After you changed the defatuls, start the application and right-click inside the webview and select Inspect Element. This opens the Safari Developer Tools.

Note: The bundleid is usually the same as your widget id you define in your config.xml unless overridden by the ios-CFBundleVersion argument.

BUGS?

File them at the Cordova Issue Tracker

MORE INFO

cordova-osx's People

Contributors

agrieve avatar akubera avatar asgeo1 avatar cmarcelk avatar filmaj avatar purplecabbage avatar randymcmillan avatar sahilbh avatar shazron avatar stevengill avatar tripodsan avatar

Watchers

 avatar  avatar

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.