rhodes 2.0.0.beta2 → 2.0.0.beta3
Sign up to get free protection for your applications and to get access to all the features.
- data/LICENSE +2 -0
- data/Manifest.txt +27 -148
- data/Rakefile +49 -3
- data/lib/framework/builtinME.rb +6 -0
- data/lib/framework/rho/render.rb +13 -8
- data/lib/framework/rho/rho.rb +97 -43
- data/lib/framework/rho/rhoapplication.rb +8 -3
- data/lib/framework/rho/rhocontroller.rb +1 -1
- data/lib/framework/rhodes-framework.rb +1 -1
- data/lib/framework/rhodes.rb +1 -1
- data/lib/framework/rhoframework.rb +7 -22
- data/lib/framework/rhofsconnector.rb +1 -1
- data/lib/framework/rholang/localization_simplified.rb +2 -2
- data/lib/framework/rhom/rhom.rb +1 -0
- data/lib/framework/rhom/rhom_db_adapter.rb +2 -2
- data/lib/framework/rhom/rhom_model.rb +98 -0
- data/lib/framework/rhom/rhom_object_factory.rb +13 -12
- data/lib/rhodes.rb +1 -1
- data/platform/android/Rhodes/jni/include/{JNIRhodes.h → rhodes/JNIRhodes.h} +3 -54
- data/platform/android/Rhodes/jni/include/{RhoClassFactory.h → rhodes/RhoClassFactory.h} +0 -0
- data/platform/android/Rhodes/jni/include/{SystemInfoImpl.h → rhodes/SystemInfoImpl.h} +0 -0
- data/platform/android/Rhodes/jni/include/{details → rhodes/details}/rhojava.inc +1 -0
- data/platform/android/Rhodes/jni/include/{jni → rhodes/jni}/com_rhomobile_rhodes_Logger.h +0 -0
- data/platform/android/Rhodes/jni/include/{jni → rhodes/jni}/com_rhomobile_rhodes_RhoConf.h +0 -0
- data/platform/android/Rhodes/jni/include/{jni → rhodes/jni}/com_rhomobile_rhodes_RhoLogConf.h +0 -0
- data/platform/android/Rhodes/jni/include/{jni → rhodes/jni}/com_rhomobile_rhodes_RhoMenu.h +0 -0
- data/platform/android/Rhodes/jni/include/{jni → rhodes/jni}/com_rhomobile_rhodes_Rhodes.h +0 -0
- data/platform/android/Rhodes/jni/include/{jni → rhodes/jni}/com_rhomobile_rhodes_SplashScreen.h +0 -0
- data/platform/android/Rhodes/jni/include/{jni → rhodes/jni}/com_rhomobile_rhodes_alert_Alert.h +0 -0
- data/platform/android/Rhodes/jni/include/{jni → rhodes/jni}/com_rhomobile_rhodes_camera_Camera.h +0 -0
- data/platform/android/Rhodes/jni/include/{jni → rhodes/jni}/com_rhomobile_rhodes_datetime_DateTimePicker.h +0 -0
- data/platform/android/Rhodes/jni/include/{jni → rhodes/jni}/com_rhomobile_rhodes_geolocation_GeoLocationImpl.h +0 -0
- data/platform/android/Rhodes/jni/include/{jni → rhodes/jni}/com_rhomobile_rhodes_socket_RhoSocketImpl.h +0 -0
- data/platform/android/Rhodes/jni/include/{jni → rhodes/jni}/com_rhomobile_rhodes_socket_SSLImpl.h +0 -0
- data/platform/android/Rhodes/jni/include/{sslimpl.h → rhodes/sslimpl.h} +0 -0
- data/platform/android/Rhodes/jni/include/rhodes.h +59 -0
- data/platform/android/Rhodes/jni/src/RhoClassFactory.cpp +3 -3
- data/platform/android/Rhodes/jni/src/alert.cpp +2 -2
- data/platform/android/Rhodes/jni/src/callbacks.cpp +4 -3
- data/platform/android/Rhodes/jni/src/camera.cpp +2 -2
- data/platform/android/Rhodes/jni/src/datetimepicker.cpp +2 -2
- data/platform/android/Rhodes/jni/src/geolocation.cpp +2 -2
- data/platform/android/Rhodes/jni/src/logconf.cpp +2 -2
- data/platform/android/Rhodes/jni/src/logger.cpp +2 -2
- data/platform/android/Rhodes/jni/src/mapview.cpp +1 -1
- data/platform/android/Rhodes/jni/src/menu.cpp +2 -2
- data/platform/android/Rhodes/jni/src/nativebar.cpp +1 -1
- data/platform/android/Rhodes/jni/src/navbar.cpp +17 -3
- data/platform/android/Rhodes/jni/src/phonebook.cpp +1 -1
- data/platform/android/Rhodes/jni/src/rhoconf.cpp +2 -2
- data/platform/android/Rhodes/jni/src/rhodes.cpp +3 -3
- data/platform/android/Rhodes/jni/src/ringtones.cpp +1 -1
- data/platform/android/Rhodes/jni/src/socketimpl.cpp +2 -2
- data/platform/android/Rhodes/jni/src/splashscreen.cpp +2 -2
- data/platform/android/Rhodes/jni/src/sslimpl.cpp +3 -3
- data/platform/android/Rhodes/jni/src/syncengine.cpp +2 -2
- data/platform/android/Rhodes/jni/src/webview.cpp +15 -12
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/NativeLibraries.java +11 -0
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/NavBar.java +52 -0
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/Rhodes.java +8 -2
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/WebView.java +26 -28
- data/platform/android/build/RhodesSRC_build.files +21 -20
- data/platform/android/build/android.rake +69 -24
- data/platform/android/build/androidcommon.rb +17 -12
- data/platform/bb/build/bb.rake +23 -21
- data/platform/bb/rhodes/src/com/rho/BrowserAdapter.java +5 -2
- data/platform/bb/rhodes/src/com/rho/RhoRubyHelper.java +6 -1
- data/platform/bb/rhodes/src/com/rho/rubyext/System.java +9 -1
- data/platform/bb/rhodes/src/com/rho/rubyext/WebView.java +31 -2
- data/platform/bb/rhodes/src/rhomobile/RhodesApplication.java +17 -6
- data/platform/bb/rhodes/src/rhomobile/Utilities.java +6 -0
- data/platform/iphone/Classes/AppManager/AppManager.m +16 -4
- data/platform/iphone/Classes/DateTime.h +5 -6
- data/platform/iphone/Classes/DateTimePicker.m +4 -18
- data/platform/iphone/Classes/DateTimePickerDelegate.h +7 -9
- data/platform/iphone/Classes/DateTimePickerDelegate.m +141 -152
- data/platform/iphone/Classes/Rhodes.h +6 -1
- data/platform/iphone/Classes/Rhodes.m +17 -43
- data/platform/iphone/Classes/SimpleMainView.h +1 -1
- data/platform/iphone/Classes/SimpleMainView.m +54 -4
- data/platform/iphone/Classes/WebView.m +17 -0
- data/platform/iphone/rbuild/iphone.rake +1 -0
- data/platform/iphone/rhorunner.xcodeproj/project.pbxproj +0 -45
- data/platform/shared/common/PosixThreadImpl.cpp +8 -0
- data/platform/shared/common/PosixThreadImpl.h +1 -0
- data/platform/shared/common/RhoThread.cpp +1 -0
- data/platform/shared/common/RhoThread.h +4 -2
- data/platform/shared/curl/include/curl/curl.h +4 -0
- data/platform/shared/db/DBAdapter.cpp +47 -60
- data/platform/shared/db/DBAdapter.h +6 -2
- data/platform/shared/net/AsyncHttp.cpp +27 -11
- data/platform/shared/net/AsyncHttp.h +3 -1
- data/platform/shared/net/CURLNetRequest.cpp +11 -10
- data/platform/shared/net/CURLNetRequest.h +6 -4
- data/platform/shared/net/HttpServer.cpp +11 -6
- data/platform/shared/ruby/ext/asynchttp/asynchttp.i +2 -2
- data/platform/shared/ruby/ext/asynchttp/asynchttp_wrap.c +22 -11
- data/platform/shared/ruby/ext/rho/rhoruby.c +2 -2
- data/platform/shared/ruby/ext/rho/rhosupport.c +23 -3
- data/platform/shared/ruby/ext/webview/webview.i +4 -0
- data/platform/shared/ruby/ext/webview/webview_wrap.c +39 -0
- data/platform/shared/ruby/re.c +8 -0
- data/platform/shared/ruby/string.c +1 -1
- data/platform/shared/rubyJVM/src/com/rho/IRhoRubyHelper.java +1 -0
- data/platform/shared/rubyJVM/src/com/rho/RhoClassFactory.java +6 -1
- data/platform/shared/rubyJVM/src/com/rho/RhoThread.java +3 -0
- data/platform/shared/rubyJVM/src/com/rho/RhodesApp.java +34 -0
- data/platform/shared/rubyJVM/src/com/rho/db/DBAdapter.java +40 -53
- data/platform/shared/rubyJVM/src/com/rho/net/AsyncHttp.java +32 -15
- data/platform/shared/rubyJVM/src/com/rho/net/NetRequest.java +31 -17
- data/platform/shared/rubyJVM/src/com/rho/net/RhoConnection.java +3 -0
- data/platform/shared/rubyJVM/src/com/rho/sync/JSONArrayIterator.java +17 -0
- data/platform/shared/rubyJVM/src/com/rho/sync/SyncEngine.java +158 -137
- data/platform/shared/rubyJVM/src/com/rho/sync/SyncSource.java +18 -17
- data/platform/shared/rubyJVM/src/com/rho/sync/SyncThread.java +10 -2
- data/platform/shared/rubyJVM/src/com/xruby/GeneratedMethods/RubyFile_Methods.java +6 -0
- data/platform/shared/rubyJVM/src/com/xruby/runtime/builtin/RubyFile.java +18 -3
- data/platform/shared/rubyJVM/src/j2me/io/File.java +37 -9
- data/platform/shared/sqlite/sqlite3.c +14613 -13016
- data/platform/shared/sqlite/sqlite3.h +1461 -1499
- data/platform/shared/sqlite/sqlite3ext.h +0 -2
- data/platform/shared/sync/ClientRegister.cpp +3 -3
- data/platform/shared/sync/ClientRegister.h +2 -1
- data/platform/shared/sync/SyncEngine.cpp +20 -8
- data/platform/shared/sync/SyncSource.cpp +12 -12
- data/platform/shared/sync/SyncSource.h +4 -4
- data/platform/shared/sync/SyncThread.cpp +8 -1
- data/platform/shared/tcmalloc/rhomem.h +3 -0
- data/platform/shared/tcmalloc/tcmalloc_.cpp +11 -0
- data/platform/wm/rhodes/Alert.cpp +148 -101
- data/platform/wm/rhodes/Alert.h +4 -1
- data/platform/wm/rhodes/AppManager.cpp +212 -72
- data/platform/wm/rhodes/AppManager.h +24 -3
- data/platform/wm/rhodes/DateTimePicker.cpp +23 -11
- data/platform/wm/rhodes/DateTimePicker.h +16 -5
- data/platform/wm/rhodes/MainWindow.cpp +22 -7
- data/platform/wm/rhodes/OkCancelModalDialog.h +63 -0
- data/platform/wm/rhodes/Rhodes.cpp +29 -17
- data/platform/wm/rhodes/phonebook/NativeAddressBook.cpp +128 -4
- data/platform/wm/rhodes/phonebook/NativeAddressBook.h +33 -3
- data/platform/wm/rhodes/resource.h +1 -1
- data/platform/wm/rhodes/rho/common/RhoClassFactory.cpp +5 -0
- data/platform/wm/rhodes/rho/net/NetRequestImpl.cpp +136 -102
- data/platform/wm/rhodes/rho/net/NetRequestImpl.h +12 -5
- data/platform/wm/rhodes/rho/rubyext/SystemImpl.cpp +24 -10
- data/platform/wm/rhodes/rho/rubyext/WebView.cpp +6 -0
- data/platform/wm/rhodes/rhodes.vcproj +4 -0
- data/platform/wm/tools/detool/detool.cpp +17 -4
- data/rakefile.rb +49 -3
- data/res/build-tools/db/syncdb.schema +2 -2
- data/res/build-tools/detool.exe +0 -0
- data/res/generators/rhogen.rb +10 -10
- data/res/generators/templates/application/app/helpers/browser_helper.rb +9 -4
- data/res/generators/templates/application/app/index.bb.erb +5 -5
- data/res/generators/templates/application/build.yml +1 -0
- data/res/generators/templates/application/public/css/android.css +10 -8
- data/res/generators/templates/application/public/css/blackberry.css +40 -31
- data/res/generators/templates/application/public/css/iphone.css +4 -4
- data/res/generators/templates/application/public/css/webkit.css +7 -0
- data/res/generators/templates/application/public/css/windows_mobile.css +31 -27
- data/res/generators/templates/application/rhoconfig.txt +2 -2
- data/res/generators/templates/model/edit.bb.erb +2 -2
- data/res/generators/templates/model/index.bb.erb +6 -4
- data/res/generators/templates/model/model.rb +2 -1
- data/res/generators/templates/model/new.bb.erb +2 -2
- data/res/generators/templates/model/show.bb.erb +2 -2
- data/rhobuild.yml +37 -0
- data/rhodes.gemspec +1 -1
- data/spec/framework_spec/app/Account/account.rb +7 -0
- data/spec/framework_spec/app/Case/case.rb +6 -0
- data/spec/framework_spec/app/Customer/customer.rb +6 -0
- data/spec/framework_spec/app/Product/product.rb +9 -0
- data/spec/framework_spec/app/spec/rhom_object_spec.rb +1 -1
- data/spec/framework_spec/app/spec/syncengine_spec.rb +2 -1
- metadata +45 -151
- data/lib/build/manifest/createAppManifest.rb +0 -18
- data/lib/build/tasks/android.rake +0 -317
- data/lib/build/tasks/blackberry.rake +0 -355
- data/lib/build/tasks/common.rake +0 -62
- data/lib/build/tasks/iphone.rake +0 -108
- data/lib/build/tasks/linux.rake +0 -81
- data/lib/build/tasks/rhodes-build.rb +0 -11
- data/lib/build/tasks/rspec.rake +0 -20
- data/lib/build/tasks/symbian.rake +0 -202
- data/lib/build/tasks/wm.rake +0 -166
- data/lib/framework/ServeME.rb +0 -7
- data/platform/bb/build/MANIFEST.MF +0 -12
- data/platform/iphone/Classes/DateTimePicker.h +0 -17
- data/res/generators/templates/application/public/icons/Read me first - license.txt +0 -14
- data/res/generators/templates/application/public/icons/about.png +0 -0
- data/res/generators/templates/application/public/icons/airplane.png +0 -0
- data/res/generators/templates/application/public/icons/baby.png +0 -0
- data/res/generators/templates/application/public/icons/badge.png +0 -0
- data/res/generators/templates/application/public/icons/bandaid.png +0 -0
- data/res/generators/templates/application/public/icons/bar-chart.png +0 -0
- data/res/generators/templates/application/public/icons/battery.png +0 -0
- data/res/generators/templates/application/public/icons/beaker.png +0 -0
- data/res/generators/templates/application/public/icons/beaker2.png +0 -0
- data/res/generators/templates/application/public/icons/beermug.png +0 -0
- data/res/generators/templates/application/public/icons/bird.png +0 -0
- data/res/generators/templates/application/public/icons/book.png +0 -0
- data/res/generators/templates/application/public/icons/bookmark.png +0 -0
- data/res/generators/templates/application/public/icons/brightness.png +0 -0
- data/res/generators/templates/application/public/icons/bug.png +0 -0
- data/res/generators/templates/application/public/icons/cabinet.png +0 -0
- data/res/generators/templates/application/public/icons/calendar.png +0 -0
- data/res/generators/templates/application/public/icons/camera.png +0 -0
- data/res/generators/templates/application/public/icons/changeName.rb +0 -22
- data/res/generators/templates/application/public/icons/chat2.png +0 -0
- data/res/generators/templates/application/public/icons/chicken.png +0 -0
- data/res/generators/templates/application/public/icons/clock.png +0 -0
- data/res/generators/templates/application/public/icons/cloud.png +0 -0
- data/res/generators/templates/application/public/icons/coffee.png +0 -0
- data/res/generators/templates/application/public/icons/compass.png +0 -0
- data/res/generators/templates/application/public/icons/contrast.png +0 -0
- data/res/generators/templates/application/public/icons/dashboard.png +0 -0
- data/res/generators/templates/application/public/icons/display.png +0 -0
- data/res/generators/templates/application/public/icons/dogpaw.png +0 -0
- data/res/generators/templates/application/public/icons/download.png +0 -0
- data/res/generators/templates/application/public/icons/dumbbell.png +0 -0
- data/res/generators/templates/application/public/icons/ekg.png +0 -0
- data/res/generators/templates/application/public/icons/envelope.png +0 -0
- data/res/generators/templates/application/public/icons/equalizer.png +0 -0
- data/res/generators/templates/application/public/icons/eye.png +0 -0
- data/res/generators/templates/application/public/icons/film-roll.png +0 -0
- data/res/generators/templates/application/public/icons/flag.png +0 -0
- data/res/generators/templates/application/public/icons/fork-and-knife.png +0 -0
- data/res/generators/templates/application/public/icons/fuel.png +0 -0
- data/res/generators/templates/application/public/icons/gameplan.png +0 -0
- data/res/generators/templates/application/public/icons/gear.png +0 -0
- data/res/generators/templates/application/public/icons/gear2.png +0 -0
- data/res/generators/templates/application/public/icons/gift.png +0 -0
- data/res/generators/templates/application/public/icons/heart.png +0 -0
- data/res/generators/templates/application/public/icons/house.png +0 -0
- data/res/generators/templates/application/public/icons/inbox.png +0 -0
- data/res/generators/templates/application/public/icons/index-cards.png +0 -0
- data/res/generators/templates/application/public/icons/iphone.png +0 -0
- data/res/generators/templates/application/public/icons/ipod.png +0 -0
- data/res/generators/templates/application/public/icons/key.png +0 -0
- data/res/generators/templates/application/public/icons/lifebuoy.png +0 -0
- data/res/generators/templates/application/public/icons/lightbulb.png +0 -0
- data/res/generators/templates/application/public/icons/line-chart.png +0 -0
- data/res/generators/templates/application/public/icons/location.png +0 -0
- data/res/generators/templates/application/public/icons/lock.png +0 -0
- data/res/generators/templates/application/public/icons/loopback.png +0 -0
- data/res/generators/templates/application/public/icons/magnifying-glass.png +0 -0
- data/res/generators/templates/application/public/icons/map-marker.png +0 -0
- data/res/generators/templates/application/public/icons/map.png +0 -0
- data/res/generators/templates/application/public/icons/medical-bag.png +0 -0
- data/res/generators/templates/application/public/icons/medical.png +0 -0
- data/res/generators/templates/application/public/icons/microphone.png +0 -0
- data/res/generators/templates/application/public/icons/movie1.png +0 -0
- data/res/generators/templates/application/public/icons/movie2.png +0 -0
- data/res/generators/templates/application/public/icons/network.png +0 -0
- data/res/generators/templates/application/public/icons/note.png +0 -0
- data/res/generators/templates/application/public/icons/outlet.png +0 -0
- data/res/generators/templates/application/public/icons/palette.png +0 -0
- data/res/generators/templates/application/public/icons/paperclip.png +0 -0
- data/res/generators/templates/application/public/icons/phone.png +0 -0
- data/res/generators/templates/application/public/icons/photos.png +0 -0
- data/res/generators/templates/application/public/icons/piano.png +0 -0
- data/res/generators/templates/application/public/icons/picture-frame.png +0 -0
- data/res/generators/templates/application/public/icons/pill.png +0 -0
- data/res/generators/templates/application/public/icons/pin.png +0 -0
- data/res/generators/templates/application/public/icons/pinetree.png +0 -0
- data/res/generators/templates/application/public/icons/planet.png +0 -0
- data/res/generators/templates/application/public/icons/puzzle.png +0 -0
- data/res/generators/templates/application/public/icons/radar.png +0 -0
- data/res/generators/templates/application/public/icons/redo.png +0 -0
- data/res/generators/templates/application/public/icons/refresh.png +0 -0
- data/res/generators/templates/application/public/icons/runner.png +0 -0
- data/res/generators/templates/application/public/icons/shoebox.png +0 -0
- data/res/generators/templates/application/public/icons/shopping-bag.png +0 -0
- data/res/generators/templates/application/public/icons/shopping-cart.png +0 -0
- data/res/generators/templates/application/public/icons/shuffle.png +0 -0
- data/res/generators/templates/application/public/icons/signpost.png +0 -0
- data/res/generators/templates/application/public/icons/skull-n-crossbones.png +0 -0
- data/res/generators/templates/application/public/icons/skull.png +0 -0
- data/res/generators/templates/application/public/icons/sliders.png +0 -0
- data/res/generators/templates/application/public/icons/spraycan.png +0 -0
- data/res/generators/templates/application/public/icons/squiggle.png +0 -0
- data/res/generators/templates/application/public/icons/star.png +0 -0
- data/res/generators/templates/application/public/icons/stopwatch.png +0 -0
- data/res/generators/templates/application/public/icons/suitcase.png +0 -0
- data/res/generators/templates/application/public/icons/tag.png +0 -0
- data/res/generators/templates/application/public/icons/tags.png +0 -0
- data/res/generators/templates/application/public/icons/target.png +0 -0
- data/res/generators/templates/application/public/icons/testtube.png +0 -0
- data/res/generators/templates/application/public/icons/thermometer.png +0 -0
- data/res/generators/templates/application/public/icons/toolbox.png +0 -0
- data/res/generators/templates/application/public/icons/trophy.png +0 -0
- data/res/generators/templates/application/public/icons/tshirt.png +0 -0
- data/res/generators/templates/application/public/icons/tv.png +0 -0
- data/res/generators/templates/application/public/icons/umbrella.png +0 -0
- data/res/generators/templates/application/public/icons/walk.png +0 -0
- data/res/generators/templates/application/public/icons/weather.png +0 -0
- data/res/generators/templates/application/public/icons/widescreen.png +0 -0
- data/res/generators/templates/application/public/icons/wineglass.png +0 -0
- data/res/generators/templates/application/public/icons/zap.png +0 -0
- data/res/generators/templates/application/public/js/jquery-1.2.6.min.js +0 -32
- data/res/generators/templates/model/config.rb +0 -3
- data/res/generators/templates/spec/app/spec/webview_spec.rb +0 -5
- data/spec/framework_spec/app/Account/config.rb +0 -59
- data/spec/framework_spec/app/Case/config.rb +0 -3
- data/spec/framework_spec/app/Customer/config.rb +0 -3
- data/spec/framework_spec/app/Product/config.rb +0 -17
data/lib/build/tasks/common.rake
DELETED
@@ -1,62 +0,0 @@
|
|
1
|
-
$buildyml = "build.yml"
|
2
|
-
|
3
|
-
namespace "config" do
|
4
|
-
task :common do
|
5
|
-
$config = Jake.config(File.open($buildyml))
|
6
|
-
$basedir = pwd
|
7
|
-
$bindir = File.join($basedir,'bin')
|
8
|
-
$tmpdir = File.join($bindir,'tmp')
|
9
|
-
$targetdir = File.join($bindir,'target')
|
10
|
-
$srcdir = File.join($bindir, '/RhoBundle')
|
11
|
-
|
12
|
-
filedir = File.expand_path File.dirname(__FILE__)
|
13
|
-
|
14
|
-
$compileERBbase = File.join(filedir,'..','compileERB')
|
15
|
-
$compileRBbase = File.join(filedir,'..','compileRB')
|
16
|
-
|
17
|
-
$appmanifest = File.join(filedir,'..','manifest','createAppManifest.rb')
|
18
|
-
$res = File.join(filedir,'..','..','res')
|
19
|
-
$prebuilt = File.join($res,'prebuilt')
|
20
|
-
|
21
|
-
end
|
22
|
-
end
|
23
|
-
|
24
|
-
task :makedirs do
|
25
|
-
mkdir_p $bindir if not File.exists? $bindir
|
26
|
-
mkdir_p $tmpdir if not File.exists? $tmpdir
|
27
|
-
mkdir_p $targetdir if not File.exists? $targetdir
|
28
|
-
end
|
29
|
-
|
30
|
-
namespace "bundle" do
|
31
|
-
task :common do
|
32
|
-
end
|
33
|
-
end
|
34
|
-
|
35
|
-
namespace "check" do
|
36
|
-
desc "Check that your system setup is correct for building"
|
37
|
-
task :all do
|
38
|
-
platforms = RUBY_PLATFORM =~ /(win|w)32$/ ? ["bb","wm","android"] : ["android"]
|
39
|
-
platforms.each do |platform|
|
40
|
-
Rake::Task["check:#{platform}"].invoke
|
41
|
-
puts "-------------------------------"
|
42
|
-
end
|
43
|
-
end
|
44
|
-
end
|
45
|
-
|
46
|
-
namespace "clean" do
|
47
|
-
desc "Clean all build artifacts (removes bin/ directory)"
|
48
|
-
task :all do
|
49
|
-
rm_rf 'bin'
|
50
|
-
end
|
51
|
-
end
|
52
|
-
|
53
|
-
Rake::TaskManager.class_eval do
|
54
|
-
def remove_task(task_name)
|
55
|
-
@tasks.delete(task_name.to_s)
|
56
|
-
end
|
57
|
-
end
|
58
|
-
|
59
|
-
def remove_task(task_name)
|
60
|
-
Rake.application.remove_task(task_name)
|
61
|
-
end
|
62
|
-
|
data/lib/build/tasks/iphone.rake
DELETED
@@ -1,108 +0,0 @@
|
|
1
|
-
require File.join(File.dirname(__FILE__),'..','jake.rb')
|
2
|
-
|
3
|
-
namespace "config" do
|
4
|
-
task :iphone => :common do
|
5
|
-
$homedir = `echo ~`.to_s.strip
|
6
|
-
|
7
|
-
$excludelib = ['**/builtinME.rb','**/ServeME.rb','**/TestServe.rb']
|
8
|
-
|
9
|
-
$simapp="#{$homedir}/Library/Application Support/iPhone Simulator/User/Applications"
|
10
|
-
$simlink="#{$homedir}/Library/Application Support/iPhone Simulator/User/Library/Preferences"
|
11
|
-
$sim="/Developer/Platforms/iPhoneSimulator.platform/Developer/Applications"
|
12
|
-
$guid="364FFCAF-C71D-4543-B293-9058E31CFFEE"
|
13
|
-
$applog = File.join($homedir,$config["env"]["applog"])
|
14
|
-
|
15
|
-
end
|
16
|
-
end
|
17
|
-
|
18
|
-
task :loadframework do
|
19
|
-
require 'rhodes-framework'
|
20
|
-
puts $rhodeslib
|
21
|
-
end
|
22
|
-
|
23
|
-
namespace "bundle" do
|
24
|
-
task :iphone => ["config:iphone", "loadframework", "makedirs"] do
|
25
|
-
|
26
|
-
rm_rf $srcdir
|
27
|
-
mkdir_p $srcdir
|
28
|
-
mkdir_p File.join($srcdir,'apps')
|
29
|
-
|
30
|
-
rubypath = File.join($res,'RubyMac')
|
31
|
-
compileERB = File.join($compileERBbase,'default.rb')
|
32
|
-
compileRB = File.join($compileRBbase,'compileRB.rb')
|
33
|
-
|
34
|
-
dest = $srcdir
|
35
|
-
src = $rhodeslib
|
36
|
-
cp_r src,dest
|
37
|
-
|
38
|
-
chdir dest
|
39
|
-
Dir.glob("**/rhodes-framework.rb").each {|f| rm f}
|
40
|
-
Dir.glob("**/erb.rb").each {|f| rm f}
|
41
|
-
Dir.glob("**/find.rb").each {|f| rm f}
|
42
|
-
$excludelib.each {|e| Dir.glob(e).each {|f| rm f}}
|
43
|
-
|
44
|
-
chdir $basedir
|
45
|
-
cp_r 'app',File.join($srcdir,'apps')
|
46
|
-
cp_r 'public', File.join($srcdir,'apps')
|
47
|
-
cp 'rhoconfig.txt', File.join($srcdir,'apps')
|
48
|
-
|
49
|
-
cp $appmanifest, $srcdir
|
50
|
-
puts `#{rubypath} -R#{$rhodeslib} #{$srcdir}/createAppManifest.rb`
|
51
|
-
rm File.join($srcdir,'createAppManifest.rb')
|
52
|
-
cp compileERB, $srcdir
|
53
|
-
puts `#{rubypath} -R#{$rhodeslib} #{$srcdir}/default.rb`
|
54
|
-
|
55
|
-
rm "#{$srcdir}/default.rb"
|
56
|
-
|
57
|
-
cp compileRB, $srcdir
|
58
|
-
puts `#{rubypath} -R#{$rhodeslib} #{$srcdir}/compileRB.rb`
|
59
|
-
|
60
|
-
chdir $srcdir
|
61
|
-
Dir.glob("**/*.rb") { |f| rm f }
|
62
|
-
Dir.glob("**/*.erb") { |f| rm f }
|
63
|
-
#throw "ME"
|
64
|
-
|
65
|
-
chdir $basedir
|
66
|
-
|
67
|
-
# rm_rf $srcdir
|
68
|
-
|
69
|
-
end
|
70
|
-
end
|
71
|
-
|
72
|
-
namespace "device" do
|
73
|
-
desc "Create downloadable app for iPhone"
|
74
|
-
task :iphone => "bundle:iphone" do
|
75
|
-
|
76
|
-
end
|
77
|
-
end
|
78
|
-
|
79
|
-
namespace "run" do
|
80
|
-
namespace "iphone" do
|
81
|
-
|
82
|
-
desc "Run app in iPhone Sim"
|
83
|
-
task :app => ["bundle:iphone"] do
|
84
|
-
simrhodes = File.join($simapp,$guid)
|
85
|
-
rm_rf simrhodes
|
86
|
-
|
87
|
-
mkdir_p File.join(simrhodes,"Documents")
|
88
|
-
mkdir_p File.join(simrhodes,"Library","Preferences")
|
89
|
-
|
90
|
-
puts `cp -R -p "#{$prebuilt}/iphone/sim/rhorunner.app" "#{simrhodes}"`
|
91
|
-
puts `cp -R -p "#{$srcdir}/apps" "#{simrhodes}/rhorunner.app"`
|
92
|
-
puts `cp -R -p "#{$srcdir}/lib" "#{simrhodes}/rhorunner.app"`
|
93
|
-
puts `ln -f -s "#{$simlink}/com.apple.PeoplePicker.plist" "#{simrhodes}/Library/Preferences/com.apple.PeoplePicker.plist"`
|
94
|
-
puts `ln -f -s "#{$simlink}/.GlobalPreferences.plist" "#{simrhodes}/Library/Preferences/.GlobalPreferences.plist"`
|
95
|
-
|
96
|
-
puts `echo "#{$applog}" > "#{simrhodes}/Documents/rhologpath.txt"`
|
97
|
-
|
98
|
-
f = File.new("#{$simapp}/#{$guid}.sb","w")
|
99
|
-
f << "(version 1)\n(debug deny)\n(allow default)\n"
|
100
|
-
f.close
|
101
|
-
|
102
|
-
system("open \"#{$sim}/iPhone Simulator.app\"")
|
103
|
-
|
104
|
-
end
|
105
|
-
|
106
|
-
|
107
|
-
end
|
108
|
-
end
|
data/lib/build/tasks/linux.rake
DELETED
@@ -1,81 +0,0 @@
|
|
1
|
-
require File.join(File.dirname(__FILE__),'..','jake.rb')
|
2
|
-
|
3
|
-
namespace "config" do
|
4
|
-
task :linux => :common do
|
5
|
-
$homedir = `echo ~`.to_s.strip
|
6
|
-
|
7
|
-
$excludelib = ['**/builtinME.rb','**/ServeME.rb','**/TestServe.rb']
|
8
|
-
$applog = File.join($homedir,$config["env"]["applog"])
|
9
|
-
end
|
10
|
-
end
|
11
|
-
|
12
|
-
task :loadframework do
|
13
|
-
require 'rhodes-framework'
|
14
|
-
puts $rhodeslib
|
15
|
-
end
|
16
|
-
|
17
|
-
namespace "bundle" do
|
18
|
-
task :linux => ["config:linux", "loadframework", "makedirs"] do
|
19
|
-
rm_rf $srcdir
|
20
|
-
mkdir_p $srcdir
|
21
|
-
mkdir_p File.join($srcdir,'apps')
|
22
|
-
|
23
|
-
rubypath = `which rubylinux`.chomp!
|
24
|
-
raise RuntimeError "no rubylinux on your path!" if rubypath.nil? or rubypath.empty?
|
25
|
-
compileERB = File.join($compileERBbase,'default.rb')
|
26
|
-
compileRB = File.join($compileRBbase,'compileRB.rb')
|
27
|
-
|
28
|
-
dest = $srcdir
|
29
|
-
src = $rhodeslib
|
30
|
-
cp_r src,dest
|
31
|
-
|
32
|
-
chdir dest
|
33
|
-
Dir.glob("**/rhodes-framework.rb").each {|f| rm f}
|
34
|
-
Dir.glob("**/erb.rb").each {|f| rm f}
|
35
|
-
Dir.glob("**/find.rb").each {|f| rm f}
|
36
|
-
$excludelib.each {|e| Dir.glob(e).each {|f| rm f}}
|
37
|
-
|
38
|
-
chdir $basedir
|
39
|
-
cp_r 'app',File.join($srcdir,'apps')
|
40
|
-
cp_r 'public', File.join($srcdir,'apps')
|
41
|
-
cp 'rhoconfig.txt', File.join($srcdir,'apps')
|
42
|
-
|
43
|
-
cp $appmanifest, $srcdir
|
44
|
-
puts `#{rubypath} -I#{$rhodeslib} #{$srcdir}/createAppManifest.rb`
|
45
|
-
rm File.join($srcdir,'createAppManifest.rb')
|
46
|
-
cp compileERB, $srcdir
|
47
|
-
puts `#{rubypath} -I#{$rhodeslib} #{$srcdir}/default.rb`
|
48
|
-
|
49
|
-
rm "#{$srcdir}/default.rb"
|
50
|
-
|
51
|
-
cp compileRB, $srcdir
|
52
|
-
puts `#{rubypath} -I#{$rhodeslib} #{$srcdir}/compileRB.rb`
|
53
|
-
|
54
|
-
chdir $srcdir
|
55
|
-
Dir.glob("**/*.rb") { |f| rm f }
|
56
|
-
Dir.glob("**/*.erb") { |f| rm f }
|
57
|
-
chdir $basedir
|
58
|
-
end
|
59
|
-
|
60
|
-
task :desktop => "bundle:linux" do
|
61
|
-
chdir $srcdir
|
62
|
-
rm_f File.join($srcdir,"rhobundle.zip")
|
63
|
-
puts `zip rhobundle.zip -r *`
|
64
|
-
end
|
65
|
-
end
|
66
|
-
|
67
|
-
namespace "desktop" do
|
68
|
-
task :win32, [:simpath] => "bundle:linux" do |t,args|
|
69
|
-
chdir $srcdir
|
70
|
-
rm_f File.join($srcdir,"rhodes-simulator.zip")
|
71
|
-
mkdir "tmp"
|
72
|
-
cp_r "#{args.simpath}/rho", "tmp/"
|
73
|
-
cp_r "#{$srcdir}/apps", "tmp/rho/"
|
74
|
-
cp_r "#{$srcdir}/lib", "tmp/rho/"
|
75
|
-
cp_r "#{args.simpath}/rhodes.exe", "tmp/"
|
76
|
-
chdir "tmp"
|
77
|
-
puts `zip ../rhodes-simulator.zip -r *`
|
78
|
-
chdir $srcdir
|
79
|
-
rm_rf "tmp"
|
80
|
-
end
|
81
|
-
end
|
data/lib/build/tasks/rspec.rake
DELETED
@@ -1,20 +0,0 @@
|
|
1
|
-
begin
|
2
|
-
require 'spec'
|
3
|
-
rescue LoadError
|
4
|
-
require 'rubygems'
|
5
|
-
require 'spec'
|
6
|
-
end
|
7
|
-
begin
|
8
|
-
require 'spec/rake/spectask'
|
9
|
-
rescue LoadError
|
10
|
-
puts <<-EOS
|
11
|
-
To use rspec for testing you must install rspec gem:
|
12
|
-
gem install rspec
|
13
|
-
EOS
|
14
|
-
exit(0)
|
15
|
-
end
|
16
|
-
|
17
|
-
task :test do
|
18
|
-
end
|
19
|
-
|
20
|
-
|
@@ -1,202 +0,0 @@
|
|
1
|
-
require File.join(File.dirname(__FILE__),'..','jake.rb')
|
2
|
-
|
3
|
-
namespace "config" do
|
4
|
-
task :symbian => :common do
|
5
|
-
|
6
|
-
$targetdir = File.join($bindir,'target','symbian')
|
7
|
-
|
8
|
-
$excludelib = ['**/builtinME.rb','**/ServeME.rb','**/TestServe.rb']
|
9
|
-
|
10
|
-
end
|
11
|
-
end
|
12
|
-
|
13
|
-
task :loadframework do
|
14
|
-
require 'rhodes-framework'
|
15
|
-
puts $rhodeslib
|
16
|
-
end
|
17
|
-
|
18
|
-
namespace "bundle" do
|
19
|
-
task :symbian => ["config:symbian", "loadframework", "makedirs"] do
|
20
|
-
|
21
|
-
rm_rf $srcdir
|
22
|
-
mkdir_p $srcdir
|
23
|
-
mkdir_p File.join($srcdir,'apps')
|
24
|
-
|
25
|
-
rubypath = File.join($res,'RhoRuby.exe')
|
26
|
-
compileERB = File.join($compileERBbase,'default.rb')
|
27
|
-
compileRB = File.join($compileRBbase,'compileRB.rb')
|
28
|
-
|
29
|
-
dest = $srcdir
|
30
|
-
src = $rhodeslib
|
31
|
-
cp_r src,dest
|
32
|
-
|
33
|
-
chdir dest
|
34
|
-
Dir.glob("**/rhodes-framework.rb").each {|f| rm f}
|
35
|
-
Dir.glob("**/erb.rb").each {|f| rm f}
|
36
|
-
Dir.glob("**/find.rb").each {|f| rm f}
|
37
|
-
$excludelib.each {|e| Dir.glob(e).each {|f| rm f}}
|
38
|
-
|
39
|
-
chdir $basedir
|
40
|
-
cp_r 'app',File.join($srcdir,'apps')
|
41
|
-
cp_r 'public', File.join($srcdir,'apps')
|
42
|
-
cp 'rhoconfig.txt', File.join($srcdir,'apps')
|
43
|
-
|
44
|
-
cp $appmanifest, $srcdir
|
45
|
-
puts `#{rubypath} -R#{$rhodeslib} #{$srcdir}/createAppManifest.rb`
|
46
|
-
rm File.join($srcdir,'createAppManifest.rb')
|
47
|
-
cp compileERB, $srcdir
|
48
|
-
puts `#{rubypath} -R#{$rhodeslib} #{$srcdir}/default.rb`
|
49
|
-
|
50
|
-
rm "#{$srcdir}/default.rb"
|
51
|
-
|
52
|
-
cp compileRB, $srcdir
|
53
|
-
puts `#{rubypath} -R#{$rhodeslib} #{$srcdir}/compileRB.rb`
|
54
|
-
|
55
|
-
chdir $srcdir
|
56
|
-
Dir.glob("**/*.rb") { |f| rm f }
|
57
|
-
Dir.glob("**/*.erb") { |f| rm f }
|
58
|
-
#throw "ME"
|
59
|
-
|
60
|
-
chdir $basedir
|
61
|
-
|
62
|
-
src = File.join($prebuilt,"common","db")
|
63
|
-
dest = $srcdir
|
64
|
-
|
65
|
-
cp_r src,dest
|
66
|
-
|
67
|
-
src = File.join($prebuilt,"symbian")
|
68
|
-
dest = $tmpdir
|
69
|
-
|
70
|
-
cp_r File.join(src,"Epoc32"), dest
|
71
|
-
|
72
|
-
cp File.join(src,"backup_registration.xml"), dest
|
73
|
-
cp File.join(src,"rhodes.hlp"), dest
|
74
|
-
cp File.join(src,"rhologpath.txt"), dest
|
75
|
-
cp File.join(src,"rhodes_device.pkg"), File.join(dest, "rhodes_tmp.pkg")
|
76
|
-
cp File.join($res,"insertRhoBundle2pkg.rb"), dest
|
77
|
-
|
78
|
-
rubypath = File.join($res,'RhoRuby.exe')
|
79
|
-
puts `#{rubypath} -R#{$rhodeslib} #{$tmpdir}/insertRhoBundle2pkg.rb`
|
80
|
-
|
81
|
-
tools = $config["env"]["paths"]["symbiantools"]
|
82
|
-
|
83
|
-
chdir $tmpdir
|
84
|
-
makesis = File.join(tools,"makesis.exe")
|
85
|
-
pkgfile = ""
|
86
|
-
File.open("rhodes_tmp.pkg","r") { |f| pkgfile = f.read }
|
87
|
-
modifiedpkg = ""
|
88
|
-
pkgfile.each do |line|
|
89
|
-
modifiedpkg << line if not line.match(/^;/)
|
90
|
-
end
|
91
|
-
File.open("rhodes_tmp.pkg","w") { |f| f.write modifiedpkg }
|
92
|
-
puts `"#{makesis}" rhodes_tmp.pkg`
|
93
|
-
chdir $basedir
|
94
|
-
|
95
|
-
end
|
96
|
-
end
|
97
|
-
|
98
|
-
namespace "device" do
|
99
|
-
#desc "Create downloadable app for symbian mobile"
|
100
|
-
task :symbian => "bundle:symbian" do
|
101
|
-
tools = $config["env"]["paths"]["symbiantools"]
|
102
|
-
chdir $tmpdir
|
103
|
-
certdir = File.join($tmpdir,"cert")
|
104
|
-
certpath = File.join(certdir,$config["env"]["symbian"]["certname"])
|
105
|
-
keypath = File.join(certdir,$config["env"]["symbian"]["certkey"])
|
106
|
-
pass = $config["env"]["symbian"]["selfsignpwd"]
|
107
|
-
name = $config["env"]["symbian"]["selfsignname"]
|
108
|
-
|
109
|
-
mkdir_p certdir
|
110
|
-
|
111
|
-
cp File.join($res,"rhodes_pid.key"),certdir
|
112
|
-
makekeys = File.join(tools,"makekeys.exe")
|
113
|
-
|
114
|
-
puts `"#{makekeys}" -cert -password "#{pass}" -len 2048 -dname "#{name}" "#{keypath}" "#{certpath}"`
|
115
|
-
|
116
|
-
signsis = File.join(tools,"signsis.exe")
|
117
|
-
|
118
|
-
puts `#{signsis} rhodes_tmp.sis rhodes.sisx #{certpath} #{keypath} #{pass}`
|
119
|
-
|
120
|
-
mv "rhodes.sisx",$targetdir
|
121
|
-
end
|
122
|
-
end
|
123
|
-
|
124
|
-
namespace "run" do
|
125
|
-
namespace "symbian" do
|
126
|
-
|
127
|
-
#desc "Run app in symbian Sim"
|
128
|
-
task :app => ["bundle:symbian"] do
|
129
|
-
|
130
|
-
symroot = $config["env"]["paths"]["symroot"]
|
131
|
-
|
132
|
-
appsroot = File.join(symroot,"/epoc32/winscw/c/Data/Rho")
|
133
|
-
rm_rf appsroot
|
134
|
-
mkdir_p appsroot if not File.exists? appsroot
|
135
|
-
cp_r $srcdir + "/lib", appsroot
|
136
|
-
cp_r $srcdir + "/apps", appsroot
|
137
|
-
cp_r $srcdir + "/db", appsroot
|
138
|
-
|
139
|
-
cp_r File.join($prebuilt,"symbian","Epoc32"), symroot
|
140
|
-
|
141
|
-
executable = File.join(symroot,"epoc32","release","winscw","udeb","rhodes.exe")
|
142
|
-
Thread.new { system(executable) }
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
end
|
147
|
-
|
148
|
-
|
149
|
-
end
|
150
|
-
end
|
151
|
-
|
152
|
-
|
153
|
-
namespace "check" do
|
154
|
-
task :symbian => "config:symbian" do
|
155
|
-
errors = Array.new
|
156
|
-
|
157
|
-
begin
|
158
|
-
tools = $config["env"]["paths"]["symbiantools"]
|
159
|
-
symroot = $config["env"]["paths"]["symroot"]
|
160
|
-
rescue
|
161
|
-
puts " - Error parsing build.yml make sure you have all of the required fields (see generated build.yml)"
|
162
|
-
errors << "invalid build.yml"
|
163
|
-
end
|
164
|
-
|
165
|
-
makesis = File.join(tools,"makesis.exe")
|
166
|
-
makekeys = File.join(tools,"makekeys.exe")
|
167
|
-
signsis = File.join(tools,"signsis.exe")
|
168
|
-
|
169
|
-
if not FileTest.exists? makesis
|
170
|
-
puts " - makesis not found. Make sure you have the correct path to the symbian tools folder in your build.yml file "
|
171
|
-
errors << "makesis missing"
|
172
|
-
end
|
173
|
-
|
174
|
-
|
175
|
-
if not FileTest.exists? makekeys
|
176
|
-
puts " - makekeys not found. Make sure you have the correct path to the symbian tools folder in your build.yml file "
|
177
|
-
errors << "makekeys missing"
|
178
|
-
end
|
179
|
-
|
180
|
-
if not FileTest.exists? signsis
|
181
|
-
puts " - signsis not found. Make sure you have the correct path to the symbian tools folder in your build.yml file "
|
182
|
-
errors << "signsis missing"
|
183
|
-
end
|
184
|
-
|
185
|
-
if not FileTest.exists? symroot
|
186
|
-
puts " - symroot not found. Make sure you have the correct path to the symbian root folder in your build.yml file "
|
187
|
-
errors << "symroot missing"
|
188
|
-
end
|
189
|
-
|
190
|
-
|
191
|
-
puts "\nSYMROOT: " + symroot
|
192
|
-
|
193
|
-
if errors.size > 0
|
194
|
-
puts "\nFound the following errors for symbian: "
|
195
|
-
errors.each { |error| puts "\t" + error.to_s }
|
196
|
-
else
|
197
|
-
puts "Symbian config appears valid"
|
198
|
-
end
|
199
|
-
|
200
|
-
end
|
201
|
-
end
|
202
|
-
|
data/lib/build/tasks/wm.rake
DELETED
@@ -1,166 +0,0 @@
|
|
1
|
-
require File.join(File.dirname(__FILE__),'..','jake.rb')
|
2
|
-
|
3
|
-
namespace "config" do
|
4
|
-
task :wm => :common do
|
5
|
-
|
6
|
-
$excludelib = ['**/builtinME.rb','**/ServeME.rb','**/TestServe.rb']
|
7
|
-
|
8
|
-
end
|
9
|
-
end
|
10
|
-
|
11
|
-
task :loadframework do
|
12
|
-
require 'rhodes-framework'
|
13
|
-
puts $rhodeslib
|
14
|
-
end
|
15
|
-
|
16
|
-
namespace "bundle" do
|
17
|
-
task :wm => ["config:wm", "loadframework", "makedirs"] do
|
18
|
-
|
19
|
-
rm_rf $srcdir
|
20
|
-
rm_rf $bindir
|
21
|
-
mkdir_p $srcdir
|
22
|
-
mkdir_p $bindir
|
23
|
-
mkdir_p $targetdir
|
24
|
-
mkdir_p File.join($srcdir,'apps')
|
25
|
-
|
26
|
-
rubypath = File.join($res,'RhoRuby.exe')
|
27
|
-
compileERB = File.join($compileERBbase,'default.rb')
|
28
|
-
compileRB = File.join($compileRBbase,'compileRB.rb')
|
29
|
-
|
30
|
-
dest = $srcdir
|
31
|
-
src = $rhodeslib
|
32
|
-
cp_r src,dest
|
33
|
-
|
34
|
-
chdir dest
|
35
|
-
Dir.glob("**/rhodes-framework.rb").each {|f| rm f}
|
36
|
-
Dir.glob("**/erb.rb").each {|f| rm f}
|
37
|
-
Dir.glob("**/find.rb").each {|f| rm f}
|
38
|
-
$excludelib.each {|e| Dir.glob(e).each {|f| rm f}}
|
39
|
-
|
40
|
-
chdir $basedir
|
41
|
-
cp_r 'app',File.join($srcdir,'apps')
|
42
|
-
cp_r 'public', File.join($srcdir,'apps')
|
43
|
-
cp 'rhoconfig.txt', File.join($srcdir,'apps')
|
44
|
-
|
45
|
-
cp $appmanifest, $srcdir
|
46
|
-
puts `#{rubypath} -R#{$rhodeslib} #{$srcdir}/createAppManifest.rb`
|
47
|
-
rm File.join($srcdir,'createAppManifest.rb')
|
48
|
-
cp compileERB, $srcdir
|
49
|
-
puts `#{rubypath} -R#{$rhodeslib} #{$srcdir}/default.rb`
|
50
|
-
|
51
|
-
rm "#{$srcdir}/default.rb"
|
52
|
-
|
53
|
-
cp compileRB, $srcdir
|
54
|
-
puts `#{rubypath} -R#{$rhodeslib} #{$srcdir}/compileRB.rb`
|
55
|
-
|
56
|
-
chdir $srcdir
|
57
|
-
Dir.glob("**/*.rb") { |f| rm f }
|
58
|
-
Dir.glob("**/*.erb") { |f| rm f }
|
59
|
-
#throw "ME"
|
60
|
-
|
61
|
-
chdir $basedir
|
62
|
-
|
63
|
-
# rm_rf $srcdir
|
64
|
-
|
65
|
-
end
|
66
|
-
end
|
67
|
-
|
68
|
-
namespace "device" do
|
69
|
-
desc "Create downloadable app for windows mobile"
|
70
|
-
task :wm => "bundle:wm" do
|
71
|
-
src = File.join($prebuilt,"wm","wm6.7z")
|
72
|
-
|
73
|
-
seven = File.join($res,"7z.exe")
|
74
|
-
chdir $bindir
|
75
|
-
|
76
|
-
puts `#{seven} x #{src}`
|
77
|
-
|
78
|
-
chdir $basedir
|
79
|
-
|
80
|
-
src = File.join($prebuilt,"common","db")
|
81
|
-
dest = $srcdir
|
82
|
-
|
83
|
-
cp_r src,dest
|
84
|
-
|
85
|
-
src = File.join($res,"build_inf.js")
|
86
|
-
dest = $basedir
|
87
|
-
cp src,dest
|
88
|
-
|
89
|
-
chdir $basedir
|
90
|
-
puts `cscript build_inf.js rhodes.inf wm6`
|
91
|
-
|
92
|
-
cabwiz = $config["env"]["paths"]["cabwiz"]
|
93
|
-
puts `#{cabwiz} rhodes.inf`
|
94
|
-
|
95
|
-
puts `cscript cleanup.js`
|
96
|
-
rm "cleanup.js"
|
97
|
-
|
98
|
-
mv "rhodes.inf", $bindir
|
99
|
-
mv "rhodes.cab", $targetdir
|
100
|
-
|
101
|
-
end
|
102
|
-
end
|
103
|
-
|
104
|
-
namespace "run" do
|
105
|
-
namespace "wm" do
|
106
|
-
|
107
|
-
desc "Run app in WM Sim"
|
108
|
-
task :app => ["device:wm"] do
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
Thread.new { system($config["env"]["paths"]["wmemu"]) }
|
113
|
-
|
114
|
-
puts "BUILD COMPLETE"
|
115
|
-
puts "*** Your .cab file is located in #{$targetdir}\\rhodes.cab"
|
116
|
-
puts "*** The device emulator has been started for you, select a windows mobile 6 device"
|
117
|
-
puts "*** Then you must cradle the device and can drop the cab in the Mobile Device folder in My computer"
|
118
|
-
end
|
119
|
-
|
120
|
-
|
121
|
-
end
|
122
|
-
end
|
123
|
-
|
124
|
-
namespace "check" do
|
125
|
-
task :wm => "config:wm" do
|
126
|
-
errors = Array.new
|
127
|
-
|
128
|
-
begin
|
129
|
-
cabwiz = $config["env"]["paths"]["cabwiz"]
|
130
|
-
wmemu = $config["env"]["paths"]["wmemu"]
|
131
|
-
rescue
|
132
|
-
puts " - Error parsing build.yml make sure you have all of the required fields (see generated build.yml)"
|
133
|
-
errors << "invalid build.yml"
|
134
|
-
end
|
135
|
-
|
136
|
-
if not FileTest.exists? cabwiz
|
137
|
-
puts " - cabwiz.exe not found. Make sure you have the correct path to cabwiz in your build.yml file "
|
138
|
-
errors << "cabwiz missing"
|
139
|
-
end
|
140
|
-
|
141
|
-
if not FileTest.exists? wmemu
|
142
|
-
puts " - emulator not found. Make sure you have the correct path to windows mobile emulator in your build.yml file "
|
143
|
-
errors << "wmemu missing"
|
144
|
-
end
|
145
|
-
|
146
|
-
|
147
|
-
begin
|
148
|
-
blah = `cscript 2>&1`
|
149
|
-
rescue
|
150
|
-
puts " - coudn't execute csript. This is rare, please install IE4+ or the Windows Scripting Host"
|
151
|
-
errors << "cscript missing"
|
152
|
-
end
|
153
|
-
|
154
|
-
|
155
|
-
puts "\nCABWIZ: " + cabwiz
|
156
|
-
puts "WMEMU: " + wmemu
|
157
|
-
|
158
|
-
if errors.size > 0
|
159
|
-
puts "\nFound the following errors for windows mobile: "
|
160
|
-
errors.each { |error| puts "\t" + error.to_s }
|
161
|
-
else
|
162
|
-
puts "Windows Mobile config appears valid"
|
163
|
-
end
|
164
|
-
|
165
|
-
end
|
166
|
-
end
|
data/lib/framework/ServeME.rb
DELETED
@@ -1,12 +0,0 @@
|
|
1
|
-
Manifest-Version: 1.0
|
2
|
-
RIM-MIDlet-Flags-1: 1
|
3
|
-
MIDlet-Vendor: <unknown>
|
4
|
-
MIDlet-Version: 1.40
|
5
|
-
MicroEdition-Configuration: CLDC-1.1
|
6
|
-
MIDlet-1: ,resources/icon.png,
|
7
|
-
Created-By: 1.6.0_02 (Sun Microsystems Inc.)
|
8
|
-
MIDlet-Jar-URL: rhodes.jar
|
9
|
-
MIDlet-Name: rhodes
|
10
|
-
MicroEdition-Profile: MIDP-2.0
|
11
|
-
MIDlet-Jar-Size: 0
|
12
|
-
|
@@ -1,17 +0,0 @@
|
|
1
|
-
//
|
2
|
-
// DateTimePicker.h
|
3
|
-
// rhorunner
|
4
|
-
//
|
5
|
-
// Created by Dmitry Moskalchuk on 29.03.10.
|
6
|
-
// Copyright 2010 Rhomobile. All rights reserved.
|
7
|
-
//
|
8
|
-
|
9
|
-
#import <Foundation/Foundation.h>
|
10
|
-
|
11
|
-
|
12
|
-
@interface DateTimePicker : NSObject {}
|
13
|
-
|
14
|
-
+ (void)chooseDateTime:(NSString*)url title:(NSString*)title initialTime:(long)initial_time
|
15
|
-
format:(int)format data:(NSString*)data;
|
16
|
-
|
17
|
-
@end
|