<commit_before>Terrarium - Live QML Editor and Viewer
=========

![Doge](http://www.terrariumapp.com/images/doge.png)

Terrarium is a cross platform QML Playground: the view [renders lively](http://i.imgur.com/MCA641U.gif) as you type in the editor, makes prototyping and experimenting with [QtQuick](http://qt.digia.com/qtquick/) a lot more fun!  

It monitors changes in its `TextEdit`, and triggers the view to reload source from the local http server. If you're looking for a file system watcher implementation, please refer to [QML LiveReload](https://github.com/penk/qml-livereload). 

### More details on http://terrariumapp.com

## Download

* [iOS](https://itunes.apple.com/us/app/terrarium/id891232736?ls=1&mt=8)
* [Android](https://play.google.com/store/apps/details?id=com.terrariumapp.penk.Terrarium)
* [Amazon](http://www.amazon.com/Terrarium-Live-QML-Code-Editor/dp/B00LLWAOPM)
* [Mac OSX](http://goo.gl/EqEGvT)
* [Ubuntu Linux](https://launchpad.net/~penk/+archive/touch/+files/terrarium_1.2.1_amd64.deb)
* [Ubuntu Touch](http://goo.gl/jyoVwm)

## Build Instructions

    git clone https://github.com/penk/terrarium-app.git
    cd terrarium-app && git submodule init && git submodule update 
    qmake && make 

## Platform Specific Instructions

### For Mac OSX/iOS

To add icons to iOS build, first generate and open `Terrarium.xcodeproj`, switch AppIcon to use [Assets Catalog](https://developer.apple.com/library/ios/recipes/xcode_help-image_catalog-1.0/Recipe.html), then replace `Terrarium/Images.xcassets/` directory with `platform/ios/Images.xcassets`. 

As for Mac OSX, refer to `macdeployqt` command in `terrarium-app.pro` file. 

__NOTE:__

Remember to add `CFBundleInfoDictionaryVersion` into your `Info.plist` if it's not auto generated by qmake:

    <key>CFBundleInfoDictionaryVersion</key>
    <string>6.0</string>

Otherwise you'll get **Invalid Bundle Structure** error when submit to App Store, as [described here] (http://stackoverflow.com/questions/24194582/invalid-binary-error). 

### For Ubuntu Desktop/Phone

If you're using Qt packages from apt archive instead of [qt-project.org](http://download.qt-project.org/) releases, here's the dependencies: 

    sudo apt-get install qt5-qmake qt5-default qtbase5-dev qtdeclarative5-dev build-essential

All `debian/` package information can be found under `platform/ubuntu/` directory, copy it to current path and build the package by:

    cp -r ubuntu/debian . 
    dpkg-buildpackage -b 

If you're building click package, execute following command on device (for native compile):

    cp platform/ubuntu/* . 
    click build . 

And install it

    click install ./com.ubuntu.developer.penk.terrarium_0.4_armhf.click<commit_msg>README: fix build description for Ubuntu desktop<commit_after>Terrarium - Live QML Editor and Viewer
=========

![Doge](http://www.terrariumapp.com/images/doge.png)

Terrarium is a cross platform QML Playground: the view [renders lively](http://i.imgur.com/MCA641U.gif) as you type in the editor, makes prototyping and experimenting with [QtQuick](http://qt.digia.com/qtquick/) a lot more fun!  

It monitors changes in its `TextEdit`, and triggers the view to reload source from the local http server. If you're looking for a file system watcher implementation, please refer to [QML LiveReload](https://github.com/penk/qml-livereload). 

### More details on http://terrariumapp.com

## Download

* [iOS](https://itunes.apple.com/us/app/terrarium/id891232736?ls=1&mt=8)
* [Android](https://play.google.com/store/apps/details?id=com.terrariumapp.penk.Terrarium)
* [Amazon](http://www.amazon.com/Terrarium-Live-QML-Code-Editor/dp/B00LLWAOPM)
* [Mac OSX](http://goo.gl/EqEGvT)
* [Ubuntu Linux](https://launchpad.net/~penk/+archive/touch/+files/terrarium_1.2.1_amd64.deb)
* [Ubuntu Touch](http://goo.gl/jyoVwm)

## Build Instructions

    git clone https://github.com/penk/terrarium-app.git
    cd terrarium-app && git submodule init && git submodule update 
    qmake && make 

## Platform Specific Instructions

### For Mac OSX/iOS

To add icons to iOS build, first generate and open `Terrarium.xcodeproj`, switch AppIcon to use [Assets Catalog](https://developer.apple.com/library/ios/recipes/xcode_help-image_catalog-1.0/Recipe.html), then replace `Terrarium/Images.xcassets/` directory with `platform/ios/Images.xcassets`. 

As for Mac OSX, refer to `macdeployqt` command in `terrarium-app.pro` file. 

__NOTE:__

Remember to add `CFBundleInfoDictionaryVersion` into your `Info.plist` if it's not auto generated by qmake:

    <key>CFBundleInfoDictionaryVersion</key>
    <string>6.0</string>

Otherwise you'll get **Invalid Bundle Structure** error when submit to App Store, as [described here] (http://stackoverflow.com/questions/24194582/invalid-binary-error). 

### For Ubuntu Desktop/Phone

If you're using Qt packages from apt archive instead of [qt-project.org](http://download.qt-project.org/) releases, here's the dependencies: 

    sudo apt-get install qt5-qmake qt5-default qtbase5-dev qtdeclarative5-dev build-essential

All `debian/` package information can be found under `platform/ubuntu/` directory, copy it to current path and build the package by:

    cp -r platform/ubuntu/debian .
    cp platform/ubuntu/terrarium.desktop .
    dpkg-buildpackage -b 

If you're building click package, execute following command on device (for native compile):

    cp platform/ubuntu/* . 
    click build . 

And install it

    click install ./com.ubuntu.developer.penk.terrarium_0.4_armhf.click
{'fraction_non_alphanumeric': 0.1225081551286698, 'fraction_numerical': 0.014135556361000362, 'mean_word_length': 4.3896484375, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 12, 'lorem ipsum': 0, 'www.': 4, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6898416', 'n_tokens_mistral': 1919, 'n_tokens_neox': 1733, 'n_words': 491}