Skip to content

Commit

Permalink
Add literate config.xml.
Browse files Browse the repository at this point in the history
FossilOrigin-Name: 7616d4edc2f29c79156e359e2c16648bfdfddad0
  • Loading branch information
jaccarmac committed Feb 5, 2015
1 parent 177ee69 commit 5798c11
Show file tree
Hide file tree
Showing 5 changed files with 112 additions and 17 deletions.
21 changes: 21 additions & 0 deletions UNLICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
This is free and unencumbered software released into the public domain.

Anyone is free to copy, modify, publish, use, compile, sell, or distribute this
software, either in source code form or as a compiled binary, for any purpose,
commercial or non-commercial, and by any means.

In jurisdictions that recognize copyright laws, the author or authors of this
software dedicate any and all copyright interest in the software to the public
domain. We make this dedication for the benefit of the public at large and to
the detriment of our heirs and successors. We intend this dedication to be an
overt act of relinquishment in perpetuity of all present and future rights to
this software under copyright law.

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 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.

For more information, please refer to <http://unlicense.org/>
22 changes: 12 additions & 10 deletions config.xml
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
<?xml version='1.0' encoding='utf-8'?>
<widget id="com.jaccarmac.draftboys" version="0.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
<name>D R A F T B O Y S</name>
<description>
A sample Apache Cordova application that responds to the deviceready event.
</description>
<author email="[email protected]" href="http://cordova.io">
Apache Cordova Team
</author>
<content src="index.html" />
<access origin="*" />
<widget id="com.jaccarmac.draftboys" version="0.2.0"
xmlns="http://www.w3.org/ns/widgets"
xmlns:cdv="http://cordova.apache.org/ns/1.0">
<name>D R A F T B O Y S</name>
<description>
Create, manage, and share DotA 2 drafts.
</description>
<author email="[email protected]" href="http://jaccarmac.com">
Jacob MacDonald
</author>
<content src="index.html" />
<access origin="*" />
</widget>
72 changes: 72 additions & 0 deletions draftboys.org
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
#+TITLE: =D R A F T B O Y S=
#+AUTHOR: Jacob MacDonald

#+BEGIN_SRC text :tangle UNLICENSE :padline no
This is free and unencumbered software released into the public domain.

Anyone is free to copy, modify, publish, use, compile, sell, or distribute this
software, either in source code form or as a compiled binary, for any purpose,
commercial or non-commercial, and by any means.

In jurisdictions that recognize copyright laws, the author or authors of this
software dedicate any and all copyright interest in the software to the public
domain. We make this dedication for the benefit of the public at large and to
the detriment of our heirs and successors. We intend this dedication to be an
overt act of relinquishment in perpetuity of all present and future rights to
this software under copyright law.

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 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.

For more information, please refer to <http://unlicense.org/>
#+END_SRC

Some of the most fun DotA 2 games I've played have been the ones played with
friends playing specific heroes in a prepared strategy. And as the group of
friends I play with comes closer to forming an actual team, drafting theory
becomes more and more important.

=D R A F T B O Y S= is an application I hope will be helpful for myself, my
friends, and people with similar goals in DotA 2. It is also a project which
will help me practice Cordova, Nim, literate programming, and App Engine.

* Configure Cordova.

The file layout of a Cordova project is way too complicated to put in a
literate program in anything close to a complete form. For more help on
Cordova's specifics, check out the [[http://cordova.apache.org/docs/en/edge/index.html][documentation for the latest version]].

The one Cordova file I will write in literate form is =config.xml=. The most
important things in this file are the version (which will change often) and
the app metadata (which should not have to change very often). Everything
else is copied from the default Cordova project's =config.xml=.

#+NAME: config_xml
#+BEGIN_SRC xml
<?xml version='1.0' encoding='utf-8'?>
<widget id="com.jaccarmac.draftboys" version="0.2.0"
xmlns="http://www.w3.org/ns/widgets"
xmlns:cdv="http://cordova.apache.org/ns/1.0">
<name>D R A F T B O Y S</name>
<description>
Create, manage, and share DotA 2 drafts.
</description>
<author email="[email protected]" href="http://jaccarmac.com">
Jacob MacDonald
</author>
<content src="index.html" />
<access origin="*" />
</widget>
#+END_SRC

* Tangle source code.

** =config.xml=

#+BEGIN_SRC xml :noweb no-export :tangle config.xml :padline no
<<config_xml>>
#+END_SRC
2 changes: 1 addition & 1 deletion platforms/android/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version='1.0' encoding='utf-8'?>
<manifest android:hardwareAccelerated="true" android:versionCode="1" android:versionName="0.0.1" package="com.jaccarmac.draftboys" xmlns:android="http://schemas.android.com/apk/res/android">
<manifest android:hardwareAccelerated="true" android:versionCode="200" android:versionName="0.2.0" package="com.jaccarmac.draftboys" xmlns:android="http://schemas.android.com/apk/res/android">
<supports-screens android:anyDensity="true" android:largeScreens="true" android:normalScreens="true" android:resizeable="true" android:smallScreens="true" android:xlargeScreens="true" />
<uses-permission android:name="android.permission.INTERNET" />
<application android:hardwareAccelerated="true" android:icon="@drawable/icon" android:label="@string/app_name">
Expand Down
12 changes: 6 additions & 6 deletions platforms/android/res/xml/config.xml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<?xml version='1.0' encoding='utf-8'?>
<widget id="com.jaccarmac.draftboys" version="0.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
<widget id="com.jaccarmac.draftboys" version="0.2.0" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
<preference name="loglevel" value="DEBUG" />
<name>D R A F T B O Y S</name>
<description>
A sample Apache Cordova application that responds to the deviceready event.
</description>
<author email="[email protected]" href="http://cordova.io">
Apache Cordova Team
</author>
Create, manage, and share DotA 2 drafts.
</description>
<author email="[email protected]" href="http://jaccarmac.com">
Jacob MacDonald
</author>
<content src="index.html" />
<access origin="*" />
</widget>

0 comments on commit 5798c11

Please sign in to comment.