rhodes 3.3.1 → 3.3.2.beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/CHANGELOG +9 -2
- data/Manifest.txt +20 -0
- data/Rakefile +2 -1
- data/doc/build.txt +9 -3
- data/doc/configuration.txt +5 -1
- data/doc/device-caps.txt +112 -27
- data/doc/extensions.txt +0 -51
- data/doc/generator.txt +6 -0
- data/doc/rhom.txt +3 -0
- data/doc/simulator.txt +57 -17
- data/doc/ui.txt +24 -27
- data/installer/RHOELEMENTS-EULA.txt +295 -0
- data/installer/Rakefile +75 -49
- data/installer/rhostudio-moto.nsi +534 -0
- data/installer/rhostudio.nsi +13 -4
- data/lib/extensions/barcode/ext/barcode/platform/iphone/Classes/barcode.m +3 -0
- data/lib/framework/rho/rhoapplication.rb +4 -0
- data/lib/framework/rho/rhoevent.rb +2 -3
- data/lib/framework/rho/rhoevent_c.rb +2 -2
- data/lib/framework/rho/rhofsconnector.rb +24 -2
- data/lib/framework/rhodes.rb +1 -1
- data/lib/framework/version.rb +1 -1
- data/lib/rhodes.rb +1 -1
- data/platform/android/Rhodes/AndroidManifest.xml +3 -3
- data/platform/android/Rhodes/gen/com/rhomobile/rhodes/R.java +164 -90
- data/platform/android/Rhodes/jni/src/signature.cpp +13 -3
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/RhoCryptImpl.java +76 -34
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/RhodesActivity.java +3 -4
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/RhodesService.java +1 -1
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/mainview/SplashScreen.java +10 -2
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/mapview/AnnotationsOverlay.java +0 -3
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/mapview/Callout.java +6 -5
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/mapview/GoogleMapView.java +0 -1
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/signature/ImageCapture.java +7 -1
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/signature/Signature.java +46 -6
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/signature/SignatureView.java +29 -1
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/webview/ChromeClientOld.java +2 -0
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/webview/GoogleWebView.java +4 -0
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/webview/RhoWebSettingsOld.java +10 -2
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/webview/RhoWebViewClient.java +3 -2
- data/platform/android/build/android.rake +6 -27
- data/platform/android/build/androidcommon.rb +1 -1
- data/platform/bb/rhodes/src/com/rho/rubyext/GeoLocation.java +26 -0
- data/platform/iphone/Classes/AppManager/AppManager.h +1 -0
- data/platform/iphone/Classes/AppManager/AppManager.m +70 -12
- data/platform/iphone/Classes/Camera/PickImageDelegate.m +1 -1
- data/platform/iphone/Classes/Event/Event.m +38 -3
- data/platform/iphone/Classes/Rhodes.m +3 -2
- data/platform/iphone/Classes/Signature/SignatureDelegate.m +1 -1
- data/platform/iphone/Info.plist +1 -1
- data/platform/iphone/rbuild/iphone.rake +8 -8
- data/platform/osx/bin/RhoSimulator/RhoSimulator.app/Contents/Frameworks/QtCore.framework/Versions/4/QtCore +0 -0
- data/platform/osx/bin/RhoSimulator/RhoSimulator.app/Contents/Frameworks/QtGui.framework/Versions/4/QtGui +0 -0
- data/platform/osx/bin/RhoSimulator/RhoSimulator.app/Contents/Frameworks/QtNetwork.framework/Versions/4/QtNetwork +0 -0
- data/platform/osx/bin/RhoSimulator/RhoSimulator.app/Contents/Frameworks/QtWebKit.framework/Versions/4/QtWebKit +0 -0
- data/platform/osx/bin/RhoSimulator/RhoSimulator.app/Contents/Frameworks/phonon.framework/Versions/4/phonon +0 -0
- data/platform/osx/bin/RhoSimulator/RhoSimulator.app/Contents/Info.plist +1 -1
- data/platform/osx/bin/RhoSimulator/RhoSimulator.app/Contents/MacOS/RhoSimulator +0 -0
- data/platform/osx/bin/RhoSimulator/RhoSimulator.app/Contents/PlugIns/accessible/libqtaccessiblewidgets.dylib +0 -0
- data/platform/osx/bin/RhoSimulator/RhoSimulator.app/Contents/PlugIns/bearer/libqcorewlanbearer.dylib +0 -0
- data/platform/osx/bin/RhoSimulator/RhoSimulator.app/Contents/PlugIns/bearer/libqgenericbearer.dylib +0 -0
- data/platform/osx/bin/RhoSimulator/RhoSimulator.app/Contents/PlugIns/codecs/libqcncodecs.dylib +0 -0
- data/platform/osx/bin/RhoSimulator/RhoSimulator.app/Contents/PlugIns/codecs/libqjpcodecs.dylib +0 -0
- data/platform/osx/bin/RhoSimulator/RhoSimulator.app/Contents/PlugIns/codecs/libqkrcodecs.dylib +0 -0
- data/platform/osx/bin/RhoSimulator/RhoSimulator.app/Contents/PlugIns/codecs/libqtwcodecs.dylib +0 -0
- data/platform/osx/bin/RhoSimulator/RhoSimulator.app/Contents/PlugIns/graphicssystems/libqtracegraphicssystem.dylib +0 -0
- data/platform/osx/bin/RhoSimulator/RhoSimulator.app/Contents/PlugIns/imageformats/libqgif.dylib +0 -0
- data/platform/osx/bin/RhoSimulator/RhoSimulator.app/Contents/PlugIns/imageformats/libqico.dylib +0 -0
- data/platform/osx/bin/RhoSimulator/RhoSimulator.app/Contents/PlugIns/imageformats/libqjpeg.dylib +0 -0
- data/platform/osx/bin/RhoSimulator/RhoSimulator.app/Contents/PlugIns/imageformats/libqmng.dylib +0 -0
- data/platform/osx/bin/RhoSimulator/RhoSimulator.app/Contents/PlugIns/imageformats/libqtiff.dylib +0 -0
- data/platform/osx/bin/RhoSimulator/RhoSimulator.app/Contents/PlugIns/phonon_backend/libphonon_qt7.dylib +0 -0
- data/platform/osx/bin/RhoSimulator/RhoSimulator.app/Contents/PlugIns/qmltooling/libqmldbg_tcp.dylib +0 -0
- data/platform/osx/bin/RhoSimulator/RhoSimulatorMac.zip +0 -0
- data/platform/osx/build/osx.rake +1 -1
- data/platform/shared/RhoConnectClient/RhoConnectClient.cpp +1 -1
- data/platform/shared/common/RhoConf.cpp +15 -6
- data/platform/shared/common/RhoConf.h +6 -1
- data/platform/shared/common/RhodesApp.cpp +19 -6
- data/platform/shared/common/RhodesApp.h +4 -2
- data/platform/shared/common/RhodesAppBase.cpp +18 -10
- data/platform/shared/common/RhodesAppBase.h +6 -3
- data/platform/shared/common/map/GeocodingMapEngine.h +2 -2
- data/platform/shared/logging/RhoLogConf.cpp +14 -8
- data/platform/shared/logging/RhoLogConf.h +1 -0
- data/platform/shared/net/HttpServer.cpp +15 -3
- data/platform/shared/net/HttpServer.h +2 -1
- data/platform/shared/qt/curl/curl.pro +1 -1
- data/platform/shared/qt/rhodes/QtMainWindow.h +1 -1
- data/platform/shared/qt/rhodes/impl/MainWindowImpl.cpp +2 -2
- data/platform/shared/qt/rhodes/main.cpp +2 -1
- data/platform/shared/ruby/ext/rho/rhoruby.c +1 -0
- data/platform/shared/ruby/ext/rho/rhosupport.c +11 -1
- data/platform/shared/sync/SyncNotify.cpp +1 -2
- data/platform/shared/sync/SyncNotify.h +2 -2
- data/platform/shared/sync/SyncThread.cpp +27 -12
- data/platform/shared/sync/SyncThread.h +2 -0
- data/platform/shared/unzip/unzip.cpp +3 -2
- data/platform/win32/RhoSimulator/Microsoft.VC80.CRT.manifest +8 -0
- data/platform/win32/RhoSimulator/Microsoft.VC80.OpenMP.manifest +7 -0
- data/platform/win32/RhoSimulator/QtCore4.dll +0 -0
- data/platform/win32/RhoSimulator/QtGui4.dll +0 -0
- data/platform/win32/RhoSimulator/QtNetwork4.dll +0 -0
- data/platform/win32/RhoSimulator/QtWebKit4.dll +0 -0
- data/platform/win32/RhoSimulator/RhoSimulator.exe +0 -0
- data/platform/win32/RhoSimulator/imageformats/qgif4.dll +0 -0
- data/platform/win32/RhoSimulator/imageformats/qico4.dll +0 -0
- data/platform/win32/RhoSimulator/imageformats/qjpeg4.dll +0 -0
- data/platform/win32/RhoSimulator/imageformats/qmng4.dll +0 -0
- data/platform/win32/RhoSimulator/imageformats/qsvg4.dll +0 -0
- data/platform/win32/RhoSimulator/imageformats/qtiff4.dll +0 -0
- data/platform/win32/RhoSimulator/libeay32.dll +0 -0
- data/platform/win32/RhoSimulator/msvcm80.dll +0 -0
- data/platform/win32/RhoSimulator/msvcp80.dll +0 -0
- data/platform/win32/RhoSimulator/msvcr80.dll +0 -0
- data/platform/win32/RhoSimulator/ssleay32.dll +0 -0
- data/platform/win32/RhoSimulator/vcomp.dll +0 -0
- data/platform/wm/build/rhodes.nsi +316 -0
- data/platform/wm/build/wm.rake +57 -10
- data/platform/wm/rhodes/Rhodes.cpp +2 -1
- data/platform/wm/rhodes/rhodes.vcproj +2 -0
- data/platform/wm/tools/wmdc_connect.sln +20 -0
- data/platform/wm/tools/wmdc_connect/stdafx.cpp +27 -0
- data/platform/wm/tools/wmdc_connect/stdafx.h +35 -0
- data/platform/wm/tools/wmdc_connect/wmdc_connect.cpp +119 -0
- data/platform/wm/tools/wmdc_connect/wmdc_connect.vcproj +205 -0
- data/platform/wp7/RhoRubyExtGen/RhoAlert.cs +73 -0
- data/platform/wp7/RhoRubyExtGen/RhoRubyExtGen.csproj +1 -0
- data/platform/wp7/RhoRubyExtGen/RhoSyncEngine.cs +8 -8
- data/platform/wp7/RhoRubyLib/Initializers.Generated.cs +47 -6
- data/platform/wp7/RhoRubyLib/RhoRuby.cs +8 -0
- data/platform/wp7/RhoRubyLib/RhoRubyLib.csproj +5 -0
- data/platform/wp7/RhoRubyLib/WP_PlatformAdaptationLayer.cs +5 -0
- data/platform/wp7/RhoRubyLib/common/RhoParams.cs +2 -1
- data/platform/wp7/RhoRubyLib/common/RhodesApp.cs +58 -37
- data/platform/wp7/RhoRubyLib/db/DBAdapter.cs +37 -0
- data/platform/wp7/RhoRubyLib/db/DBAttrManager.cs +63 -1
- data/platform/wp7/RhoRubyLib/db/IDBStorage.cs +2 -0
- data/platform/wp7/RhoRubyLib/db/SqliteStorage.cs +27 -0
- data/platform/wp7/RhoRubyLib/logging/RhoLogServerSink.cs +2 -2
- data/platform/wp7/RhoRubyLib/net/NetRequest.cs +4 -3
- data/platform/wp7/RhoRubyLib/rubyext/RhoAlert.cs +160 -0
- data/platform/wp7/RhoRubyLib/rubyext/RhoSyncEngine.cs +44 -12
- data/platform/wp7/RhoRubyLib/sync/ClientRegister.cs +4 -3
- data/platform/wp7/RhoRubyLib/sync/SyncEngine.cs +27 -32
- data/platform/wp7/RhoRubyLib/sync/SyncNotify.cs +31 -11
- data/platform/wp7/RhoRubyLib/sync/SyncProtocol_3.cs +6 -1
- data/platform/wp7/RhoRubyLib/sync/SyncSource.cs +4 -0
- data/platform/wp7/RhoRubyLib/sync/SyncThread.cs +21 -15
- data/platform/wp7/build/wp.rake +6 -0
- data/rakefile.rb +2 -1
- data/res/build-tools/Coding4Fun.Phone.Controls.dll +0 -0
- data/res/build-tools/wmdc_connect.exe +0 -0
- data/res/generators/templates/spec/app/SpecRunner/index.erb +14 -13
- data/spec/phone_spec/app/spec/rhom_object_spec.rb +10 -1
- data/version +1 -1
- metadata +26 -4
data/CHANGELOG
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
|
-
## 3.3.
|
|
2
|
-
*
|
|
1
|
+
## 3.3.2
|
|
2
|
+
* iPhone: fix AppStore sumbit issue. Now all files stored in Private Documents, only database and user files in Documents
|
|
3
|
+
* Android: fix issue with database encryption on OS 4.0
|
|
4
|
+
* Android: disable zooming by default
|
|
5
|
+
* iPhone: fix issue with creating Event
|
|
6
|
+
* Fix spec generator
|
|
7
|
+
* Windows Phone 7: implement Alerts, fix several build issues.
|
|
8
|
+
|
|
9
|
+
## 3.3.1
|
|
3
10
|
* Add Ruby Encoding constants
|
|
4
11
|
* MapView improvements on all platforms
|
|
5
12
|
* Android: support SDK 4.0 and NDK r7
|
data/Manifest.txt
CHANGED
|
@@ -55,7 +55,9 @@ installer/jake.rb
|
|
|
55
55
|
installer/OLD-README.html
|
|
56
56
|
installer/Rakefile
|
|
57
57
|
installer/README.html
|
|
58
|
+
installer/RHOELEMENTS-EULA.txt
|
|
58
59
|
installer/RHOSTUDIO-LICENSE.txt
|
|
60
|
+
installer/rhostudio-moto.nsi
|
|
59
61
|
installer/rhostudio.nsi
|
|
60
62
|
installer/RHOSYNC-LICENSE.txt
|
|
61
63
|
installer/ServiceLib.nsh
|
|
@@ -1996,6 +1998,7 @@ platform/osx/bin/RhoSimulator/RhoSimulator.app/Contents/Info.plist
|
|
|
1996
1998
|
platform/osx/bin/RhoSimulator/RhoSimulator.app/Contents/MacOS/RhoSimulator
|
|
1997
1999
|
platform/osx/bin/RhoSimulator/RhoSimulator.app/Contents/PkgInfo
|
|
1998
2000
|
platform/osx/bin/RhoSimulator/RhoSimulator.app/Contents/PlugIns/accessible/libqtaccessiblewidgets.dylib
|
|
2001
|
+
platform/osx/bin/RhoSimulator/RhoSimulator.app/Contents/PlugIns/bearer/libqcorewlanbearer.dylib
|
|
1999
2002
|
platform/osx/bin/RhoSimulator/RhoSimulator.app/Contents/PlugIns/bearer/libqgenericbearer.dylib
|
|
2000
2003
|
platform/osx/bin/RhoSimulator/RhoSimulator.app/Contents/PlugIns/codecs/libqcncodecs.dylib
|
|
2001
2004
|
platform/osx/bin/RhoSimulator/RhoSimulator.app/Contents/PlugIns/codecs/libqjpcodecs.dylib
|
|
@@ -2012,6 +2015,7 @@ platform/osx/bin/RhoSimulator/RhoSimulator.app/Contents/PlugIns/qmltooling/libqm
|
|
|
2012
2015
|
platform/osx/bin/RhoSimulator/RhoSimulator.app/Contents/Resources/empty.lproj
|
|
2013
2016
|
platform/osx/bin/RhoSimulator/RhoSimulator.app/Contents/Resources/qt.conf
|
|
2014
2017
|
platform/osx/bin/RhoSimulator/RhoSimulator.app/Contents/Resources/rho.icns
|
|
2018
|
+
platform/osx/bin/RhoSimulator/RhoSimulatorMac.zip
|
|
2015
2019
|
platform/osx/build/osx.rake
|
|
2016
2020
|
platform/osx/Rhodes Debugger/DataSource.h
|
|
2017
2021
|
platform/osx/Rhodes Debugger/DataSource.m
|
|
@@ -4290,6 +4294,11 @@ platform/win32/RhoSimulator/imageformats/qmng4.dll
|
|
|
4290
4294
|
platform/win32/RhoSimulator/imageformats/qsvg4.dll
|
|
4291
4295
|
platform/win32/RhoSimulator/imageformats/qtiff4.dll
|
|
4292
4296
|
platform/win32/RhoSimulator/libeay32.dll
|
|
4297
|
+
platform/win32/RhoSimulator/Microsoft.VC80.CRT.manifest
|
|
4298
|
+
platform/win32/RhoSimulator/Microsoft.VC80.OpenMP.manifest
|
|
4299
|
+
platform/win32/RhoSimulator/msvcm80.dll
|
|
4300
|
+
platform/win32/RhoSimulator/msvcp80.dll
|
|
4301
|
+
platform/win32/RhoSimulator/msvcr80.dll
|
|
4293
4302
|
platform/win32/RhoSimulator/QtCore4.dll
|
|
4294
4303
|
platform/win32/RhoSimulator/QtGui4.dll
|
|
4295
4304
|
platform/win32/RhoSimulator/QTLICENSE.LGPL
|
|
@@ -4297,6 +4306,7 @@ platform/win32/RhoSimulator/QtNetwork4.dll
|
|
|
4297
4306
|
platform/win32/RhoSimulator/QtWebKit4.dll
|
|
4298
4307
|
platform/win32/RhoSimulator/RhoSimulator.exe
|
|
4299
4308
|
platform/win32/RhoSimulator/ssleay32.dll
|
|
4309
|
+
platform/win32/RhoSimulator/vcomp.dll
|
|
4300
4310
|
platform/win32/rubylib/rubylib.vcproj
|
|
4301
4311
|
platform/win32/RubyWin/RubyWin.sln
|
|
4302
4312
|
platform/win32/RubyWin/RubyWin.vcproj
|
|
@@ -4314,6 +4324,7 @@ platform/wm/build/build_inf.js
|
|
|
4314
4324
|
platform/wm/build/mkapp/build.properties
|
|
4315
4325
|
platform/wm/build/mkapp/build.xml
|
|
4316
4326
|
platform/wm/build/rhoconfig.txt
|
|
4327
|
+
platform/wm/build/rhodes.nsi
|
|
4317
4328
|
platform/wm/build/wm.rake
|
|
4318
4329
|
platform/wm/rhodes/Alert.cpp
|
|
4319
4330
|
platform/wm/rhodes/Alert.h
|
|
@@ -4427,6 +4438,11 @@ platform/wm/tools/rhosetup/rhosetup.cpp
|
|
|
4427
4438
|
platform/wm/tools/rhosetup/rhosetup.vcproj
|
|
4428
4439
|
platform/wm/tools/rhosetup/stdafx.cpp
|
|
4429
4440
|
platform/wm/tools/rhosetup/stdafx.h
|
|
4441
|
+
platform/wm/tools/wmdc_connect/stdafx.cpp
|
|
4442
|
+
platform/wm/tools/wmdc_connect/stdafx.h
|
|
4443
|
+
platform/wm/tools/wmdc_connect/wmdc_connect.cpp
|
|
4444
|
+
platform/wm/tools/wmdc_connect/wmdc_connect.vcproj
|
|
4445
|
+
platform/wm/tools/wmdc_connect.sln
|
|
4430
4446
|
platform/wp7/build/wp.rake
|
|
4431
4447
|
platform/wp7/IronRuby/bin/Silverlight3Release/IronRuby.dll
|
|
4432
4448
|
platform/wp7/IronRuby/bin/Silverlight3Release/IronRuby.Libraries.dll
|
|
@@ -4459,6 +4475,7 @@ platform/wp7/RhoLogServer/RhoLogServer.csproj
|
|
|
4459
4475
|
platform/wp7/RhoLogServer/SocketServer.cs
|
|
4460
4476
|
platform/wp7/RhoRubyExtGen/GenerateInitializers.cmd
|
|
4461
4477
|
platform/wp7/RhoRubyExtGen/Properties/AssemblyInfo.cs
|
|
4478
|
+
platform/wp7/RhoRubyExtGen/RhoAlert.cs
|
|
4462
4479
|
platform/wp7/RhoRubyExtGen/RhoAsyncHttp.cs
|
|
4463
4480
|
platform/wp7/RhoRubyExtGen/RhoCamera.cs
|
|
4464
4481
|
platform/wp7/RhoRubyExtGen/RhoConfig.cs
|
|
@@ -4516,6 +4533,7 @@ platform/wp7/RhoRubyLib/Properties/AssemblyInfo.cs
|
|
|
4516
4533
|
platform/wp7/RhoRubyLib/RhoAppAdapter.cs
|
|
4517
4534
|
platform/wp7/RhoRubyLib/RhoRuby.cs
|
|
4518
4535
|
platform/wp7/RhoRubyLib/RhoRubyLib.csproj
|
|
4536
|
+
platform/wp7/RhoRubyLib/rubyext/RhoAlert.cs
|
|
4519
4537
|
platform/wp7/RhoRubyLib/rubyext/RhoAsyncHttp.cs
|
|
4520
4538
|
platform/wp7/RhoRubyLib/rubyext/RhoCamera.cs
|
|
4521
4539
|
platform/wp7/RhoRubyLib/rubyext/RhoConfig.cs
|
|
@@ -4632,6 +4650,7 @@ rakefile.rb
|
|
|
4632
4650
|
README.md
|
|
4633
4651
|
res/build-tools/7za.exe
|
|
4634
4652
|
res/build-tools/build_inf.js
|
|
4653
|
+
res/build-tools/Coding4Fun.Phone.Controls.dll
|
|
4635
4654
|
res/build-tools/cygwin1.dll
|
|
4636
4655
|
res/build-tools/cygz.dll
|
|
4637
4656
|
res/build-tools/detool.exe
|
|
@@ -4665,6 +4684,7 @@ res/build-tools/swig_patch/Lib/ruby/std_map.i
|
|
|
4665
4684
|
res/build-tools/swig_patch/Lib/ruby/std_multimap.i
|
|
4666
4685
|
res/build-tools/swig_patch/Lib/swiginit.swg
|
|
4667
4686
|
res/build-tools/swig_patch/README
|
|
4687
|
+
res/build-tools/wmdc_connect.exe
|
|
4668
4688
|
res/build-tools/wp7explorer.exe
|
|
4669
4689
|
res/build-tools/xruby-0.3.3.jar
|
|
4670
4690
|
res/generators/rhogen.rb
|
data/Rakefile
CHANGED
|
@@ -80,7 +80,7 @@ namespace "framework" do
|
|
|
80
80
|
end
|
|
81
81
|
|
|
82
82
|
|
|
83
|
-
$application_build_configs_keys = ['security_token', 'encrypt_database', 'android_title']
|
|
83
|
+
$application_build_configs_keys = ['security_token', 'encrypt_database', 'android_title', 'iphone_use_doc_folder', 'iphone_all_in_doc_folder']
|
|
84
84
|
|
|
85
85
|
def make_application_build_config_header_file
|
|
86
86
|
f = StringIO.new("", "w+")
|
|
@@ -1219,6 +1219,7 @@ namespace "run" do
|
|
|
1219
1219
|
end
|
|
1220
1220
|
|
|
1221
1221
|
sim_conf = "rhodes_path='#{$startdir}'\r\n"
|
|
1222
|
+
sim_conf += "app_version='#{$app_config["version"]}'\r\n"
|
|
1222
1223
|
sim_conf += "app_name='#{$appname}'\r\n"
|
|
1223
1224
|
if ( ENV['rho_reload_app_changes'] )
|
|
1224
1225
|
sim_conf += "reload_app_changes=#{ENV['rho_reload_app_changes']}\r\n"
|
data/doc/build.txt
CHANGED
|
@@ -531,7 +531,7 @@ Blackberry SDK for Mac doesn't come with simulators so far. So for now we would
|
|
|
531
531
|
|
|
532
532
|
### Prerequisites
|
|
533
533
|
* Follow [All Platforms Prerequisites](#all-platforms-prerequisites)
|
|
534
|
-
* Load and install Blackberry JDE version 4.6.0 or higher(5.0 or higher recommended for simulator usage) from [
|
|
534
|
+
* Load and install Blackberry JDE version 4.6.0 or higher(5.0 or higher recommended for simulator usage) from [BlackBerry Java Development Environment](http://us.blackberry.com/developers/javaappdev/javadevenv.jsp). Registration may be required.
|
|
535
535
|
* Run 'rhodes-setup' to specify Blackberry JDE paths or edit <rhodes>/rhobuild.yml manually:
|
|
536
536
|
|
|
537
537
|
env:
|
|
@@ -544,6 +544,7 @@ Blackberry SDK for Mac doesn't come with simulators so far. So for now we would
|
|
|
544
544
|
mds: <jde_5.0>/components/MDS
|
|
545
545
|
|
|
546
546
|
* Read about Blackberry Browser limitations of CSS, HTML and JavaScript. Get relevant documentation from [here](http://na.blackberry.com/eng/support/docs/subcategories/?userType=21&category=BlackBerry+Browser).
|
|
547
|
+
* You may need to install the MDS simulator; you can download it from [BlackBerry Java Application Tools and Development](http://us.blackberry.com/developers/javaappdev/devtools.jsp).
|
|
547
548
|
|
|
548
549
|
### Build application using rhodes gem
|
|
549
550
|
|
|
@@ -907,7 +908,12 @@ By default 'Windows Mobile 6 Professional SDK (ARMV4I)' SDK and "Windows Mobile
|
|
|
907
908
|
sdk: <target_sdk>
|
|
908
909
|
emulator: <target_emulator>
|
|
909
910
|
|
|
910
|
-
* 'target_sdk' may be:
|
|
911
|
+
* 'target_sdk' may be:
|
|
912
|
+
|
|
913
|
+
"MC3000c50b (ARMV4I)" - for Motorola CE devices. Install MC3000c50b PSDK from [Symbol support site](http://support.symbol.com)
|
|
914
|
+
|
|
915
|
+
"Windows Mobile 6.5.3 Professional DTK (ARMV4I)" for latest Windows Mobile SDK.
|
|
916
|
+
|
|
911
917
|
* 'target_emulator' may be: "Windows Mobile 6.5.3 Professional VGA Emulator" for VGA emulator , or any other installed Windows Mobile emulator
|
|
912
918
|
|
|
913
919
|
### Building and Running Your Windows Mobile Application with RhoStudio
|
|
@@ -1064,7 +1070,7 @@ Rholog.txt is placed in `<rhodes folder>\platform\wm\bin\win32\rhodes\Debug\rho`
|
|
|
1064
1070
|
* Follow [All Platforms Prerequisites](#all-platforms-prerequisites)
|
|
1065
1071
|
* Windows 7 OS
|
|
1066
1072
|
* Visual Studio 2010 installed or VS Express for Windows Phone and VS Express for C#
|
|
1067
|
-
* [Windows Phone
|
|
1073
|
+
* [Windows Phone SDK 7.1](http://www.microsoft.com/download/en/details.aspx?id=27570)
|
|
1068
1074
|
|
|
1069
1075
|
* Add path to `msbuild` to `rhobuild.yml` in rhodes folder. For example:
|
|
1070
1076
|
|
data/doc/configuration.txt
CHANGED
|
@@ -121,10 +121,14 @@ Geo location inactivity timeout (in seconds). This parameter controls the time a
|
|
|
121
121
|
|
|
122
122
|
geo_location_inactivity_timeout = gps_ping_timeout_sec * 10
|
|
123
123
|
|
|
124
|
-
Set this option to 1 in order to open Rhodes app in full screen mode. Default 1 for Android up to Rhodes 2.2.5. On all other platforms and on Android from Rhodes > 2.2.5 default is 0
|
|
124
|
+
Set this option to 1 in order to open Rhodes app in full screen mode. Default is 1 for Android up to Rhodes 2.2.5. On all other platforms and on Android from Rhodes > 2.2.5 default is 0
|
|
125
125
|
|
|
126
126
|
full_screen = 1
|
|
127
127
|
|
|
128
|
+
Set this option to 1 in order to enable WebView zoom (Android only). Defauld is 0
|
|
129
|
+
|
|
130
|
+
enable_screen_zoom = 1
|
|
131
|
+
|
|
128
132
|
Port of the local (embedded) HTTP server. This parameter is mainly for debug purposes. If not specified, application will use dynamically selected one.
|
|
129
133
|
**NOTE WARNING!!! Remove this parameter before put application to production. **
|
|
130
134
|
|
data/doc/device-caps.txt
CHANGED
|
@@ -124,6 +124,56 @@ Switch locale at runtime:
|
|
|
124
124
|
### Sample
|
|
125
125
|
See layout.erb of [System API Sample application](http://github.com/rhomobile/rhodes-system-api-samples/tree/master/app/layout.erb) for some of the examples of how to use System class. There is also [system test](http://github.com/rhomobile/rhodes-system-api-samples/tree/master/app/SystemTest/controller.rb) which demonstrate System class usage.
|
|
126
126
|
|
|
127
|
+
## Localization
|
|
128
|
+
|
|
129
|
+
See [Rhodes System API Samples application](http://github.com/rhomobile/rhodes-system-api-samples/tree/master/app/Localization/index.erb) as an example.
|
|
130
|
+
|
|
131
|
+
Rhodes use localization_simplified library to support non-English languages.
|
|
132
|
+
|
|
133
|
+
Add to build.yml:
|
|
134
|
+
|
|
135
|
+
extensions: ["rholang"]
|
|
136
|
+
|
|
137
|
+
In case of several extensions, insert space after extension name and comma:
|
|
138
|
+
|
|
139
|
+
extensions: ["rholang", "net-http"]
|
|
140
|
+
|
|
141
|
+
Create utf-8 encoded file in app `<app_folder>/app/lang/lang_<lang_id>_<country_id>.rb` or `<app_folder>/app/lang/lang_<lang_id>.rb`. This file will be automatically loaded by rhodes based on current locale.
|
|
142
|
+
|
|
143
|
+
For Example create lang_en.rb:
|
|
144
|
+
:::ruby
|
|
145
|
+
module Localization
|
|
146
|
+
Views = {
|
|
147
|
+
:greeting => "This is test"
|
|
148
|
+
}
|
|
149
|
+
end
|
|
150
|
+
|
|
151
|
+
And use this string in the view:
|
|
152
|
+
:::html
|
|
153
|
+
<ul id="home">
|
|
154
|
+
<li><%= Localization::Views[:greeting] %></li>
|
|
155
|
+
</ul>
|
|
156
|
+
|
|
157
|
+
To switch locale at runtime use:
|
|
158
|
+
:::ruby
|
|
159
|
+
System::set_locale('es') #set current locale to Spanish
|
|
160
|
+
### Details:
|
|
161
|
+
|
|
162
|
+
All non-ascii symbols should be utf-8 encoded
|
|
163
|
+
|
|
164
|
+
To get current locale on the phone use System.get_locale method. It returns 'en', 'de' etc locale id's
|
|
165
|
+
|
|
166
|
+
To show localized Date and Time:
|
|
167
|
+
:::ruby
|
|
168
|
+
Time.now.to_formatted_s(:long)
|
|
169
|
+
Time.now.strftime("%B %d, %Y %H:%M") # all names will be localized
|
|
170
|
+
Date.today.to_formatted_s(:long)
|
|
171
|
+
Date.today.strftime("%B %e, %Y") # all names will be localized
|
|
172
|
+
|
|
173
|
+
To show currency (see rails analog for details):
|
|
174
|
+
:::ruby
|
|
175
|
+
Rho::NumberHelper.number_to_currency
|
|
176
|
+
|
|
127
177
|
## Geolocation
|
|
128
178
|
|
|
129
179
|
Geolocation information is available in two ways: as an asynchronous service through Ajax calls to a predefined local URL, or in a controller using Ruby calls to the GeoLocation class.
|
|
@@ -201,29 +251,7 @@ Get the distance between two points in miles
|
|
|
201
251
|
GeoLocation.haversine_distance(
|
|
202
252
|
latitude1, longitude1, latitude2, longitude2)
|
|
203
253
|
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
:::ruby
|
|
207
|
-
GeoLocation.do_geocoding({:adress => adress_string}, url_for(:action => :on_geocoding_callback))
|
|
208
|
-
|
|
209
|
-
In callback :
|
|
210
|
-
* status - "ok" or "error"
|
|
211
|
-
* latitude - latitude
|
|
212
|
-
* longitude - longitude
|
|
213
|
-
* description - description of issue when status == "error"
|
|
214
|
-
|
|
215
|
-
Get nearest adress for coordinates :
|
|
216
|
-
|
|
217
|
-
:::ruby
|
|
218
|
-
GeoLocation.do_geocoding({:latitude => latitude, :longitude => longitude}, url_for(:action => :on_geocoding_callback))
|
|
219
|
-
|
|
220
|
-
In callback :
|
|
221
|
-
* status - "ok" or "error"
|
|
222
|
-
* adress - nearest adress string
|
|
223
|
-
* latitude - latitude of founded adress
|
|
224
|
-
* longitude - longitude of founded adress
|
|
225
|
-
* description - description of issue when status == "error"
|
|
226
|
-
|
|
254
|
+
GeoCoding: You can use any free web service for direct and reverse geocoding. See our complete example of using Google geocoding web service in [Rhodes-System-Api-Samples example](http://github.com/rhomobile/rhodes-system-api-samples/tree/master/app/GeoCoding)
|
|
227
255
|
|
|
228
256
|
#### Testing GeoLocation
|
|
229
257
|
|
|
@@ -268,7 +296,7 @@ Callback points to the `geo_callback` in the Settings controller.rb:
|
|
|
268
296
|
if !GeoLocation.known_position?
|
|
269
297
|
# wait till GPS receiver acquire position
|
|
270
298
|
GeoLocation.set_notification( url_for(:action => :geo_callback), "")
|
|
271
|
-
redirect url_for
|
|
299
|
+
redirect url_for(:action => :wait)
|
|
272
300
|
else
|
|
273
301
|
# show position
|
|
274
302
|
render
|
|
@@ -696,14 +724,58 @@ To enable: install RhoElements gem or RhoStudio and add to build.yml
|
|
|
696
724
|
|
|
697
725
|
The Signature Capture API allow take a signature and save it as an image:
|
|
698
726
|
:::ruby
|
|
699
|
-
|
|
727
|
+
Rho::SignatureCapture.take(callback_url, params)
|
|
700
728
|
|
|
701
729
|
Signature Capture open window for hand writing, where user draw his signature. Signature saved to an image file. You can choice 'jpg' or 'png' format for image.
|
|
730
|
+
* callback_url - callback url
|
|
731
|
+
* params - hash with params
|
|
732
|
+
|
|
733
|
+
Example :
|
|
734
|
+
:::ruby
|
|
735
|
+
Rho::SignatureCapture.take(url_for( :action => :signature_callback), { :imageFormat => "jpg", :penColor => 0xff0000, :penWidth=>3, :bgColor => 0x00ff00 })
|
|
736
|
+
|
|
737
|
+
Params in hash:
|
|
738
|
+
* imageFormat - "jpg" or "png"
|
|
739
|
+
* penColor - color of pen used for drawing signature
|
|
740
|
+
* penWidth - wide of pen
|
|
741
|
+
* bgColor - color of background
|
|
702
742
|
|
|
703
743
|
After user entered signature (or canceled) provided callback url will be called. Callback parameters will be:
|
|
704
744
|
* status - 'ok' or 'cancel'
|
|
705
745
|
* signature_uri - path to the image with signature
|
|
706
746
|
|
|
747
|
+
### Inline signature capture
|
|
748
|
+
Windows Mobile and Windows CE devices support signature capture started in window, which you can show over current page(scrolling is not supported in this case).
|
|
749
|
+
|
|
750
|
+
To display window hand writing, where user draw his signature call:
|
|
751
|
+
:::ruby
|
|
752
|
+
Rho::SignatureCapture.visible(visibility, params)
|
|
753
|
+
|
|
754
|
+
* visibility - true or false
|
|
755
|
+
* params - hash with params, same as for 'take'
|
|
756
|
+
|
|
757
|
+
Example :
|
|
758
|
+
:::ruby
|
|
759
|
+
Rho::SignatureCapture.visible(true, { :imageFormat => "jpg", :penColor => 0xff0000, :penWidth=>3, :bgColor => 0x00ff00 })
|
|
760
|
+
|
|
761
|
+
To save Signature to an image file and call callback:
|
|
762
|
+
:::ruby
|
|
763
|
+
Rho::SignatureCapture.capture(callback_url)
|
|
764
|
+
|
|
765
|
+
* callback_url - callback url
|
|
766
|
+
|
|
767
|
+
Example :
|
|
768
|
+
:::ruby
|
|
769
|
+
Rho::SignatureCapture.capture(url_for( :action => :signature_callback))
|
|
770
|
+
|
|
771
|
+
To clear Signature in the window:
|
|
772
|
+
:::ruby
|
|
773
|
+
Rho::SignatureCapture.clear()
|
|
774
|
+
|
|
775
|
+
Example :
|
|
776
|
+
:::ruby
|
|
777
|
+
Rho::SignatureCapture.clear()
|
|
778
|
+
|
|
707
779
|
### Sample
|
|
708
780
|
See controller and view in the /app/SignatureUtil folder of the [System API Samples application](http://github.com/rhomobile/rhodes-system-api-samples/tree/master/app/SignatureUtil/controller.rb) for more information.
|
|
709
781
|
|
|
@@ -1341,8 +1413,6 @@ For execute you rhodes based application from enother rhodes based application u
|
|
|
1341
1413
|
## MapView
|
|
1342
1414
|
MapView class provides an embeddable map interface, similar to the one provided by the Maps application. The following code would go into your controller and the map appears on a whole page.
|
|
1343
1415
|
|
|
1344
|
-
NOTE: in order to use it on Android, you need to install Google Add-on API and retrieve Google Map API key as described [here](build#build-for-android).
|
|
1345
|
-
|
|
1346
1416
|
:::ruby
|
|
1347
1417
|
map_params = {
|
|
1348
1418
|
:provider => 'Google',
|
|
@@ -1372,6 +1442,21 @@ For use ESRI maps in your projects on iPhone:
|
|
|
1372
1442
|
* Install [ESRI iOS SDK](http://resources.arcgis.com/content/arcgis-iphone/api) - use default folders during installations !
|
|
1373
1443
|
* Add "esri" to your applications extensions list in build.yml file.
|
|
1374
1444
|
|
|
1445
|
+
To use native Google map view on Android:
|
|
1446
|
+
|
|
1447
|
+
* Install Google Add-on API
|
|
1448
|
+
* Get [Google Maps API key](http://code.google.com/android/maps-api-signup.html)
|
|
1449
|
+
* Add 'mapping' and 'apikey' parameters to your build.yml
|
|
1450
|
+
|
|
1451
|
+
android:
|
|
1452
|
+
mapping: yes
|
|
1453
|
+
apikey: <YOUR-API-KEY>
|
|
1454
|
+
|
|
1455
|
+
* Add 'network_state' to capabilities list in your build.yml.
|
|
1456
|
+
|
|
1457
|
+
capabilities:
|
|
1458
|
+
- network_state
|
|
1459
|
+
|
|
1375
1460
|
Map settings:
|
|
1376
1461
|
|
|
1377
1462
|
* map_type - widget may display maps of three types: standard, satellite, and hybrid
|
data/doc/extensions.txt
CHANGED
|
@@ -27,57 +27,6 @@ IOError, EOFError, ThreadError
|
|
|
27
27
|
|
|
28
28
|
We are using Rubinius specs to test Ruby compatibility across different platforms.
|
|
29
29
|
|
|
30
|
-
### Localization
|
|
31
|
-
|
|
32
|
-
See [Rhodes System API Samples application](http://github.com/rhomobile/rhodes-system-api-samples/tree/master/app/Localization/index.erb) as an example.
|
|
33
|
-
|
|
34
|
-
Rhodes use localization_simplified library to support non-English languages.
|
|
35
|
-
|
|
36
|
-
Add to build.yml:
|
|
37
|
-
|
|
38
|
-
extensions: ["rholang"]
|
|
39
|
-
|
|
40
|
-
In case of several extensions, insert space after extension name and comma:
|
|
41
|
-
|
|
42
|
-
extensions: ["rholang", "net-http"]
|
|
43
|
-
|
|
44
|
-
Create utf-8 encoded file in app `<app_folder>/app/lang/lang_<lang_id>_<country_id>.rb` or `<app_folder>/app/lang/lang_<lang_id>.rb`. This file will be automatically loaded by rhodes based on current locale.
|
|
45
|
-
|
|
46
|
-
For Example create lang_en.rb:
|
|
47
|
-
:::ruby
|
|
48
|
-
module Localization
|
|
49
|
-
Views = {
|
|
50
|
-
:greeting => "This is test"
|
|
51
|
-
}
|
|
52
|
-
end
|
|
53
|
-
|
|
54
|
-
And use this string in the view:
|
|
55
|
-
:::html
|
|
56
|
-
<ul id="home">
|
|
57
|
-
<li><%= Localization::Views[:greeting] %></li>
|
|
58
|
-
</ul>
|
|
59
|
-
|
|
60
|
-
To switch locale at runtime use:
|
|
61
|
-
:::ruby
|
|
62
|
-
System::set_locale('es') #set current locale to Spanish
|
|
63
|
-
#### Details:
|
|
64
|
-
|
|
65
|
-
All non-ascii symbols should be utf-8 encoded
|
|
66
|
-
|
|
67
|
-
To get current locale on the phone use System.get_locale method. It returns 'en', 'de' etc locale id's
|
|
68
|
-
|
|
69
|
-
To show localized Date and Time:
|
|
70
|
-
:::ruby
|
|
71
|
-
Time.now.to_formatted_s(:long)
|
|
72
|
-
Time.now.strftime("%B %d, %Y %H:%M") # all names will be localized
|
|
73
|
-
Date.today.to_formatted_s(:long)
|
|
74
|
-
Date.today.strftime("%B %e, %Y") # all names will be localized
|
|
75
|
-
|
|
76
|
-
To show currency (see rails analog for details):
|
|
77
|
-
:::ruby
|
|
78
|
-
Rho::NumberHelper.number_to_currency
|
|
79
|
-
|
|
80
|
-
|
|
81
30
|
### JSON library support
|
|
82
31
|
|
|
83
32
|
For parsing use Rho::JSON.parse, no extension required.
|
data/doc/generator.txt
CHANGED
|
@@ -198,3 +198,9 @@ This will generate the following files in the app folder:
|
|
|
198
198
|
If you are going to use mspec, then add mspec and fileutils extensions to your application's build.yml file:
|
|
199
199
|
|
|
200
200
|
extensions: ["mspec", "fileutils"]
|
|
201
|
+
|
|
202
|
+
To run the tests you need to add a link to the SpecRunner controller in your index.erb:
|
|
203
|
+
:::html
|
|
204
|
+
<li><a href="SpecRunner">Run tests</a></li>
|
|
205
|
+
|
|
206
|
+
Once you click the link a summary of the results with number of passing/failing tests will be displayed on the screen.
|
data/doc/rhom.txt
CHANGED
|
@@ -292,6 +292,9 @@ Below is the full list of methods available to Rhom models:
|
|
|
292
292
|
### `clear_notification`
|
|
293
293
|
Used to clear the notification for the object, see the [sync notification section](/rhodes/synchronization#notifications) for more details.
|
|
294
294
|
|
|
295
|
+
### `client_id`
|
|
296
|
+
Returns the current sync client id.
|
|
297
|
+
|
|
295
298
|
### `delete_all(conditions)`
|
|
296
299
|
Deletes all rhom objects for a source, optionally filtering by conditions:
|
|
297
300
|
|