Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
/.idea/dictionaries | ||
/.idea/compiler.xml | ||
/.idea/flexCompiler.xml | ||
/.idea/misc.xml | ||
/.idea/workspace.xml | ||
/test/bin | ||
/bin |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<module type="Flex" version="4"> | ||
<component name="FlexBuildConfigurationManager" active="BreezeDb"> | ||
<configurations> | ||
<configuration name="BreezeDb" target-platform="Mobile" pure-as="true" output-type="Library" output-file="breezedb.swc" output-folder="$MODULE_DIR$/bin"> | ||
<dependencies> | ||
<sdk name="AIRSDK_Compiler_23" /> | ||
</dependencies> | ||
<compiler-options> | ||
<map> | ||
<entry key="compiler.debug.swc" value="true" /> | ||
</map> | ||
</compiler-options> | ||
<packaging-air-desktop /> | ||
<packaging-android /> | ||
<packaging-ios /> | ||
</configuration> | ||
</configurations> | ||
<compiler-options /> | ||
</component> | ||
<component name="NewModuleRootManager" inherit-compiler-output="true"> | ||
<exclude-output /> | ||
<content url="file://$MODULE_DIR$"> | ||
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" /> | ||
</content> | ||
<orderEntry type="jdk" jdkName="AIRSDK_Compiler_23" jdkType="Flex SDK Type (new)" /> | ||
<orderEntry type="sourceFolder" forTests="false" /> | ||
</component> | ||
</module> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
MIT License | ||
|
||
Copyright (c) 2017 Digital Strawberry LLC | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# BreezeDb | ||
|
||
BreezeDb is a SQLite database helper and ORM loosely based on the [Laravel database](https://laravel.com/docs/5.3/database) and [Eloquent ORM](https://laravel.com/docs/5.3/eloquent). |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
flex.sdk = ${basedir}/air_sdk |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
|
||
<project name="BreezeDb Build Scripts" default="build-swc" basedir="."> | ||
|
||
<!-- Config --> | ||
<property file="./build.properties"/> | ||
|
||
<!-- Properties --> | ||
<property name="name" value="breezedb"/> | ||
<property name="flex.sdk.compc" value="${flex.sdk}/bin/compc"/> | ||
<property name="flex.sdk.mxmlc" value="${flex.sdk}/bin/mxmlc"/> | ||
<property name="flex.sdk.adl" value="${flex.sdk}/bin/adl"/> | ||
<property name="swf.version" value="30"/> | ||
|
||
<!-- Targets --> | ||
<target name="test" depends="build-swc,build-test,run-test" description="Full build and test"/> | ||
|
||
|
||
<!-- Build SWC --> | ||
<target name="build-swc"> | ||
|
||
<echo message="Building swc"/> | ||
<delete dir="../bin/"/> | ||
|
||
<exec executable="${flex.sdk.compc}" failonerror="true"> | ||
<arg line='-include-sources ../src/'/> | ||
<arg line='-output ../bin/${name}.swc'/> | ||
<arg line='-swf-version=${swf.version}'/> | ||
</exec> | ||
</target> | ||
|
||
|
||
<!-- Build test file --> | ||
<target name="build-test"> | ||
|
||
<echo message="Building test"/> | ||
<delete dir="../test/bin/"/> | ||
|
||
<!-- Copy resources (minus .as and .swc files) --> | ||
<copy todir="../test/bin" includeemptydirs="false"> | ||
<fileset dir="../test/" excludes="**/*.as **/*.swc" /> | ||
</copy> | ||
|
||
<exec executable="${flex.sdk.mxmlc}" failonerror="true"> | ||
<arg line="../test/src/Main.as"/> | ||
<arg line="-source-path ../test/src/"/> | ||
<arg line="-library-path ../bin/${name}.swc"/> | ||
<arg line="-library-path ../test/lib/breezetest.swc"/> | ||
<arg line='-external-library-path+="${flex.sdk}/frameworks/libs/air/airglobal.swc"'/> | ||
<arg line="-debug=true"/> | ||
<arg line="-swf-version=${swf.version}"/> | ||
<arg line="-output ../test/bin/${name}.swf"/> | ||
</exec> | ||
</target> | ||
|
||
|
||
<!-- Test the file --> | ||
<target name="run-test"> | ||
|
||
<!-- Run for 2 minutes max --> | ||
<parallel threadCount="1" timeout="120000"> | ||
<sequential> | ||
|
||
<!-- Run the tests --> | ||
<exec executable="${flex.sdk.adl}" failonerror="true" taskname=""> | ||
<arg line="../test/bin/application.xml"/> | ||
</exec> | ||
|
||
</sequential> | ||
</parallel> | ||
|
||
</target> | ||
|
||
|
||
</project> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
/* | ||
* MIT License | ||
* | ||
* Copyright (c) 2017 Digital Strawberry LLC | ||
* | ||
* Permission is hereby granted, free of charge, to any person obtaining a copy | ||
* of this software and associated documentation files (the "Software"), to deal | ||
* in the Software without restriction, including without limitation the rights | ||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
* copies of the Software, and to permit persons to whom the Software is | ||
* furnished to do so, subject to the following conditions: | ||
* | ||
* The above copyright notice and this permission notice shall be included in all | ||
* copies or substantial portions of the Software. | ||
* | ||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
* SOFTWARE. | ||
* | ||
*/ | ||
|
||
package breezedb | ||
{ | ||
public class BreezeDb | ||
{ | ||
|
||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?xml version="1.0" encoding="utf-8" standalone="no"?> | ||
<application xmlns="http://ns.adobe.com/air/application/23.0"> | ||
|
||
<id>io.getbreeze.breezedb</id> | ||
|
||
<!-- Used as the filename for the application. Required. --> | ||
<filename>breezedb</filename> | ||
<name>Breeze Db</name> | ||
<versionNumber>0.0.1</versionNumber> | ||
<copyright>2017 Digital Strawberry LLC</copyright> | ||
|
||
<initialWindow> | ||
<content>breezedb.swf</content> | ||
<systemChrome>standard</systemChrome> | ||
<transparent>false</transparent> | ||
<visible>true</visible> | ||
<fullScreen>true</fullScreen> | ||
<renderMode>cpu</renderMode> | ||
<autoOrients>true</autoOrients> | ||
<aspectRatio>landscape</aspectRatio> | ||
</initialWindow> | ||
|
||
</application> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
/* | ||
* MIT License | ||
* | ||
* Copyright (c) 2017 Digital Strawberry LLC | ||
* | ||
* Permission is hereby granted, free of charge, to any person obtaining a copy | ||
* of this software and associated documentation files (the "Software"), to deal | ||
* in the Software without restriction, including without limitation the rights | ||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
* copies of the Software, and to permit persons to whom the Software is | ||
* furnished to do so, subject to the following conditions: | ||
* | ||
* The above copyright notice and this permission notice shall be included in all | ||
* copies or substantial portions of the Software. | ||
* | ||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
* SOFTWARE. | ||
* | ||
*/ | ||
|
||
package | ||
{ | ||
|
||
import breezetest.BreezeTest; | ||
import breezetest.BreezeTestEvent; | ||
|
||
import flash.desktop.NativeApplication; | ||
|
||
import flash.display.Sprite; | ||
import flash.text.TextField; | ||
|
||
public class Main extends Sprite | ||
{ | ||
private var _breezeTest:BreezeTest; | ||
public function Main() | ||
{ | ||
var textField:TextField = new TextField(); | ||
textField.text = "Running tests..."; | ||
addChild(textField); | ||
|
||
_breezeTest = new BreezeTest(this); | ||
_breezeTest.addEventListener(BreezeTestEvent.TESTS_COMPLETE, onTestsComplete); | ||
// todo: add tests | ||
//_breezeTest.add(); | ||
_breezeTest.run(); | ||
} | ||
|
||
|
||
private function onTestsComplete(event:BreezeTestEvent):void | ||
{ | ||
// Return error if tests failed | ||
NativeApplication.nativeApplication.exit(_breezeTest.success ? 0 : 1); | ||
} | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<module type="Flex" version="4"> | ||
<component name="FlexBuildConfigurationManager" active="test"> | ||
<configurations> | ||
<configuration name="test" target-platform="Desktop" pure-as="true" main-class="Main" output-file="MainTest.swf" output-folder="$MODULE_DIR$/bin"> | ||
<dependencies> | ||
<entries> | ||
<entry library-id="e7c9f530-8400-4b2c-9245-1d3264d56d68"> | ||
<dependency linkage="Merged" /> | ||
</entry> | ||
</entries> | ||
<sdk name="AIRSDK_Compiler_23" /> | ||
</dependencies> | ||
<compiler-options /> | ||
<packaging-air-desktop use-generated-descriptor="false" custom-descriptor-path="$MODULE_DIR$/application.xml" package-file-name="test" /> | ||
<packaging-android /> | ||
<packaging-ios /> | ||
</configuration> | ||
</configurations> | ||
<compiler-options /> | ||
</component> | ||
<component name="NewModuleRootManager" inherit-compiler-output="true"> | ||
<exclude-output /> | ||
<content url="file://$MODULE_DIR$"> | ||
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" /> | ||
</content> | ||
<orderEntry type="jdk" jdkName="AIRSDK_Compiler_23" jdkType="Flex SDK Type (new)" /> | ||
<orderEntry type="sourceFolder" forTests="false" /> | ||
<orderEntry type="module-library" exported=""> | ||
<library type="flex"> | ||
<properties id="e7c9f530-8400-4b2c-9245-1d3264d56d68" /> | ||
<CLASSES> | ||
<root url="jar://$MODULE_DIR$/lib/breezetest.swc!/" /> | ||
</CLASSES> | ||
<JAVADOC /> | ||
<SOURCES /> | ||
</library> | ||
</orderEntry> | ||
</component> | ||
</module> |