protoform 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +11 -0
- data/VERSION +1 -1
- data/lib/generators/android/templates/application.mirah +2 -4
- data/lib/generators/android/templates/build.xml +10 -1
- data/lib/generators/android/templates/res/layout/main.xml +2 -1
- data/lib/generators/android/templates/res/values/strings.xml +1 -0
- data/protoform.gemspec +2 -1
- metadata +3 -2
data/History.txt
ADDED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.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
|
-
|
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>
|
data/protoform.gemspec
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{protoform}
|
8
|
-
s.version = "0.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
|
-
-
|
9
|
-
version: 0.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
|