Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Move to Mirah, explain deprecation in readme.

  • Loading branch information...
commit a0f82e5684d38c84c269642cf4e24a7d9657053d 1 parent 4bc4326
Phil Hagelberg authored
1  .gitignore
View
@@ -1,2 +1,3 @@
bin
gen
+/local.properties
16 README.md
View
@@ -1,13 +1,21 @@
# Ohai
-Hello, Android! It's Duby!
+Hello, Android! It's Mirah!
-This is the most basic example of how you can build Android app using
-Duby. For stuff that goes beyond the build process, please see
-[Garrett](http://github.com/technomancy/Garrett).
+This was the first proof-of-concept Android application created using
+the [Mirah](http://mirah.org) programming language (then known as
+Duby). It's left here for historical reasons, but if you are
+interested in writing Mirah Android applications you would be better
+served by [Pindah](http://github.com/mirah/pindah) (tools) and
+[Garrett](http://github.com/technomancy/Garrett) (an example app).
## Compilation
+Install the Android SDK, an Android platform version, and JRuby. Then
+get Mirah:
+
+ $ jruby -S gem install mirah
+
Copy local.properties.example to local.properties and edit it to point
to your SDK. If you're not targeting Android 2.1, you might need to
edit default.properties too.
7 build.xml
View
@@ -65,9 +65,10 @@
<setup />
<target name="compile" depends="-resource-src, -aidl"
- description="Compiles project's .duby files into .class files">
- <exec executable="dubyc" dir="src">
- <env key="CLASSPATH" file="${sdk.dir}/platforms/${target-version}/android.jar" />
+ description="Compiles project's .mirah files into .class files">
+ <exec executable="mirahc" dir="src">
+ <arg value="-c" />
+ <arg value="${sdk.dir}/platforms/${target}/android.jar" />
<arg value="-d" />
<arg value="../bin/classes/" />
<arg value="." />
14 src/technomancy/ohai/Ohai.duby
View
@@ -1,14 +0,0 @@
-import "android.app.Activity"
-import "android.os.Bundle"
-import "android.widget.TextView"
-import "android.content.Context"
-
-class Ohai < Activity
- def onCreate(savedInstanceState:Bundle)
- super(savedInstanceState)
- # cast to Context should be unnecessary
- tv = TextView.new(Context(self))
- tv.setText("Hello, Duby!")
- setContentView(tv)
- end
-end
11 src/technomancy/ohai/Ohai.mirah
View
@@ -0,0 +1,11 @@
+import "android.app.Activity"
+import "android.widget.TextView"
+
+class Ohai < Activity
+ def onCreate(state)
+ super(state)
+ tv = TextView.new(self)
+ tv.setText("Hello, Mirah!")
+ setContentView(tv)
+ end
+end
Please sign in to comment.
Something went wrong with that request. Please try again.