rhodes 2.2.1.beta.1 → 2.2.1.beta.2
Sign up to get free protection for your applications and to get access to all the features.
- data/Manifest.txt +5647 -0
- data/platform/android/build/android.rake +17 -13
- data/platform/iphone/Classes/TabbedMainView.m +2 -0
- data/rhodes.gemspec +1 -1
- metadata +5 -4
@@ -200,6 +200,9 @@ namespace "config" do
|
|
200
200
|
$use_geomapping = 'false' if $use_geomapping.nil?
|
201
201
|
$use_geomapping = get_boolean($use_geomapping.to_s)
|
202
202
|
|
203
|
+
$use_google_addon_api = false
|
204
|
+
$use_google_addon_api = true if $use_geomapping
|
205
|
+
|
203
206
|
$emuversion = $app_config["android"]["version"] unless $app_config["android"].nil?
|
204
207
|
$emuversion = $config["android"]["version"] if $emuversion.nil? and !$config["android"].nil?
|
205
208
|
|
@@ -354,6 +357,15 @@ namespace "config" do
|
|
354
357
|
$storealias = $config["android"]["production"]["alias"] if $storealias.nil? and !$config["android"].nil? and !$config["android"]["production"].nil?
|
355
358
|
$storealias = "rhomobile.keystore" if $storealias.nil?
|
356
359
|
|
360
|
+
$app_config["capabilities"] = [] if $app_config["capabilities"].nil?
|
361
|
+
$app_config["capabilities"] = [] unless $app_config["capabilities"].is_a? Array
|
362
|
+
if $app_config["android"] and $app_config["android"]["capabilities"]
|
363
|
+
$app_config["capabilities"] += $app_config["android"]["capabilities"]
|
364
|
+
$app_config["android"]["capabilities"] = nil
|
365
|
+
end
|
366
|
+
$app_config["capabilities"].map! { |cap| cap.is_a?(String) ? cap : nil }.delete_if { |cap| cap.nil? }
|
367
|
+
$use_google_addon_api = true unless $app_config["capabilities"].index("push").nil?
|
368
|
+
|
357
369
|
# Detect android targets
|
358
370
|
if $androidtargets.nil?
|
359
371
|
$androidtargets = {}
|
@@ -366,7 +378,7 @@ namespace "config" do
|
|
366
378
|
id = $1
|
367
379
|
end
|
368
380
|
|
369
|
-
if $
|
381
|
+
if $use_google_addon_api
|
370
382
|
if line =~ /:Google APIs:([0-9]+)/
|
371
383
|
apilevel = $1
|
372
384
|
$androidtargets[apilevel.to_i] = id.to_i
|
@@ -381,7 +393,7 @@ namespace "config" do
|
|
381
393
|
end
|
382
394
|
|
383
395
|
# Detect Google API add-on path
|
384
|
-
if $
|
396
|
+
if $use_google_addon_api
|
385
397
|
puts "+++ Looking for Google APIs add-on..." if USE_TRACES
|
386
398
|
napilevel = ANDROID_API_LEVEL
|
387
399
|
Dir.glob(File.join($androidsdkpath, 'add-ons', '*')).each do |dir|
|
@@ -410,7 +422,7 @@ namespace "config" do
|
|
410
422
|
end
|
411
423
|
end
|
412
424
|
if $gapijar.nil?
|
413
|
-
puts "+++ No Google APIs add-on found (which is required because
|
425
|
+
puts "+++ No Google APIs add-on found (which is required because appropriate capabilities enabled in build.yml)"
|
414
426
|
exit 1
|
415
427
|
else
|
416
428
|
puts "+++ Google APIs add-on found: #{$gapijar}" if USE_TRACES
|
@@ -420,7 +432,7 @@ namespace "config" do
|
|
420
432
|
$emuversion = get_market_version($found_api_level) if $emuversion.nil?
|
421
433
|
$emuversion = $emuversion.to_s
|
422
434
|
$avdname = "rhoAndroid" + $emuversion.gsub(/[^0-9]/, "")
|
423
|
-
$avdname += "ext" if $
|
435
|
+
$avdname += "ext" if $use_google_addon_api
|
424
436
|
$avdtarget = $androidtargets[get_api_level($emuversion)]
|
425
437
|
|
426
438
|
setup_ndk($androidndkpath, ANDROID_API_LEVEL)
|
@@ -450,14 +462,6 @@ namespace "config" do
|
|
450
462
|
# $app_config["android"]["extensions"] = nil
|
451
463
|
#end
|
452
464
|
|
453
|
-
$app_config["capabilities"] = [] if $app_config["capabilities"].nil?
|
454
|
-
$app_config["capabilities"] = [] unless $app_config["capabilities"].is_a? Array
|
455
|
-
if $app_config["android"] and $app_config["android"]["capabilities"]
|
456
|
-
$app_config["capabilities"] += $app_config["android"]["capabilities"]
|
457
|
-
$app_config["android"]["capabilities"] = nil
|
458
|
-
end
|
459
|
-
$app_config["capabilities"].map! { |cap| cap.is_a?(String) ? cap : nil }.delete_if { |cap| cap.nil? }
|
460
|
-
|
461
465
|
$push_sender = nil
|
462
466
|
$push_sender = $config["android"]["push"]["sender"] if !$config["android"].nil? and !$config["android"]["push"].nil?
|
463
467
|
$push_sender = $app_config["android"]["push"]["sender"] if !$app_config["android"].nil? and !$app_config["android"]["push"].nil?
|
@@ -1371,7 +1375,7 @@ namespace "run" do
|
|
1371
1375
|
createavd = "\"#{$androidbin}\" create avd --name #{$avdname} --target #{$avdtarget} --sdcard 32M --skin HVGA"
|
1372
1376
|
system(createavd) unless File.directory?( File.join(ENV['HOME'], ".android", "avd", "#{$avdname}.avd" ) )
|
1373
1377
|
|
1374
|
-
if $
|
1378
|
+
if $use_google_addon_api
|
1375
1379
|
avdini = File.join(ENV['HOME'], '.android', 'avd', "#{$avdname}.ini")
|
1376
1380
|
avd_using_gapi = true if File.new(avdini).read =~ /:Google APIs:/
|
1377
1381
|
unless avd_using_gapi
|
@@ -189,6 +189,7 @@
|
|
189
189
|
- (void)switchTab:(int)index {
|
190
190
|
tabindex = index;
|
191
191
|
tabbar.selectedIndex = tabindex;
|
192
|
+
[self onSwitchTab];
|
192
193
|
}
|
193
194
|
|
194
195
|
- (void)onSwitchTab {
|
@@ -199,6 +200,7 @@
|
|
199
200
|
rho_rhodesapp_load_url(s);
|
200
201
|
td.loaded = YES;
|
201
202
|
}
|
203
|
+
[[[self subView:tabindex] view] setNeedsDisplay];
|
202
204
|
}
|
203
205
|
|
204
206
|
- (int)activeTab {
|
data/rhodes.gemspec
CHANGED
@@ -3,7 +3,7 @@ require "lib/rhodes.rb"
|
|
3
3
|
|
4
4
|
Gem::Specification.new do |s|
|
5
5
|
s.name = %q{rhodes}
|
6
|
-
s.version = '2.2.1.beta.
|
6
|
+
s.version = '2.2.1.beta.2'
|
7
7
|
|
8
8
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
9
9
|
s.authors = ["Rhomobile"]
|
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: 62196431
|
5
5
|
prerelease: true
|
6
6
|
segments:
|
7
7
|
- 2
|
8
8
|
- 2
|
9
9
|
- 1
|
10
10
|
- beta
|
11
|
-
-
|
12
|
-
version: 2.2.1.beta.
|
11
|
+
- 2
|
12
|
+
version: 2.2.1.beta.2
|
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: 2010-10-
|
20
|
+
date: 2010-10-19 00:00:00 -07:00
|
21
21
|
default_executable:
|
22
22
|
dependencies:
|
23
23
|
- !ruby/object:Gem::Dependency
|
@@ -750,6 +750,7 @@ files:
|
|
750
750
|
- lib/test/rho_stubs.rb
|
751
751
|
- lib/test/syncdb.sqlite
|
752
752
|
- LICENSE
|
753
|
+
- Manifest.txt
|
753
754
|
- platform/android/build/android.rake
|
754
755
|
- platform/android/build/androidcommon.rb
|
755
756
|
- platform/android/build/libcurl_build.files
|