rhodes 3.3.3.beta.4 → 3.3.3
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +7 -5
- data/CREDITS +2215 -0
- data/Rakefile +225 -59
- data/bin/c2dm.rb +0 -0
- data/bin/get-rhodes-info.bat +0 -0
- data/bin/migrate-rhodes-app +0 -0
- data/bin/migrate-rhodes-app.bat +0 -0
- data/bin/rhodes +0 -0
- data/bin/rhodes-setup +0 -0
- data/bin/rhodes-setup.bat +0 -0
- data/bin/rhogen +0 -0
- data/bin/rhogen.bat +0 -0
- data/bin/set-rhodes-sdk +0 -0
- data/bin/set-rhodes-sdk.bat +0 -0
- data/bin/upgrade-rhodes-app +0 -0
- data/bin/upgrade-rhodes-app.bat +0 -0
- data/doc/build.txt +20 -9
- data/doc/configuration.txt +8 -8
- data/doc/connect-to-web-services.txt +1 -1
- data/doc/device-caps.txt +63 -26
- data/doc/extensions.txt +14 -2
- data/doc/install.txt +28 -19
- data/doc/introduction.txt +6 -3
- data/doc/jqt-jqm-transition.txt +10 -9
- data/doc/release.txt +5 -1
- data/doc/rhodes-command-line.txt +130 -0
- data/doc/rhom.txt +16 -11
- data/doc/rhostudio-eclipse.txt +3 -3
- data/doc/simulator.txt +28 -31
- data/doc/syncengine-ajax-api.txt +246 -0
- data/doc/synchronization.txt +21 -3
- data/doc/test-log-debug.txt +3 -1
- data/doc/ui.txt +16 -16
- data/ext/extconf.rb +8 -0
- data/lib/build/jake.rb +5 -5
- data/lib/extensions/barcode/ext/barcode/platform/android/Rakefile +9 -9
- data/lib/extensions/barcode/ext/barcode/platform/android/jni/src/barcode.cpp +81 -1
- data/lib/extensions/barcode/ext/barcode/platform/android/src/com/google/zxing/client/android/CaptureActivityHandler.java +6 -13
- data/lib/extensions/barcode/ext/barcode/platform/android/src/com/google/zxing/client/android/DecodeHandler.java +2 -6
- data/lib/extensions/barcode/ext/barcode/platform/android/src/com/rhomobile/barcode/Barcode.java +12 -1
- data/lib/extensions/barcode/ext/barcode/platform/bb/run.bat +0 -0
- data/lib/extensions/barcode/ext/barcode/platform/iphone/Classes/BarcodeCallbackHelper.h +2 -0
- data/lib/extensions/barcode/ext/barcode/platform/iphone/Classes/BarcodeCallbackHelper.mm +36 -0
- data/lib/extensions/barcode/ext/barcode/platform/iphone/Classes/BarcodeViewController.h +0 -0
- data/lib/extensions/barcode/ext/barcode/platform/iphone/Classes/BarcodeViewController.m +15 -5
- data/lib/extensions/barcode/ext/barcode/platform/iphone/Classes/barcode.m +64 -1
- data/lib/extensions/barcode/ext/barcode/shared/ruby/barcode.i +35 -1
- data/lib/extensions/barcode/ext/barcode/shared/ruby/barcode_wrap.c +126 -2
- data/lib/extensions/barcode/ext/barcode/shared/src/zbar.c +18 -1
- data/lib/extensions/barcode/ext/build +0 -0
- data/lib/extensions/barcode/ext/build.bat +0 -0
- data/lib/extensions/digest-md5/ext/Rakefile +12 -10
- data/lib/extensions/digest-md5/ext/build +0 -0
- data/lib/extensions/digest-md5/ext/build.bat +0 -0
- data/lib/extensions/digest-md5/ext/digest-md5.sln +2 -2
- data/lib/extensions/digest-md5/ext/digest-md5.vcproj +41 -28
- data/lib/extensions/digest-sha1/ext/Rakefile +11 -10
- data/lib/extensions/digest-sha1/ext/build +0 -0
- data/lib/extensions/digest-sha1/ext/build.bat +0 -0
- data/lib/extensions/digest-sha1/ext/digest-sha1.sln +2 -2
- data/lib/extensions/digest-sha1/ext/digest-sha1.vcproj +41 -28
- data/lib/extensions/digest/ext/Rakefile +12 -11
- data/lib/extensions/digest/ext/build +0 -0
- data/lib/extensions/digest/ext/build.bat +0 -0
- data/lib/extensions/digest/ext/digest.sln +44 -0
- data/lib/extensions/digest/ext/digest.vcproj +40 -27
- data/lib/extensions/esri/ext/build +0 -0
- data/lib/extensions/esri/ext/build.bat +0 -0
- data/lib/extensions/fcntl/ext/Rakefile +10 -9
- data/lib/extensions/fcntl/ext/build +0 -0
- data/lib/extensions/fcntl/ext/build.bat +0 -0
- data/lib/extensions/fcntl/ext/fcntl.vcproj +1 -1
- data/lib/extensions/nfc/ext/build +0 -0
- data/lib/extensions/nfc/ext/build.bat +0 -0
- data/lib/extensions/nfc/ext/nfc/platform/android/Rakefile +11 -11
- data/lib/extensions/nfc/ext/nfc/platform/android/jni/src/nfc.cpp +0 -0
- data/lib/extensions/nfc/ext/nfc/platform/android/src/com/rhomobile/nfc/Nfc.java +12 -10
- data/lib/extensions/nfc/ext/nfc/shared/ruby/nfc_wrap.c +16 -9
- data/lib/extensions/pdf-writer/color.rb +145 -0
- data/lib/extensions/pdf-writer/color/cmyk.rb +279 -0
- data/lib/extensions/pdf-writer/color/css.rb +28 -0
- data/lib/extensions/pdf-writer/color/grayscale.rb +212 -0
- data/lib/extensions/pdf-writer/color/hsl.rb +221 -0
- data/lib/extensions/pdf-writer/color/palette.rb +16 -0
- data/lib/extensions/pdf-writer/color/palette/adobecolor.rb +272 -0
- data/lib/extensions/pdf-writer/color/palette/gimp.rb +116 -0
- data/lib/extensions/pdf-writer/color/palette/monocontrast.rb +180 -0
- data/lib/extensions/pdf-writer/color/rgb-colors.rb +355 -0
- data/lib/extensions/pdf-writer/color/rgb.rb +453 -0
- data/lib/extensions/pdf-writer/color/rgb/metallic.rb +43 -0
- data/lib/extensions/pdf-writer/color/yiq.rb +84 -0
- data/lib/extensions/pdf-writer/ext/LICENSES/color/Licence.txt +27 -0
- data/lib/extensions/pdf-writer/ext/LICENSES/color/README.txt +32 -0
- data/lib/extensions/pdf-writer/ext/LICENSES/pdf-writer/LICENCE +131 -0
- data/lib/extensions/pdf-writer/ext/LICENSES/pdf-writer/README +33 -0
- data/lib/extensions/pdf-writer/ext/LICENSES/transaction-simple/Licence.txt +25 -0
- data/lib/extensions/pdf-writer/ext/LICENSES/transaction-simple/Readme.txt +204 -0
- data/lib/extensions/pdf-writer/pdf/charts.rb +13 -0
- data/lib/extensions/pdf-writer/pdf/charts/stddev.rb +430 -0
- data/lib/extensions/pdf-writer/pdf/math.rb +108 -0
- data/lib/extensions/pdf-writer/pdf/quickref.rb +332 -0
- data/lib/extensions/pdf-writer/pdf/simpletable.rb +947 -0
- data/lib/extensions/pdf-writer/pdf/techbook.rb +901 -0
- data/lib/extensions/pdf-writer/pdf/writer.rb +2729 -0
- data/lib/extensions/pdf-writer/pdf/writer/arc4.rb +63 -0
- data/lib/extensions/pdf-writer/pdf/writer/fontmetrics.rb +203 -0
- data/lib/extensions/pdf-writer/pdf/writer/fonts/Courier-Bold.afm +342 -0
- data/lib/extensions/pdf-writer/pdf/writer/fonts/Courier-BoldOblique.afm +342 -0
- data/lib/extensions/pdf-writer/pdf/writer/fonts/Courier-Oblique.afm +342 -0
- data/lib/extensions/pdf-writer/pdf/writer/fonts/Courier.afm +342 -0
- data/lib/extensions/pdf-writer/pdf/writer/fonts/Helvetica-Bold.afm +2827 -0
- data/lib/extensions/pdf-writer/pdf/writer/fonts/Helvetica-BoldOblique.afm +2827 -0
- data/lib/extensions/pdf-writer/pdf/writer/fonts/Helvetica-Oblique.afm +3051 -0
- data/lib/extensions/pdf-writer/pdf/writer/fonts/Helvetica.afm +3051 -0
- data/lib/extensions/pdf-writer/pdf/writer/fonts/MustRead.html +19 -0
- data/lib/extensions/pdf-writer/pdf/writer/fonts/Symbol.afm +213 -0
- data/lib/extensions/pdf-writer/pdf/writer/fonts/Times-Bold.afm +2588 -0
- data/lib/extensions/pdf-writer/pdf/writer/fonts/Times-BoldItalic.afm +2384 -0
- data/lib/extensions/pdf-writer/pdf/writer/fonts/Times-Italic.afm +2667 -0
- data/lib/extensions/pdf-writer/pdf/writer/fonts/Times-Roman.afm +2419 -0
- data/lib/extensions/pdf-writer/pdf/writer/fonts/ZapfDingbats.afm +225 -0
- data/lib/extensions/pdf-writer/pdf/writer/graphics.rb +813 -0
- data/lib/extensions/pdf-writer/pdf/writer/graphics/imageinfo.rb +365 -0
- data/lib/extensions/pdf-writer/pdf/writer/lang.rb +43 -0
- data/lib/extensions/pdf-writer/pdf/writer/lang/en.rb +99 -0
- data/lib/extensions/pdf-writer/pdf/writer/object.rb +23 -0
- data/lib/extensions/pdf-writer/pdf/writer/object/action.rb +35 -0
- data/lib/extensions/pdf-writer/pdf/writer/object/annotation.rb +42 -0
- data/lib/extensions/pdf-writer/pdf/writer/object/catalog.rb +39 -0
- data/lib/extensions/pdf-writer/pdf/writer/object/contents.rb +65 -0
- data/lib/extensions/pdf-writer/pdf/writer/object/destination.rb +40 -0
- data/lib/extensions/pdf-writer/pdf/writer/object/encryption.rb +53 -0
- data/lib/extensions/pdf-writer/pdf/writer/object/font.rb +72 -0
- data/lib/extensions/pdf-writer/pdf/writer/object/fontdescriptor.rb +34 -0
- data/lib/extensions/pdf-writer/pdf/writer/object/fontencoding.rb +40 -0
- data/lib/extensions/pdf-writer/pdf/writer/object/image.rb +304 -0
- data/lib/extensions/pdf-writer/pdf/writer/object/info.rb +51 -0
- data/lib/extensions/pdf-writer/pdf/writer/object/outline.rb +30 -0
- data/lib/extensions/pdf-writer/pdf/writer/object/outlines.rb +30 -0
- data/lib/extensions/pdf-writer/pdf/writer/object/page.rb +195 -0
- data/lib/extensions/pdf-writer/pdf/writer/object/pages.rb +115 -0
- data/lib/extensions/pdf-writer/pdf/writer/object/procset.rb +46 -0
- data/lib/extensions/pdf-writer/pdf/writer/object/viewerpreferences.rb +74 -0
- data/lib/extensions/pdf-writer/pdf/writer/ohash.rb +58 -0
- data/lib/extensions/pdf-writer/pdf/writer/oreader.rb +25 -0
- data/lib/extensions/pdf-writer/pdf/writer/state.rb +48 -0
- data/lib/extensions/pdf-writer/pdf/writer/strokestyle.rb +138 -0
- data/lib/extensions/pdf-writer/transaction/simple.rb +486 -0
- data/lib/extensions/pdf-writer/transaction/simple/group.rb +146 -0
- data/lib/extensions/pdf-writer/transaction/simple/threadsafe.rb +68 -0
- data/lib/extensions/pdf-writer/transaction/simple/threadsafe/group.rb +36 -0
- data/lib/framework/builtinME.rb +0 -0
- data/lib/framework/dateOrig.rb +8 -2
- data/lib/framework/rational.rb +0 -0
- data/lib/framework/res/esri.wm.png +0 -0
- data/lib/framework/rho/rho.rb +6 -0
- data/lib/framework/rho/rhobluetooth.rb +0 -0
- data/lib/framework/rho/rhofsconnector.rb +0 -0
- data/lib/framework/rho/rhonativeviewmanager.rb +0 -0
- data/lib/framework/rhofsconnector.rb +0 -0
- data/lib/framework/rhom/rhom_object_factory.rb +8 -0
- data/lib/framework/rhomotoapi.rb +3 -2
- data/platform/android/Rhodes/jni/include/rhodes/JNIRhodes.h +9 -1
- data/platform/android/Rhodes/jni/include/rhodes/details/rhojava.inc +1 -0
- data/platform/android/Rhodes/jni/include/rhodes/jni/com_rhomobile_rhodes_file_RhoFileApi.h +26 -2
- data/platform/android/Rhodes/jni/src/callbacks.cpp +0 -5
- data/platform/android/Rhodes/jni/src/camera.cpp +1 -1
- data/platform/android/Rhodes/jni/src/fileapi.cpp +39 -19
- data/platform/android/Rhodes/jni/src/geolocation.cpp +3 -3
- data/platform/android/Rhodes/jni/src/mapview.cpp +206 -64
- data/platform/android/Rhodes/jni/src/nativeview.cpp +1 -1
- data/platform/android/Rhodes/jni/src/rhodes.cpp +13 -0
- data/platform/android/Rhodes/jni/src/rhodesapp.cpp +20 -0
- data/platform/android/Rhodes/jni/src/rhodessystem.cpp +36 -3
- data/platform/android/Rhodes/jni/src/signature.cpp +22 -2
- data/platform/android/Rhodes/res/drawable/alert_info.png +0 -0
- data/platform/android/Rhodes/res/drawable/esri.png +0 -0
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/Capabilities.java +17 -16
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/Logger.java +4 -1
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/MemoryInfoCollector.java +67 -0
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/RhodesActivity.java +139 -114
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/RhodesApplication.java +106 -13
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/RhodesService.java +11 -3
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/WebView.java +71 -16
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/camera/CameraNewService.java +4 -1
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/camera/CameraSemiService.java +4 -1
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/extmanager/AbstractRhoExtension.java +22 -1
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/extmanager/Config.java +243 -0
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/extmanager/IRhoExtManager.java +19 -1
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/extmanager/IRhoExtension.java +9 -1
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/{RhodesActivityListener.java → extmanager/IRhoListener.java} +16 -12
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/extmanager/RhoExtManager.java +63 -1
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/extmanager/RhoExtManagerImpl.java +239 -14
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/extmanager/RhodesStartupListeners.java +9 -0
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/extmanager/WebkitExtension.java +53 -0
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/file/RhoFileApi.java +27 -12
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/geolocation/GeoLocation.java +124 -62
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/geolocation/GeoLocationImpl.java +49 -137
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/mainview/SimpleMainView.java +84 -114
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/mainview/SplashScreen.java +75 -82
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/mainview/TabbedMainView.java +3 -2
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/mapview/Callout.java +4 -0
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/mapview/MapBitmapManager.java +124 -0
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/mapview/MapView.java +232 -43
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/mapview/Request.java +193 -0
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/nativeview/IRhoCustomView.java +13 -0
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/nativeview/RhoNativeViewManager.java +32 -23
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/nativeview/RhoVideoView.java +74 -0
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/osfunctionality/AndroidFunctionality.java +6 -7
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/osfunctionality/AndroidFunctionality01.java +37 -0
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/osfunctionality/AndroidFunctionality03.java +14 -1
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/osfunctionality/AndroidFunctionality05.java +51 -38
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/osfunctionality/AndroidFunctionality07.java +9 -1
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/osfunctionality/AndroidFunctionality08.java +48 -31
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/osfunctionality/AndroidFunctionalityManager.java +15 -16
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/signature/Signature.java +52 -15
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/uri/LocalFileHandler.java +20 -2
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/webview/ChromeClientOld.java +1 -0
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/webview/GoogleWebView.java +77 -34
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/webview/IRhoWebView.java +9 -0
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/webview/RhoWebChromeClient.java +105 -0
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/webview/RhoWebViewClient.java +1 -1
- data/platform/android/build/RhodesSRC_build.files +8 -7
- data/platform/android/build/android.rake +326 -216
- data/platform/android/build/androidcommon.rb +27 -13
- data/platform/bb/RubyVM/src/com/rho/file/SimpleFile.java +27 -1
- data/platform/bb/RubyVM/src/j2me/io/File.java +104 -38
- data/platform/bb/build/bb.rake +1 -0
- data/platform/bb/build/runRAPC.bat +0 -0
- data/platform/bb/rhodes/resources/background.png +0 -0
- data/platform/bb/rhodes/resources/esri.png +0 -0
- data/platform/bb/rhodes/resources/mappin.png +0 -0
- data/platform/bb/rhodes/src/com/rho/rubyext/System.java +5 -1
- data/platform/bb/rhodes/src/rhomobile/PushListeningThread.java +2 -2
- data/platform/bb/rhodes/src/rhomobile/mapview/ESRIMapField.java +0 -0
- data/platform/bb/rhodes/src/rhomobile/mapview/ESRIMapProvider.java +0 -0
- data/platform/bb/rhodes/src/rhomobile/mapview/GeoCoding.java +0 -0
- data/platform/bb/rhodes/src/rhomobile/mapview/GoogleGeoCoding.java +0 -0
- data/platform/bb/rhodes/src/rhomobile/mapview/MapTools.java +0 -0
- data/platform/iphone/Classes/AppManager/AppManager.m +7 -1
- data/platform/iphone/Classes/Camera/PickImageDelegate.h +9 -0
- data/platform/iphone/Classes/Camera/PickImageDelegate.m +75 -4
- data/platform/iphone/Classes/GeoLocation/LocationController.h +8 -2
- data/platform/iphone/Classes/GeoLocation/LocationController.m +74 -76
- data/platform/iphone/Classes/InitMemoryInfoCollector.h +33 -0
- data/platform/iphone/Classes/InitMemoryInfoCollector.mm +52 -0
- data/platform/iphone/Classes/NativeView/NVViewController.h +0 -0
- data/platform/iphone/Classes/NativeView/NVViewController.m +34 -2
- data/platform/iphone/Classes/Rhodes.m +22 -2
- data/platform/iphone/Classes/Signature/SignatureDelegate.m +19 -0
- data/platform/iphone/Classes/Signature/SignatureViewController.h +0 -0
- data/platform/iphone/Classes/Signature/SignatureViewController.m +0 -0
- data/platform/iphone/Classes/SimpleMainView.h +0 -0
- data/platform/iphone/Classes/SimpleMainView.m +3 -3
- data/platform/iphone/ESRI/BluePushpin.png +0 -0
- data/platform/iphone/ESRI/BluePushpin@2x.png +0 -0
- data/platform/iphone/ESRI/esri.png +0 -0
- data/platform/iphone/ESRI/esri@2x.png +0 -0
- data/platform/iphone/rbuild/iphone.rake +75 -7
- data/platform/iphone/rhorunner.xcodeproj/project.pbxproj +13 -4
- data/platform/linux/target/compiler/rubylinux +0 -0
- data/platform/mac/target/compiler/RubyMac +0 -0
- data/platform/osx/Rhodes Launcher/rhorunner.app/rhorunner b/data/platform/osx/Rhodes → Launcher/rhorunner.app/rhorunner +0 -0
- 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/Resources/qt_menu.nib/keyedobjects.nib +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/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/libqtga.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/qmltooling/libqmldbg_inspector.dylib +0 -0
- data/platform/osx/bin/RhoSimulator/RhoSimulator.app/Contents/PlugIns/qmltooling/libqmldbg_tcp.dylib +0 -0
- data/platform/osx/build/osx.rake +6 -8
- data/platform/shared/RhoConnectClient/RhoConnectClient.cpp +165 -33
- data/platform/shared/RhoConnectClient/RhoConnectClient.h +10 -1
- data/platform/shared/common/BundleManager.cpp +27 -16
- data/platform/shared/common/ExtManager.h +15 -2
- data/platform/shared/common/RhoConf.cpp +17 -2
- data/platform/shared/common/RhoConf.h +3 -1
- data/platform/shared/common/RhoDefs.h +6 -6
- data/platform/shared/common/RhoFatalError.h +1 -1
- data/platform/shared/common/RhoFile.cpp +9 -9
- data/platform/shared/common/RhoFilePath.h +7 -3
- data/platform/shared/common/RhoPort.h +3 -3
- data/platform/shared/common/RhoSystem.h +1 -1
- data/platform/shared/common/RhodesApp.cpp +426 -26
- data/platform/shared/common/RhodesApp.h +11 -3
- data/platform/shared/common/RhodesAppBase.cpp +4 -1
- data/platform/shared/common/StringConverter.h +3 -3
- data/platform/shared/common/app_build_capabilities.h +8 -0
- data/platform/shared/common/map/BaseMapEngine.cpp +302 -21
- data/platform/shared/common/map/BaseMapEngine.h +132 -6
- data/platform/shared/common/map/ESRIMapEngine.cpp +2 -1
- data/platform/shared/common/map/GeocodingMapEngine.cpp +22 -4
- data/platform/shared/common/map/GeocodingMapEngine.h +40 -0
- data/platform/shared/common/map/GoogleMapEngine.cpp +13 -1
- data/platform/shared/common/map/MapEngine.h +7 -0
- data/platform/shared/common/map/OSMMapEngine.cpp +12 -1
- data/platform/shared/json/JSONIterator.cpp +1 -1
- data/platform/shared/json/RJSONTokener.c +2 -0
- data/platform/shared/json/config.h +3 -3
- data/platform/shared/logging/RhoLog.cpp +12 -3
- data/platform/shared/logging/RhoLog.h +2 -1
- data/platform/shared/logging/RhoLogConf.cpp +147 -11
- data/platform/shared/logging/RhoLogConf.h +39 -1
- data/platform/shared/logging/RhoLogSink.cpp +1 -1
- data/platform/shared/net/HttpServer.cpp +8 -4
- data/platform/shared/net/INetRequest.cpp +7 -0
- data/platform/shared/net/INetRequest.h +2 -0
- data/platform/shared/net/RawSocket.cpp +1 -1
- data/platform/shared/qt/pbxproj2pro.pl +0 -0
- data/platform/shared/qt/pro_vcproj_diff.pl +0 -0
- data/platform/shared/qt/rhodes/QtMainWindow.cpp +1 -1
- data/platform/shared/qt/rhodes/impl/RhoClassFactoryImpl.h +2 -2
- data/platform/shared/qt/rhodes/impl/RhoThreadImpl.cpp +2 -2
- data/platform/shared/qt/rhodes/impl/SystemImpl.cpp +11 -1
- data/platform/shared/qt/rhodes/main.cpp +5 -5
- data/platform/shared/ruby/ext/alert/alert_wrap.c +8 -8
- data/platform/shared/ruby/ext/bluetooth/bluetooth.i +0 -0
- data/platform/shared/ruby/ext/bluetooth/bluetooth_wrap.c +16 -9
- data/platform/shared/ruby/ext/camera/camera.i +2 -2
- data/platform/shared/ruby/ext/camera/camera_wrap.c +18 -3
- data/platform/shared/ruby/ext/datetimepicker/datetimepicker_wrap.c +37 -8
- data/platform/shared/ruby/ext/geolocation/geolocation_wrap.c +8 -8
- data/platform/shared/ruby/ext/mapview/mapview_wrap.c +16 -9
- data/platform/shared/ruby/ext/nativebar/nativebar_wrap.c +16 -9
- data/platform/shared/ruby/ext/nativeviewmanager/nativeviewmanager.i +0 -0
- data/platform/shared/ruby/ext/nativeviewmanager/nativeviewmanager_wrap.c +16 -9
- data/platform/shared/ruby/ext/phonebook/phonebook_wrap.c +8 -1
- data/platform/shared/ruby/ext/rho/rhoruby.c +7 -1
- data/platform/shared/ruby/ext/rho/rhoruby.h +1 -0
- data/platform/shared/ruby/ext/rhoconf/rhoconf_wrap.c +16 -9
- data/platform/shared/ruby/ext/signature/signature.i +0 -0
- data/platform/shared/ruby/ext/signature/signature_wrap.c +9 -9
- data/platform/shared/ruby/ext/syncengine/syncengine_wrap.c +16 -9
- data/platform/shared/ruby/ext/system/system_wrap.c +16 -9
- data/platform/shared/ruby/ext/webview/webview_wrap.c +16 -9
- data/platform/shared/ruby/gc.c +1 -0
- data/platform/shared/ruby/regint.h +6 -4
- data/platform/shared/ruby/vm.c +1 -0
- data/platform/shared/ruby/wince/wince.h +1 -1
- data/platform/shared/rubyext/System.cpp +1 -1
- data/platform/shared/shttpd/src/rdispatcher.c +3 -3
- data/platform/shared/shttpd/src/std_includes.h +1 -1
- data/platform/shared/sqlite/sqlite3.c +1 -0
- data/platform/shared/statistic/test/TestProfiling.cpp +1 -1
- data/platform/shared/stlport/build/lib/configure +0 -0
- data/platform/shared/stlport/build/lib/configure.bat +0 -0
- data/platform/shared/sync/SyncEngine.cpp +9 -12
- data/platform/shared/sync/SyncNotify.cpp +36 -3
- data/platform/shared/sync/SyncNotify.h +11 -4
- data/platform/shared/sync/SyncSource.cpp +32 -16
- data/platform/shared/sync/SyncSource.h +2 -3
- data/platform/shared/sync/SyncThread.cpp +13 -4
- data/platform/shared/sync/SyncThread.h +4 -0
- data/platform/shared/tcmalloc/page_heap.h +1 -1
- data/platform/shared/tcmalloc/rhomem.h +1 -1
- data/platform/shared/tcmalloc/windows/port.cpp +12 -3
- data/platform/shared/test/Tests.cpp +4 -4
- data/platform/shared/test/test_helper.cpp +4 -4
- data/platform/symbian/sqlite3/src/sqlite3.h +1 -1
- data/platform/win32/RhoSimulator/Microsoft.VC90.CRT.manifest +6 -0
- data/platform/win32/RhoSimulator/Microsoft.VC90.OpenMP.manifest +6 -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/msvcm90.dll +0 -0
- data/platform/win32/RhoSimulator/msvcp90.dll +0 -0
- data/platform/win32/RhoSimulator/msvcr90.dll +0 -0
- data/platform/win32/RhoSimulator/phonon4.dll +0 -0
- data/platform/win32/RhoSimulator/ssleay32.dll +0 -0
- data/platform/win32/RhoSimulator/vcomp90.dll +0 -0
- data/platform/win32/target/replaceicon/replaceicon.exe +0 -0
- data/platform/win32/target/updateresstring/updateresstring.exe +0 -0
- data/platform/wm/RhoLib/RhoLib.vcproj +394 -69
- data/platform/wm/build/build_inf.js +83 -23
- data/platform/wm/build/wm.rake +127 -81
- data/platform/wm/rhodes.sln +6 -6
- data/platform/wm/rhodes/DateTimePicker.h +2 -2
- data/platform/wm/rhodes/IBrowserEngine.h +3 -0
- data/platform/wm/rhodes/IEBrowserEngine.cpp +34 -2
- data/platform/wm/rhodes/IEBrowserEngine.h +4 -1
- data/platform/wm/rhodes/LicenseStub.cpp +73 -0
- data/platform/{android/Rhodes/src/com/rhomobile/rhodes/webview/ChromeClientNew.java → wm/rhodes/LogMemory.cpp} +32 -20
- data/platform/{android/Rhodes/src/com/rhomobile/rhodes/webview/RhoWebSettings.java → wm/rhodes/LogMemory.h} +11 -8
- data/platform/wm/rhodes/LogOptionsDlg.h +1 -1
- data/platform/wm/rhodes/LogView.cpp +10 -10
- data/platform/wm/rhodes/LogView.h +10 -10
- data/platform/wm/rhodes/MainWindow.cpp +431 -173
- data/platform/wm/rhodes/MainWindow.h +37 -19
- data/platform/wm/rhodes/MapView/MapViewManager.h +1 -1
- data/platform/wm/rhodes/OkCancelModalDialog.h +1 -1
- data/platform/wm/rhodes/Rhodes.cpp +210 -47
- data/platform/wm/rhodes/Rhodes.rc +38 -0
- data/platform/wm/rhodes/bluetooth/Bluetooth.cpp +2 -2
- data/platform/wm/rhodes/bluetooth/Bluetooth.h +3 -3
- data/platform/wm/rhodes/camera/Camera.cpp +2 -1
- data/platform/wm/rhodes/camera/Camera.h +1 -1
- data/platform/wm/rhodes/resource.h +1 -1
- data/platform/wm/rhodes/rho/common/ExtManager.cpp +93 -5
- data/platform/wm/rhodes/rho/net/NetRequestImpl.cpp +2 -2
- data/platform/wm/rhodes/rho/rubyext/NativeToolbar.cpp +2 -2
- data/platform/wm/rhodes/rho/rubyext/SystemImpl.cpp +13 -7
- data/platform/wm/rhodes/rhodes.vcproj +1409 -1008
- data/platform/wm/rhodes/simulator/MainWindowQt.h +1 -1
- data/platform/wm/rhodes/stdafx.h +2 -2
- data/platform/wm/rhoelements.sln +7 -9
- data/platform/wm/rubylib/rubylib.vcproj +62 -1
- data/platform/wm/sqlite3/sqlite3.vcproj +62 -1
- data/platform/wm/syncengine/syncengine.vcproj +62 -1
- data/platform/wm/tcmalloc/tcmalloc.vcproj +72 -53
- data/platform/wm/tools/detool/detool.cpp +1435 -1357
- data/platform/wp7/RhoRubyExtGen/GenerateInitializers.cmd +0 -0
- data/platform/wp7/RhoRubyLib/common/RhoLicense.cs +105 -0
- data/platform/wp7/RhoRubyLib/common/RhodesApp.cs +23 -5
- data/platform/wp7/RhoRubyLib/sync/SyncNotify.cs +5 -0
- data/platform/wp7/RhoRubyLib/views/RhoView.xaml.cs +22 -3
- data/platform/wp7/build/wp.rake +1 -0
- data/platform/wp7/rhodes/MainPage.xaml.cs +11 -0
- data/rakefile.rb +225 -59
- data/res/build-tools/7za.exe +0 -0
- data/res/build-tools/RhoAppRunner.exe +0 -0
- data/res/build-tools/RhoLogServer.exe +0 -0
- data/res/build-tools/RhoRuby.exe +0 -0
- data/res/build-tools/RubyMac +0 -0
- data/res/build-tools/detool.exe +0 -0
- data/res/build-tools/iphonesim/Source/iPhoneSimulator.m +1 -1
- data/res/build-tools/iphonesim/build/Release/iphonesim +0 -0
- data/res/build-tools/iphonesim/build/Release/iphonesim_43 +0 -0
- data/res/build-tools/license_rc.dll +0 -0
- data/res/build-tools/make.exe +0 -0
- data/res/build-tools/rubylinux +0 -0
- data/res/build-tools/swig_patch/Lib/typemaps/fragments.swg +235 -0
- data/res/build-tools/wmdc_connect.exe +0 -0
- data/res/build-tools/wp7explorer.exe +0 -0
- data/res/generators/rhogen.rb +2 -2
- data/res/generators/templates/application/app/Settings/controller.rb +1 -1
- data/res/generators/templates/application/app/layout.erb +1 -1
- data/res/generators/templates/application/app/loading.png +0 -0
- data/res/generators/templates/application/public/css/re_webkit.css +736 -0
- data/res/generators/templates/application/public/css/windows_mobile.css +0 -0
- data/res/generators/templates/application/public/images/listArrow.png +0 -0
- data/res/generators/templates/application/public/jqmobile/images/ajax-loader.png +0 -0
- data/res/generators/templates/application/public/jqmobile/images/icons-18-black.png +0 -0
- data/res/generators/templates/application/public/jqmobile/images/icons-18-white.png +0 -0
- data/res/generators/templates/application/public/jqmobile/images/icons-36-black.png +0 -0
- data/res/generators/templates/application/public/jqmobile/images/icons-36-white.png +0 -0
- data/res/generators/templates/application/public/js/syncengine.js +409 -52
- data/res/generators/templates/extension/extensions/montana/ext/build +0 -0
- data/res/generators/templates/extension/extensions/montana/ext/build.bat +0 -0
- data/res/generators/templates/extension/extensions/montana/ext/montana/platform/android/Rakefile +10 -10
- data/res/generators/templates/spec/app/SpecRunner/controller.rb +2 -0
- data/res/libs/motorolalicence/android/MotorolaLicence.h +13 -0
- data/res/libs/motorolalicence/android/libMotorolaLicence.a +0 -0
- data/res/libs/motorolalicence/iphone/MotorolaLicence.h +13 -0
- data/res/libs/motorolalicence/iphone/libMotorolaLicence.a +0 -0
- data/rhodes.gemspec +1 -1
- data/spec/framework_spec/app/SpecRunner/controller.rb +2 -0
- data/spec/phone_spec/app/SpecRunner/controller.rb +2 -0
- data/version +1 -1
- metadata +487 -412
- data/Manifest.txt +0 -7960
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/RhodesActivityStartupListeners.java +0 -12
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/webview/RhoWebSettingsNew.java +0 -52
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/webview/RhoWebSettingsOld.java +0 -62
- data/platform/osx/bin/RhoSimulator/RhoSimulator.app/Contents/Frameworks/phonon.framework/Versions/4/phonon +0 -0
- data/platform/osx/bin/RhoSimulator/RhoSimulator.app/Contents/PlugIns/phonon_backend/libphonon_qt7.dylib +0 -0
- data/platform/win32/RhoSimulator/Microsoft.VC80.CRT.manifest +0 -8
- data/platform/win32/RhoSimulator/Microsoft.VC80.OpenMP.manifest +0 -7
- 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/vcomp.dll +0 -0
- data/rhomobile-debug-1.0.6.gem +0 -0
data/platform/android/Rhodes/src/com/rhomobile/rhodes/osfunctionality/AndroidFunctionality05.java
CHANGED
@@ -29,47 +29,60 @@ package com.rhomobile.rhodes.osfunctionality;
|
|
29
29
|
import android.accounts.Account;
|
30
30
|
import android.accounts.AccountManager;
|
31
31
|
import android.content.Context;
|
32
|
+
import android.webkit.WebSettings;
|
33
|
+
import android.webkit.WebView;
|
32
34
|
|
33
35
|
|
34
36
|
//Android 2.0
|
35
37
|
class AndroidFunctionality05 extends AndroidFunctionality04 implements AndroidFunctionality {
|
36
38
|
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
39
|
+
private Account AccessOwnerInfo_getAccount(AccountManager accountManager) {
|
40
|
+
Account[] accounts = accountManager.getAccountsByType("com.google");
|
41
|
+
Account account;
|
42
|
+
if (accounts.length > 0) {
|
43
|
+
account = accounts[0];
|
44
|
+
} else {
|
45
|
+
account = null;
|
46
|
+
}
|
47
|
+
return account;
|
48
|
+
}
|
49
|
+
|
50
|
+
public String AccessOwnerInfo_getEmail(Context context) {
|
51
|
+
AccountManager accountManager = AccountManager.get(context);
|
52
|
+
Account account = AccessOwnerInfo_getAccount(accountManager);
|
53
|
+
|
54
|
+
if (account == null) {
|
55
|
+
return null;
|
56
|
+
} else {
|
57
|
+
return account.name;
|
58
|
+
}
|
59
|
+
}
|
60
|
+
|
61
|
+
public String AccessOwnerInfo_getUsername(Context context) {
|
62
|
+
// String email;
|
63
|
+
AccountManager manager = AccountManager.get(context);
|
64
|
+
Account account = AccessOwnerInfo_getAccount(manager);
|
65
|
+
if (account == null) {
|
66
|
+
return "";
|
67
|
+
} else {
|
68
|
+
String email = account.name;
|
69
|
+
String[] parts = email.split("@");
|
70
|
+
if (parts.length > 0 && parts[0] != null)
|
71
|
+
return parts[0];
|
72
|
+
else
|
73
|
+
return "";
|
74
|
+
}
|
75
|
+
}
|
76
|
+
|
77
|
+
@Override
|
78
|
+
public void applyWebSettings(WebView view) {
|
79
|
+
super.applyWebSettings(view);
|
80
|
+
WebSettings settings = view.getSettings();
|
81
|
+
settings.setDatabaseEnabled(true);
|
82
|
+
|
83
|
+
Context context = view.getContext();
|
84
|
+
String databasePath = context.getDir("database", Context.MODE_PRIVATE).getPath();
|
85
|
+
settings.setDatabasePath(databasePath);
|
86
|
+
}
|
87
|
+
|
75
88
|
}
|
data/platform/android/Rhodes/src/com/rhomobile/rhodes/osfunctionality/AndroidFunctionality07.java
CHANGED
@@ -26,9 +26,17 @@
|
|
26
26
|
|
27
27
|
package com.rhomobile.rhodes.osfunctionality;
|
28
28
|
|
29
|
+
import android.webkit.WebSettings;
|
30
|
+
import android.webkit.WebView;
|
29
31
|
|
30
32
|
//Android 2.1
|
31
33
|
class AndroidFunctionality07 extends AndroidFunctionality06 implements AndroidFunctionality {
|
32
34
|
|
33
|
-
|
35
|
+
@Override
|
36
|
+
public void applyWebSettings(WebView view) {
|
37
|
+
super.applyWebSettings(view);
|
38
|
+
WebSettings settings = view.getSettings();
|
39
|
+
settings.setAppCacheEnabled(true);
|
40
|
+
settings.setDomStorageEnabled(true);
|
41
|
+
}
|
34
42
|
}
|
data/platform/android/Rhodes/src/com/rhomobile/rhodes/osfunctionality/AndroidFunctionality08.java
CHANGED
@@ -1,44 +1,61 @@
|
|
1
1
|
/*------------------------------------------------------------------------
|
2
|
-
* (The MIT License)
|
3
|
-
*
|
4
|
-
* Copyright (c) 2008-2011 Rhomobile, Inc.
|
5
|
-
*
|
6
|
-
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
7
|
-
* of this software and associated documentation files (the "Software"), to deal
|
8
|
-
* in the Software without restriction, including without limitation the rights
|
9
|
-
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
10
|
-
* copies of the Software, and to permit persons to whom the Software is
|
11
|
-
* furnished to do so, subject to the following conditions:
|
12
|
-
*
|
13
|
-
* The above copyright notice and this permission notice shall be included in
|
14
|
-
* all copies or substantial portions of the Software.
|
15
|
-
*
|
16
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
17
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
18
|
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
19
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
20
|
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
21
|
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
22
|
-
* THE SOFTWARE.
|
23
|
-
*
|
24
|
-
* http://rhomobile.com
|
25
|
-
*------------------------------------------------------------------------*/
|
2
|
+
* (The MIT License)
|
3
|
+
*
|
4
|
+
* Copyright (c) 2008-2011 Rhomobile, Inc.
|
5
|
+
*
|
6
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
7
|
+
* of this software and associated documentation files (the "Software"), to deal
|
8
|
+
* in the Software without restriction, including without limitation the rights
|
9
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
10
|
+
* copies of the Software, and to permit persons to whom the Software is
|
11
|
+
* furnished to do so, subject to the following conditions:
|
12
|
+
*
|
13
|
+
* The above copyright notice and this permission notice shall be included in
|
14
|
+
* all copies or substantial portions of the Software.
|
15
|
+
*
|
16
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
17
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
18
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
19
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
20
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
21
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
22
|
+
* THE SOFTWARE.
|
23
|
+
*
|
24
|
+
* http://rhomobile.com
|
25
|
+
*------------------------------------------------------------------------*/
|
26
26
|
|
27
27
|
package com.rhomobile.rhodes.osfunctionality;
|
28
28
|
|
29
|
+
import com.rhomobile.rhodes.Logger;
|
30
|
+
import com.rhomobile.rhodes.RhoConf;
|
29
31
|
import com.rhomobile.rhodes.RhodesService;
|
30
32
|
|
31
33
|
import android.content.Context;
|
32
34
|
import android.view.Display;
|
33
35
|
import android.view.WindowManager;
|
34
|
-
|
36
|
+
import android.webkit.WebSettings;
|
35
37
|
|
36
38
|
//Android 2.2
|
37
|
-
class AndroidFunctionality08 extends AndroidFunctionality07 implements
|
39
|
+
class AndroidFunctionality08 extends AndroidFunctionality07 implements
|
40
|
+
AndroidFunctionality {
|
41
|
+
|
42
|
+
public int getDeviceRotation() {
|
43
|
+
Display display = ((WindowManager) RhodesService.getContext()
|
44
|
+
.getSystemService(Context.WINDOW_SERVICE)).getDefaultDisplay();
|
45
|
+
int rotation = display.getRotation();
|
46
|
+
return rotation;
|
47
|
+
}
|
48
|
+
|
49
|
+
@Override
|
50
|
+
protected void setWebPlugins(WebSettings settings) {
|
51
|
+
if(RhoConf.getBool("enable_web_plugins")) {
|
52
|
+
settings.setPluginState(WebSettings.PluginState.ON);
|
53
|
+
Logger.I(TAG, "Set web plugins state 'ON'");
|
54
|
+
}
|
55
|
+
else {
|
56
|
+
settings.setPluginState(WebSettings.PluginState.OFF);
|
57
|
+
Logger.I(TAG, "Set web plugins state 'OFF'");
|
58
|
+
}
|
59
|
+
}
|
38
60
|
|
39
|
-
public int getDeviceRotation() {
|
40
|
-
Display display = ((WindowManager) RhodesService.getContext().getSystemService(Context.WINDOW_SERVICE)).getDefaultDisplay();
|
41
|
-
int rotation = display.getRotation();
|
42
|
-
return rotation;
|
43
|
-
}
|
44
61
|
}
|
@@ -26,45 +26,44 @@
|
|
26
26
|
|
27
27
|
package com.rhomobile.rhodes.osfunctionality;
|
28
28
|
|
29
|
+
import com.rhomobile.rhodes.Logger;
|
30
|
+
|
29
31
|
import android.os.Build;
|
30
32
|
|
31
33
|
|
32
34
|
public class AndroidFunctionalityManager {
|
35
|
+
|
36
|
+
private static final String TAG = AndroidFunctionalityManager.class.getSimpleName();
|
33
37
|
|
34
|
-
private static AndroidFunctionality ourFunctionality = null;
|
38
|
+
private static AndroidFunctionality ourFunctionality = null;
|
35
39
|
|
36
40
|
public static AndroidFunctionality getAndroidFunctionality() {
|
37
41
|
if (ourFunctionality == null) {
|
38
|
-
int sdkVersion =
|
39
|
-
if (sdkVersion >=
|
42
|
+
int sdkVersion = Build.VERSION.SDK_INT;
|
43
|
+
if (sdkVersion >= Build.VERSION_CODES.GINGERBREAD_MR1) { // 2.3.3 and above - 10
|
40
44
|
ourFunctionality = new AndroidFunctionality10();
|
41
45
|
}
|
42
|
-
else if (sdkVersion
|
46
|
+
else if (sdkVersion == Build.VERSION_CODES.GINGERBREAD) { // 2.3, 2.3.1, 2.3.2 - 9
|
43
47
|
ourFunctionality = new AndroidFunctionality09();
|
44
48
|
}
|
45
|
-
else if (sdkVersion
|
49
|
+
else if (sdkVersion == Build.VERSION_CODES.FROYO) { // 2.2 - 8
|
46
50
|
ourFunctionality = new AndroidFunctionality08();
|
47
51
|
}
|
48
|
-
else if (sdkVersion
|
52
|
+
else if (sdkVersion == Build.VERSION_CODES.ECLAIR_MR1) { // 2.1 - 7
|
49
53
|
ourFunctionality = new AndroidFunctionality07();
|
50
54
|
}
|
51
|
-
else if (sdkVersion
|
55
|
+
else if (sdkVersion == Build.VERSION_CODES.ECLAIR_0_1) { // 2.0.1 - 6
|
52
56
|
ourFunctionality = new AndroidFunctionality06();
|
53
57
|
}
|
54
|
-
else if (sdkVersion
|
58
|
+
else if (sdkVersion == Build.VERSION_CODES.ECLAIR) { //2.0 - 5
|
55
59
|
ourFunctionality = new AndroidFunctionality05();
|
56
60
|
}
|
57
|
-
else if (sdkVersion
|
61
|
+
else if (sdkVersion == Build.VERSION_CODES.DONUT) { // 1.6 - 4
|
58
62
|
ourFunctionality = new AndroidFunctionality04();
|
59
63
|
}
|
60
|
-
else if (sdkVersion >= 3) {
|
61
|
-
ourFunctionality = new AndroidFunctionality03();
|
62
|
-
}
|
63
|
-
else if (sdkVersion >= 2) {
|
64
|
-
ourFunctionality = new AndroidFunctionality02();
|
65
|
-
}
|
66
64
|
else {
|
67
|
-
|
65
|
+
Logger.E(TAG, "Unsupported Android version: " + sdkVersion);
|
66
|
+
throw new RuntimeException("Unsupported Android version: " + sdkVersion);
|
68
67
|
}
|
69
68
|
}
|
70
69
|
return ourFunctionality;
|
@@ -30,7 +30,9 @@ import java.io.File;
|
|
30
30
|
import java.util.Map;
|
31
31
|
|
32
32
|
import android.content.Intent;
|
33
|
+
import android.view.View;
|
33
34
|
import android.view.ViewGroup;
|
35
|
+
import android.view.Window;
|
34
36
|
import android.webkit.WebView;
|
35
37
|
import android.widget.AbsoluteLayout;
|
36
38
|
|
@@ -156,12 +158,23 @@ public class Signature extends AbstractRhoExtension implements IRhoExtension {
|
|
156
158
|
public void run() {
|
157
159
|
reportMsg(" $$$ Start make of Signature View");
|
158
160
|
|
159
|
-
|
160
|
-
if (
|
161
|
-
wv
|
162
|
-
ourInlineSignatureView
|
161
|
+
Object webView_obj = extManager.getWebView();
|
162
|
+
if (webView_obj instanceof ViewGroup) {
|
163
|
+
ViewGroup wv = (ViewGroup)webView_obj;
|
164
|
+
if ((wv != null) && (ourInlineSignatureView != null)) {
|
165
|
+
wv.removeView(ourInlineSignatureView);
|
166
|
+
ourInlineSignatureView = null;
|
167
|
+
}
|
168
|
+
}
|
169
|
+
else {
|
170
|
+
ViewGroup wv = (ViewGroup)(((View)webView_obj).getParent());
|
171
|
+
if ((wv != null) && (ourInlineSignatureView != null)) {
|
172
|
+
wv.removeView(ourInlineSignatureView);
|
173
|
+
ourInlineSignatureView = null;
|
174
|
+
}
|
163
175
|
}
|
164
176
|
|
177
|
+
|
165
178
|
ourInlineSignatureView = new SignatureView(ContextFactory.getUiContext(), null);
|
166
179
|
|
167
180
|
{
|
@@ -179,13 +192,26 @@ public class Signature extends AbstractRhoExtension implements IRhoExtension {
|
|
179
192
|
getSharedInstance().mProperties.top));
|
180
193
|
|
181
194
|
}
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
195
|
+
if (webView_obj instanceof ViewGroup) {
|
196
|
+
ViewGroup wv = (ViewGroup)webView_obj;
|
197
|
+
if ((wv != null) && (ourInlineSignatureView != null)) {
|
198
|
+
wv.addView(ourInlineSignatureView);
|
199
|
+
wv.bringChildToFront(ourInlineSignatureView);
|
200
|
+
ourInlineSignatureView.requestFocus();
|
201
|
+
ourInlineSignatureView.bringToFront();
|
202
|
+
ourInlineSignatureView.invalidate();
|
203
|
+
}
|
204
|
+
}
|
205
|
+
else {
|
206
|
+
ViewGroup wv = (ViewGroup)(((View)webView_obj).getParent());
|
207
|
+
if ((wv != null) && (ourInlineSignatureView != null)) {
|
208
|
+
wv.addView(ourInlineSignatureView);
|
209
|
+
wv.bringChildToFront(ourInlineSignatureView);
|
210
|
+
ourInlineSignatureView.requestFocus();
|
211
|
+
ourInlineSignatureView.bringToFront();
|
212
|
+
ourInlineSignatureView.invalidate();
|
213
|
+
}
|
214
|
+
}
|
189
215
|
//wv.invalidate();
|
190
216
|
|
191
217
|
reportMsg(" $$$ Finish make of Signature View");
|
@@ -224,10 +250,21 @@ public class Signature extends AbstractRhoExtension implements IRhoExtension {
|
|
224
250
|
PerformOnUiThread.exec( new Runnable () {
|
225
251
|
public void run() {
|
226
252
|
if (ourInlineSignatureView != null) {
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
253
|
+
|
254
|
+
Object webView_obj = extManager.getWebView();
|
255
|
+
if (webView_obj instanceof ViewGroup) {
|
256
|
+
ViewGroup wv = (ViewGroup)webView_obj;
|
257
|
+
if ((wv != null) && (ourInlineSignatureView != null)) {
|
258
|
+
wv.removeView(ourInlineSignatureView);
|
259
|
+
ourInlineSignatureView = null;
|
260
|
+
}
|
261
|
+
}
|
262
|
+
else {
|
263
|
+
ViewGroup wv = (ViewGroup)(((View)webView_obj).getParent());
|
264
|
+
if ((wv != null) && (ourInlineSignatureView != null)) {
|
265
|
+
wv.removeView(ourInlineSignatureView);
|
266
|
+
ourInlineSignatureView = null;
|
267
|
+
}
|
231
268
|
}
|
232
269
|
}
|
233
270
|
}
|
@@ -28,6 +28,7 @@ package com.rhomobile.rhodes.uri;
|
|
28
28
|
|
29
29
|
import java.io.File;
|
30
30
|
import java.net.URISyntaxException;
|
31
|
+
import java.util.regex.Pattern;
|
31
32
|
|
32
33
|
import com.rhomobile.rhodes.LocalFileProvider;
|
33
34
|
import com.rhomobile.rhodes.Logger;
|
@@ -40,18 +41,35 @@ import android.webkit.URLUtil;
|
|
40
41
|
public class LocalFileHandler implements UriHandler
|
41
42
|
{
|
42
43
|
private static final String TAG = "LocalFileHandler";
|
44
|
+
private static final Pattern mHtmlPattern = Pattern.compile(".*\\.(html|htm)$");
|
45
|
+
private static final Pattern mImagePattern = Pattern.compile(".*\\.(jpg|jpeg|png|gif|svg)$");
|
43
46
|
private Context ctx;
|
44
47
|
|
45
48
|
public LocalFileHandler(Context c) {
|
46
49
|
ctx = c;
|
47
50
|
}
|
48
51
|
|
52
|
+
private static boolean isHtmlUrl(String url) {
|
53
|
+
Logger.T(TAG, "Looking for html extension: " + url);
|
54
|
+
return mHtmlPattern.matcher(url).matches();
|
55
|
+
}
|
56
|
+
|
57
|
+
private static boolean isImageUrl(String url) {
|
58
|
+
Logger.T(TAG, "Looking for image extension: " + url);
|
59
|
+
return mImagePattern.matcher(url).matches();
|
60
|
+
}
|
61
|
+
|
49
62
|
public boolean handle(String url) throws URISyntaxException {
|
50
63
|
|
51
|
-
if(!URLUtil.isFileUrl(url))
|
64
|
+
if (!URLUtil.isFileUrl(url))
|
65
|
+
return false;
|
66
|
+
|
67
|
+
String noAnchorUrl = URLUtil.stripAnchor(url);
|
68
|
+
if (isHtmlUrl(noAnchorUrl) || isImageUrl(noAnchorUrl)) {
|
52
69
|
return false;
|
70
|
+
}
|
53
71
|
|
54
|
-
Logger.D(TAG, "
|
72
|
+
Logger.D(TAG, "Handle URI externally: " + url);
|
55
73
|
|
56
74
|
int intentFlags = 0;
|
57
75
|
String path = Uri.parse(url).getPath();
|
@@ -1,23 +1,25 @@
|
|
1
1
|
package com.rhomobile.rhodes.webview;
|
2
2
|
|
3
|
-
import
|
4
|
-
|
5
|
-
import com.rhomobile.rhodes.
|
3
|
+
import com.rhomobile.rhodes.Logger;
|
4
|
+
import com.rhomobile.rhodes.osfunctionality.AndroidFunctionalityManager;
|
5
|
+
import com.rhomobile.rhodes.util.PerformOnUiThread;
|
6
6
|
|
7
7
|
import android.app.Activity;
|
8
8
|
import android.os.Build;
|
9
9
|
import android.view.View;
|
10
|
+
import android.view.ViewGroup;
|
10
11
|
import android.webkit.WebChromeClient;
|
11
12
|
import android.webkit.WebViewClient;
|
12
13
|
|
13
14
|
public class GoogleWebView implements IRhoWebView {
|
15
|
+
private static final String TAG = GoogleWebView.class.getSimpleName();
|
14
16
|
|
15
|
-
private
|
17
|
+
private WebChromeClient mChromeClient;
|
16
18
|
private static WebViewClient mWebViewClient;
|
17
|
-
private static RhoWebSettings mWebSettings;
|
18
19
|
private static Boolean mInitialized = false;
|
19
20
|
|
20
|
-
private android.webkit.WebView mWebView;
|
21
|
+
private android.webkit.WebView mWebView;
|
22
|
+
private ViewGroup mContainerView;
|
21
23
|
|
22
24
|
public GoogleWebView(Activity activity) {
|
23
25
|
synchronized(mInitialized) {
|
@@ -26,39 +28,27 @@ public class GoogleWebView implements IRhoWebView {
|
|
26
28
|
}
|
27
29
|
}
|
28
30
|
mWebView = new android.webkit.WebView(activity);
|
29
|
-
mWebSettings.setWebSettings(mWebView);
|
30
|
-
mWebView.setWebChromeClient(mChromeClient);
|
31
|
-
mWebView.setWebViewClient(mWebViewClient);
|
32
|
-
mWebView.clearCache(true);
|
33
31
|
}
|
34
32
|
|
35
33
|
private static void initWebStuff(Activity activity) {
|
36
|
-
String ccName;
|
37
|
-
String wsName;
|
38
|
-
int sdkVersion =
|
39
|
-
if (sdkVersion < Build.VERSION_CODES.ECLAIR_MR1) {
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
wsName = "RhoWebSettingsNew";
|
46
|
-
}
|
34
|
+
//String ccName;
|
35
|
+
//String wsName;
|
36
|
+
//int sdkVersion = Build.VERSION.SDK_INT;
|
37
|
+
//if (sdkVersion < Build.VERSION_CODES.ECLAIR_MR1) {
|
38
|
+
// ccName = "ChromeClientOld";
|
39
|
+
//}
|
40
|
+
//else {
|
41
|
+
// ccName = "ChromeClientNew";
|
42
|
+
//}
|
47
43
|
|
48
44
|
try {
|
49
|
-
String pkgname = ChromeClientOld.class.getPackage().getName();
|
50
|
-
String fullName = pkgname + "." + ccName;
|
51
|
-
Class<? extends WebChromeClient> ccClass =
|
52
|
-
|
45
|
+
//String pkgname = ChromeClientOld.class.getPackage().getName();
|
46
|
+
//String fullName = pkgname + "." + ccName;
|
47
|
+
//Class<? extends WebChromeClient> ccClass =
|
48
|
+
// Class.forName(fullName).asSubclass(WebChromeClient.class);
|
53
49
|
|
54
|
-
Constructor<? extends WebChromeClient> ctor = ccClass.getConstructor(RhodesActivity.class);
|
55
|
-
mChromeClient = ctor.newInstance(activity);
|
56
|
-
|
57
|
-
pkgname = RhoWebSettings.class.getPackage().getName();
|
58
|
-
fullName = pkgname + "." + wsName;
|
59
|
-
Class<? extends RhoWebSettings> wsClass =
|
60
|
-
Class.forName(fullName).asSubclass(RhoWebSettings.class);
|
61
|
-
mWebSettings = wsClass.newInstance();
|
50
|
+
//Constructor<? extends WebChromeClient> ctor = ccClass.getConstructor(RhodesActivity.class);
|
51
|
+
//mChromeClient = ctor.newInstance(activity);
|
62
52
|
|
63
53
|
mWebViewClient = new RhoWebViewClient();
|
64
54
|
|
@@ -70,7 +60,35 @@ public class GoogleWebView implements IRhoWebView {
|
|
70
60
|
}
|
71
61
|
|
72
62
|
public void applyWebSettings() {
|
73
|
-
|
63
|
+
PerformOnUiThread.exec(new Runnable() {
|
64
|
+
@Override
|
65
|
+
public void run() {
|
66
|
+
mWebView.setVerticalScrollBarEnabled(true);
|
67
|
+
mWebView.setHorizontalScrollBarEnabled(true);
|
68
|
+
mWebView.setVerticalScrollbarOverlay(true);
|
69
|
+
mWebView.setHorizontalScrollbarOverlay(true);
|
70
|
+
mWebView.setFocusableInTouchMode(true);
|
71
|
+
AndroidFunctionalityManager.getAndroidFunctionality().applyWebSettings(mWebView);
|
72
|
+
if (mChromeClient != null) {
|
73
|
+
mWebView.setWebChromeClient(mChromeClient);
|
74
|
+
}
|
75
|
+
mWebView.setWebViewClient(mWebViewClient);
|
76
|
+
mWebView.clearCache(true);
|
77
|
+
}
|
78
|
+
});
|
79
|
+
}
|
80
|
+
|
81
|
+
@Override
|
82
|
+
public void setWebClient(Activity activity) {
|
83
|
+
Logger.I(TAG, "Creating new RhoWebChromeClient");
|
84
|
+
mChromeClient = new RhoWebChromeClient(activity);
|
85
|
+
PerformOnUiThread.exec(new Runnable() {
|
86
|
+
@Override
|
87
|
+
public void run() {
|
88
|
+
Logger.I(TAG, "Setting RhoWebChromeClient");
|
89
|
+
mWebView.setWebChromeClient(mChromeClient);
|
90
|
+
}
|
91
|
+
});
|
74
92
|
}
|
75
93
|
|
76
94
|
@Override
|
@@ -78,6 +96,16 @@ public class GoogleWebView implements IRhoWebView {
|
|
78
96
|
return mWebView;
|
79
97
|
}
|
80
98
|
|
99
|
+
@Override
|
100
|
+
public void setContainerView(ViewGroup view) {
|
101
|
+
mContainerView = view;
|
102
|
+
}
|
103
|
+
|
104
|
+
@Override
|
105
|
+
public ViewGroup getContainerView() {
|
106
|
+
return mContainerView;
|
107
|
+
}
|
108
|
+
|
81
109
|
@Override
|
82
110
|
public boolean canGoBack() {
|
83
111
|
return mWebView.canGoBack();
|
@@ -130,4 +158,19 @@ public class GoogleWebView implements IRhoWebView {
|
|
130
158
|
public void stopLoad() {
|
131
159
|
mWebView.stopLoading();
|
132
160
|
}
|
161
|
+
|
162
|
+
@Override
|
163
|
+
public void setZoom(int scale) {
|
164
|
+
// TODO Auto-generated method stub
|
165
|
+
}
|
166
|
+
|
167
|
+
@Override
|
168
|
+
public void setTextZoom(int scale) {
|
169
|
+
//mWebView.getSettings().setTextZoom(scale);
|
170
|
+
}
|
171
|
+
|
172
|
+
@Override
|
173
|
+
public String getEngineId() {
|
174
|
+
return "WEBKIT/GOOGLE/" + Build.VERSION.RELEASE;
|
175
|
+
}
|
133
176
|
}
|