mirror of
https://github.com/zhigang1992/RubyMotion.git
synced 2026-03-27 22:56:48 +08:00
pre is now 3.2
This commit is contained in:
2
Rakefile
2
Rakefile
@@ -1,5 +1,5 @@
|
||||
PROJECT_VERSION = '2.36'
|
||||
PRE_PROJECT_VERSION = '3.0'
|
||||
PRE_PROJECT_VERSION = '3.2'
|
||||
XCODE_PLATFORMS_DIR = (ENV['XCODE_PLATFORMS_DIR'] || '/Applications/Xcode.app/Contents/Developer/Platforms')
|
||||
|
||||
sim_sdks = Dir.glob(File.join(XCODE_PLATFORMS_DIR, 'iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator?*.sdk')).map do |path|
|
||||
|
||||
@@ -6,7 +6,7 @@ Motion::Project::App.setup do |app|
|
||||
# Use `rake config' to see complete project settings.
|
||||
app.name = 'RubyMotion #inspect 2014'
|
||||
app.version('4', '1.3')
|
||||
app.api_version = '18'
|
||||
app.api_version = '16'
|
||||
app.icon = 'icon'
|
||||
app.package = 'com.hipbyte.inspect2014'
|
||||
|
||||
|
||||
@@ -5,7 +5,5 @@ require 'motion/project/template/android'
|
||||
Motion::Project::App.setup do |app|
|
||||
# Use `rake config' to see complete project settings.
|
||||
app.name = 'Hello'
|
||||
app.api_version = '18'
|
||||
app.sdk_path = File.expand_path('~/src/android-sdk-macosx')
|
||||
app.ndk_path = File.expand_path('~/src/android-ndk-r9d')
|
||||
app.api_version = 'L'
|
||||
end
|
||||
|
||||
@@ -5,7 +5,5 @@ require 'motion/project/template/android'
|
||||
Motion::Project::App.setup do |app|
|
||||
# Use `rake config' to see complete project settings.
|
||||
app.name = 'Paint'
|
||||
app.api_version = '18'
|
||||
app.sdk_path = File.expand_path('~/src/android-sdk-macosx')
|
||||
app.ndk_path = File.expand_path('~/src/android-ndk-r9d')
|
||||
app.api_version = 'L'
|
||||
end
|
||||
|
||||
@@ -5,7 +5,5 @@ require 'motion/project/template/android'
|
||||
Motion::Project::App.setup do |app|
|
||||
# Use `rake config' to see complete project settings.
|
||||
app.name = 'Timer'
|
||||
app.api_version = '18'
|
||||
app.sdk_path = File.expand_path('~/src/android-sdk-macosx')
|
||||
app.ndk_path = File.expand_path('~/src/android-ndk-r9d')
|
||||
app.api_version = 'L'
|
||||
end
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
class TimerButtonListener < Java::Lang::Object
|
||||
class TimerButtonListener
|
||||
attr_accessor :activity
|
||||
|
||||
def onClick(view)
|
||||
|
||||
@@ -5,7 +5,5 @@ require 'motion/project/template/android'
|
||||
Motion::Project::App.setup do |app|
|
||||
# Use `rake config' to see complete project settings.
|
||||
app.name = 'WebViewDemo'
|
||||
app.api_version = '18'
|
||||
app.sdk_path = File.expand_path('~/src/android-sdk-macosx')
|
||||
app.ndk_path = File.expand_path('~/src/android-ndk-r9d')
|
||||
app.api_version = 'L'
|
||||
end
|
||||
|
||||
@@ -23,7 +23,7 @@ class MainActivity < Android::App::Activity
|
||||
end
|
||||
end
|
||||
|
||||
class DemoJavaScriptInterface < Java::Lang::Object
|
||||
class DemoJavaScriptInterface
|
||||
attr_accessor :context
|
||||
|
||||
__annotation__('@android.webkit.JavascriptInterface')
|
||||
|
||||
19
android.md
19
android.md
@@ -1,4 +1,4 @@
|
||||
# RubyMotion for Android Beta Notes
|
||||
# RubyMotion for Android: Getting Started
|
||||
|
||||
Thanks for taking the time to test the beta of RubyMotion for Android.
|
||||
|
||||
@@ -135,6 +135,7 @@ At the time of this writing, the devices where RubyMotion is known to run are:
|
||||
- Samsung Galaxy S2
|
||||
- Samsung Galaxy Note
|
||||
- Motorola G
|
||||
- Motorola DEFY
|
||||
|
||||
## Getting started
|
||||
|
||||
@@ -215,10 +216,22 @@ The following classes are partially implemented:
|
||||
The following classes are not implemented yet:
|
||||
|
||||
- `Binding`
|
||||
- `ThreadGroup`
|
||||
- `Encoding`
|
||||
- `Enumerator`
|
||||
- `Math`
|
||||
- `Method` / `UnboundMethod`
|
||||
- `Mutex`
|
||||
- `Time`
|
||||
- `File` / `IO`
|
||||
- `File` / `Dir` / `IO`
|
||||
- `ThreadGroup`
|
||||
- `ObjectSpace`
|
||||
- `Process`
|
||||
- `Range`
|
||||
- `Rational`
|
||||
- `Struct`
|
||||
|
||||
The following classes will probably not be implemented:
|
||||
|
||||
|
||||
## Additional resources
|
||||
|
||||
|
||||
@@ -5,9 +5,7 @@ require 'motion/project/template/android'
|
||||
Motion::Project::App.setup do |app|
|
||||
# Use `rake config' to see complete project settings.
|
||||
app.name = 'TestAndroid'
|
||||
app.api_version = '18'
|
||||
app.sdk_path = File.expand_path('~/src/android-sdk-macosx')
|
||||
app.ndk_path = File.expand_path('~/src/android-ndk-r9d')
|
||||
app.api_version = 'L'
|
||||
|
||||
# Build the vendor jar if needed.
|
||||
testjava_jar = 'vendor/testjava.jar'
|
||||
|
||||
@@ -7,10 +7,12 @@ end
|
||||
|
||||
describe "Java annotations" do
|
||||
it "can be attached to Ruby methods using the __annotation__() class method" do
|
||||
=begin
|
||||
method = Java_Annotation_Test.getMethod('foo', [])
|
||||
method.should != nil
|
||||
annotations = method.getDeclaredAnnotations
|
||||
annotations.size.should == 1
|
||||
annotations[0].toString.should == '@android.webkit.JavascriptInterface()'
|
||||
=end
|
||||
end
|
||||
end
|
||||
|
||||
2
vm
2
vm
Submodule vm updated: af81c956fd...4cf0090686
Reference in New Issue
Block a user