rhodes 3.3.3.beta.1 → 3.3.3.beta.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (146) hide show
  1. data/CHANGELOG +3 -0
  2. data/Manifest.txt +23 -9
  3. data/Rakefile +13 -2
  4. data/doc/build.txt +18 -11
  5. data/doc/device-caps.txt +4 -68
  6. data/doc/rhom.txt +33 -0
  7. data/doc/test-log-debug.txt +18 -42
  8. data/lib/framework/rho/render.rb +1 -1
  9. data/lib/framework/rho/rho.rb +31 -1
  10. data/lib/framework/rho/rhocontroller.rb +2 -2
  11. data/lib/framework/rhodes.rb +1 -1
  12. data/lib/framework/rhoframework.rb +4 -0
  13. data/lib/framework/rholang/localization_simplified.rb +1 -1
  14. data/lib/framework/rhom/rhom_object_factory.rb +22 -1
  15. data/lib/framework/version.rb +1 -1
  16. data/lib/rhodes.rb +1 -1
  17. data/platform/android/Rhodes/AndroidManifest.xml +2 -2
  18. data/platform/android/Rhodes/jni/include/rhodes/jni/com_rhomobile_rhodes_RhodesService.h +25 -9
  19. data/platform/android/Rhodes/jni/include/rhodes/jni/com_rhomobile_rhodes_extmanager_RhoExtManagerImpl.h +21 -0
  20. data/platform/android/Rhodes/jni/src/extmanager.cpp +36 -0
  21. data/platform/android/Rhodes/jni/src/nativeview.cpp +1 -1
  22. data/platform/android/Rhodes/jni/src/rhodesapp.cpp +14 -5
  23. data/platform/android/Rhodes/jni/src/rhodessystem.cpp +5 -0
  24. data/platform/android/Rhodes/jni/src/signature.cpp +29 -3
  25. data/platform/android/Rhodes/src/com/rhomobile/rhodes/NativeBar.java +3 -3
  26. data/platform/android/Rhodes/src/com/rhomobile/rhodes/RhodesActivity.java +4 -0
  27. data/platform/android/Rhodes/src/com/rhomobile/rhodes/RhodesService.java +42 -7
  28. data/platform/android/Rhodes/src/com/rhomobile/rhodes/WebView.java +61 -10
  29. data/platform/android/Rhodes/src/com/rhomobile/rhodes/extmanager/IRhoExtData.java +6 -0
  30. data/platform/android/Rhodes/src/com/rhomobile/rhodes/extmanager/IRhoExtManager.java +39 -0
  31. data/platform/android/Rhodes/src/com/rhomobile/rhodes/extmanager/IRhoExtension.java +18 -0
  32. data/platform/android/Rhodes/src/com/rhomobile/rhodes/extmanager/RhoExtDataImpl.java +18 -0
  33. data/platform/android/Rhodes/src/com/rhomobile/rhodes/extmanager/RhoExtManagerImpl.java +142 -0
  34. data/platform/android/Rhodes/src/com/rhomobile/rhodes/extmanager/RhoExtManagerSingleton.java +15 -0
  35. data/platform/android/Rhodes/src/com/rhomobile/rhodes/mainview/MainView.java +6 -3
  36. data/platform/android/Rhodes/src/com/rhomobile/rhodes/mainview/SimpleMainView.java +25 -13
  37. data/platform/android/Rhodes/src/com/rhomobile/rhodes/mainview/SplashScreen.java +15 -9
  38. data/platform/android/Rhodes/src/com/rhomobile/rhodes/mainview/TabbedMainView.java +15 -5
  39. data/platform/android/Rhodes/src/com/rhomobile/rhodes/nativeview/RhoNativeViewManager.java +3 -3
  40. data/platform/android/Rhodes/src/com/rhomobile/rhodes/signature/ImageCapture.java +14 -8
  41. data/platform/android/Rhodes/src/com/rhomobile/rhodes/signature/Signature.java +218 -51
  42. data/platform/android/Rhodes/src/com/rhomobile/rhodes/signature/SignatureProperties.java +94 -0
  43. data/platform/android/Rhodes/src/com/rhomobile/rhodes/signature/SignatureView.java +122 -37
  44. data/platform/android/Rhodes/src/com/rhomobile/rhodes/webview/GoogleWebView.java +6 -2
  45. data/platform/android/Rhodes/src/com/rhomobile/rhodes/webview/{WebView.java → IRhoWebView.java} +2 -1
  46. data/platform/android/Rhodes/src/com/rhomobile/rhodes/webview/RhoWebViewClient.java +4 -0
  47. data/platform/android/build/RhodesSRC_build.files +8 -1
  48. data/platform/android/build/android.rake +5 -1
  49. data/platform/android/build/librhodes_build.files +1 -0
  50. data/platform/bb/RubyVM/src/com/rho/RhodesApp.java +22 -1
  51. data/platform/bb/RubyVM/src/com/rho/sync/SyncSource.java +15 -0
  52. data/platform/bb/RubyVM/src/com/xruby/runtime/lang/RhoSupport.java +4 -0
  53. data/platform/bb/RubyVM/src/com/xruby/runtime/lang/RubyRuntime.java +4 -2
  54. data/platform/bb/build/rhodes_build.files +2 -0
  55. data/platform/bb/rhodes/src/com/rho/RhoRubyHelper.java +1 -1
  56. data/platform/bb/rhodes/src/com/rho/rubyext/PNGEncoder.java +613 -0
  57. data/platform/bb/rhodes/src/com/rho/rubyext/SignatureCapture.java +314 -0
  58. data/platform/bb/rhodes/src/com/rho/rubyext/WebView.java +1 -1
  59. data/platform/iphone/Classes/AppManager/AppManager.m +11 -0
  60. data/platform/iphone/Classes/Rhodes.m +1 -1
  61. data/platform/iphone/Classes/Signature/SignatureDelegate.h +5 -1
  62. data/platform/iphone/Classes/Signature/SignatureDelegate.m +186 -5
  63. data/platform/iphone/Classes/Signature/SignatureView.h +12 -0
  64. data/platform/iphone/Classes/Signature/SignatureView.m +11 -3
  65. data/platform/iphone/Classes/SimpleMainView.m +4 -0
  66. data/platform/iphone/Classes/rho/net/NetRequestImpl.m +98 -3
  67. data/platform/iphone/Info.plist +1 -1
  68. data/platform/iphone/rbuild/iphone.rake +18 -5
  69. data/platform/shared/RhoConnectClient/RhoConnectClient.cpp +1 -1
  70. data/platform/shared/common/ExtManager.h +64 -9
  71. data/platform/shared/common/RhoSimConf.h +1 -0
  72. data/platform/shared/common/RhodesApp.cpp +77 -28
  73. data/platform/shared/common/RhodesApp.h +9 -4
  74. data/platform/shared/common/RhodesAppBase.cpp +4 -3
  75. data/platform/shared/common/RhodesAppBase.h +5 -3
  76. data/platform/shared/net/HttpServer.cpp +4 -4
  77. data/platform/shared/net/HttpServer.h +2 -2
  78. data/platform/shared/qt/rhodes/impl/MainWindowImpl.cpp +1 -1
  79. data/platform/shared/qt/rhodes/main.cpp +1 -1
  80. data/platform/shared/ruby/ext/rho/rhoruby.c +12 -2
  81. data/platform/shared/ruby/ext/rho/rhosupport.c +11 -1
  82. data/platform/shared/ruby/thread_win32.c +2 -1
  83. data/platform/shared/rubyext/System.cpp +6 -0
  84. data/platform/shared/sync/SyncSource.cpp +15 -0
  85. data/platform/wm/RhoLib/RhoLib.vcproj +0 -4
  86. data/platform/wm/build/build_inf.js +34 -4
  87. data/platform/wm/build/wm.rake +75 -25
  88. data/platform/wm/rhodes/AppManager.cpp +14 -3
  89. data/platform/wm/rhodes/IBrowserEngine.h +7 -0
  90. data/platform/wm/rhodes/IEBrowserEngine.cpp +43 -0
  91. data/platform/wm/rhodes/IEBrowserEngine.h +7 -0
  92. data/platform/wm/rhodes/LogOptionsDlg.cpp +1 -1
  93. data/platform/wm/rhodes/MainWindow.cpp +92 -7
  94. data/platform/wm/rhodes/MainWindow.h +28 -1
  95. data/platform/wm/rhodes/MapView/MapViewManager.cpp +4 -4
  96. data/platform/wm/rhodes/Rhodes.cpp +149 -10
  97. data/platform/wm/rhodes/resource.h +5 -1
  98. data/platform/wm/rhodes/rho/common/ExtManager.cpp +307 -0
  99. data/platform/wm/rhodes/rho/rubyext/NativeToolbar.cpp +1 -1
  100. data/platform/wm/rhodes/rho/rubyext/RhoSignature.cpp +1 -1
  101. data/platform/wm/rhodes/rho/rubyext/RhoSignature.h +1 -1
  102. data/platform/wm/rhodes/rho/rubyext/SystemImpl.cpp +14 -2
  103. data/platform/wm/rhodes/rho/rubyext/WebView.cpp +6 -3
  104. data/platform/wm/rhodes/rhodes.vcproj +5 -1
  105. data/platform/wm/rhodes/simulator/MainWindowQt.cpp +22 -1
  106. data/platform/wm/rhodes/simulator/MainWindowQt.h +4 -0
  107. data/platform/wp7/RhoRubyExtGen/RhoWebView.cs +1 -1
  108. data/platform/wp7/RhoRubyLib/Initializers.Generated.cs +1 -1
  109. data/platform/wp7/RhoRubyLib/common/RhodesApp.cs +33 -38
  110. data/platform/wp7/RhoRubyLib/net/HttpServer.cs +134 -29
  111. data/platform/wp7/RhoRubyLib/rubyext/RhoWebView.cs +12 -2
  112. data/platform/wp7/RhoRubyLib/sync/SyncSource.cs +17 -1
  113. data/platform/wp7/RhoRubyLib/views/RhoTabHeader.xaml +3 -3
  114. data/platform/wp7/RhoRubyLib/views/RhoView.xaml.cs +48 -8
  115. data/rakefile.rb +13 -2
  116. data/res/build-tools/iphonesim/build/Release/iphonesim_43 +0 -0
  117. data/res/build-tools/iphonesim/iphonesim.xcodeproj/project.pbxproj +158 -0
  118. data/res/generators/rhogen.rb +33 -28
  119. data/res/generators/templates/application/app/layout.erb +6 -5
  120. data/res/generators/templates/application/public/css/android.css +21 -315
  121. data/res/generators/templates/application/public/css/iphone.css +1 -499
  122. data/res/generators/templates/application/public/css/jqmobile-patch.css +18 -5
  123. data/res/generators/templates/application/public/css/windows_phone7.css +378 -0
  124. data/res/generators/templates/application/public/jqmobile/images/icons-18-black.png +0 -0
  125. data/res/generators/templates/application/public/jqmobile/images/icons-36-black.png +0 -0
  126. data/res/generators/templates/application/public/jqmobile/{jquery.mobile-1.0.css → jquery.mobile-1.0.1.css} +33 -11
  127. data/res/generators/templates/application/public/jqmobile/{jquery.mobile-1.0.js → jquery.mobile-1.0.1.js} +249 -125
  128. data/res/generators/templates/application/public/jqmobile/jquery.mobile-1.0.1.min.css +2 -0
  129. data/res/generators/templates/application/public/jqmobile/jquery.mobile-1.0.1.min.js +177 -0
  130. data/res/generators/templates/application/public/jqmobile/{jquery.mobile.structure-1.0.css → jquery.mobile.structure-1.0.1.css} +33 -11
  131. data/res/generators/templates/application/public/jqmobile/jquery.mobile.structure-1.0.1.min.css +2 -0
  132. data/res/generators/templates/application/public/jquery/jquery.json-2.3.js +193 -0
  133. data/res/generators/templates/application/public/jquery/jquery.json-2.3.min.js +23 -0
  134. data/res/generators/templates/application/public/js/jquery-wp7-patch.js +68 -20
  135. data/spec/phone_spec/app/Case/case.rb +22 -0
  136. data/spec/phone_spec/app/Customer/customer.rb +16 -0
  137. data/spec/phone_spec/app/spec/rhom_object_spec.rb +108 -11
  138. data/spec/phone_spec/app/spec/syncengine_spec.rb +43 -1
  139. data/spec/phone_spec/build.yml +2 -1
  140. data/version +1 -1
  141. metadata +27 -13
  142. data/platform/shared/common/ExtManager.cpp +0 -103
  143. data/res/generators/templates/application/public/jqmobile/jquery-mobile-iphone.css +0 -9
  144. data/res/generators/templates/application/public/jqmobile/jquery.mobile-1.0.min.css +0 -2
  145. data/res/generators/templates/application/public/jqmobile/jquery.mobile-1.0.min.js +0 -172
  146. data/res/generators/templates/application/public/jqmobile/jquery.mobile.structure-1.0.min.css +0 -2
@@ -293,14 +293,19 @@ module Rhogen
293
293
 
294
294
  first_argument :name, :required => true, :desc => "extension name"
295
295
 
296
+
297
+ def namefixed
298
+ return name.downcase.split(/[^a-zA-Z0-9]/).map{|w| w.downcase}.join("")
299
+ end
300
+
296
301
  template :ext do |template|
297
302
  template.source = 'extensions/montana/ext.yml'
298
- template.destination = "extensions/#{name.downcase}/ext.yml"
303
+ template.destination = "extensions/#{namefixed.downcase}/ext.yml"
299
304
  end
300
305
 
301
306
  template :extension_ruby do |template|
302
307
  template.source = 'extensions/montana/montana.rb'
303
- template.destination = "extensions/#{name.downcase}/#{name.downcase}.rb"
308
+ template.destination = "extensions/#{namefixed.downcase}/#{namefixed.downcase}.rb"
304
309
  end
305
310
 
306
311
  $build_script_full_path = ''
@@ -312,138 +317,138 @@ module Rhogen
312
317
 
313
318
  template :build do |template|
314
319
  template.source = 'extensions/montana/ext/build'
315
- template.destination = "extensions/#{name.downcase}/ext/build"
320
+ template.destination = "extensions/#{namefixed.downcase}/ext/build"
316
321
  $build_script_full_path = template.destination
317
322
  template.options = { :after => :callback_after_make_build}
318
323
  end
319
324
 
320
325
  template :build_bat do |template|
321
326
  template.source = 'extensions/montana/ext/build.bat'
322
- template.destination = "extensions/#{name.downcase}/ext/build.bat"
327
+ template.destination = "extensions/#{namefixed.downcase}/ext/build.bat"
323
328
  end
324
329
 
325
330
  template :extension_i do |template|
326
331
  template.source = 'extensions/montana/ext/montana/shared/ruby/montana.i'
327
- template.destination = "extensions/#{name.downcase}/ext/#{name.downcase}/shared/ruby/#{name.downcase}.i"
332
+ template.destination = "extensions/#{namefixed.downcase}/ext/#{namefixed.downcase}/shared/ruby/#{namefixed.downcase}.i"
328
333
  end
329
334
 
330
335
  template :extension_wrap do |template|
331
336
  template.source = 'extensions/montana/ext/montana/shared/ruby/montana_wrap.c'
332
- template.destination = "extensions/#{name.downcase}/ext/#{name.downcase}/shared/ruby/#{name.downcase}_wrap.c"
337
+ template.destination = "extensions/#{namefixed.downcase}/ext/#{namefixed.downcase}/shared/ruby/#{namefixed.downcase}_wrap.c"
333
338
  end
334
339
 
335
340
  template :extension_c do |template|
336
341
  template.source = 'extensions/montana/ext/montana/shared/src/montana.c'
337
- template.destination = "extensions/#{name.downcase}/ext/#{name.downcase}/shared/src/#{name.downcase}.c"
342
+ template.destination = "extensions/#{namefixed.downcase}/ext/#{namefixed.downcase}/shared/src/#{namefixed.downcase}.c"
338
343
  end
339
344
 
340
345
  template :extension_iphone_rakefile do |template|
341
346
  template.source = 'extensions/montana/ext/montana/platform/iphone/Rakefile'
342
- template.destination = "extensions/#{name.downcase}/ext/#{name.downcase}/platform/iphone/Rakefile"
347
+ template.destination = "extensions/#{namefixed.downcase}/ext/#{namefixed.downcase}/platform/iphone/Rakefile"
343
348
  end
344
349
 
345
350
  file :extension_iphone_pch do |file|
346
351
  file.source = 'extensions/montana/ext/montana/platform/iphone/Montana_Prefix.pch'
347
- file.destination = "extensions/#{name.downcase}/ext/#{name.downcase}/platform/iphone/#{name.camel_case}_Prefix.pch"
352
+ file.destination = "extensions/#{namefixed.downcase}/ext/#{namefixed.downcase}/platform/iphone/#{namefixed.camel_case}_Prefix.pch"
348
353
  end
349
354
 
350
355
  template :extension_iphone_project do |template|
351
356
  template.source = 'extensions/montana/ext/montana/platform/iphone/Montana.xcodeproj/project.pbxproj'
352
- template.destination = "extensions/#{name.downcase}/ext/#{name.downcase}/platform/iphone/#{name.camel_case}.xcodeproj/project.pbxproj"
357
+ template.destination = "extensions/#{namefixed.downcase}/ext/#{namefixed.downcase}/platform/iphone/#{namefixed.camel_case}.xcodeproj/project.pbxproj"
353
358
  end
354
359
 
355
360
  template :extension_iphone_src_h do |template|
356
361
  template.source = 'extensions/montana/ext/montana/platform/iphone/Classes/Montana.h'
357
- template.destination = "extensions/#{name.downcase}/ext/#{name.downcase}/platform/iphone/Classes/#{name.camel_case}.h"
362
+ template.destination = "extensions/#{namefixed.downcase}/ext/#{namefixed.downcase}/platform/iphone/Classes/#{namefixed.camel_case}.h"
358
363
  end
359
364
 
360
365
  template :extension_iphone_src_m do |template|
361
366
  template.source = 'extensions/montana/ext/montana/platform/iphone/Classes/Montana.m'
362
- template.destination = "extensions/#{name.downcase}/ext/#{name.downcase}/platform/iphone/Classes/#{name.camel_case}.m"
367
+ template.destination = "extensions/#{namefixed.downcase}/ext/#{namefixed.downcase}/platform/iphone/Classes/#{namefixed.camel_case}.m"
363
368
  end
364
369
 
365
370
  template :extension_android_ext_build do |template|
366
371
  template.source = 'extensions/montana/ext/montana/platform/android/ext_build.files'
367
- template.destination = "extensions/#{name.downcase}/ext/#{name.downcase}/platform/android/ext_build.files"
372
+ template.destination = "extensions/#{namefixed.downcase}/ext/#{namefixed.downcase}/platform/android/ext_build.files"
368
373
  end
369
374
 
370
375
  template :extension_android_rakefile do |template|
371
376
  template.source = 'extensions/montana/ext/montana/platform/android/Rakefile'
372
- template.destination = "extensions/#{name.downcase}/ext/#{name.downcase}/platform/android/Rakefile"
377
+ template.destination = "extensions/#{namefixed.downcase}/ext/#{namefixed.downcase}/platform/android/Rakefile"
373
378
  end
374
379
 
375
380
  template :extension_android_cpp do |template|
376
381
  template.source = 'extensions/montana/ext/montana/platform/android/jni/src/montana.cpp'
377
- template.destination = "extensions/#{name.downcase}/ext/#{name.downcase}/platform/android/jni/src/#{name.downcase}.cpp"
382
+ template.destination = "extensions/#{namefixed.downcase}/ext/#{namefixed.downcase}/platform/android/jni/src/#{namefixed.downcase}.cpp"
378
383
  end
379
384
 
380
385
  template :extension_android_java do |template|
381
386
  template.source = 'extensions/montana/ext/montana/platform/android/src/com/montana/Montana.java'
382
- template.destination = "extensions/#{name.downcase}/ext/#{name.downcase}/platform/android/src/com/#{name.downcase}/#{name.camel_case}.java"
387
+ template.destination = "extensions/#{namefixed.downcase}/ext/#{namefixed.downcase}/platform/android/src/com/#{namefixed.downcase}/#{namefixed.camel_case}.java"
383
388
  end
384
389
 
385
390
 
386
391
  template :extension_wm_rakefile do |template|
387
392
  template.source = 'extensions/montana/ext/montana/platform/wm/Rakefile'
388
- template.destination = "extensions/#{name.downcase}/ext/#{name.downcase}/platform/wm/Rakefile"
393
+ template.destination = "extensions/#{namefixed.downcase}/ext/#{namefixed.downcase}/platform/wm/Rakefile"
389
394
  end
390
395
 
391
396
  template :extension_wm_vcsol do |template|
392
397
  template.source = 'extensions/montana/ext/montana/platform/wm/Montana.sln'
393
- template.destination = "extensions/#{name.downcase}/ext/#{name.downcase}/platform/wm/#{name.camel_case}.sln"
398
+ template.destination = "extensions/#{namefixed.downcase}/ext/#{namefixed.downcase}/platform/wm/#{namefixed.camel_case}.sln"
394
399
  end
395
400
 
396
401
  template :extension_wm_vcproject do |template|
397
402
  template.source = 'extensions/montana/ext/montana/platform/wm/Montana.vcproj'
398
- template.destination = "extensions/#{name.downcase}/ext/#{name.downcase}/platform/wm/#{name.camel_case}.vcproj"
403
+ template.destination = "extensions/#{namefixed.downcase}/ext/#{namefixed.downcase}/platform/wm/#{namefixed.camel_case}.vcproj"
399
404
  end
400
405
 
401
406
  template :extension_wm_vcproject do |template|
402
407
  template.source = 'extensions/montana/ext/montana/platform/wm/Montana.vsprops'
403
- template.destination = "extensions/#{name.downcase}/ext/#{name.downcase}/platform/wm/#{name.camel_case}.vsprops"
408
+ template.destination = "extensions/#{namefixed.downcase}/ext/#{namefixed.downcase}/platform/wm/#{namefixed.camel_case}.vsprops"
404
409
  end
405
410
 
406
411
  template :extension_wm_h do |template|
407
412
  template.source = 'extensions/montana/ext/montana/platform/wm/src/montana_wm.h'
408
- template.destination = "extensions/#{name.downcase}/ext/#{name.downcase}/platform/wm/src/#{name.downcase}_wm.h"
413
+ template.destination = "extensions/#{namefixed.downcase}/ext/#{namefixed.downcase}/platform/wm/src/#{namefixed.downcase}_wm.h"
409
414
  end
410
415
 
411
416
  template :extension_wm_cpp do |template|
412
417
  template.source = 'extensions/montana/ext/montana/platform/wm/src/montana_wm.cpp'
413
- template.destination = "extensions/#{name.downcase}/ext/#{name.downcase}/platform/wm/src/#{name.downcase}_wm.cpp"
418
+ template.destination = "extensions/#{namefixed.downcase}/ext/#{namefixed.downcase}/platform/wm/src/#{namefixed.downcase}_wm.cpp"
414
419
  end
415
420
 
416
421
 
417
422
  template :extension_bb_files do |template|
418
423
  template.source = 'extensions/montana/ext/montana/platform/bb/Montana.files'
419
- template.destination = "extensions/#{name.downcase}/ext/#{name.downcase}/platform/bb/#{name.camel_case}.files"
424
+ template.destination = "extensions/#{namefixed.downcase}/ext/#{namefixed.downcase}/platform/bb/#{namefixed.camel_case}.files"
420
425
  end
421
426
 
422
427
  template :extension_bb_jgp do |template|
423
428
  template.source = 'extensions/montana/ext/montana/platform/bb/montana.jdp'
424
- template.destination = "extensions/#{name.downcase}/ext/#{name.downcase}/platform/bb/#{name.downcase}.jdp"
429
+ template.destination = "extensions/#{namefixed.downcase}/ext/#{namefixed.downcase}/platform/bb/#{namefixed.downcase}.jdp"
425
430
  end
426
431
 
427
432
  template :extension_bb_Rakefile do |template|
428
433
  template.source = 'extensions/montana/ext/montana/platform/bb/Rakefile'
429
- template.destination = "extensions/#{name.downcase}/ext/#{name.downcase}/platform/bb/Rakefile"
434
+ template.destination = "extensions/#{namefixed.downcase}/ext/#{namefixed.downcase}/platform/bb/Rakefile"
430
435
  end
431
436
 
432
437
  template :extension_bb_java do |template|
433
438
  template.source = 'extensions/montana/ext/montana/platform/bb/src/com/montana/Montana.java'
434
- template.destination = "extensions/#{name.downcase}/ext/#{name.downcase}/platform/bb/src/com/#{name.downcase}/#{name.camel_case}.java"
439
+ template.destination = "extensions/#{namefixed.downcase}/ext/#{namefixed.downcase}/platform/bb/src/com/#{namefixed.downcase}/#{namefixed.camel_case}.java"
435
440
  end
436
441
 
437
442
 
438
443
 
439
444
  template :extension_test_controller do |template|
440
445
  template.source = 'app/MontanaTest/controller.rb'
441
- template.destination = "app/#{name.camel_case}Test/controller.rb"
446
+ template.destination = "app/#{namefixed.camel_case}Test/controller.rb"
442
447
  end
443
448
 
444
449
  template :extension_test_index do |template|
445
450
  template.source = 'app/MontanaTest/index.erb'
446
- template.destination = "app/#{name.camel_case}Test/index.erb"
451
+ template.destination = "app/#{namefixed.camel_case}Test/index.erb"
447
452
  end
448
453
 
449
454
 
@@ -20,8 +20,9 @@
20
20
 
21
21
  <%% if System::get_property('platform') == 'APPLE' || System::get_property('platform') == 'ANDROID' || System::get_property('platform') == 'WP7' || is_bb6 || System::get_property('webview_framework') =~ /^WEBKIT/ %>
22
22
  <script src="/public/jquery/jquery-1.6.4.min.js" type="text/javascript"></script>
23
+ <script src="/public/jquery/jquery.json-2.3.min.js" type="text/javascript"></script>
23
24
 
24
- <link rel="stylesheet" href="/public/jqmobile/jquery.mobile-1.0.min.css">
25
+ <link rel="stylesheet" href="/public/jqmobile/jquery.mobile-1.0.1.min.css">
25
26
  <link rel="stylesheet" href="/public/css/jqmobile-patch.css">
26
27
  <%% if System::get_property('platform') == 'APPLE' %>
27
28
  <link href="/public/jqmobile/jquery-mobile-iphone.css" type="text/css" rel="stylesheet"/>
@@ -38,7 +39,7 @@
38
39
  //$.mobile.loadingMessage = "loading"; // it is default value
39
40
 
40
41
  // For documented init options look here:
41
- // http://jquerymobile.com/demos/1.0/docs/api/globalconfig.html
42
+ // http://jquerymobile.com/demos/1.0.1/docs/api/globalconfig.html
42
43
 
43
44
  // For poorly documented options search for ".prototype.options"
44
45
  // in the jQuery Mobile source code
@@ -48,10 +49,10 @@
48
49
  $.mobile.loadingMessageDelay = 300; // in ms
49
50
  });
50
51
  </script>
51
- <%% if System::get_property('platform') == 'WP7'%>
52
+ <%% if System::get_property('platform') == 'WP7' %>
52
53
  <script type="text/javascript" charset="utf-8" src="/public/js/jquery-wp7-patch.js"></script>
53
54
  <%% end %>
54
- <script type="text/javascript" charset="utf-8" src="/public/jqmobile/jquery.mobile-1.0.min.js"></script>
55
+ <script type="text/javascript" charset="utf-8" src="/public/jqmobile/jquery.mobile-1.0.1.min.js"></script>
55
56
  <script type="text/javascript" charset="utf-8" src="/public/js/jqmobile-patch.js"></script>
56
57
 
57
58
  <%% end %>
@@ -65,7 +66,7 @@
65
66
  <%% elsif System::get_property('platform') == 'Blackberry' %>
66
67
  <link href="/public/css/blackberry.css" type="text/css" rel="stylesheet"/>
67
68
  <%% elsif System::get_property('platform') == 'WP7' %>
68
- <link href="/public/css/iphone.css" type="text/css" rel="stylesheet"/>
69
+ <link href="/public/css/windows_phone7.css" type="text/css" rel="stylesheet"/>
69
70
  <script src="/public/js/wp7.js" type="text/javascript"></script>
70
71
  <%% elsif System::get_property('webview_framework') =~ /^WEBKIT/ %>
71
72
  <link href="/public/css/android.css" type="text/css" rel="stylesheet"/>
@@ -2,36 +2,6 @@ a {
2
2
  text-decoration: none;
3
3
  }
4
4
 
5
- .content {
6
- width: inherit;
7
- height: 100%;
8
- }
9
-
10
- .toolbar .noButton {
11
- display: none;
12
- }
13
-
14
- .content ul {
15
- -webkit-padding-start: 0;
16
- margin: 0;
17
- padding: 0;
18
- list-style-type: none;
19
- }
20
-
21
- .content ul li {
22
- overflow: hidden;
23
- clear: both;
24
- }
25
-
26
- .content ul li span {
27
- display: block;
28
- }
29
-
30
- .content ul.settings li div.itemLabel span.title {
31
- padding: 0;
32
- margin: 0;
33
- }
34
-
35
5
  body {
36
6
  margin: 0;
37
7
  height: 100%;
@@ -45,290 +15,40 @@ h1 {
45
15
  font-size: 1em;
46
16
  }
47
17
 
48
- .content {
49
- background-color: black;
50
- width: 100%;
51
- padding: 0;
52
- margin: 0;
53
- }
54
-
55
- /* Toolbar */
56
-
57
- .toolbar {
58
- height: 60px;
59
- width: 100%;
60
- background: -webkit-gradient(linear, left top, left bottom, color-stop(0.0, #2B2B2B), color-stop(0.2, #585858), color-stop(1.0, #2B2B2B));
61
- display: table;
62
- text-align: center;
63
- border-spacing: 10px;
64
- }
65
-
66
- .toolbar .leftItem,
67
- .toolbar .centerItem,
68
- .toolbar .rightItem {
69
- display: table-cell;
70
- }
71
-
72
- .toolbar a {
73
- line-height: 40px;
74
- color: black;
75
- display: block;
76
- }
77
-
78
- .toolbar .deleteButton,
79
- .toolbar .regularButton,
80
- .toolbar .blueButton,
81
- .toolbar .backButton {
82
- background: -webkit-gradient(linear, left top, left bottom, color-stop(0.0, white), color-stop(0.5, #ccc), color-stop(1.0, #bdbebd));
83
- -webkit-border-radius: 5px;
84
- font-size: .9em;
85
- border: 1px solid white;
86
- }
87
-
88
- /* Header */
89
-
90
- .pageTitle {
91
- height: 25px;
92
- margin: 0;
93
- width: 100%;
94
- display: none;
18
+ div.itemLabel {
19
+ font-weight: bold;
95
20
  }
96
-
97
- .pageTitle h1 {
98
- position: absolute;
99
- top: 0;
100
- text-align: left;
101
- width: 100%;
102
- margin: 0;
103
- padding-left: 5px;
104
- color: white;
105
- text-shadow: 1px 1px 1px #000;
106
- line-height: 25px;
107
- background: -webkit-gradient(linear, left top, left bottom, color-stop(0.0, #999), color-stop(0.5, #848684));
21
+ div.itemValue {
22
+ font-weight: normal;
108
23
  }
109
24
 
110
- /* lists */
111
-
112
- .content ul {
25
+ /*
26
+ .ui-page,
27
+ .ui-content,
28
+ .ui-content ul li,
29
+ .ui-content form,
30
+ .ui-btn a.ui-link-inherit {
31
+ font-family: "Droid", sans-serif;
113
32
  background: black;
114
- }
115
-
116
- .content ul li {
117
- border-bottom: 1px solid #666;
118
- font-size: 20px;
119
- }
120
-
121
- .content ul li a {
122
- display: block;
123
- text-decoration: none;
124
33
  color: white;
125
- font-size: 20px;
126
- height: 100%;
127
- width: 100%;
128
- padding: 15px 0 15px 0;
129
- background: url("../images/android/disclosure.png") no-repeat center right;
130
34
  }
131
35
 
132
- .content ul li a:hover {
133
- background-color: #3399cc;
134
- }
135
-
136
- .content ul li a img {
137
- float: left;
138
- height: 100%;
139
- max-width: 100px;
140
- }
141
-
142
- .content ul li span.title {
143
- padding: 0 50px 0 10px;
144
- }
145
-
146
- .content ul li span.disclosure_indicator {
147
- display: none;
148
- }
149
-
150
- .content ul li div.itemLabel {
151
- float: left;
152
- width: 45%;
153
- padding: 15px 0 15px 10px;
154
- }
36
+ .ui-header h1 {
37
+ font-size: 2em;
155
38
 
156
- .content ul li div.itemValue {
157
- float: right;
158
- width: 45%;
159
- padding: 15px 10px 15px 0;
160
- }
161
-
162
- /* Forms */
163
-
164
- .content form button {
165
- -webkit-appearance: push-button;
166
- width: 300px;
167
- height: 40px;
168
- margin-left: 10px;
169
- }
170
-
171
- .content form ul {
172
- font-size: 20px;
173
- list-style-type: none;
174
- padding: 0;
175
- margin: 0;
176
- }
177
-
178
- .content form ul li {
179
- border-bottom: 1px solid #666;
180
- display: block;
181
- list-style-type: none;
182
39
  }
183
40
 
184
- .content form label {
185
- float: left;
186
- display: block;
187
- color: white;
188
- line-height: 64px;
189
- padding: 0 10px 0 5px;
190
- margin: 0;
191
- width: 40%;
192
- overflow: hidden;
193
- text-overflow: ellipsis;
194
- white-space: nowrap;
195
- }
196
-
197
- .content h2 {
198
- margin: 0;
199
- }
200
-
201
- .content h2.groupTitle {
202
- width: inherit;
203
- margin: 0;
204
- padding: 8px 0 8px 8px;
205
- font-size: 10px;
206
- color: white;
207
- background-color: #666;
208
- }
209
-
210
- .content form {
211
- background-color: black;
212
- }
213
-
214
- .content form input[type="checkbox"] {
215
- -webkit-appearance: none;
216
- background: url(/public/images/android/btn_check_off.png) no-repeat;
217
- float: right;
218
- height: 31px;
219
- width: 31px;
220
- margin-top: 15px;
221
- margin-right: 20px;
222
- }
223
-
224
- .content form input[type="checkbox"]:checked {
225
- background: url(/public/images/android/btn_check_on.png) no-repeat;
226
- float: right;
227
- height: 31px;
228
- width: 31px;
229
- margin-top: 15px;
230
- margin-right: 20px;
231
- }
232
-
233
- .content form input[type="radio"] {
234
- background: url(/public/images/android/btn_radio_off.png) no-repeat;
235
- -webkit-appearance: none;
236
- -webkit-box-sizing: border-box;
237
- border: none;
238
- height: 32px;
239
- margin: 0px;
240
- width: 32px;
241
- float: right;
242
- margin-right: 20px;
243
- margin-top: 15px;
244
- }
245
-
246
- .content form input[type="radio"]:checked {
247
- background: url(/public/images/android/btn_radio_on.png) no-repeat;
248
- margin-top: 15px;
249
- margin-right: 20px;
250
- }
251
-
252
- .content form select {
253
- -webkit-appearance: none;
254
- border: 0px;
255
- width: 100%;
256
- padding-left: 20px;
257
- height: 60px;
258
- color: white;
259
- background: url('/public/images/android/ic_menu_more.png') no-repeat center right;
260
- }
261
-
262
- .content form textarea {
263
- -webkit-appearance: none;
264
- background: -webkit-gradient(linear, left top, left bottom, color-stop(0.0125, #d6d7d6), color-stop(0.25, #efefef), color-stop(0.95, #f7f7f7), color-stop(1.0, #f7f3f7));
265
- border: 1px solid #d6d7d6;
266
- -webkit-border-radius: 4px;
267
- margin: 10px 0 2px 10px;
268
- font-size: 0.9em;
269
- padding: 5px 0 2px 2px;
270
- box-shadow: 0 -1px 3px #000000;
271
- }
272
-
273
- .content form input[type="text"],
274
- .content form input[type="number"],
275
- .content form input[type="password"] {
276
- float: right;
277
- height: 40px;
278
- margin: 10px 10px 10px 0;
279
- padding-left: 5px;
280
- font-size: 26px;
281
- width: 150px;
282
- -webkit-appearance: none;
283
- background: -webkit-gradient(linear, left top, left bottom, color-stop(0.0125, #d6d7d6), color-stop(0.25, #efefef), color-stop(0.95, #f7f7f7), color-stop(1.0, #f7f3f7));
284
- border: 1px solid #d6d7d6;
285
- -webkit-border-radius: 4px;
286
- box-shadow: 0 -1px 3px #000000;
287
- }
288
-
289
- .content form input.standardButton {
290
- height: 45px;
291
- margin: 2px 0 2px 0;
292
- -webkit-border: 2px;
293
- width: 100%;
294
- }
295
-
296
- /* Settings */
297
-
298
- .content ul.settings {
299
- padding: 0;
300
- margin: 0;
41
+ .ui-header {
42
+ background: -webkit-gradient(linear, left top, left bottom, color-stop(0.0, #2B2B2B), color-stop(0.2, #585858), color-stop(1.0, #2B2B2B));
301
43
  }
302
44
 
303
- .content .reset h4 {
304
- margin: 20px;
45
+ .ui-header h1 {
305
46
  color: white;
47
+ line-height: 25px;
48
+ text-shadow: 1px 1px 1px #000;
306
49
  }
307
50
 
308
- .content div.standardButton {
309
- margin: 10px 10px 10px 10px;
310
- height: 45px;
311
- width: 284px;
312
- line-height: 45px;
313
- -webkit-appearance: push-button;
314
- }
315
-
316
- .content div.standardButton a {
317
- display: block;
318
- width: 100%;
319
- color: black;
320
- text-align: center;
321
- }
322
-
323
- .content ul.settings li.alertMessage {
324
- text-align: center;
325
- height: 45px;
326
- line-height: 45px;
327
- }
328
-
329
- .content ul.settings li.alertMessage span.message {
330
- color: red;
331
- }
51
+ */
332
52
 
333
53
  /* ---------- JQM theme customization ------------- */
334
54
 
@@ -359,7 +79,7 @@ h1 {
359
79
  }
360
80
  .ui-body-c {
361
81
  border: 1px solid #2A2A2A;
362
- background: #black;
82
+ background: #000;
363
83
  color: #fff;
364
84
  text-shadow: 0 1px 0 #000;
365
85
  font-weight: normal;
@@ -678,14 +398,6 @@ li.ui-btn-up-c {
678
398
  border-radius: 5px;
679
399
  }
680
400
 
681
- /* ---------- Custom fixes ------------- */
682
-
683
- div.itemLabel {
684
- font-weight: bold;
685
- }
686
- div.itemValue {
687
- font-weight: normal;
688
- }
689
401
 
690
402
  @media all and (min-width: 320px){
691
403
  .ui-content ul li div.itemLabel {
@@ -702,11 +414,5 @@ div.itemValue {
702
414
 
703
415
  .errorMessage {
704
416
  color: red;
705
- text-align: center
706
- }
707
-
708
- .ui-page {
709
- -webkit-transform-style: flat;
710
- -webkit-backface-visibility: hidden;
711
- -webkit-perspective: 800;
417
+ text-align: center;
712
418
  }