rhodes 3.3.2.beta.5 → 3.3.2.beta.6
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +1 -0
- data/Rakefile +4 -0
- data/doc/configuration.txt +2 -2
- data/doc/device-caps.txt +30 -17
- data/doc/ui.txt +24 -0
- data/lib/build/jake.rb +85 -2
- data/lib/framework/rho/rhoapplication.rb +14 -2
- data/platform/android/Rhodes/res/layout/datetime.xml +5 -5
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/datetime/DateTimePickerScreen.java +2 -2
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/mapview/AnnotationsOverlay.java +8 -2
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/mapview/CalloutOverlay.java +88 -24
- data/platform/android/build/android.rake +27 -9
- data/platform/iphone/Classes/GeoLocation/LocationController.m +3 -0
- data/platform/iphone/rbuild/iphone.rake +6 -2
- data/platform/shared/common/RhodesApp.cpp +6 -1
- data/platform/shared/common/ThreadQueue.cpp +7 -1
- data/platform/shared/common/ThreadQueue.h +5 -1
- data/platform/shared/logging/RhoLog.cpp +4 -1
- data/platform/shared/logging/RhoLogConf.cpp +25 -11
- data/platform/shared/logging/RhoLogConf.h +4 -2
- data/platform/shared/logging/RhoLogSink.cpp +21 -15
- data/platform/shared/logging/RhoLogSink.h +17 -8
- data/platform/shared/net/AsyncHttp.cpp +16 -10
- data/platform/shared/net/AsyncHttp.h +3 -2
- data/platform/wm/build/wm.rake +27 -2
- data/platform/wm/tools/detool/detool.cpp +4 -8
- data/platform/wp7/build/wp.rake +2 -34
- data/rakefile.rb +4 -0
- data/res/build-tools/detool.exe +0 -0
- data/res/generators/templates/spec/app/spec_runner.rb +8 -2
- data/spec/framework_spec/app/spec_runner.rb +22 -6
- data/version +1 -1
- metadata +4 -4
data/platform/wm/build/wm.rake
CHANGED
@@ -88,7 +88,7 @@ namespace "config" do
|
|
88
88
|
$rhobundledir = $app_path + "/RhoBundle"
|
89
89
|
$log_file = $app_config["applog"].nil? ? "applog.txt" : $app_config["applog"]
|
90
90
|
$srcdir = $bindir + "/RhoBundle"
|
91
|
-
$buildcfg = $app_config["buildcfg"]
|
91
|
+
$buildcfg = $app_config["buildcfg"] unless $buildcfg
|
92
92
|
$buildcfg = "Release" unless $buildcfg
|
93
93
|
|
94
94
|
if $sdk == "Windows Mobile 6 Professional SDK (ARMV4I)"
|
@@ -428,6 +428,10 @@ namespace "clean" do
|
|
428
428
|
end
|
429
429
|
|
430
430
|
namespace "run" do
|
431
|
+
task :mylogserver => ["config:wm"] do
|
432
|
+
Jake.run_rho_log_server($app_path)
|
433
|
+
end
|
434
|
+
|
431
435
|
def gelLogPath
|
432
436
|
log_file_path = File.join($app_path, $log_file)
|
433
437
|
return log_file_path
|
@@ -444,7 +448,17 @@ namespace "run" do
|
|
444
448
|
puts "\nStarting application on the WM6 emulator\n\n"
|
445
449
|
log_file = gelLogPath
|
446
450
|
|
447
|
-
Jake.run2( detool, ['log', log_file, $port], {:nowait => true})
|
451
|
+
#Jake.run2( detool, ['log', log_file, $port], {:nowait => true})
|
452
|
+
|
453
|
+
File.delete($app_path + "/started") if File.exists?($app_path + "/started")
|
454
|
+
Jake.run_rho_log_server($app_path)
|
455
|
+
puts "RhoLogServer is starting"
|
456
|
+
while true do
|
457
|
+
if File.exists?($app_path + "/started")
|
458
|
+
break
|
459
|
+
end
|
460
|
+
sleep(1)
|
461
|
+
end
|
448
462
|
|
449
463
|
if $webkit_capability
|
450
464
|
wk_args = [ 'wk-emu', "\"#{$wm_emulator}\"", '"'+ $wk_data_dir.gsub(/"/,'\\"') + '"', '"'+ $appname + '"']
|
@@ -485,6 +499,17 @@ namespace "run" do
|
|
485
499
|
# temporary disable log from device (caused enormous delays)
|
486
500
|
# Jake.run2( detool, ['log', log_file, $port], {:nowait => true})
|
487
501
|
|
502
|
+
File.delete($app_path + "/started") if File.exists?($app_path + "/started")
|
503
|
+
|
504
|
+
Jake.run_rho_log_server($app_path)
|
505
|
+
puts "RhoLogServer is starting"
|
506
|
+
while true do
|
507
|
+
if File.exists?($app_path + "/started")
|
508
|
+
break
|
509
|
+
end
|
510
|
+
sleep(1)
|
511
|
+
end
|
512
|
+
|
488
513
|
if $webkit_capability
|
489
514
|
wk_args = [ 'wk-dev', '"'+ $wk_data_dir.gsub(/"/,'\\"') + '"', '"'+ $appname + '"']
|
490
515
|
Jake.run2( detool, wk_args, {:nowait => false})
|
@@ -1112,10 +1112,8 @@ int _tmain(int argc, _TCHAR* argv[])
|
|
1112
1112
|
_tprintf( TEXT("%s\n"), params_buf);
|
1113
1113
|
|
1114
1114
|
TCHAR params[128];
|
1115
|
-
|
1116
|
-
params
|
1117
|
-
//_tcscpy(params, _T("-log="));
|
1118
|
-
//_tcscat(params, log_port);
|
1115
|
+
_tcscpy(params, _T("-log="));
|
1116
|
+
_tcscat(params, log_port);
|
1119
1117
|
|
1120
1118
|
if(!wceRunProcess(T2A(params_buf), T2A(params))) {
|
1121
1119
|
_tprintf( TEXT("FAILED\n"));
|
@@ -1192,10 +1190,8 @@ int _tmain(int argc, _TCHAR* argv[])
|
|
1192
1190
|
_tcscat(params_buf, _T(".exe"));
|
1193
1191
|
|
1194
1192
|
TCHAR params[128];
|
1195
|
-
|
1196
|
-
params
|
1197
|
-
//_tcscpy(params, _T("-log="));
|
1198
|
-
//_tcscat(params, log_port);
|
1193
|
+
_tcscpy(params, _T("-log="));
|
1194
|
+
_tcscat(params, log_port);
|
1199
1195
|
|
1200
1196
|
if(!wceRunProcess (T2A(params_buf), T2A(params))) {
|
1201
1197
|
_tprintf( TEXT("FAILED\n"));
|
data/platform/wp7/build/wp.rake
CHANGED
@@ -339,7 +339,7 @@ namespace "run" do
|
|
339
339
|
#system("START " + $wp7logserver + " " + $app_path + "/rholog.txt")
|
340
340
|
|
341
341
|
File.delete($app_path + "/started") if File.exists?($app_path + "/started")
|
342
|
-
run_rho_log_server()
|
342
|
+
Jake.run_rho_log_server($app_path)
|
343
343
|
puts "RhoLogServer is starting"
|
344
344
|
while(1)
|
345
345
|
if File.exists?($app_path + "/started")
|
@@ -376,38 +376,6 @@ namespace "run" do
|
|
376
376
|
puts "log_file=" + getLogPath
|
377
377
|
end
|
378
378
|
|
379
|
-
task :rhologserver, :app_path do |t, args|
|
380
|
-
puts "Args were: #{args}"
|
381
|
-
$app_path = args[:app_path]
|
382
|
-
|
383
|
-
Rake::Task["config:wp"].invoke
|
384
|
-
|
385
|
-
$rhologhostaddr = Jake.localip()
|
386
|
-
$rhologhostport = 0
|
387
|
-
$rhologserver = WEBrick::HTTPServer.new :BindAddress => $rhologhostaddr, :Port => $rhologhostport
|
388
|
-
$rhologhostport = $rhologserver.config[:Port]
|
389
|
-
confpath_content = File.read($srcdir + "/apps/rhoconfig.txt") if File.exists?($srcdir + "/apps/rhoconfig.txt")
|
390
|
-
confpath_content += "\r\n" + "rhologhost=" + $rhologhostaddr
|
391
|
-
confpath_content += "\r\n" + "rhologport=" + $rhologhostport.to_s()
|
392
|
-
File.open($srcdir + "/apps/rhoconfig.txt", "w") { |f| f.write(confpath_content) } if confpath_content && confpath_content.length()>0
|
393
|
-
puts "LOCAL SERVER STARTED ON #{$rhologhostaddr}:#{$rhologhostport}"
|
394
|
-
started = File.open($app_path + "/started", "w+")
|
395
|
-
started.close
|
396
|
-
Thread.new { $rhologserver.start }
|
397
|
-
#write host and port 4 log server
|
398
|
-
$rhologfile = File.open(getLogPath, "w+")
|
399
|
-
$rhologserver.mount_proc '/' do |req,res|
|
400
|
-
$rhologfile.puts req.body
|
401
|
-
$rhologfile.flush
|
402
|
-
res.status = 200
|
403
|
-
res.chunked = true
|
404
|
-
res.body = ""
|
405
|
-
end
|
406
|
-
while(1)
|
407
|
-
sleep(1000)
|
408
|
-
end
|
409
|
-
end
|
410
|
-
|
411
379
|
task :rhosimulator => ["config:set_wp_platform", "config:common"] do
|
412
380
|
$rhosim_config = "platform='wp'\r\n"
|
413
381
|
Rake::Task["run:rhosimulator"].invoke
|
@@ -483,7 +451,7 @@ namespace "run" do
|
|
483
451
|
if $app_config["wp"] && $app_config["wp"]["productid"] != nil
|
484
452
|
#system("START " + $wp7logserver + " " + $app_path + "/rholog.txt")
|
485
453
|
File.delete($app_path + "/started") if File.exists?($app_path + "/started")
|
486
|
-
run_rho_log_server()
|
454
|
+
Jake.run_rho_log_server($app_path)
|
487
455
|
puts "RhoLogServer is starting"
|
488
456
|
while(1)
|
489
457
|
if File.exists?($app_path + "/started")
|
data/rakefile.rb
CHANGED
@@ -303,6 +303,10 @@ namespace "config" do
|
|
303
303
|
make_application_build_capabilities_header_file
|
304
304
|
end
|
305
305
|
|
306
|
+
$rhologhostport = $config["log_host_port"]
|
307
|
+
$rhologhostport = 52363 unless $rhologhostport
|
308
|
+
$rhologhostaddr = Jake.localip()
|
309
|
+
|
306
310
|
end
|
307
311
|
|
308
312
|
task :qt do
|
data/res/build-tools/detool.exe
CHANGED
Binary file
|
@@ -12,10 +12,16 @@ class SpecRunner < MSpecScript
|
|
12
12
|
app_folder = Rho::RhoFSConnector.get_app_path('app')
|
13
13
|
app_folder.gsub!(/\\/, '/')
|
14
14
|
|
15
|
-
specs = app_folder + "**/*_spec
|
15
|
+
specs = app_folder + "**/*_spec" + RHO_RB_EXT
|
16
16
|
Dir.glob(specs) { |file|
|
17
17
|
file.gsub!(app_folder,"")
|
18
|
-
|
18
|
+
|
19
|
+
if RHO_RB_EXT == '.rb'
|
20
|
+
file.gsub!(/\.rb/,"")
|
21
|
+
else
|
22
|
+
file.gsub!(/\.iseq/,"")
|
23
|
+
end
|
24
|
+
|
19
25
|
config[:files] << file
|
20
26
|
}
|
21
27
|
|
@@ -14,11 +14,16 @@ class SpecRunner < MSpecScript
|
|
14
14
|
app_folder = Rho::RhoFSConnector.get_app_path('app')
|
15
15
|
app_folder.gsub!(/\\/, '/')
|
16
16
|
|
17
|
-
specs = app_folder + "spec/language/**/*_spec
|
17
|
+
specs = app_folder + "spec/language/**/*_spec" + RHO_RB_EXT
|
18
18
|
|
19
19
|
Dir.glob(specs) do |file|
|
20
20
|
file.gsub!(app_folder,"")
|
21
|
-
|
21
|
+
if RHO_RB_EXT == '.rb'
|
22
|
+
file.gsub!(/\.rb/,"")
|
23
|
+
else
|
24
|
+
file.gsub!(/\.iseq/,"")
|
25
|
+
end
|
26
|
+
|
22
27
|
|
23
28
|
if ( System.get_property('platform') == 'WINDOWS' )
|
24
29
|
next if file =~ /\/execution_spec$/
|
@@ -87,22 +92,33 @@ class SpecRunner < MSpecScript
|
|
87
92
|
core << 'fiber'
|
88
93
|
|
89
94
|
core.each do |folder|
|
90
|
-
specs = app_folder + "spec/core/#{folder}/**/*_spec
|
95
|
+
specs = app_folder + "spec/core/#{folder}/**/*_spec" + RHO_RB_EXT
|
91
96
|
Dir.glob(specs) do |file|
|
92
97
|
file.gsub!(app_folder,"")
|
93
|
-
|
98
|
+
|
99
|
+
if RHO_RB_EXT == '.rb'
|
100
|
+
file.gsub!(/\.rb/,"")
|
101
|
+
else
|
102
|
+
file.gsub!(/\.iseq/,"")
|
103
|
+
end
|
104
|
+
|
94
105
|
|
95
106
|
config[:files] << file
|
96
107
|
end
|
97
108
|
end
|
98
109
|
|
99
110
|
# LIBRARIES
|
100
|
-
specs = app_folder + "spec/library/**/*_spec
|
111
|
+
specs = app_folder + "spec/library/**/*_spec" + RHO_RB_EXT
|
101
112
|
Dir.glob(specs) do |file|
|
102
113
|
#next if file =~ /sha1/
|
103
114
|
|
104
115
|
file.gsub!(app_folder,"")
|
105
|
-
|
116
|
+
if RHO_RB_EXT == '.rb'
|
117
|
+
file.gsub!(/\.rb/,"")
|
118
|
+
else
|
119
|
+
file.gsub!(/\.iseq/,"")
|
120
|
+
end
|
121
|
+
|
106
122
|
config[:files] << file
|
107
123
|
end
|
108
124
|
|
data/version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.3.2.beta.
|
1
|
+
3.3.2.beta.6
|
metadata
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rhodes
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 62196463
|
5
5
|
prerelease: true
|
6
6
|
segments:
|
7
7
|
- 3
|
8
8
|
- 3
|
9
9
|
- 2
|
10
10
|
- beta
|
11
|
-
-
|
12
|
-
version: 3.3.2.beta.
|
11
|
+
- 6
|
12
|
+
version: 3.3.2.beta.6
|
13
13
|
platform: ruby
|
14
14
|
authors:
|
15
15
|
- Rhomobile
|
@@ -17,7 +17,7 @@ autorequire:
|
|
17
17
|
bindir: bin
|
18
18
|
cert_chain: []
|
19
19
|
|
20
|
-
date: 2012-
|
20
|
+
date: 2012-02-06 00:00:00 -08:00
|
21
21
|
default_executable:
|
22
22
|
dependencies:
|
23
23
|
- !ruby/object:Gem::Dependency
|