protoform 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,11 @@
1
+ == 0.1.2
2
+
3
+ Upgrade the sample UI to an XML Layout
4
+
5
+ == 0.1.1
6
+
7
+ Cleanup dependencies and add notes
8
+
9
+ == 0.1.0 2010-11-28
10
+
11
+ First gem release
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.1
1
+ 0.1.2
@@ -2,13 +2,11 @@ import "android.app.Activity"
2
2
  import "android.os.Bundle"
3
3
  import "android.widget.TextView"
4
4
  import "android.content.Context"
5
+ import "Layout", "<%= package %>.R$layout"
5
6
 
6
7
  class <%= app_name %> < Activity
7
8
  def onCreate(savedInstanceState:Bundle)
8
9
  super(savedInstanceState)
9
- # cast to Context should be unnecessary
10
- tv = TextView.new(Context(self))
11
- tv.setText("Hello World!")
12
- setContentView(tv)
10
+ setContentView(Layout.main)
13
11
  end
14
12
  end
@@ -66,10 +66,19 @@
66
66
 
67
67
  <target name="compile" depends="-resource-src, -aidl"
68
68
  description="Compiles project's .mirah files into .class files">
69
+
70
+ <exec executable="javac" dir="gen">
71
+ <arg value="-d" />
72
+ <arg value="../bin/classes"/>
73
+ <arg value="../gen/<%= package.gsub('.', '/') %>/R.java"/>
74
+ </exec>
75
+
69
76
  <exec executable="mirahc" dir="src">
70
77
  <env key="CLASSPATH" file="${android.jar}" />
71
78
  <arg value="-d" />
72
- <arg value="../bin/classes/" />
79
+ <arg value="../bin/classes" />
80
+ <arg value="-c"/>
81
+ <arg value="../bin/classes:../gen" />
73
82
  <arg value="." />
74
83
  </exec>
75
84
  </target>
@@ -5,9 +5,10 @@
5
5
  android:layout_height="fill_parent"
6
6
  >
7
7
  <TextView
8
+ android:id="@+id/textview"
8
9
  android:layout_width="fill_parent"
9
10
  android:layout_height="wrap_content"
10
- android:text="Hello World!"
11
+ android:text="@string/welcome"
11
12
  />
12
13
  </LinearLayout>
13
14
 
@@ -1,4 +1,5 @@
1
1
  <?xml version="1.0" encoding="utf-8"?>
2
2
  <resources>
3
3
  <string name="title"><%= title %></string>
4
+ <string name="welcome">Hello goodbye!</string>
4
5
  </resources>
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{protoform}
8
- s.version = "0.1.1"
8
+ s.version = "0.1.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Nick Plante"]
@@ -21,6 +21,7 @@ Gem::Specification.new do |s|
21
21
  s.files = [
22
22
  "Gemfile",
23
23
  "Gemfile.lock",
24
+ "History.txt",
24
25
  "LICENSE.txt",
25
26
  "README.md",
26
27
  "Rakefile",
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 1
9
- version: 0.1.1
8
+ - 2
9
+ version: 0.1.2
10
10
  platform: ruby
11
11
  authors:
12
12
  - Nick Plante
@@ -95,6 +95,7 @@ extra_rdoc_files:
95
95
  files:
96
96
  - Gemfile
97
97
  - Gemfile.lock
98
+ - History.txt
98
99
  - LICENSE.txt
99
100
  - README.md
100
101
  - Rakefile