rhodes 2.3.0 → 2.3.1.beta.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (167) hide show
  1. data/CHANGELOG +6 -0
  2. data/Manifest.txt +5819 -0
  3. data/README.md +2 -2
  4. data/Rakefile +9 -5
  5. data/doc/build.txt +7 -13
  6. data/doc/configuration.txt +4 -0
  7. data/doc/connect-to-web-services.txt +0 -1
  8. data/doc/device-caps.txt +2 -2
  9. data/doc/extensions.txt +2 -0
  10. data/doc/linea.txt +699 -0
  11. data/doc/rhom.txt +2 -1
  12. data/doc/synchronization.txt +39 -2
  13. data/doc/ui.txt +1 -0
  14. data/installer/README.html +1 -1
  15. data/lib/build/jake.rb +3 -0
  16. data/lib/framework/res/esri.wm.png +0 -0
  17. data/lib/framework/rho/render.rb +2 -0
  18. data/lib/framework/rho/rho.rb +17 -10
  19. data/lib/framework/rho/rhoapplication.rb +13 -3
  20. data/lib/framework/rho/rhoevent_bb.rb +3 -1
  21. data/lib/framework/rho/rhoevent_c.rb +4 -1
  22. data/lib/framework/rhodes.rb +1 -1
  23. data/lib/framework/rhom/rhom.rb +10 -0
  24. data/lib/framework/rhom/rhom_object_factory.rb +45 -0
  25. data/lib/framework/rhom/rhom_source.rb +1 -1
  26. data/lib/framework/version.rb +1 -1
  27. data/lib/rhodes.rb +1 -1
  28. data/platform/android/Rhodes/AndroidManifest.xml +2 -2
  29. data/platform/android/Rhodes/jni/include/rhodes/RhoClassFactory.h +1 -1
  30. data/platform/android/Rhodes/jni/src/RhoClassFactory.cpp +1 -1
  31. data/platform/android/Rhodes/jni/src/callbacks.cpp +9 -11
  32. data/platform/android/Rhodes/jni/src/event.cpp +17 -9
  33. data/platform/android/Rhodes/jni/src/mapview.cpp +34 -4
  34. data/platform/android/Rhodes/jni/src/rhodes.cpp +1 -1
  35. data/platform/android/Rhodes/res/drawable/esri.png +0 -0
  36. data/platform/android/Rhodes/src/com/rhomobile/rhodes/AndroidR.java +1 -0
  37. data/platform/android/Rhodes/src/com/rhomobile/rhodes/BaseActivity.java +3 -0
  38. data/platform/android/Rhodes/src/com/rhomobile/rhodes/RhodesActivity.java +8 -5
  39. data/platform/android/Rhodes/src/com/rhomobile/rhodes/RhodesService.java +80 -9
  40. data/platform/android/Rhodes/src/com/rhomobile/rhodes/event/EventStore.java +29 -8
  41. data/platform/android/Rhodes/src/com/rhomobile/rhodes/mainview/SimpleMainView.java +4 -1
  42. data/platform/android/Rhodes/src/com/rhomobile/rhodes/mainview/TabbedMainView.java +50 -10
  43. data/platform/android/Rhodes/src/com/rhomobile/rhodes/mapview/MapView.java +3 -0
  44. data/platform/android/build/android.rake +45 -23
  45. data/platform/android/build/librhocommon_build.files +1 -0
  46. data/platform/bb/Hsqldb/src/com/rho/db/HsqlDBStorage.java +6 -1
  47. data/platform/bb/Hsqldb/src/org/hsqldb/CachedDataRow.java +1 -1
  48. data/platform/bb/Hsqldb/src/org/hsqldb/CachedRow.java +3 -2
  49. data/platform/bb/Hsqldb/src/org/hsqldb/Row.java +1 -1
  50. data/platform/bb/Hsqldb/src/org/hsqldb/persist/CachedObject.java +1 -1
  51. data/platform/bb/Hsqldb/src/org/hsqldb/persist/DataFileCache.java +66 -16
  52. data/platform/bb/Hsqldb/src/org/hsqldb/persist/HsqlDatabaseProperties.java +1 -1
  53. data/platform/bb/RubyVM/src/com/rho/RhoCrypto.java +116 -0
  54. data/platform/bb/RubyVM/src/com/rho/ThreadQueue.java +39 -2
  55. data/platform/bb/RubyVM/src/com/rho/Tokenizer.java +11 -6
  56. data/platform/bb/RubyVM/src/com/rho/db/DBAdapter.java +157 -150
  57. data/platform/bb/RubyVM/src/com/rho/db/IDBStorage.java +1 -1
  58. data/platform/bb/RubyVM/src/com/rho/file/RhoFile.java +15 -0
  59. data/platform/bb/RubyVM/src/com/rho/net/AsyncHttp.java +35 -23
  60. data/platform/bb/RubyVM/src/com/rho/net/NetRequest.java +6 -9
  61. data/platform/bb/RubyVM/src/com/rho/sync/SyncEngine.java +54 -16
  62. data/platform/bb/RubyVM/src/com/rho/sync/SyncNotify.java +18 -9
  63. data/platform/bb/RubyVM/src/com/rho/sync/SyncSource.java +37 -59
  64. data/platform/bb/RubyVM/src/com/rho/sync/SyncThread.java +3 -0
  65. data/platform/bb/build/RubyVM_build.files +1 -0
  66. data/platform/bb/build/bb.rake +4 -5
  67. data/platform/bb/rhodes/platform/5.0/com/rho/RhodesApplicationPlatform.java +4 -1
  68. data/platform/bb/rhodes/platform/5.0/com/rho/db/SqliteStorage.java +8 -3
  69. data/platform/bb/rhodes/resources/esri.png +0 -0
  70. data/platform/bb/rhodes/src/com/rho/RhodesApplicationPlatform.java +2 -0
  71. data/platform/bb/rhodes/src/com/rho/db/SqliteStorage.java +8 -3
  72. data/platform/bb/rhodes/src/com/rho/rubyext/RhoCalendar.java +4 -1
  73. data/platform/bb/rhodes/src/com/rho/rubyext/System.java +2 -0
  74. data/platform/bb/rhodes/src/rhomobile/mapview/ESRIMapField.java +9 -0
  75. data/platform/iphone/Classes/Event/Event.m +12 -2
  76. data/platform/iphone/Classes/NativeBar.h +12 -11
  77. data/platform/iphone/Classes/NativeBar.m +13 -3
  78. data/platform/iphone/Classes/Rhodes.m +48 -10
  79. data/platform/iphone/Classes/SimpleMainView.h +1 -0
  80. data/platform/iphone/Classes/SimpleMainView.m +7 -1
  81. data/platform/iphone/Classes/SplitView/LeftViewController.m +3 -0
  82. data/platform/iphone/Classes/SplitView/RightViewController.m +11 -6
  83. data/platform/iphone/Classes/SplitView/SplittedMainView.m +8 -0
  84. data/platform/iphone/Classes/TabbedMainView.m +39 -3
  85. data/platform/iphone/Info.plist +1 -1
  86. data/platform/iphone/RhoLib/RhoLib.xcodeproj/project.pbxproj +4 -0
  87. data/platform/iphone/rhorunner.xcodeproj/project.pbxproj +3 -3
  88. data/platform/shared/SyncClient/SyncClient.cpp +23 -23
  89. data/platform/shared/common/IRhoClassFactory.h +6 -4
  90. data/platform/shared/common/RhoAppAdapter.h +1 -1
  91. data/platform/shared/common/RhoFile.cpp +10 -0
  92. data/platform/shared/common/RhoFile.h +1 -0
  93. data/platform/shared/common/RhoMutexLock.h +1 -1
  94. data/platform/shared/common/RhoStd.h +5 -0
  95. data/platform/shared/common/RhoThread.cpp +2 -2
  96. data/platform/shared/common/RhoThread.h +1 -2
  97. data/platform/shared/common/RhodesApp.cpp +33 -55
  98. data/platform/shared/common/RhodesApp.h +0 -5
  99. data/platform/shared/common/RhodesAppBase.cpp +1 -1
  100. data/platform/shared/common/SplashScreen.cpp +1 -2
  101. data/platform/shared/common/ThreadQueue.cpp +31 -4
  102. data/platform/shared/common/ThreadQueue.h +10 -3
  103. data/platform/shared/common/Tokenizer.cpp +12 -8
  104. data/platform/shared/common/iphone/RhoClassFactory.cpp +5 -8
  105. data/platform/shared/common/iphone/RhoClassfactory.h +1 -1
  106. data/platform/shared/common/map/ESRIMapEngine.cpp +17 -7
  107. data/platform/shared/common/map/ESRIMapEngine.h +11 -1
  108. data/platform/shared/common/map/GoogleMapEngine.cpp +3 -3
  109. data/platform/shared/common/map/GoogleMapEngine.h +2 -2
  110. data/platform/shared/common/map/MapEngine.cpp +37 -0
  111. data/platform/shared/common/map/MapEngine.h +5 -0
  112. data/platform/shared/db/DBAdapter.cpp +113 -81
  113. data/platform/shared/db/DBAdapter.h +21 -5
  114. data/platform/shared/db/DBAttrManager.cpp +2 -2
  115. data/platform/shared/db/DBResult.h +28 -0
  116. data/platform/shared/net/AsyncHttp.cpp +48 -48
  117. data/platform/shared/net/AsyncHttp.h +15 -12
  118. data/platform/shared/net/CURLNetRequest.cpp +27 -105
  119. data/platform/shared/net/CURLNetRequest.h +8 -15
  120. data/platform/shared/net/INetRequest.cpp +122 -0
  121. data/platform/shared/net/INetRequest.h +96 -23
  122. data/platform/shared/net/ssl.cpp +1 -1
  123. data/platform/shared/ruby/ext/calendar/calendar.i +2 -2
  124. data/platform/shared/ruby/ext/calendar/calendar_wrap.c +30 -3
  125. data/platform/shared/rubyext/GeoLocation.cpp +4 -5
  126. data/platform/shared/rubyext/GeoLocation.h +4 -4
  127. data/platform/shared/rubyext/RhoAppAdapter.cpp +1 -1
  128. data/platform/shared/rubyext/System.cpp +3 -0
  129. data/platform/shared/sync/ClientRegister.cpp +6 -9
  130. data/platform/shared/sync/ClientRegister.h +8 -6
  131. data/platform/shared/sync/SyncEngine.cpp +54 -30
  132. data/platform/shared/sync/SyncEngine.h +9 -11
  133. data/platform/shared/sync/SyncNotify.cpp +19 -14
  134. data/platform/shared/sync/SyncNotify.h +5 -12
  135. data/platform/shared/sync/SyncSource.cpp +53 -76
  136. data/platform/shared/sync/SyncSource.h +5 -4
  137. data/platform/shared/sync/SyncThread.cpp +5 -7
  138. data/platform/shared/sync/SyncThread.h +2 -2
  139. data/platform/wm/RhoLib/RhoLib.vcproj +43 -39
  140. data/platform/wm/build/wm.rake +19 -17
  141. data/platform/wm/rhodes/AppManager.cpp +4 -4
  142. data/platform/wm/rhodes/MainWindow.cpp +0 -1
  143. data/platform/wm/rhodes/MapView/MapViewManager.cpp +4 -0
  144. data/platform/wm/rhodes/Vibrate.cpp +2 -2
  145. data/platform/wm/rhodes/Vibrate.h +1 -1
  146. data/platform/wm/rhodes/rho/common/RhoClassFactory.cpp +7 -5
  147. data/platform/wm/rhodes/rho/common/RhoClassFactory.h +3 -3
  148. data/platform/wm/rhodes/rho/net/NetRequestImpl.cpp +24 -10
  149. data/platform/wm/rhodes/rho/net/NetRequestImpl.h +49 -25
  150. data/platform/wm/rhodes/rho/rubyext/calendar.cpp +16 -2
  151. data/platform/wm/rhodes/rhodes.vcproj +77 -85
  152. data/platform/wm/tools/detool/detool.cpp +16 -6
  153. data/rakefile.rb +9 -5
  154. data/res/build-tools/detool.exe +0 -0
  155. data/rhodes.gemspec +2 -2
  156. data/spec/phone_spec/app/spec/blobsync_spec.rb +1 -0
  157. data/spec/phone_spec/app/spec/events_spec.rb +13 -2
  158. data/spec/phone_spec/app/spec/mapview_spec.rb +2 -2
  159. data/spec/phone_spec/app/spec/nativebar_spec.rb +3 -3
  160. data/spec/phone_spec/app/spec/navbar_spec.rb +3 -3
  161. data/spec/phone_spec/app/spec/rho_spec.rb +1 -1
  162. data/spec/phone_spec/app/spec/rhom_object_spec.rb +1 -1
  163. data/spec/phone_spec/app/spec/syncengine_spec.rb +219 -0
  164. data/spec/phone_spec/build.yml +1 -0
  165. metadata +15 -8
  166. data/platform/wm/rhodes/rho/net/NetRequest.cpp +0 -89
  167. data/platform/wm/rhodes/rho/net/NetRequest.h +0 -45
@@ -413,7 +413,7 @@
413
413
  />
414
414
  </Configuration>
415
415
  <Configuration
416
- Name="Release|Windows Mobile 6 Professional SDK (ARMV4I)"
416
+ Name="Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I)"
417
417
  OutputDirectory="..\bin\$(PlatformName)\$(ProjectName)\$(ConfigurationName)"
418
418
  IntermediateDirectory="..\bin\$(PlatformName)\$(ProjectName)\$(ConfigurationName)"
419
419
  ConfigurationType="1"
@@ -435,8 +435,9 @@
435
435
  />
436
436
  <Tool
437
437
  Name="VCMIDLTool"
438
- PreprocessorDefinitions="NDEBUG"
438
+ PreprocessorDefinitions="_DEBUG"
439
439
  MkTypLibCompatible="false"
440
+ TargetEnvironment="1"
440
441
  GenerateStublessProxies="true"
441
442
  TypeLibraryName="$(IntDir)/Rhodes.tlb"
442
443
  HeaderFileName="Rhodes.h"
@@ -447,11 +448,11 @@
447
448
  <Tool
448
449
  Name="VCCLCompilerTool"
449
450
  ExecutionBucket="7"
450
- Optimization="2"
451
+ Optimization="0"
451
452
  AdditionalIncludeDirectories="../../shared;./rho;../../shared/ruby;../../shared/wtl80/include;."
452
- PreprocessorDefinitions="_WIN32_WCE=$(CEVER);UNDER_CE=$(CEVER);WINCE;$(PLATFORMDEFINES);NDEBUG;$(ARCHFAM);$(_ARCHFAM_);_UNICODE;UNICODE;POCKETPC2003_UI_MODEL;POCKETPC2003_UI_MODEL"
453
- RuntimeLibrary="0"
454
- UsePrecompiledHeader="2"
453
+ PreprocessorDefinitions="_WIN32_WCE=$(CEVER);UNDER_CE=$(CEVER);WINCE;$(PLATFORMDEFINES);_DEBUG;DEBUG;$(ARCHFAM);$(_ARCHFAM_);_UNICODE;UNICODE;POCKETPC2003_UI_MODEL;POCKETPC2003_UI_MODEL"
454
+ MinimalRebuild="true"
455
+ RuntimeLibrary="1"
455
456
  WarningLevel="3"
456
457
  DebugInformationFormat="3"
457
458
  />
@@ -460,7 +461,7 @@
460
461
  />
461
462
  <Tool
462
463
  Name="VCResourceCompilerTool"
463
- PreprocessorDefinitions="NDEBUG;_UNICODE;UNICODE;_WIN32_WCE;UNDER_CE"
464
+ PreprocessorDefinitions="_DEBUG;_UNICODE;UNICODE;_WIN32_WCE;UNDER_CE"
464
465
  Culture="1033"
465
466
  AdditionalIncludeDirectories="$(IntDir)"
466
467
  />
@@ -474,16 +475,14 @@
474
475
  UseUnicodeResponseFiles="false"
475
476
  AdditionalOptions=" /subsystem:windowsce,5.01 /machine:THUMB"
476
477
  AdditionalDependencies="Ws2.lib Ceshell.lib wininet.lib Cellcore.lib Gpsapi.lib comsuppw.lib pimstore.lib bthutil.lib"
477
- OutputFile="$(OutDir)/rhodes.exe"
478
- LinkIncremental="1"
479
- AdditionalLibraryDirectories="$(OutDir)"
478
+ OutputFile="$(OutDir)/Rhodes.exe"
479
+ LinkIncremental="2"
480
480
  GenerateDebugInformation="true"
481
481
  SubSystem="0"
482
482
  StackReserveSize="196608"
483
483
  StackCommitSize="4096"
484
- OptimizeReferences="2"
485
- EnableCOMDATFolding="2"
486
484
  ImportLibrary="$(OutDir)/Rhodes.lib"
485
+ TargetMachine="0"
487
486
  />
488
487
  <Tool
489
488
  Name="VCALinkTool"
@@ -510,7 +509,7 @@
510
509
  />
511
510
  </Configuration>
512
511
  <Configuration
513
- Name="Release|Win32"
512
+ Name="Release|Windows Mobile 6 Professional SDK (ARMV4I)"
514
513
  OutputDirectory="..\bin\$(PlatformName)\$(ProjectName)\$(ConfigurationName)"
515
514
  IntermediateDirectory="..\bin\$(PlatformName)\$(ProjectName)\$(ConfigurationName)"
516
515
  ConfigurationType="1"
@@ -543,9 +542,10 @@
543
542
  />
544
543
  <Tool
545
544
  Name="VCCLCompilerTool"
545
+ ExecutionBucket="7"
546
546
  Optimization="2"
547
547
  AdditionalIncludeDirectories="../../shared;./rho;../../shared/ruby;../../shared/wtl80/include;."
548
- PreprocessorDefinitions="_NDEBUG;NDEBUG;WIN32;_WINDOWS;ENABLE_DYNAMIC_RHOBUNDLE"
548
+ PreprocessorDefinitions="_WIN32_WCE=$(CEVER);UNDER_CE=$(CEVER);WINCE;$(PLATFORMDEFINES);NDEBUG;$(ARCHFAM);$(_ARCHFAM_);_UNICODE;UNICODE;POCKETPC2003_UI_MODEL;POCKETPC2003_UI_MODEL"
549
549
  RuntimeLibrary="0"
550
550
  UsePrecompiledHeader="2"
551
551
  WarningLevel="3"
@@ -568,25 +568,22 @@
568
568
  RegisterOutput="false"
569
569
  IgnoreImportLibrary="true"
570
570
  UseUnicodeResponseFiles="false"
571
- AdditionalDependencies="wininet.lib comsuppwd.lib ws2_32.lib Crypt32.lib gdiplus.lib"
571
+ AdditionalOptions=" /subsystem:windowsce,5.01 /machine:THUMB"
572
+ AdditionalDependencies="Ws2.lib Ceshell.lib wininet.lib Cellcore.lib Gpsapi.lib comsuppw.lib pimstore.lib bthutil.lib"
572
573
  OutputFile="$(OutDir)/rhodes.exe"
573
574
  LinkIncremental="1"
574
575
  AdditionalLibraryDirectories="$(OutDir)"
575
- GenerateDebugInformation="false"
576
+ GenerateDebugInformation="true"
576
577
  SubSystem="0"
577
578
  StackReserveSize="196608"
578
579
  StackCommitSize="4096"
579
580
  OptimizeReferences="2"
580
581
  EnableCOMDATFolding="2"
581
582
  ImportLibrary="$(OutDir)/Rhodes.lib"
582
- TargetMachine="1"
583
583
  />
584
584
  <Tool
585
585
  Name="VCALinkTool"
586
586
  />
587
- <Tool
588
- Name="VCManifestTool"
589
- />
590
587
  <Tool
591
588
  Name="VCXDCMakeTool"
592
589
  />
@@ -594,20 +591,22 @@
594
591
  Name="VCBscMakeTool"
595
592
  />
596
593
  <Tool
597
- Name="VCFxCopTool"
594
+ Name="VCCodeSignTool"
598
595
  />
599
596
  <Tool
600
- Name="VCAppVerifierTool"
597
+ Name="VCPostBuildEventTool"
601
598
  />
602
- <Tool
603
- Name="VCWebDeploymentTool"
599
+ <DeploymentTool
600
+ ForceDirty="-1"
601
+ RemoteDirectory=""
602
+ RegisterOutput="0"
603
+ AdditionalFiles=""
604
604
  />
605
- <Tool
606
- Name="VCPostBuildEventTool"
605
+ <DebuggerTool
607
606
  />
608
607
  </Configuration>
609
608
  <Configuration
610
- Name="Release|Windows Mobile 6 Standard SDK (ARMV4I)"
609
+ Name="Release|Win32"
611
610
  OutputDirectory="..\bin\$(PlatformName)\$(ProjectName)\$(ConfigurationName)"
612
611
  IntermediateDirectory="..\bin\$(PlatformName)\$(ProjectName)\$(ConfigurationName)"
613
612
  ConfigurationType="1"
@@ -640,10 +639,9 @@
640
639
  />
641
640
  <Tool
642
641
  Name="VCCLCompilerTool"
643
- ExecutionBucket="7"
644
642
  Optimization="2"
645
- AdditionalIncludeDirectories="../../shared;./rho;../../shared/ruby;."
646
- PreprocessorDefinitions="_WIN32_WCE=$(CEVER);UNDER_CE=$(CEVER);WINCE;$(PLATFORMDEFINES);NDEBUG;$(ARCHFAM);$(_ARCHFAM_);_UNICODE;UNICODE;SMARTPHONE2003_UI_MODEL;SMARTPHONE2003_UI_MODEL"
643
+ AdditionalIncludeDirectories="../../shared;./rho;../../shared/ruby;../../shared/wtl80/include;."
644
+ PreprocessorDefinitions="_NDEBUG;NDEBUG;WIN32;_WINDOWS;ENABLE_DYNAMIC_RHOBUNDLE"
647
645
  RuntimeLibrary="0"
648
646
  UsePrecompiledHeader="2"
649
647
  WarningLevel="3"
@@ -666,20 +664,25 @@
666
664
  RegisterOutput="false"
667
665
  IgnoreImportLibrary="true"
668
666
  UseUnicodeResponseFiles="false"
669
- AdditionalOptions=" /subsystem:windowsce,5.01 /machine:THUMB"
670
- AdditionalDependencies="aygshell.lib Ws2.lib Ceshell.lib wininet.lib Cellcore.lib Gpsapi.lib comsuppwd.lib pimstore.lib"
671
- OutputFile="$(OutDir)/Rhodes.exe"
667
+ AdditionalDependencies="wininet.lib comsuppwd.lib ws2_32.lib Crypt32.lib gdiplus.lib"
668
+ OutputFile="$(OutDir)/rhodes.exe"
672
669
  LinkIncremental="1"
673
- GenerateDebugInformation="true"
670
+ AdditionalLibraryDirectories="$(OutDir)"
671
+ GenerateDebugInformation="false"
674
672
  SubSystem="0"
675
- StackReserveSize="65536"
673
+ StackReserveSize="196608"
674
+ StackCommitSize="4096"
676
675
  OptimizeReferences="2"
677
676
  EnableCOMDATFolding="2"
678
677
  ImportLibrary="$(OutDir)/Rhodes.lib"
678
+ TargetMachine="1"
679
679
  />
680
680
  <Tool
681
681
  Name="VCALinkTool"
682
682
  />
683
+ <Tool
684
+ Name="VCManifestTool"
685
+ />
683
686
  <Tool
684
687
  Name="VCXDCMakeTool"
685
688
  />
@@ -687,22 +690,20 @@
687
690
  Name="VCBscMakeTool"
688
691
  />
689
692
  <Tool
690
- Name="VCCodeSignTool"
693
+ Name="VCFxCopTool"
691
694
  />
692
695
  <Tool
693
- Name="VCPostBuildEventTool"
696
+ Name="VCAppVerifierTool"
694
697
  />
695
- <DeploymentTool
696
- ForceDirty="-1"
697
- RemoteDirectory=""
698
- RegisterOutput="0"
699
- AdditionalFiles=""
698
+ <Tool
699
+ Name="VCWebDeploymentTool"
700
700
  />
701
- <DebuggerTool
701
+ <Tool
702
+ Name="VCPostBuildEventTool"
702
703
  />
703
704
  </Configuration>
704
705
  <Configuration
705
- Name="Release|Windows Mobile 5.0 Smartphone SDK (ARMV4I)"
706
+ Name="Release|Windows Mobile 6 Standard SDK (ARMV4I)"
706
707
  OutputDirectory="..\bin\$(PlatformName)\$(ProjectName)\$(ConfigurationName)"
707
708
  IntermediateDirectory="..\bin\$(PlatformName)\$(ProjectName)\$(ConfigurationName)"
708
709
  ConfigurationType="1"
@@ -726,7 +727,6 @@
726
727
  Name="VCMIDLTool"
727
728
  PreprocessorDefinitions="NDEBUG"
728
729
  MkTypLibCompatible="false"
729
- TargetEnvironment="1"
730
730
  GenerateStublessProxies="true"
731
731
  TypeLibraryName="$(IntDir)/Rhodes.tlb"
732
732
  HeaderFileName="Rhodes.h"
@@ -738,9 +738,10 @@
738
738
  Name="VCCLCompilerTool"
739
739
  ExecutionBucket="7"
740
740
  Optimization="2"
741
- AdditionalIncludeDirectories="../../shared;./rho;../../shared/ruby;../../shared/wtl80/include;."
742
- PreprocessorDefinitions="_WIN32_WCE=$(CEVER);UNDER_CE=$(CEVER);WINCE;$(PLATFORMDEFINES);NDEBUG;$(ARCHFAM);$(_ARCHFAM_);_UNICODE;UNICODE;POCKETPC2003_UI_MODEL;POCKETPC2003_UI_MODEL"
741
+ AdditionalIncludeDirectories="../../shared;./rho;../../shared/ruby;."
742
+ PreprocessorDefinitions="_WIN32_WCE=$(CEVER);UNDER_CE=$(CEVER);WINCE;$(PLATFORMDEFINES);NDEBUG;$(ARCHFAM);$(_ARCHFAM_);_UNICODE;UNICODE;SMARTPHONE2003_UI_MODEL;SMARTPHONE2003_UI_MODEL"
743
743
  RuntimeLibrary="0"
744
+ UsePrecompiledHeader="2"
744
745
  WarningLevel="3"
745
746
  DebugInformationFormat="3"
746
747
  />
@@ -762,17 +763,15 @@
762
763
  IgnoreImportLibrary="true"
763
764
  UseUnicodeResponseFiles="false"
764
765
  AdditionalOptions=" /subsystem:windowsce,5.01 /machine:THUMB"
765
- AdditionalDependencies="Ws2.lib Ceshell.lib wininet.lib Cellcore.lib Gpsapi.lib comsuppw.lib pimstore.lib bthutil.lib"
766
+ AdditionalDependencies="aygshell.lib Ws2.lib Ceshell.lib wininet.lib Cellcore.lib Gpsapi.lib comsuppwd.lib pimstore.lib"
766
767
  OutputFile="$(OutDir)/Rhodes.exe"
767
768
  LinkIncremental="1"
768
769
  GenerateDebugInformation="true"
769
770
  SubSystem="0"
770
- StackReserveSize="196608"
771
- StackCommitSize="4096"
771
+ StackReserveSize="65536"
772
772
  OptimizeReferences="2"
773
773
  EnableCOMDATFolding="2"
774
774
  ImportLibrary="$(OutDir)/Rhodes.lib"
775
- TargetMachine="0"
776
775
  />
777
776
  <Tool
778
777
  Name="VCALinkTool"
@@ -799,7 +798,7 @@
799
798
  />
800
799
  </Configuration>
801
800
  <Configuration
802
- Name="Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I)"
801
+ Name="Release|Windows Mobile 5.0 Smartphone SDK (ARMV4I)"
803
802
  OutputDirectory="..\bin\$(PlatformName)\$(ProjectName)\$(ConfigurationName)"
804
803
  IntermediateDirectory="..\bin\$(PlatformName)\$(ProjectName)\$(ConfigurationName)"
805
804
  ConfigurationType="1"
@@ -821,7 +820,7 @@
821
820
  />
822
821
  <Tool
823
822
  Name="VCMIDLTool"
824
- PreprocessorDefinitions="_DEBUG"
823
+ PreprocessorDefinitions="NDEBUG"
825
824
  MkTypLibCompatible="false"
826
825
  TargetEnvironment="1"
827
826
  GenerateStublessProxies="true"
@@ -834,11 +833,10 @@
834
833
  <Tool
835
834
  Name="VCCLCompilerTool"
836
835
  ExecutionBucket="7"
837
- Optimization="0"
836
+ Optimization="2"
838
837
  AdditionalIncludeDirectories="../../shared;./rho;../../shared/ruby;../../shared/wtl80/include;."
839
- PreprocessorDefinitions="_WIN32_WCE=$(CEVER);UNDER_CE=$(CEVER);WINCE;$(PLATFORMDEFINES);_DEBUG;DEBUG;$(ARCHFAM);$(_ARCHFAM_);_UNICODE;UNICODE;POCKETPC2003_UI_MODEL;POCKETPC2003_UI_MODEL"
840
- MinimalRebuild="true"
841
- RuntimeLibrary="1"
838
+ PreprocessorDefinitions="_WIN32_WCE=$(CEVER);UNDER_CE=$(CEVER);WINCE;$(PLATFORMDEFINES);NDEBUG;$(ARCHFAM);$(_ARCHFAM_);_UNICODE;UNICODE;POCKETPC2003_UI_MODEL;POCKETPC2003_UI_MODEL"
839
+ RuntimeLibrary="0"
842
840
  WarningLevel="3"
843
841
  DebugInformationFormat="3"
844
842
  />
@@ -847,7 +845,7 @@
847
845
  />
848
846
  <Tool
849
847
  Name="VCResourceCompilerTool"
850
- PreprocessorDefinitions="_DEBUG;_UNICODE;UNICODE;_WIN32_WCE;UNDER_CE"
848
+ PreprocessorDefinitions="NDEBUG;_UNICODE;UNICODE;_WIN32_WCE;UNDER_CE"
851
849
  Culture="1033"
852
850
  AdditionalIncludeDirectories="$(IntDir)"
853
851
  />
@@ -862,11 +860,13 @@
862
860
  AdditionalOptions=" /subsystem:windowsce,5.01 /machine:THUMB"
863
861
  AdditionalDependencies="Ws2.lib Ceshell.lib wininet.lib Cellcore.lib Gpsapi.lib comsuppw.lib pimstore.lib bthutil.lib"
864
862
  OutputFile="$(OutDir)/Rhodes.exe"
865
- LinkIncremental="2"
863
+ LinkIncremental="1"
866
864
  GenerateDebugInformation="true"
867
865
  SubSystem="0"
868
866
  StackReserveSize="196608"
869
867
  StackCommitSize="4096"
868
+ OptimizeReferences="2"
869
+ EnableCOMDATFolding="2"
870
870
  ImportLibrary="$(OutDir)/Rhodes.lib"
871
871
  TargetMachine="0"
872
872
  />
@@ -1025,23 +1025,15 @@
1025
1025
  >
1026
1026
  </File>
1027
1027
  <File
1028
- RelativePath=".\MetaHandler.cpp"
1029
- >
1030
- </File>
1031
- <File
1032
- RelativePath=".\MetaHandler.h"
1033
- >
1034
- </File>
1035
- <File
1036
- RelativePath=".\SyncStatusDlg.cpp"
1028
+ RelativePath=".\menubar.cpp"
1037
1029
  >
1038
1030
  </File>
1039
1031
  <File
1040
- RelativePath=".\SyncStatusDlg.h"
1032
+ RelativePath=".\MetaHandler.cpp"
1041
1033
  >
1042
1034
  </File>
1043
1035
  <File
1044
- RelativePath=".\menubar.cpp"
1036
+ RelativePath=".\MetaHandler.h"
1045
1037
  >
1046
1038
  </File>
1047
1039
  <File
@@ -1092,7 +1084,7 @@
1092
1084
  />
1093
1085
  </FileConfiguration>
1094
1086
  <FileConfiguration
1095
- Name="Release|Windows Mobile 6 Professional SDK (ARMV4I)"
1087
+ Name="Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I)"
1096
1088
  >
1097
1089
  <Tool
1098
1090
  Name="VCCLCompilerTool"
@@ -1100,7 +1092,7 @@
1100
1092
  />
1101
1093
  </FileConfiguration>
1102
1094
  <FileConfiguration
1103
- Name="Release|Win32"
1095
+ Name="Release|Windows Mobile 6 Professional SDK (ARMV4I)"
1104
1096
  >
1105
1097
  <Tool
1106
1098
  Name="VCCLCompilerTool"
@@ -1108,7 +1100,7 @@
1108
1100
  />
1109
1101
  </FileConfiguration>
1110
1102
  <FileConfiguration
1111
- Name="Release|Windows Mobile 6 Standard SDK (ARMV4I)"
1103
+ Name="Release|Win32"
1112
1104
  >
1113
1105
  <Tool
1114
1106
  Name="VCCLCompilerTool"
@@ -1116,7 +1108,7 @@
1116
1108
  />
1117
1109
  </FileConfiguration>
1118
1110
  <FileConfiguration
1119
- Name="Release|Windows Mobile 5.0 Smartphone SDK (ARMV4I)"
1111
+ Name="Release|Windows Mobile 6 Standard SDK (ARMV4I)"
1120
1112
  >
1121
1113
  <Tool
1122
1114
  Name="VCCLCompilerTool"
@@ -1124,7 +1116,7 @@
1124
1116
  />
1125
1117
  </FileConfiguration>
1126
1118
  <FileConfiguration
1127
- Name="Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I)"
1119
+ Name="Release|Windows Mobile 5.0 Smartphone SDK (ARMV4I)"
1128
1120
  >
1129
1121
  <Tool
1130
1122
  Name="VCCLCompilerTool"
@@ -1140,6 +1132,14 @@
1140
1132
  />
1141
1133
  </FileConfiguration>
1142
1134
  </File>
1135
+ <File
1136
+ RelativePath=".\SyncStatusDlg.cpp"
1137
+ >
1138
+ </File>
1139
+ <File
1140
+ RelativePath=".\SyncStatusDlg.h"
1141
+ >
1142
+ </File>
1143
1143
  <File
1144
1144
  RelativePath=".\Utils.cpp"
1145
1145
  >
@@ -1244,14 +1244,6 @@
1244
1244
  <Filter
1245
1245
  Name="net"
1246
1246
  >
1247
- <File
1248
- RelativePath=".\rho\net\NetRequest.cpp"
1249
- >
1250
- </File>
1251
- <File
1252
- RelativePath=".\rho\net\NetRequest.h"
1253
- >
1254
- </File>
1255
1247
  <File
1256
1248
  RelativePath=".\rho\net\NetRequestImpl.cpp"
1257
1249
  >
@@ -1304,14 +1296,14 @@
1304
1296
  RelativePath=".\rho\rubyext\GeoLocationImpl.h"
1305
1297
  >
1306
1298
  </File>
1307
- <File
1299
+ <File
1308
1300
  RelativePath=".\rho\rubyext\NativeToolbar.cpp"
1309
1301
  >
1310
1302
  </File>
1311
1303
  <File
1312
1304
  RelativePath=".\rho\rubyext\NativeToolbar.h"
1313
1305
  >
1314
- </File>
1306
+ </File>
1315
1307
  <File
1316
1308
  RelativePath=".\rho\rubyext\SystemImpl.cpp"
1317
1309
  >
@@ -7,6 +7,8 @@
7
7
 
8
8
  #define RHOSETUP_DLL "rhosetup.dll"
9
9
 
10
+ TCHAR *app_name = NULL;
11
+
10
12
  void checkMDEstart(HRESULT hr)
11
13
  {
12
14
  if (FAILED(hr)) {
@@ -431,7 +433,8 @@ int copyExecutable (TCHAR *file_name, TCHAR *app_dir)
431
433
 
432
434
  _tcscpy(exe_fullpath, app_dir);
433
435
  _tcscat(exe_fullpath, _T("\\"));
434
- _tcscat(exe_fullpath, _T("rhodes.exe"));
436
+ _tcscat(exe_fullpath, app_name);
437
+ _tcscat(exe_fullpath, _T(".exe"));
435
438
 
436
439
 
437
440
  hSrc = CreateFile(file_name, GENERIC_READ, FILE_SHARE_READ, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL);
@@ -604,7 +607,6 @@ int _tmain(int argc, _TCHAR* argv[])
604
607
  {
605
608
  TCHAR *emu_name = NULL;
606
609
  TCHAR *cab_file = NULL;
607
- TCHAR *app_name = NULL;
608
610
  TCHAR *bundle_path = NULL;
609
611
  TCHAR *app_exe = NULL;
610
612
  TCHAR params_buf[MAX_PATH + 16];
@@ -729,7 +731,9 @@ int _tmain(int argc, _TCHAR* argv[])
729
731
  _tprintf( TEXT("Starting application..."));
730
732
  _tcscpy(params_buf, TEXT("\\Program Files\\"));
731
733
  _tcscat(params_buf, app_name);
732
- _tcscat(params_buf, TEXT("\\rhodes.exe"));
734
+ _tcscat(params_buf, _T("\\"));
735
+ _tcscat(params_buf, app_name);
736
+ _tcscat(params_buf, _T(".exe"));
733
737
  if(!wceRunProcess(T2A(params_buf), NULL)) {
734
738
  _tprintf( TEXT("FAILED\n"));
735
739
  goto stop_emu_deploy;
@@ -797,7 +801,9 @@ int _tmain(int argc, _TCHAR* argv[])
797
801
  _tprintf( TEXT("Starting application..."));
798
802
  _tcscpy(params_buf, TEXT("\\Program Files\\"));
799
803
  _tcscat(params_buf, app_name);
800
- _tcscat(params_buf, TEXT("\\rhodes.exe"));
804
+ _tcscat(params_buf, _T("\\"));
805
+ _tcscat(params_buf, app_name);
806
+ _tcscat(params_buf, _T(".exe"));
801
807
  if(!wceRunProcess(T2A(params_buf), NULL)) {
802
808
  _tprintf( TEXT("FAILED\n"));
803
809
  goto stop_emu_deploy;
@@ -882,7 +888,9 @@ int _tmain(int argc, _TCHAR* argv[])
882
888
  _tprintf( TEXT("Starting application..."));
883
889
  _tcscpy(params_buf, TEXT("\\Program Files\\"));
884
890
  _tcscat(params_buf, app_name);
885
- _tcscat(params_buf, TEXT("\\rhodes.exe"));
891
+ _tcscat(params_buf, _T("\\"));
892
+ _tcscat(params_buf, app_name);
893
+ _tcscat(params_buf, _T(".exe"));
886
894
  _tprintf( TEXT("%s\n"), params_buf);
887
895
 
888
896
 
@@ -951,7 +959,9 @@ int _tmain(int argc, _TCHAR* argv[])
951
959
  _tprintf( TEXT("Starting application..."));
952
960
  _tcscpy(params_buf, TEXT("\\Program Files\\"));
953
961
  _tcscat(params_buf, app_name);
954
- _tcscat(params_buf, TEXT("\\rhodes.exe"));
962
+ _tcscat(params_buf, _T("\\"));
963
+ _tcscat(params_buf, app_name);
964
+ _tcscat(params_buf, _T(".exe"));
955
965
  if(!wceRunProcess (T2A(params_buf), NULL)) {
956
966
  _tprintf( TEXT("FAILED\n"));
957
967
  goto stop_emu_deploy;
data/rakefile.rb CHANGED
@@ -351,16 +351,20 @@ def init_extensions(startdir, dest)
351
351
 
352
352
  exts = File.join($startdir, "platform", "shared", "ruby", "ext", "rho", "extensions.c")
353
353
 
354
- #if $config["platform"] != "bb" && !FileUtils.uptodate?(exts,[File.join($app_path, "build.yml")])
355
354
  if $config["platform"] != "bb"
356
355
  exists = []
357
- File.new(exts, "r").read.split("\n").each do |line|
358
- next if line !~ /^\s*extern\s+void\s+([A-Za-z_][A-Za-z0-9_]*)/
359
- exists << $1
356
+
357
+ if ( File.exists?(exts) )
358
+ File.new(exts, "r").read.split("\n").each do |line|
359
+ next if line !~ /^\s*extern\s+void\s+([A-Za-z_][A-Za-z0-9_]*)/
360
+ exists << $1
361
+ end
360
362
  end
361
-
363
+
362
364
  if exists.sort! != extentries.sort!
363
365
  File.open(exts, "w") do |f|
366
+ puts "MODIFY : #{exts}"
367
+
364
368
  f.puts "// WARNING! THIS FILE IS GENERATED AUTOMATICALLY! DO NOT EDIT IT MANUALLY!"
365
369
  #f.puts "// Generated #{Time.now.to_s}"
366
370
  if $config["platform"] == "wm" || $config["platform"] == "win32"
Binary file
data/rhodes.gemspec CHANGED
@@ -3,8 +3,8 @@ require "lib/rhodes.rb"
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = %q{rhodes}
6
- s.version = Rhodes::VERSION
7
-
6
+ #s.version = Rhodes::VERSION
7
+ s.version = "2.3.1.beta.1"
8
8
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
9
9
  s.authors = ["Rhomobile"]
10
10
  s.date = Time.now
@@ -137,6 +137,7 @@ describe "BlobSync_test" do
137
137
  res['error_code'].to_i.should == ::Rho::RhoError::ERR_NONE
138
138
 
139
139
  item2 = BlobTest.find(saved_obj)
140
+ item2.should_not be_nil
140
141
 
141
142
  item2.image_uri.should == file_name
142
143
  # new_file_name = File.join(Rho::RhoApplication::get_blob_path(item2.image_uri))
@@ -40,7 +40,13 @@ describe "Events" do
40
40
  event['end_date'] = end_date
41
41
 
42
42
  puts "event: #{event}"
43
- Rho::RhoEvent.create!(event)
43
+
44
+ event = Rho::RhoEvent.create!(event)
45
+
46
+ event.should_not be_nil
47
+ event['id'].should_not be_nil
48
+
49
+ @id = event['id']
44
50
 
45
51
  newevents = Rho::RhoEvent.find(:all)
46
52
  #puts "newevents: #{newevents.inspect.to_s}"
@@ -50,7 +56,12 @@ describe "Events" do
50
56
  c = newevents[0]
51
57
  puts "c: #{c}"
52
58
 
53
- @id = c['id']
59
+ c['id'].should == @id
60
+ c['title'].should == event['title']
61
+ c['location'].should == event['location']
62
+ c['notes'].should == event['notes']
63
+ c['start_date'].to_s.should == event['start_date'].to_s
64
+ c['end_date'].to_s.should == event['end_date'].to_s
54
65
 
55
66
  c['title'].should == title
56
67
  c['location'].should == 'loc1'
@@ -9,7 +9,7 @@ describe "MapView" do
9
9
  MapView.create :settings => {:map_type => 'roadmap', :region => [37, -122, 10, 10]}
10
10
  w = 5
11
11
  #w = 5 if System::get_property('platform') == 'ANDROID'
12
- sleep w
12
+ sleep 20
13
13
 
14
14
  state = MapView.state
15
15
  state.should_not be_nil
@@ -19,7 +19,7 @@ describe "MapView" do
19
19
  (state[:center][:longitude] - (-122.0)).abs.should < delta
20
20
 
21
21
  MapView.close
22
- sleep 2
22
+ sleep 20
23
23
 
24
24
  state = MapView.state
25
25
  state.should be_nil
@@ -2,15 +2,15 @@ describe "NativeBar" do
2
2
 
3
3
  it "should create" do
4
4
  NativeBar.create Rho::RhoApplication::NOBAR_TYPE, []
5
- sleep 2
5
+ sleep 20
6
6
  NativeBar.started.should == false
7
7
 
8
8
  NativeBar.create Rho::RhoApplication::TOOLBAR_TYPE, [{:action => :back}]
9
- sleep 2
9
+ sleep 20
10
10
  NativeBar.started.should == true
11
11
 
12
12
  NativeBar.remove
13
- sleep 2
13
+ sleep 20
14
14
  NativeBar.started.should == false
15
15
 
16
16
  end
@@ -7,15 +7,15 @@ describe "NavBar" do
7
7
  rescue
8
8
  # Nothing
9
9
  end
10
- sleep 2
10
+ sleep 20
11
11
  NavBar.started.should == false
12
12
 
13
13
  NavBar.create :title => "", :left => {:action => :back}
14
- sleep 2
14
+ sleep 20
15
15
  NavBar.started.should == true
16
16
 
17
17
  NavBar.remove
18
- sleep 2
18
+ sleep 20
19
19
  NavBar.started.should == false
20
20
 
21
21
  end
@@ -129,7 +129,7 @@ describe "RhomSource" do
129
129
  end
130
130
 
131
131
  it "should find Product_s source" do
132
- src = Rhom::RhomSource.find(Product_s.get_source_id)
132
+ src = Rhom::RhomSource.find("Product_s")
133
133
  src.should_not be_nil
134
134
 
135
135
  #src.get_lastsync_objectcount.should == 0
@@ -20,7 +20,7 @@
20
20
  require 'rhom'
21
21
  require 'rho/rhoutils'
22
22
 
23
- USE_HSQLDB = System.get_property('platform') == 'Blackberry' #&& System.get_property('os_version')[0].to_i() < 5
23
+ USE_HSQLDB = !System.get_property('has_sqlite')
24
24
  USE_COPY_FILES = !defined? RHO_ME
25
25
 
26
26
  def getAccount