rhodes 6.2.0 → 7.1.17
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +14 -10
- data/appveyor.yml +1 -1
- data/extensions/emdk3-manager/ext/platform/android/Rakefile +2 -0
- data/extensions/rhoconnect-push/ext/rhoconnect-push/platform/android/Rakefile +18 -1
- data/extensions/rhoelementsext/ext/rhoelementsext/platform/android/Rakefile +19 -1
- data/lib/commonAPI/RubyServer/ext.yml +21 -0
- data/lib/commonAPI/RubyServer/ext/RubyServer.xml +101 -0
- data/lib/commonAPI/RubyServer/ext/build +19 -0
- data/lib/commonAPI/RubyServer/ext/build.bat +29 -0
- data/lib/commonAPI/RubyServer/ext/platform/android/Rakefile +161 -0
- data/lib/commonAPI/RubyServer/ext/platform/android/ext_java.files +9 -0
- data/lib/commonAPI/RubyServer/ext/platform/android/ext_native.files +7 -0
- data/lib/commonAPI/RubyServer/ext/platform/iphone/Rakefile +73 -0
- data/lib/commonAPI/RubyServer/ext/platform/iphone/RubyServer.xcodeproj/project.pbxproj +322 -0
- data/lib/commonAPI/RubyServer/ext/platform/iphone/RubyServer_Prefix.pch +7 -0
- data/lib/commonAPI/RubyServer/ext/shared/RubyServerImpl.cpp +242 -0
- data/lib/commonAPI/barcode/ext/platform/android/src/com/rho/barcode/BarcodeFactory.java +23 -3
- data/lib/commonAPI/barcode/ext/platform/android/src/com/rho/barcode/BarcodeRhoExtension.java +68 -8
- data/lib/commonAPI/barcode/ext/platform/iphone/Barcode.xcodeproj/project.pbxproj +24 -52
- data/lib/commonAPI/barcode/ext/platform/iphone/Classes/BarcodeViewController.h +38 -10
- data/lib/commonAPI/barcode/ext/platform/iphone/Classes/BarcodeViewController.m +300 -22
- data/lib/commonAPI/barcode/ext/platform/iphone/Classes/BarcodeViewFactory.mm +6 -0
- data/lib/commonAPI/barcode/ext/platform/iphone/Classes/barcode.m +6 -2
- data/lib/commonAPI/barcode/ext/platform/iphone/impl/Barcode.m +7 -3
- data/lib/commonAPI/barcode/ext/platform/iphone/impl/BarcodeFactory.m +13 -0
- data/lib/commonAPI/barcode/ext/platform/iphone/impl/BarcodeSingleton.m +25 -3
- data/lib/commonAPI/bluetooth/ext/platform/android/Rakefile +29 -10
- data/lib/commonAPI/clipboard/ext/platform/android/Rakefile +29 -10
- data/lib/commonAPI/coreapi/ext/Notification.xml +47 -0
- data/lib/commonAPI/coreapi/ext/platform/android/ApplicationManifestAdds.erb +1 -0
- data/lib/commonAPI/coreapi/ext/platform/android/Rakefile +19 -0
- data/lib/commonAPI/coreapi/ext/platform/android/ext_java.files +2 -0
- data/lib/commonAPI/coreapi/ext/platform/android/src/com/rho/notification/AlarmReceiver.java +27 -0
- data/lib/commonAPI/coreapi/ext/platform/android/src/com/rho/notification/Notification.java +28 -10
- data/lib/commonAPI/coreapi/ext/platform/android/src/com/rho/notification/NotificationFactory.java +14 -1
- data/lib/commonAPI/coreapi/ext/platform/android/src/com/rho/notification/NotificationScheduler.java +260 -0
- data/lib/commonAPI/coreapi/ext/platform/android/src/com/rho/notification/NotificationSingleton.java +23 -1
- data/lib/commonAPI/coreapi/ext/platform/iphone/Coreapi.xcodeproj/project.pbxproj +21 -19
- data/lib/commonAPI/coreapi/ext/platform/iphone/impl/NotificationSingleton.h +1 -0
- data/lib/commonAPI/coreapi/ext/platform/iphone/impl/NotificationSingleton.m +234 -1
- data/lib/commonAPI/coreapi/ext/platform/qt/coreapi.pro +2 -0
- data/lib/commonAPI/coreapi/ext/platform/qt/src/CNotificationImpl.cpp +7 -0
- data/lib/commonAPI/coreapi/ext/shared/ApplicationImpl.cpp +5 -0
- data/lib/commonAPI/coreapi/public/api/rhoapi.js +18 -8
- data/lib/commonAPI/devicesecurity/ext/platform/android/Rakefile +19 -0
- data/lib/commonAPI/devicesecurity/ext/platform/iphone/DeviceSecurity.xcodeproj/project.pbxproj +16 -0
- data/lib/commonAPI/hardwarekeys/ext/keycapture.xml +11 -9
- data/lib/commonAPI/hardwarekeys/ext/platform/iphone/impl/KeyCaptureSingleton.h +5 -3
- data/lib/commonAPI/hardwarekeys/ext/platform/iphone/impl/KeyCaptureSingleton.m +80 -67
- data/lib/commonAPI/mediacapture/ext/platform/android/src/com/rho/camera/CameraEclair.java +25 -14
- data/lib/commonAPI/mediacapture/ext/platform/android/src/com/rho/camera/CameraGingerbread.java +55 -25
- data/lib/commonAPI/mediacapture/ext/platform/android/src/com/rho/camera/CameraObject.java +34 -9
- data/lib/commonAPI/mediacapture/ext/platform/android/src/com/rho/camera/ICameraObject.java +1 -0
- data/lib/commonAPI/printing_zebra/ext/platform/android/Rakefile +18 -0
- data/lib/commonAPI/sensor/ext/platform/android/src/com/rho/sensor/Sensor.java +4 -4
- data/lib/extensions/decrypt/ext/platform/android/Rakefile +19 -1
- data/lib/extensions/decryptstub/ext/platform/android/Rakefile +19 -0
- data/lib/extensions/decryptstub/ext/platform/iphone/Decryptstub.xcodeproj/project.pbxproj +4 -2
- data/lib/extensions/digest-md5/ext/android/Rakefile +18 -0
- data/lib/extensions/digest-sha1/ext/android/Rakefile +18 -0
- data/lib/extensions/digest-sha2/ext/android/Rakefile +18 -0
- data/lib/extensions/esri/ext/esri/platform/iphone/Classes/MapViewControllerESRI.h +19 -19
- data/lib/extensions/fcm-push/ext/android/Rakefile +18 -0
- data/lib/extensions/fcm-push/ext/android/src/com/rhomobile/rhodes/fcm/FCMIntentService.java +38 -16
- data/lib/extensions/gcm-push/ext/android/Rakefile +19 -0
- data/lib/extensions/keyboard/ext.yml +15 -0
- data/lib/extensions/keyboard/ext/Keyboard.xml +28 -0
- data/lib/extensions/keyboard/ext/build +19 -0
- data/lib/extensions/keyboard/ext/build.bat +29 -0
- data/lib/extensions/keyboard/ext/platform/android/Rakefile +141 -0
- data/lib/extensions/keyboard/ext/platform/android/ext_java.files +9 -0
- data/lib/extensions/keyboard/ext/platform/android/ext_native.files +7 -0
- data/lib/extensions/keyboard/ext/platform/android/jni/Keyboard_impl.cpp +61 -0
- data/lib/extensions/keyboard/ext/platform/android/src/com/rho/keyboard/Keyboard.java +32 -0
- data/lib/extensions/keyboard/ext/platform/android/src/com/rho/keyboard/KeyboardFactory.java +18 -0
- data/lib/extensions/keyboard/ext/platform/android/src/com/rho/keyboard/KeyboardSingleton.java +29 -0
- data/lib/extensions/keyboard/ext/platform/iphone/Keyboard.xcodeproj/project.pbxproj +368 -0
- data/lib/extensions/keyboard/ext/platform/iphone/Keyboard_Prefix.pch +7 -0
- data/lib/extensions/keyboard/ext/platform/iphone/Rakefile +73 -0
- data/lib/extensions/keyboard/ext/platform/iphone/impl/Keyboard.h +14 -0
- data/lib/extensions/keyboard/ext/platform/iphone/impl/Keyboard.m +24 -0
- data/lib/extensions/keyboard/ext/platform/iphone/impl/KeyboardFactorySingleton.m +16 -0
- data/lib/extensions/keyboard/ext/platform/iphone/impl/KeyboardSetup.m +9 -0
- data/lib/extensions/keyboard/ext/platform/iphone/impl/KeyboardSingleton.h +17 -0
- data/lib/extensions/keyboard/ext/platform/iphone/impl/KeyboardSingleton.m +23 -0
- data/lib/extensions/keyboard/ext/platform/iphone/impl/readme.txt +7 -0
- data/lib/extensions/keyboard/ext/platform/qt/Keyboard.pro +68 -0
- data/lib/extensions/keyboard/ext/platform/qt/Makefile +473 -0
- data/lib/extensions/keyboard/ext/platform/qt/Makefile.Release +408 -0
- data/lib/extensions/keyboard/ext/platform/qt/Rakefile +39 -0
- data/lib/extensions/keyboard/ext/platform/qt/src/Keyboard_impl.cpp +99 -0
- data/lib/extensions/keyboard/ext/platform/uwp/Keyboard.props +18 -0
- data/lib/extensions/keyboard/ext/platform/uwp/Keyboard.vcxproj +197 -0
- data/lib/extensions/keyboard/ext/platform/uwp/Keyboard.vcxproj.filters +50 -0
- data/lib/extensions/keyboard/ext/platform/uwp/KeyboardImpl.csproj +119 -0
- data/lib/extensions/keyboard/ext/platform/uwp/KeyboardImpl.props +8 -0
- data/lib/extensions/keyboard/ext/platform/uwp/KeyboardImpl.targets +7 -0
- data/lib/extensions/keyboard/ext/platform/uwp/KeyboardLib.props +18 -0
- data/lib/extensions/keyboard/ext/platform/uwp/KeyboardLib.vcxproj +197 -0
- data/lib/extensions/keyboard/ext/platform/uwp/KeyboardLib.vcxproj.filters +58 -0
- data/lib/extensions/keyboard/ext/platform/uwp/src/Keyboard_impl.cpp +76 -0
- data/lib/extensions/keyboard/ext/platform/uwp/src/Keyboard_impl.cs +69 -0
- data/lib/extensions/keyboard/ext/platform/uwp/src/Properties/AssemblyInfo.cs +37 -0
- data/lib/extensions/keyboard/ext/platform/wm/Keyboard.sln +52 -0
- data/lib/extensions/keyboard/ext/platform/wm/Keyboard.vcproj +714 -0
- data/lib/extensions/keyboard/ext/platform/wm/Keyboard.vsprops +15 -0
- data/lib/extensions/keyboard/ext/platform/wm/src/Keyboard_impl.cpp +77 -0
- data/lib/extensions/openssl.so.src/ext/android/Rakefile +18 -0
- data/lib/extensions/openssl.so/ext/android/aarch64/libopenssl.so.a +0 -0
- data/lib/extensions/openssl.so/ext/iphone/OpenSSl.SDK/howtobuild.txt +2 -0
- data/lib/extensions/openssl.so/ext/iphone/OpenSSl.SDK/libcrypto.a +0 -0
- data/lib/extensions/openssl.so/ext/iphone/OpenSSl.SDK/libssl.a +0 -0
- data/lib/extensions/openssl.so/ext/iphone/Release-iphoneos/libopenssl.so.a +0 -0
- data/lib/extensions/openssl.so/ext/iphone/Release-iphonesimulator/libopenssl.so.a +0 -0
- data/lib/extensions/openssl/ext/android/Rakefile +18 -0
- data/lib/extensions/zlib/ext/zlib.c +5 -1
- data/lib/framework/autocomplete/Rhodes.rb +1 -1
- data/lib/framework/rhodes.rb +1 -1
- data/lib/framework/set.rb +799 -0
- data/lib/framework/version.rb +1 -1
- data/lib/rhodes.rb +1 -1
- data/platform/android/Rhodes/AndroidManifest.xml.erb +11 -2
- data/platform/android/Rhodes/jni/include/rhodes.h +6 -0
- data/platform/android/Rhodes/jni/include/rhodes/RhoClassFactory.h +3 -0
- data/platform/android/Rhodes/jni/include/rhodes/SecurityTokenGenerator.h +30 -0
- data/platform/android/Rhodes/jni/include/rhodes/details/rhojava.inc +1 -0
- data/platform/android/Rhodes/jni/src/JNIRhoRubyCppWrapper.cpp +408 -0
- data/platform/android/Rhodes/jni/src/RhoClassFactory.cpp +7 -0
- data/platform/android/Rhodes/jni/src/SecurityTokenGenerator.cpp +60 -0
- data/platform/android/Rhodes/jni/src/fileapi.cpp +318 -12
- data/platform/android/Rhodes/jni/src/mapview.cpp +4 -0
- data/platform/android/Rhodes/res/drawable/ic_notification.png +0 -0
- data/platform/android/Rhodes/res/xml/network_security_config.xml +7 -0
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/BaseActivity.java +9 -0
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/LocalFileProvider.java +1 -1
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/RhoMain.java +8 -0
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/RhoRubyArrayObjects.java +33 -0
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/RhoRubyClassObject.java +20 -0
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/RhoRubyObject.java +115 -0
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/RhoRubySingleton.java +52 -0
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/RhoRubyTypes.java +15 -0
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/RhodesService.java +25 -13
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/SecurityTokenGenerator.java +57 -0
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/extmanager/RhoExtManagerImpl.java +1 -1
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/mainview/SimpleMainView.java +9 -2
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/osfunctionality/AndroidFunctionality.java +3 -0
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/osfunctionality/AndroidFunctionality01.java +7 -0
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/osfunctionality/AndroidFunctionality11.java +13 -1
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/osfunctionality/AndroidFunctionality26.java +105 -0
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/osfunctionality/AndroidFunctionalityManager.java +4 -1
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/socket/SSLImpl.java +24 -4
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/webview/GoogleWebView.java +20 -1
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/webview/RhoWebViewClient.java +10 -0
- data/platform/android/build/Rakefile +30 -1
- data/platform/android/build/RhodesSRC_build.files +8 -0
- data/platform/android/build/android.rake +326 -22
- data/platform/android/build/android_tools.rb +36 -3
- data/platform/android/build/androidcommon.rb +97 -44
- data/platform/android/build/librhocommon_build.files +11 -0
- data/platform/android/build/librhodes_build.files +2 -0
- data/platform/android/build/manifest_generator.rb +9 -2
- data/platform/android/build/maven_deps_extractor.rb +96 -15
- data/platform/android/build/ndkwrapper.rb +111 -16
- data/platform/android/build/pom.erb +2 -2
- data/platform/iphone/Classes/AppManager/AppManager.m +31 -1
- data/platform/iphone/Classes/MapView/GoogleGeocoder.h +3 -3
- data/platform/iphone/Classes/RhoMainViewStubImpl.h +38 -0
- data/platform/iphone/Classes/RhoMainViewStubImpl.m +88 -0
- data/platform/iphone/Classes/RhoUIWebView.h +5 -0
- data/platform/iphone/Classes/RhoUIWebView.m +14 -6
- data/platform/iphone/Classes/{RhoWKWebView.m → RhoWKWebView.mm} +98 -18
- data/platform/iphone/Classes/RhoWebView.h +1 -1
- data/platform/iphone/Classes/RhoWebViewFabrique.m +24 -12
- data/platform/iphone/Classes/Rhodes.h +7 -2
- data/platform/iphone/Classes/Rhodes.m +46 -8
- data/platform/iphone/Classes/SimpleMainView.m +22 -13
- data/platform/iphone/Classes/URLProtocol/CRhoURLProtocol.h +32 -3
- data/platform/iphone/Classes/URLProtocol/CRhoURLProtocol.m +93 -61
- data/platform/iphone/Classes/URLProtocol/CRhoWKURLProtocol.h +22 -0
- data/platform/iphone/Classes/URLProtocol/CRhoWKURLProtocol.m +246 -0
- data/platform/iphone/Classes/WebView.m +14 -2
- data/platform/iphone/Entitlements.plist +1 -1
- data/platform/iphone/Framework/RhoApplication/RhoApplication.xcodeproj/project.pbxproj +399 -0
- data/platform/iphone/Framework/Rhodes/Rhodes.xcodeproj/project.pbxproj +1208 -0
- data/platform/iphone/Framework/Rhodes/Rhodes/Info.plist +24 -0
- data/platform/iphone/Framework/Rhodes/Rhodes/Rhodes.h +21 -0
- data/platform/iphone/Framework/Rhodes/Rhodes/StubCode.m +15 -0
- data/platform/iphone/Info.plist +1 -3
- data/platform/iphone/RhoAppBaseLib/RhoAppBaseLib.xcodeproj/project.pbxproj +511 -4
- data/platform/iphone/RhoLib/RhoLib.xcodeproj/project.pbxproj +467 -1
- data/platform/iphone/Rhodes.xcodeproj/project.pbxproj +51 -274
- data/platform/iphone/RhodesBaseDelegate.h +1 -1
- data/platform/iphone/curl/curl.xcodeproj/project.pbxproj +85 -3
- data/platform/iphone/rbuild/ApplicationPlist.erb +1 -1
- data/platform/iphone/rbuild/iphone.rake +497 -25
- data/platform/iphone/rbuild/iphonecommon.rb +15 -6
- data/platform/iphone/rhodes_stub.cpp +15 -0
- data/platform/iphone/rhodeslib/api/RhodesLib.h +28 -0
- data/platform/iphone/rhodeslib/impl/RhodesLib.m +52 -0
- data/platform/iphone/rhodesruby/api/IRefCountedObject.h +20 -0
- data/platform/iphone/rhodesruby/api/IRhoRuby.h +72 -0
- data/platform/iphone/rhodesruby/api/IRhoRubyArray.h +12 -0
- data/platform/iphone/rhodesruby/api/IRhoRubyBoolean.h +11 -0
- data/platform/iphone/rhodesruby/api/IRhoRubyFloat.h +10 -0
- data/platform/iphone/rhodesruby/api/IRhoRubyHash.h +15 -0
- data/platform/iphone/rhodesruby/api/IRhoRubyInteger.h +10 -0
- data/platform/iphone/rhodesruby/api/IRhoRubyMutableArray.h +9 -0
- data/platform/iphone/rhodesruby/api/IRhoRubyMutableBoolean.h +10 -0
- data/platform/iphone/rhodesruby/api/IRhoRubyMutableFloat.h +10 -0
- data/platform/iphone/rhodesruby/api/IRhoRubyMutableHash.h +10 -0
- data/platform/iphone/rhodesruby/api/IRhoRubyMutableInteger.h +10 -0
- data/platform/iphone/rhodesruby/api/IRhoRubyMutableString.h +10 -0
- data/platform/iphone/rhodesruby/api/IRhoRubyNativeCallback.h +9 -0
- data/platform/iphone/rhodesruby/api/IRhoRubyNil.h +10 -0
- data/platform/iphone/rhodesruby/api/IRhoRubyObject.h +37 -0
- data/platform/iphone/rhodesruby/api/IRhoRubyRunnable.h +8 -0
- data/platform/iphone/rhodesruby/api/IRhoRubyString.h +10 -0
- data/platform/iphone/rhodesruby/api/RhoRuby.h +26 -0
- data/platform/iphone/rhodesruby/api/RhoRubySingletone.h +14 -0
- data/platform/iphone/rhodesruby/impl/RhoRubyFabrique.h +10 -0
- data/platform/iphone/rhodesruby/impl/RhoRubyImpl.h +56 -0
- data/platform/iphone/rhodesruby/impl/RhoRubyImpl.mm +432 -0
- data/platform/iphone/rhodesruby/impl/RhoRubyMutableArrayImpl.h +24 -0
- data/platform/iphone/rhodesruby/impl/RhoRubyMutableArrayImpl.mm +43 -0
- data/platform/iphone/rhodesruby/impl/RhoRubyMutableBooleanImpl.h +23 -0
- data/platform/iphone/rhodesruby/impl/RhoRubyMutableBooleanImpl.mm +38 -0
- data/platform/iphone/rhodesruby/impl/RhoRubyMutableFloatImpl.h +23 -0
- data/platform/iphone/rhodesruby/impl/RhoRubyMutableFloatImpl.mm +35 -0
- data/platform/iphone/rhodesruby/impl/RhoRubyMutableHashImpl.h +24 -0
- data/platform/iphone/rhodesruby/impl/RhoRubyMutableHashImpl.mm +48 -0
- data/platform/iphone/rhodesruby/impl/RhoRubyMutableIntegerImpl.h +23 -0
- data/platform/iphone/rhodesruby/impl/RhoRubyMutableIntegerImpl.mm +35 -0
- data/platform/iphone/rhodesruby/impl/RhoRubyMutableStringImpl.h +23 -0
- data/platform/iphone/rhodesruby/impl/RhoRubyMutableStringImpl.mm +35 -0
- data/platform/iphone/rhodesruby/impl/RhoRubyNilImpl.h +22 -0
- data/platform/iphone/rhodesruby/impl/RhoRubyNilImpl.mm +11 -0
- data/platform/iphone/rhodesruby/impl/RhoRubyObjectImpl.h +31 -0
- data/platform/iphone/rhodesruby/impl/RhoRubyObjectImpl.mm +49 -0
- data/platform/iphone/rhodesruby/impl/RhoRubySingletone.m +19 -0
- data/platform/iphone/rhodesruby/impl/RubyServerResponceImpl.h +21 -0
- data/platform/iphone/rhodesruby/impl/RubyServerResponceImpl.mm +32 -0
- data/platform/iphone/rhoextlib/rhoextlib.xcodeproj/project.pbxproj +79 -0
- data/platform/iphone/rhorubylib/rhorubylib.xcodeproj/project.pbxproj +91 -0
- data/platform/iphone/rhosynclib/rhosynclib.xcodeproj/project.pbxproj +85 -0
- data/platform/osx/bin/RhoSimulator/RhoSimulator.app.zip +0 -0
- data/platform/shared/common/IRhoClassFactory.h +2 -0
- data/platform/shared/common/ISecurityTokenGenerator.h +16 -0
- data/platform/shared/common/RhoFile.cpp +11 -0
- data/platform/shared/common/RhoMath.h +14 -0
- data/platform/shared/common/RhoMutexLock.h +13 -0
- data/platform/shared/common/RhoSystem.h +1 -1
- data/platform/shared/common/RhoThread.cpp +25 -0
- data/platform/shared/common/RhodesApp.cpp +52 -6
- data/platform/shared/common/RhodesApp.h +25 -1
- data/platform/shared/common/RhodesAppBase.cpp +4 -2
- data/platform/shared/common/RhodesAppBase.h +5 -0
- data/platform/shared/common/iphone/RhoClassfactory.h +6 -0
- data/platform/shared/common/iphone/RhoCryptImpl.mm +21 -2
- data/platform/shared/common/map/BaseMapEngine.cpp +2 -2
- data/platform/shared/common/map/GeocodingMapEngine.cpp +1 -1
- data/platform/shared/common/map/GoogleMapEngine.cpp +1 -1
- data/platform/shared/common/map/OSMMapEngine.cpp +1 -1
- data/platform/shared/curl/lib/curl_config.h +28 -0
- data/platform/shared/db/DBAdapter.cpp +18 -10
- data/platform/shared/json.new/JSONIterator.cpp +2 -2
- data/platform/shared/net/HttpServer.cpp +32 -0
- data/platform/shared/net/HttpServer.h +15 -0
- data/platform/shared/net/INetRequest.cpp +54 -0
- data/platform/shared/qt/RhoRubylib.pro +10 -0
- data/platform/shared/qt/rhodes/impl/AlertImpl.cpp +13 -0
- data/platform/shared/qt/rhodes/impl/CameraImpl.cpp +6 -0
- data/platform/shared/qt/rhodes/impl/DateTimePickerImpl.cpp +4 -0
- data/platform/shared/qt/rhodes/impl/MainWindowImpl.cpp +36 -7
- data/platform/shared/qt/rhodes/impl/MainWindowImpl.h +12 -1
- data/platform/shared/qt/rhodes/impl/NativeTabbarImpl.cpp +21 -2
- data/platform/shared/qt/rhodes/impl/NativeTabbarImpl.h +1 -0
- data/platform/shared/qt/rhodes/impl/NativeToolbarImpl.cpp +10 -0
- data/platform/shared/qt/rhodes/impl/QtSystemImpl.cpp +55 -3
- data/platform/shared/qt/rhodes/impl/RhoClassFactoryImpl.h +11 -0
- data/platform/shared/qt/rhodes/impl/RhoThreadImpl.cpp +71 -7
- data/platform/shared/qt/rhodes/impl/RhoThreadImpl.h +79 -2
- data/platform/shared/qt/rhodes/impl/RhodesImpl.cpp +16 -6
- data/platform/shared/qt/rhodes/impl/SecurityTokenGeneratorImpl.cpp +37 -0
- data/platform/shared/qt/rhodes/impl/SecurityTokenGeneratorImpl.h +25 -0
- data/platform/shared/qt/rhodes/impl/SignatureImpl.cpp +2 -0
- data/platform/shared/qt/rhodes/impl/WebViewImpl.cpp +27 -0
- data/platform/shared/qt/rhodes/impl/notificationsound.cpp +16 -2
- data/platform/shared/qt/rhodes/impl/notificationsound.h +11 -1
- data/platform/shared/qt/rhodes/newVersion/QtMainWindow.cpp +25 -16
- data/platform/shared/qt/rhodes/newVersion/QtMainWindow.h +3 -0
- data/platform/shared/qt/rhodes/newVersion/WebUrlRequestInterceptor.cpp +17 -0
- data/platform/shared/qt/rhodes/rhodes.pro +68 -14
- data/platform/shared/qt/rhodes/rhorubyVersion/rhodeslib.cpp +148 -0
- data/platform/shared/qt/rhodes/rhorubyVersion/rhodeslib.h +12 -0
- data/platform/shared/qt/rholib/rholib.pro +33 -5
- data/platform/shared/qt/rhoruby_win32_build.bat +19 -0
- data/platform/shared/qt/rhoruby_win32_build_debug.bat +19 -0
- data/platform/shared/qt/rhosimulator_win32_build_debug.bat +19 -0
- data/platform/shared/qt/rubylib/rubylib.pro +1 -0
- data/platform/shared/qt/sqlite3/sqlite3.pro +1 -0
- data/platform/shared/qt/syncengine/syncengine.pro +1 -0
- data/platform/shared/rhoruby/api/IArray.h +20 -0
- data/platform/shared/rhoruby/api/IBoolean.h +17 -0
- data/platform/shared/rhoruby/api/IFloat.h +17 -0
- data/platform/shared/rhoruby/api/IHash.h +23 -0
- data/platform/shared/rhoruby/api/IInteger.h +18 -0
- data/platform/shared/rhoruby/api/IMutableArray.h +18 -0
- data/platform/shared/rhoruby/api/IMutableBoolean.h +18 -0
- data/platform/shared/rhoruby/api/IMutableFloat.h +17 -0
- data/platform/shared/rhoruby/api/IMutableHash.h +18 -0
- data/platform/shared/rhoruby/api/IMutableInteger.h +17 -0
- data/platform/shared/rhoruby/api/IMutableString.h +17 -0
- data/platform/shared/rhoruby/api/INil.h +16 -0
- data/platform/shared/rhoruby/api/IObject.h +46 -0
- data/platform/shared/rhoruby/api/IRefCountedObject.h +20 -0
- data/platform/shared/rhoruby/api/IRhoRuby.h +78 -0
- data/platform/shared/rhoruby/api/IRunnable.h +17 -0
- data/platform/shared/rhoruby/api/IString.h +17 -0
- data/platform/shared/rhoruby/api/RhoRuby.h +29 -0
- data/platform/shared/rhoruby/api/RhoRubySingletone.h +19 -0
- data/platform/shared/rhoruby/api/SmartPointer.h +27 -0
- data/platform/shared/rhoruby/impl/MutableArrayImpl.cpp +54 -0
- data/platform/shared/rhoruby/impl/MutableArrayImpl.h +48 -0
- data/platform/shared/rhoruby/impl/MutableBooleanImpl.cpp +44 -0
- data/platform/shared/rhoruby/impl/MutableBooleanImpl.h +44 -0
- data/platform/shared/rhoruby/impl/MutableFloatImpl.cpp +41 -0
- data/platform/shared/rhoruby/impl/MutableFloatImpl.h +44 -0
- data/platform/shared/rhoruby/impl/MutableHashImpl.cpp +64 -0
- data/platform/shared/rhoruby/impl/MutableHashImpl.h +49 -0
- data/platform/shared/rhoruby/impl/MutableIntegerImpl.cpp +41 -0
- data/platform/shared/rhoruby/impl/MutableIntegerImpl.h +44 -0
- data/platform/shared/rhoruby/impl/MutableStringImpl.cpp +52 -0
- data/platform/shared/rhoruby/impl/MutableStringImpl.h +44 -0
- data/platform/shared/rhoruby/impl/NilImpl.cpp +23 -0
- data/platform/shared/rhoruby/impl/NilImpl.h +32 -0
- data/platform/shared/rhoruby/impl/ObjectImpl.cpp +77 -0
- data/platform/shared/rhoruby/impl/ObjectImpl.h +53 -0
- data/platform/shared/rhoruby/impl/RefCountedObjectImpl.cpp +28 -0
- data/platform/shared/rhoruby/impl/RefCountedObjectImpl.h +33 -0
- data/platform/shared/rhoruby/impl/RhoRubyImpl.cpp +799 -0
- data/platform/shared/rhoruby/impl/RhoRubyImpl.h +81 -0
- data/platform/shared/rhoruby/impl/RhoRubySingletone.cpp +20 -0
- data/platform/shared/rhoruby/impl/RubyServerResponceImpl.cpp +32 -0
- data/platform/shared/rhoruby/impl/RubyServerResponceImpl.h +21 -0
- data/platform/shared/ruby/android/ruby/config.h +55 -3
- data/platform/shared/ruby/error.c +1 -1
- data/platform/shared/ruby/ext/rho/rhoruby.c +60 -7
- data/platform/shared/ruby/ext/rho/rhoruby.h +3 -0
- data/platform/shared/rubyext/NativeToolbarExt.h +1 -0
- data/platform/uwp/rhodes/rhodes_TemporaryKey.pfx +0 -0
- data/platform/uwp/rhoruntime/common/RhoClassFactory.h +6 -0
- data/platform/win32/RhoSimulator/Qt5Core.dll +0 -0
- data/platform/win32/RhoSimulator/Qt5Gui.dll +0 -0
- data/platform/win32/RhoSimulator/Qt5Multimedia.dll +0 -0
- data/platform/win32/RhoSimulator/Qt5Network.dll +0 -0
- data/platform/win32/RhoSimulator/Qt5Positioning.dll +0 -0
- data/platform/win32/RhoSimulator/Qt5PrintSupport.dll +0 -0
- data/platform/win32/RhoSimulator/Qt5Qml.dll +0 -0
- data/platform/win32/RhoSimulator/Qt5Quick.dll +0 -0
- data/platform/win32/RhoSimulator/Qt5QuickWidgets.dll +0 -0
- data/platform/win32/RhoSimulator/Qt5SerialPort.dll +0 -0
- data/platform/win32/RhoSimulator/Qt5Svg.dll +0 -0
- data/platform/win32/RhoSimulator/Qt5WebChannel.dll +0 -0
- data/platform/win32/RhoSimulator/Qt5WebEngine.dll +0 -0
- data/platform/win32/RhoSimulator/Qt5WebEngineCore.dll +0 -0
- data/platform/win32/RhoSimulator/Qt5WebEngineWidgets.dll +0 -0
- data/platform/win32/RhoSimulator/Qt5Widgets.dll +0 -0
- data/platform/win32/RhoSimulator/QtWebEngineProcess.exe +0 -0
- data/platform/win32/RhoSimulator/RhoSimulator.exe +0 -0
- data/platform/win32/RhoSimulator/audio/qtaudio_wasapi.dll +0 -0
- data/platform/win32/RhoSimulator/audio/qtaudio_windows.dll +0 -0
- data/platform/win32/RhoSimulator/bearer/qgenericbearer.dll +0 -0
- data/platform/win32/RhoSimulator/iconengines/qsvgicon.dll +0 -0
- data/platform/win32/RhoSimulator/imageformats/qgif.dll +0 -0
- data/platform/win32/RhoSimulator/imageformats/qicns.dll +0 -0
- data/platform/win32/RhoSimulator/imageformats/qico.dll +0 -0
- data/platform/win32/RhoSimulator/imageformats/qjpeg.dll +0 -0
- data/platform/win32/RhoSimulator/imageformats/qsvg.dll +0 -0
- data/platform/win32/RhoSimulator/imageformats/qtga.dll +0 -0
- data/platform/win32/RhoSimulator/imageformats/qtiff.dll +0 -0
- data/platform/win32/RhoSimulator/imageformats/qwbmp.dll +0 -0
- data/platform/win32/RhoSimulator/imageformats/qwebp.dll +0 -0
- data/platform/win32/RhoSimulator/libEGL.dll +0 -0
- data/platform/win32/RhoSimulator/libGLESV2.dll +0 -0
- data/platform/win32/RhoSimulator/mediaservice/dsengine.dll +0 -0
- data/platform/win32/RhoSimulator/mediaservice/qtmedia_audioengine.dll +0 -0
- data/platform/win32/RhoSimulator/mediaservice/wmfengine.dll +0 -0
- data/platform/win32/RhoSimulator/platforms/qwindows.dll +0 -0
- data/platform/win32/RhoSimulator/playlistformats/qtmultimedia_m3u.dll +0 -0
- data/platform/win32/RhoSimulator/position/qtposition_geoclue.dll +0 -0
- data/platform/win32/RhoSimulator/position/qtposition_positionpoll.dll +0 -0
- data/platform/win32/RhoSimulator/position/qtposition_serialnmea.dll +0 -0
- data/platform/win32/RhoSimulator/position/qtposition_winrt.dll +0 -0
- data/platform/win32/RhoSimulator/printsupport/windowsprintersupport.dll +0 -0
- data/platform/wm/build/wm.rake +110 -5
- data/platform/wm/rhodes/rho/common/ExtManager.cpp +30 -0
- data/platform/wm/rhodes/rho/common/RhoClassFactory.h +6 -0
- data/platform/wm/rhodes/rho/rubyext/SystemImpl.cpp +3 -0
- data/platform/wm/rubylib/rubylib.vcxproj +6 -0
- data/platform/wp8/rhoruntime/common/RhoClassFactory.h +6 -0
- data/rakefile.rb +14 -10
- data/res/build-tools/iphonesim/build/Release/iphonesim_8 +23 -15
- data/res/build-tools/maven/LICENSE +18 -89
- data/res/build-tools/maven/NOTICE +1 -1
- data/res/build-tools/maven/README.txt +12 -12
- data/res/build-tools/maven/bin/m2.conf +2 -2
- data/res/build-tools/maven/bin/mvn +122 -125
- data/res/build-tools/maven/bin/mvn.cmd +205 -0
- data/res/build-tools/maven/bin/mvnDebug +10 -176
- data/res/build-tools/maven/bin/mvnDebug.cmd +33 -0
- data/res/build-tools/maven/bin/mvnyjp +9 -181
- data/res/build-tools/maven/boot/plexus-classworlds-2.6.0.jar +0 -0
- data/res/build-tools/maven/conf/logging/simplelogger.properties +8 -1
- data/res/build-tools/maven/conf/settings.xml +1 -1
- data/res/build-tools/maven/conf/toolchains.xml +103 -0
- data/res/build-tools/maven/lib/animal-sniffer-annotations-1.14.jar +0 -0
- data/res/build-tools/maven/lib/animal-sniffer-annotations.license +14 -0
- data/res/build-tools/maven/lib/checker-compat-qual-2.0.0.jar +0 -0
- data/res/build-tools/maven/lib/checker-compat-qual.license +14 -0
- data/res/build-tools/maven/lib/commons-cli-1.4.jar +0 -0
- data/res/build-tools/maven/lib/commons-io-2.5.jar +0 -0
- data/res/build-tools/maven/lib/commons-lang3-3.8.1.jar +0 -0
- data/res/build-tools/maven/lib/error_prone_annotations-2.1.3.jar +0 -0
- data/res/build-tools/maven/lib/guava-25.1-android.jar +0 -0
- data/res/build-tools/maven/lib/guice-4.2.1-no_aop.jar +0 -0
- data/res/build-tools/maven/lib/j2objc-annotations-1.1.jar +0 -0
- data/res/build-tools/maven/lib/jansi-1.17.1.jar +0 -0
- data/res/build-tools/maven/lib/jansi-native/README.txt +7 -0
- data/res/build-tools/maven/lib/jansi-native/freebsd32/libjansi.so +0 -0
- data/res/build-tools/maven/lib/jansi-native/freebsd64/libjansi.so +0 -0
- data/res/build-tools/maven/lib/jansi-native/linux32/libjansi.so +0 -0
- data/res/build-tools/maven/lib/jansi-native/linux64/libjansi.so +0 -0
- data/res/build-tools/maven/lib/jansi-native/osx/libjansi.jnilib +0 -0
- data/res/build-tools/maven/lib/jansi-native/windows32/jansi.dll +0 -0
- data/res/build-tools/maven/lib/jansi-native/windows64/jansi.dll +0 -0
- data/res/build-tools/maven/lib/jcl-over-slf4j-1.7.25.jar +0 -0
- data/res/build-tools/maven/lib/jcl-over-slf4j.license +14 -0
- data/res/build-tools/maven/lib/jsr250-api.license +383 -405
- data/res/build-tools/maven/lib/jsr305-3.0.2.jar +0 -0
- data/res/build-tools/maven/lib/maven-artifact-3.6.1.jar +0 -0
- data/res/build-tools/maven/lib/maven-builder-support-3.6.1.jar +0 -0
- data/res/build-tools/maven/lib/maven-compat-3.6.1.jar +0 -0
- data/res/build-tools/maven/lib/maven-core-3.6.1.jar +0 -0
- data/res/build-tools/maven/lib/maven-embedder-3.6.1.jar +0 -0
- data/res/build-tools/maven/lib/maven-model-3.6.1.jar +0 -0
- data/res/build-tools/maven/lib/maven-model-builder-3.6.1.jar +0 -0
- data/res/build-tools/maven/lib/maven-plugin-api-3.6.1.jar +0 -0
- data/res/build-tools/maven/lib/maven-repository-metadata-3.6.1.jar +0 -0
- data/res/build-tools/maven/lib/maven-resolver-api-1.3.3.jar +0 -0
- data/res/build-tools/maven/lib/maven-resolver-connector-basic-1.3.3.jar +0 -0
- data/res/build-tools/maven/lib/maven-resolver-impl-1.3.3.jar +0 -0
- data/res/build-tools/maven/lib/maven-resolver-provider-3.6.1.jar +0 -0
- data/res/build-tools/maven/lib/maven-resolver-spi-1.3.3.jar +0 -0
- data/res/build-tools/maven/lib/maven-resolver-transport-wagon-1.3.3.jar +0 -0
- data/res/build-tools/maven/lib/maven-resolver-util-1.3.3.jar +0 -0
- data/res/build-tools/maven/lib/maven-settings-3.6.1.jar +0 -0
- data/res/build-tools/maven/lib/maven-settings-builder-3.6.1.jar +0 -0
- data/res/build-tools/maven/lib/maven-shared-utils-3.2.1.jar +0 -0
- data/res/build-tools/maven/lib/maven-slf4j-provider-3.6.1.jar +0 -0
- data/res/build-tools/maven/lib/org.eclipse.sisu.inject-0.3.3.jar +0 -0
- data/res/build-tools/maven/lib/org.eclipse.sisu.inject.license +210 -261
- data/res/build-tools/maven/lib/org.eclipse.sisu.plexus-0.3.3.jar +0 -0
- data/res/build-tools/maven/lib/org.eclipse.sisu.plexus.license +210 -261
- data/res/build-tools/maven/lib/plexus-component-annotations-1.7.1.jar +0 -0
- data/res/build-tools/maven/lib/plexus-interpolation-1.25.jar +0 -0
- data/res/build-tools/maven/lib/plexus-sec-dispatcher-1.4.jar +0 -0
- data/res/build-tools/maven/lib/plexus-utils-3.2.0.jar +0 -0
- data/res/build-tools/maven/lib/slf4j-api-1.7.25.jar +0 -0
- data/res/build-tools/maven/lib/slf4j-api.license +10 -186
- data/res/build-tools/maven/lib/wagon-file-3.3.2.jar +0 -0
- data/res/build-tools/maven/lib/wagon-http-3.3.2-shaded.jar +0 -0
- data/res/build-tools/maven/lib/wagon-provider-api-3.3.2.jar +0 -0
- data/res/generators/rhogen.rb +150 -0
- data/res/generators/templates/application/AndroidManifest.erb +13 -4
- data/res/generators/templates/application/build.yml +9 -0
- data/res/generators/templates/application/nodejs_build.yml +1 -1
- data/res/generators/templates/application/resources/android/res/xml/network_security_config.xml +7 -0
- data/res/generators/templates/application/rhoconfig.txt +13 -6
- data/res/generators/templates/application/rhoconfig_rubynode.txt +139 -0
- data/res/generators/templates/application/rubynodejs_build.yml +95 -0
- data/res/generators/templates/extension/extensions/montana/ext/platform/android/Rakefile +19 -0
- data/res/generators/templates/iphone_project/root/Entitlements.plist +1 -1
- data/res/generators/templates/iphone_project/root/Info.plist +1 -3
- data/res/generators/templates/iphone_project/root/rhorunner_development.entitlements +1 -1
- data/res/generators/templates/iphone_project/root/rhorunner_production.entitlements +1 -1
- data/rhodes.gemspec +2 -2
- data/version +1 -1
- metadata +244 -71
- data/res/build-tools/maven/bin/mvn.bat +0 -197
- data/res/build-tools/maven/bin/mvnDebug.bat +0 -200
- data/res/build-tools/maven/boot/plexus-classworlds-2.5.2.jar +0 -0
- data/res/build-tools/maven/lib/aether-api-1.0.0.v20140518.jar +0 -0
- data/res/build-tools/maven/lib/aether-api.license +0 -261
- data/res/build-tools/maven/lib/aether-connector-basic-1.0.0.v20140518.jar +0 -0
- data/res/build-tools/maven/lib/aether-connector-basic.license +0 -261
- data/res/build-tools/maven/lib/aether-impl-1.0.0.v20140518.jar +0 -0
- data/res/build-tools/maven/lib/aether-impl.license +0 -261
- data/res/build-tools/maven/lib/aether-spi-1.0.0.v20140518.jar +0 -0
- data/res/build-tools/maven/lib/aether-spi.license +0 -261
- data/res/build-tools/maven/lib/aether-transport-wagon-1.0.0.v20140518.jar +0 -0
- data/res/build-tools/maven/lib/aether-transport-wagon.license +0 -261
- data/res/build-tools/maven/lib/aether-util-1.0.0.v20140518.jar +0 -0
- data/res/build-tools/maven/lib/aether-util.license +0 -261
- data/res/build-tools/maven/lib/cdi-api.license +0 -445
- data/res/build-tools/maven/lib/commons-cli-1.2.jar +0 -0
- data/res/build-tools/maven/lib/commons-io-2.2.jar +0 -0
- data/res/build-tools/maven/lib/commons-lang-2.6.jar +0 -0
- data/res/build-tools/maven/lib/guava-18.0.jar +0 -0
- data/res/build-tools/maven/lib/jsoup-1.7.2.jar +0 -0
- data/res/build-tools/maven/lib/jsoup.license +0 -66
- data/res/build-tools/maven/lib/maven-aether-provider-3.2.5.jar +0 -0
- data/res/build-tools/maven/lib/maven-aether-provider.license +0 -202
- data/res/build-tools/maven/lib/maven-artifact-3.2.5.jar +0 -0
- data/res/build-tools/maven/lib/maven-artifact.license +0 -202
- data/res/build-tools/maven/lib/maven-compat-3.2.5.jar +0 -0
- data/res/build-tools/maven/lib/maven-compat.license +0 -202
- data/res/build-tools/maven/lib/maven-core-3.2.5.jar +0 -0
- data/res/build-tools/maven/lib/maven-core.license +0 -202
- data/res/build-tools/maven/lib/maven-embedder-3.2.5.jar +0 -0
- data/res/build-tools/maven/lib/maven-embedder.license +0 -202
- data/res/build-tools/maven/lib/maven-model-3.2.5.jar +0 -0
- data/res/build-tools/maven/lib/maven-model-builder-3.2.5.jar +0 -0
- data/res/build-tools/maven/lib/maven-model-builder.license +0 -202
- data/res/build-tools/maven/lib/maven-model.license +0 -202
- data/res/build-tools/maven/lib/maven-plugin-api-3.2.5.jar +0 -0
- data/res/build-tools/maven/lib/maven-plugin-api.license +0 -202
- data/res/build-tools/maven/lib/maven-repository-metadata-3.2.5.jar +0 -0
- data/res/build-tools/maven/lib/maven-repository-metadata.license +0 -202
- data/res/build-tools/maven/lib/maven-settings-3.2.5.jar +0 -0
- data/res/build-tools/maven/lib/maven-settings-builder-3.2.5.jar +0 -0
- data/res/build-tools/maven/lib/maven-settings-builder.license +0 -202
- data/res/build-tools/maven/lib/maven-settings.license +0 -202
- data/res/build-tools/maven/lib/org.eclipse.sisu.inject-0.3.0.M1.jar +0 -0
- data/res/build-tools/maven/lib/org.eclipse.sisu.plexus-0.3.0.M1.jar +0 -0
- data/res/build-tools/maven/lib/plexus-cipher.license +0 -445
- data/res/build-tools/maven/lib/plexus-component-annotations-1.5.5.jar +0 -0
- data/res/build-tools/maven/lib/plexus-interpolation-1.21.jar +0 -0
- data/res/build-tools/maven/lib/plexus-sec-dispatcher-1.3.jar +0 -0
- data/res/build-tools/maven/lib/plexus-sec-dispatcher.license +0 -445
- data/res/build-tools/maven/lib/plexus-utils-3.0.20.jar +0 -0
- data/res/build-tools/maven/lib/sisu-guice-3.2.3-no_aop.jar +0 -0
- data/res/build-tools/maven/lib/slf4j-api-1.7.5.jar +0 -0
- data/res/build-tools/maven/lib/slf4j-simple-1.7.5.jar +0 -0
- data/res/build-tools/maven/lib/slf4j-simple.license +0 -190
- data/res/build-tools/maven/lib/wagon-file-2.8.jar +0 -0
- data/res/build-tools/maven/lib/wagon-file.license +0 -202
- data/res/build-tools/maven/lib/wagon-http-2.8-shaded.jar +0 -0
- data/res/build-tools/maven/lib/wagon-http-shared-2.8.jar +0 -0
- data/res/build-tools/maven/lib/wagon-http-shared.license +0 -202
- data/res/build-tools/maven/lib/wagon-http.license +0 -202
- data/res/build-tools/maven/lib/wagon-provider-api-2.8.jar +0 -0
- data/res/build-tools/maven/lib/wagon-provider-api.license +0 -202
@@ -181,7 +181,7 @@ void GoogleGeoCoding::processCommand(IQueueCommand *pCmd)
|
|
181
181
|
Command *cmd = (Command*)pCmd;
|
182
182
|
GeoCodingCallback &cb = *(cmd->callback);
|
183
183
|
|
184
|
-
String url = "
|
184
|
+
String url = "https://maps.googleapis.com/maps/api/geocode/json?";
|
185
185
|
|
186
186
|
if (cmd->is_inverse) {
|
187
187
|
char* buf = new char[2048];
|
@@ -77,7 +77,7 @@ int GoogleMapView::getMapTile(uint64 p_zoom, uint64 p_row, uint64 p_column, void
|
|
77
77
|
//snprintf(buf, sizeof(buf), "http://a.tah.openstreetmap.org/Tiles/tile/%d/%d/%d.png", zoom, (int)p_column, (int)p_row);
|
78
78
|
|
79
79
|
// Google Map
|
80
|
-
snprintf(buf, sizeof(buf), "
|
80
|
+
snprintf(buf, sizeof(buf), "https://maps.googleapis.com/maps/api/staticmap?center=%f,%f&zoom=%d&size=256x280&scale=1&maptype=%s&format=png&sensor=false&mobile=true", center_latitude, center_longitude, zoom, mapType().c_str());
|
81
81
|
|
82
82
|
// Google Map on Blackberry
|
83
83
|
|
@@ -52,7 +52,7 @@ OSMMapView::OSMMapView(IDrawingDevice *device)
|
|
52
52
|
|
53
53
|
String url = RHOCONF().getString("OSM_map_url_roadmap");
|
54
54
|
if (url.empty())
|
55
|
-
url = "
|
55
|
+
url = "https://tile.openstreetmap.org/";
|
56
56
|
if (url[url.size() - 1] != '/')
|
57
57
|
url.push_back('/');
|
58
58
|
|
@@ -873,7 +873,11 @@
|
|
873
873
|
#define RECV_TYPE_ARG4 unsigned int
|
874
874
|
|
875
875
|
/* Define to the function return type for recv. */
|
876
|
+
#ifdef __aarch64__
|
877
|
+
#define RECV_TYPE_RETV ssize_t
|
878
|
+
#else
|
876
879
|
#define RECV_TYPE_RETV int
|
880
|
+
#endif
|
877
881
|
|
878
882
|
/* Define as the return type of signal handlers (`int' or `void'). */
|
879
883
|
#define RETSIGTYPE void
|
@@ -909,31 +913,55 @@
|
|
909
913
|
#define SEND_TYPE_ARG4 unsigned int
|
910
914
|
|
911
915
|
/* Define to the function return type for send. */
|
916
|
+
#ifdef __aarch64__
|
917
|
+
#define SEND_TYPE_RETV size_t
|
918
|
+
#else
|
912
919
|
#define SEND_TYPE_RETV int
|
920
|
+
#endif
|
913
921
|
|
914
922
|
/* The size of `int', as computed by sizeof. */
|
915
923
|
#define SIZEOF_INT 4
|
916
924
|
|
917
925
|
/* The size of `long', as computed by sizeof. */
|
926
|
+
#ifdef __aarch64__
|
927
|
+
#define SIZEOF_LONG 8
|
928
|
+
#else
|
918
929
|
#define SIZEOF_LONG 4
|
930
|
+
#endif
|
919
931
|
|
920
932
|
/* The size of `long long', as computed by sizeof. */
|
921
933
|
/* #undef SIZEOF_LONG_LONG */
|
922
934
|
|
923
935
|
/* The size of `off_t', as computed by sizeof. */
|
936
|
+
#ifdef __aarch64__
|
937
|
+
#define SIZEOF_OFF_T 8
|
938
|
+
#else
|
924
939
|
#define SIZEOF_OFF_T 4
|
940
|
+
#endif
|
925
941
|
|
926
942
|
/* The size of `short', as computed by sizeof. */
|
927
943
|
#define SIZEOF_SHORT 2
|
928
944
|
|
929
945
|
/* The size of `size_t', as computed by sizeof. */
|
946
|
+
#ifdef __aarch64__
|
947
|
+
#define SIZEOF_SIZE_T 8
|
948
|
+
#else
|
930
949
|
#define SIZEOF_SIZE_T 4
|
950
|
+
#endif
|
931
951
|
|
932
952
|
/* The size of `time_t', as computed by sizeof. */
|
953
|
+
#ifdef __aarch64__
|
954
|
+
#define SIZEOF_TIME_T 8
|
955
|
+
#else
|
933
956
|
#define SIZEOF_TIME_T 4
|
957
|
+
#endif
|
934
958
|
|
935
959
|
/* The size of `void*', as computed by sizeof. */
|
960
|
+
#ifdef __aarch64__
|
961
|
+
#define SIZEOF_VOIDP 8
|
962
|
+
#else
|
936
963
|
#define SIZEOF_VOIDP 4
|
964
|
+
#endif
|
937
965
|
|
938
966
|
/* Define to 1 if you have the ANSI C header files. */
|
939
967
|
#define STDC_HEADERS 1
|
@@ -354,7 +354,6 @@ void CDBAdapter::CDBVersion::toFile(const String& strFilePath)const//throws Exce
|
|
354
354
|
|
355
355
|
boolean CDBAdapter::migrateDB(const CDBVersion& dbVer, const CDBVersion& dbNewVer )
|
356
356
|
{
|
357
|
-
if (usingDeprecatedPageSize()) return true;
|
358
357
|
LOG(INFO) + "Try migrate database from " + dbVer.m_strRhoVer + " to " + dbNewVer.m_strRhoVer;
|
359
358
|
if ( (dbVer.m_strRhoVer.find("1.4") == 0)&& (dbNewVer.m_strRhoVer.find("1.5")==0||dbNewVer.m_strRhoVer.find("1.4")==0) )
|
360
359
|
{
|
@@ -363,14 +362,22 @@ boolean CDBAdapter::migrateDB(const CDBVersion& dbVer, const CDBVersion& dbNewVe
|
|
363
362
|
return true;
|
364
363
|
}
|
365
364
|
|
366
|
-
|
367
|
-
|
365
|
+
|
366
|
+
if ( ( (dbVer.m_strRhoVer.find("2.0") == 0) || (dbVer.m_strRhoVer.find("2.1") == 0) || (dbVer.m_strRhoVer.find("2.2") == 0) || (dbVer.m_strRhoVer.find("3.22.0") == 0))&&
|
367
|
+
( (dbNewVer.m_strRhoVer.find("2.0")==0) || (dbNewVer.m_strRhoVer.find("2.1")==0) || (dbNewVer.m_strRhoVer.find("2.2")==0) || (dbNewVer.m_strRhoVer.find("3.22.0")==0) ) )
|
368
368
|
{
|
369
369
|
LOG(INFO) + "No migration required from " + dbVer.m_strRhoVer + " to " + dbNewVer.m_strRhoVer;
|
370
370
|
dbNewVer.toFile(m_strDbVerPath);
|
371
371
|
return true;
|
372
372
|
}
|
373
373
|
|
374
|
+
// we should never visit this code, but ...
|
375
|
+
if (usingDeprecatedPageSize()) {
|
376
|
+
LOG(INFO) + "No migration required with special use_deprecated_encryption flag in build.yml from " + dbVer.m_strRhoVer + " to " + dbNewVer.m_strRhoVer;
|
377
|
+
//dbNewVer.toFile(m_strDbVerPath);
|
378
|
+
return true;
|
379
|
+
}
|
380
|
+
|
374
381
|
//1.2.x -> 1.5.x,1.4.x
|
375
382
|
if ( (dbVer.m_strRhoVer.find("1.2") == 0)&& (dbNewVer.m_strRhoVer.find("1.5")==0||dbNewVer.m_strRhoVer.find("1.4")==0) )
|
376
383
|
{
|
@@ -438,17 +445,18 @@ void CDBAdapter::checkDBVersion(String& strRhoDBVer)
|
|
438
445
|
// bDbFormatChanged = true;
|
439
446
|
}
|
440
447
|
|
441
|
-
|
448
|
+
if ( bDbFormatChanged ) {
|
442
449
|
LOG(INFO) + "Reset Database( format changed ):" + m_strDbPath;
|
443
|
-
|
444
|
-
if ( bRhoReset && !bAppReset && !bDbFormatChanged )
|
450
|
+
}
|
451
|
+
if ( bRhoReset && !bAppReset && !bDbFormatChanged ) {
|
445
452
|
bRhoReset = !migrateDB(dbVer, dbNewVer);
|
453
|
+
}
|
446
454
|
|
447
|
-
|
448
|
-
|
449
|
-
|
455
|
+
LOG(INFO) + "bRhoReset: " + bRhoReset;
|
456
|
+
LOG(INFO) + "bAppReset: " + bAppReset;
|
457
|
+
LOG(INFO) + "bDbFormatChanged: " + bDbFormatChanged;
|
450
458
|
|
451
|
-
|
459
|
+
//LOG(INFO) + "Reset Database( format changed ):" + m_strDbPath;
|
452
460
|
|
453
461
|
if ( bRhoReset || bAppReset || bDbFormatChanged )
|
454
462
|
{
|
@@ -315,7 +315,7 @@ String CJSONEntry::getStringObject( const char* name, const char* szDefValue )
|
|
315
315
|
}
|
316
316
|
else {
|
317
317
|
const char* str = json_object_get_string(obj);
|
318
|
-
return String(str);
|
318
|
+
return String((0==str)?szDefValue:str);
|
319
319
|
}
|
320
320
|
}
|
321
321
|
else if (szDefValue != 0 )
|
@@ -336,7 +336,7 @@ String CJSONEntry::getStringObject()
|
|
336
336
|
}
|
337
337
|
else {
|
338
338
|
const char* str = json_object_get_string(m_object);
|
339
|
-
return String(str);
|
339
|
+
return String((0==str)?"":str);
|
340
340
|
}
|
341
341
|
}
|
342
342
|
|
@@ -321,6 +321,7 @@ CHttpServer::CHttpServer(int port, String const &root, String const &user_root,
|
|
321
321
|
, m_pQueue(0)
|
322
322
|
#endif
|
323
323
|
{
|
324
|
+
//generator = rho_get_RhoClassFactory()->createNetRequestImpl();
|
324
325
|
m_enable_external_access = enable_external_access;
|
325
326
|
m_started_as_separated_simple_server = started_as_separated_simple_server;
|
326
327
|
CHttpServer(port, root, user_root, runtime_root);
|
@@ -352,6 +353,11 @@ CHttpServer::CHttpServer(int port, String const &root, String const &user_root,
|
|
352
353
|
m_strRhoUserRoot = m_userroot;
|
353
354
|
m_listener = INVALID_SOCKET;
|
354
355
|
m_sock = INVALID_SOCKET;
|
356
|
+
|
357
|
+
#if defined(OS_WINDOWS_DESKTOP) || defined(OS_ANDROID)
|
358
|
+
m_generator = rho_conf_getInt("disable_external_access") ? rho_get_RhoClassFactory()->createSecurityTokenGenerator() : nullptr;
|
359
|
+
secureTokenExists = false;
|
360
|
+
#endif
|
355
361
|
}
|
356
362
|
|
357
363
|
CHttpServer::CHttpServer(int port, String const &root)
|
@@ -375,6 +381,11 @@ CHttpServer::CHttpServer(int port, String const &root)
|
|
375
381
|
m_strRhoUserRoot = m_root.substr(0, m_root.length()-5);
|
376
382
|
m_listener = INVALID_SOCKET;
|
377
383
|
m_sock = INVALID_SOCKET;
|
384
|
+
|
385
|
+
#if defined(OS_WINDOWS_DESKTOP) || defined(OS_ANDROID)
|
386
|
+
m_generator = rho_conf_getInt("disable_external_access") ? rho_get_RhoClassFactory()->createSecurityTokenGenerator() : nullptr;
|
387
|
+
secureTokenExists = false;
|
388
|
+
#endif
|
378
389
|
}
|
379
390
|
|
380
391
|
CHttpServer::~CHttpServer()
|
@@ -679,7 +690,9 @@ bool CHttpServer::run()
|
|
679
690
|
if (verbose) {
|
680
691
|
LOG(INFO) + "GC Start.";
|
681
692
|
}
|
693
|
+
rho_ruby_gc_lock();
|
682
694
|
rb_gc();
|
695
|
+
rho_ruby_gc_release();
|
683
696
|
if (verbose) {
|
684
697
|
LOG(INFO) + "GC End.";
|
685
698
|
}
|
@@ -959,6 +972,17 @@ bool CHttpServer::process(SOCKET sock)
|
|
959
972
|
return false;
|
960
973
|
}
|
961
974
|
|
975
|
+
#if defined(OS_WINDOWS_DESKTOP) || defined(OS_ANDROID)
|
976
|
+
if(m_generator && !secureTokenExists)
|
977
|
+
{
|
978
|
+
if (verbose) RAWLOG_ERROR("Rhodes service is only accessible via Rhodes application.");
|
979
|
+
send_response(create_response("403 Forbidden: Rhodes service is only accessible via Rhodes application."));
|
980
|
+
return false;
|
981
|
+
}
|
982
|
+
|
983
|
+
secureTokenExists = false;
|
984
|
+
#endif
|
985
|
+
|
962
986
|
if ( !String_endsWith( uri, "js_api_entrypoint" ) )
|
963
987
|
if (verbose) RAWLOG_INFO1("Process URI: '%s'", uri.c_str());
|
964
988
|
|
@@ -1012,6 +1036,12 @@ bool CHttpServer::parse_request(String &method, String &uri, String &query, Head
|
|
1012
1036
|
Header hdr;
|
1013
1037
|
if (!parse_header(line, hdr) || hdr.name.empty())
|
1014
1038
|
return false;
|
1039
|
+
|
1040
|
+
#if defined(OS_WINDOWS_DESKTOP) || defined(OS_ANDROID)
|
1041
|
+
if (m_generator && hdr.name == SECURITY_HEADER)
|
1042
|
+
secureTokenExists = hdr.value.find(m_generator->getSecurityToken()) != std::string::npos;
|
1043
|
+
#endif
|
1044
|
+
|
1015
1045
|
headers.push_back(hdr);
|
1016
1046
|
|
1017
1047
|
String low;
|
@@ -1855,7 +1885,9 @@ bool CDirectHttpRequestQueue::run( )
|
|
1855
1885
|
if ( bProcessed )
|
1856
1886
|
{
|
1857
1887
|
LOG(INFO) + "GC Start.";
|
1888
|
+
rho_ruby_gc_lock();
|
1858
1889
|
rb_gc();
|
1890
|
+
rho_ruby_gc_release();
|
1859
1891
|
LOG(INFO) + "GC End.";
|
1860
1892
|
}
|
1861
1893
|
}
|
@@ -32,6 +32,10 @@
|
|
32
32
|
|
33
33
|
#include "common/RhoThread.h"
|
34
34
|
|
35
|
+
#if defined(OS_WINDOWS_DESKTOP) || defined(OS_ANDROID)
|
36
|
+
#include "common/ISecurityTokenGenerator.h"
|
37
|
+
#endif
|
38
|
+
|
35
39
|
#if !defined(WINDOWS_PLATFORM)
|
36
40
|
typedef int SOCKET;
|
37
41
|
# define INVALID_SOCKET -1
|
@@ -47,6 +51,12 @@ typedef int SOCKET;
|
|
47
51
|
# define RHO_NET_ERROR_CODE ::WSAGetLastError()
|
48
52
|
#endif
|
49
53
|
|
54
|
+
#if defined(OS_WINDOWS_DESKTOP)
|
55
|
+
#define SECURITY_HEADER "RHO-SECURE-TOKEN"
|
56
|
+
#elif defined(OS_ANDROID)
|
57
|
+
#define SECURITY_HEADER "User-Agent"
|
58
|
+
#endif
|
59
|
+
|
50
60
|
namespace rho
|
51
61
|
{
|
52
62
|
namespace net
|
@@ -184,6 +194,11 @@ private:
|
|
184
194
|
bool m_enable_external_access;
|
185
195
|
bool m_started_as_separated_simple_server;
|
186
196
|
|
197
|
+
#if defined(OS_WINDOWS_DESKTOP) || defined(OS_ANDROID)
|
198
|
+
const rho::common::ISecurityTokenGenerator* m_generator;
|
199
|
+
bool secureTokenExists;
|
200
|
+
#endif
|
201
|
+
|
187
202
|
#ifdef OS_MACOSX
|
188
203
|
common::CMutex m_mxSyncRequest;
|
189
204
|
ResponseWriter* m_localResponseWriter;
|
@@ -33,6 +33,7 @@
|
|
33
33
|
|
34
34
|
#include "common/RhoConf.h"
|
35
35
|
#include "logging/RhoLog.h"
|
36
|
+
#include "common/ISecurityTokenGenerator.h"
|
36
37
|
|
37
38
|
#undef DEFAULT_LOGCATEGORY
|
38
39
|
#define DEFAULT_LOGCATEGORY "NetRequestTimer"
|
@@ -161,11 +162,44 @@ rho::net::CNetResponseWrapper CNetRequestWrapper::pullCookies(const String& strU
|
|
161
162
|
|
162
163
|
rho::net::CNetResponseWrapper CNetRequestWrapper::doRequest( const char* method, const String& strUrl, const String& strBody, IRhoSession* oSession, Hashtable<String,String>* pHeaders )
|
163
164
|
{
|
165
|
+
#if defined(OS_WINDOWS_DESKTOP) || defined(OS_ANDROID)
|
166
|
+
const rho::common::ISecurityTokenGenerator* generator = rho_conf_getInt("disable_external_access") ?
|
167
|
+
rho_get_RhoClassFactory()->createSecurityTokenGenerator() : nullptr;
|
168
|
+
|
169
|
+
Hashtable<String,String> headers;
|
170
|
+
if(generator)
|
171
|
+
{
|
172
|
+
if(!pHeaders)
|
173
|
+
pHeaders = &headers;
|
174
|
+
#if defined(OS_ANDROID)
|
175
|
+
pHeaders->insert(std::make_pair(SECURITY_HEADER, "RhodesAgent RHO-SECURE-TOKEN=" + generator->getSecurityToken()));
|
176
|
+
#elif defined(OS_WINDOWS_DESKTOP)
|
177
|
+
pHeaders->insert(std::make_pair(SECURITY_HEADER, generator->getSecurityToken()));
|
178
|
+
#endif
|
179
|
+
}
|
180
|
+
#endif
|
164
181
|
return m_pReqImpl->doRequest(method, strUrl, strBody, oSession, pHeaders );
|
165
182
|
}
|
166
183
|
|
167
184
|
rho::net::CNetResponseWrapper CNetRequestWrapper::pushMultipartData(const String& strUrl, VectorPtr<CMultipartItem*>& arItems, IRhoSession* oSession, Hashtable<String,String>* pHeaders)
|
168
185
|
{
|
186
|
+
#if defined(OS_WINDOWS_DESKTOP) || defined(OS_ANDROID)
|
187
|
+
const rho::common::ISecurityTokenGenerator* generator = rho_conf_getInt("disable_external_access") ?
|
188
|
+
rho_get_RhoClassFactory()->createSecurityTokenGenerator() : nullptr;
|
189
|
+
|
190
|
+
Hashtable<String,String> headers;
|
191
|
+
if(generator)
|
192
|
+
{
|
193
|
+
if(!pHeaders)
|
194
|
+
pHeaders = &headers;
|
195
|
+
#if defined(OS_ANDROID)
|
196
|
+
pHeaders->insert(std::make_pair(SECURITY_HEADER, "RhodesAgent RHO-SECURE-TOKEN=" + generator->getSecurityToken()));
|
197
|
+
#elif defined(OS_WINDOWS_DESKTOP)
|
198
|
+
pHeaders->insert(std::make_pair(SECURITY_HEADER, generator->getSecurityToken()));
|
199
|
+
#endif
|
200
|
+
}
|
201
|
+
|
202
|
+
#endif
|
169
203
|
return m_pReqImpl->pushMultipartData(strUrl, arItems, oSession, pHeaders);
|
170
204
|
}
|
171
205
|
|
@@ -182,6 +216,12 @@ rho::net::CNetResponseWrapper CNetRequestWrapper::pushMultipartData(const String
|
|
182
216
|
|
183
217
|
rho::net::CNetResponseWrapper CNetRequestWrapper::pullFile(const String& strUrl, const String& strFilePath, IRhoSession* oSession, Hashtable<String,String>* pHeaders,bool overwriteFile,bool createFolders, bool* pFileExistsFlag )
|
184
218
|
{
|
219
|
+
|
220
|
+
#if defined(OS_WINDOWS_DESKTOP) || defined(OS_ANDROID)
|
221
|
+
const rho::common::ISecurityTokenGenerator* generator = rho_conf_getInt("disable_external_access") ?
|
222
|
+
rho_get_RhoClassFactory()->createSecurityTokenGenerator() : nullptr;
|
223
|
+
#endif
|
224
|
+
|
185
225
|
if (!overwriteFile && common::CRhoFile::isFileExist(strFilePath.c_str())) {
|
186
226
|
LOGC(WARNING,"Net") + "pullFile: " + strFilePath + " already exists, won't download since overwrite flag is not set";
|
187
227
|
|
@@ -213,6 +253,7 @@ rho::net::CNetResponseWrapper CNetRequestWrapper::pullFile(const String& strUrl,
|
|
213
253
|
//don't request headers of will overwrite anyway
|
214
254
|
if (!overwriteFile) {
|
215
255
|
Hashtable<String, String> h;
|
256
|
+
|
216
257
|
::getNetRequest().doRequest("HEAD", strUrl, "", oSession, &h );
|
217
258
|
|
218
259
|
if ( h.containsKey("last-modified") )
|
@@ -242,6 +283,19 @@ rho::net::CNetResponseWrapper CNetRequestWrapper::pullFile(const String& strUrl,
|
|
242
283
|
return m_pReqImpl->createEmptyNetResponse();
|
243
284
|
}
|
244
285
|
|
286
|
+
|
287
|
+
#if defined(OS_WINDOWS_DESKTOP) || defined(OS_ANDROID)
|
288
|
+
Hashtable<String,String> headers;
|
289
|
+
if(!pHeaders)
|
290
|
+
pHeaders = &headers;
|
291
|
+
if(generator)
|
292
|
+
#if defined(OS_ANDROID)
|
293
|
+
pHeaders->insert(std::make_pair(SECURITY_HEADER, "RhodesAgent RHO-SECURE-TOKEN=" + generator->getSecurityToken()));
|
294
|
+
#elif defined(OS_WINDOWS_DESKTOP)
|
295
|
+
pHeaders->insert(std::make_pair(SECURITY_HEADER, generator->getSecurityToken()));
|
296
|
+
#endif
|
297
|
+
|
298
|
+
#endif
|
245
299
|
INetResponse* pResp = m_pReqImpl->pullFile( strUrl, tmpFile, oSession, pHeaders );
|
246
300
|
|
247
301
|
tmpFile.close();
|
@@ -30,6 +30,8 @@
|
|
30
30
|
#include "common/RhoAppAdapter.h"
|
31
31
|
#include "json/JSONIterator.h"
|
32
32
|
#include "MainWindowImpl.h"
|
33
|
+
|
34
|
+
#ifndef RHODES_VERSION_LIBRARY
|
33
35
|
#undef null
|
34
36
|
#if QT_VERSION >= 0x050000
|
35
37
|
#ifndef OS_SAILFISH
|
@@ -38,6 +40,7 @@
|
|
38
40
|
#else
|
39
41
|
#include <QSound>
|
40
42
|
#endif
|
43
|
+
#endif //RHODES_VERSION_LIBRARY
|
41
44
|
|
42
45
|
using namespace rho;
|
43
46
|
using namespace rho::json;
|
@@ -46,12 +49,14 @@ extern "C" {
|
|
46
49
|
|
47
50
|
void alert_show_status(const char* szTitle, const char* szMessage, const char* szHide)
|
48
51
|
{
|
52
|
+
#ifndef RHODES_VERSION_LIBRARY
|
49
53
|
rho::String message = szMessage ? szMessage : "";
|
50
54
|
rho::String title = szTitle ? szTitle : "";
|
51
55
|
rho::String callback = "";
|
52
56
|
rho::String icon = "";
|
53
57
|
Vector<CAlertParams::CAlertButton> buttons;
|
54
58
|
CMainWindow::getInstance()->alertShowPopup(new CAlertParams(title, message, callback, icon, buttons, CAlertParams::DLG_STATUS ));
|
59
|
+
#endif
|
55
60
|
}
|
56
61
|
/*
|
57
62
|
void alert_show_popup(rho_param *p)
|
@@ -141,16 +146,19 @@ void alert_show_popup(rho_param *p)
|
|
141
146
|
|
142
147
|
extern "C" void alert_show_status_ex(const char* szTitle, const char* szMessage, const char* szHide, rho::apiGenerator::CMethodResult& oResult)
|
143
148
|
{
|
149
|
+
#ifndef RHODES_VERSION_LIBRARY
|
144
150
|
String message = szMessage ? szMessage : "";
|
145
151
|
String title = szTitle ? szTitle : "";
|
146
152
|
String icon = "";
|
147
153
|
Vector<CAlertParams::CAlertButton> buttons;
|
148
154
|
//buttons.addElement( CAlertParams::CAlertButton(szHide, "") );
|
149
155
|
CMainWindow::getInstance()->alertShowPopup(new CAlertParams(title, message, icon, oResult, buttons, CAlertParams::DLG_STATUS ));
|
156
|
+
#endif
|
150
157
|
}
|
151
158
|
|
152
159
|
extern "C" void alert_show_popup_ex(const rho::Hashtable<rho::String, rho::String>& propertyMap, rho::apiGenerator::CMethodResult& oResult)
|
153
160
|
{
|
161
|
+
#ifndef RHODES_VERSION_LIBRARY
|
154
162
|
String title, message, icon;
|
155
163
|
Vector<CAlertParams::CAlertButton> buttons;
|
156
164
|
if (propertyMap.containsKey("message"))
|
@@ -184,6 +192,7 @@ extern "C" void alert_show_popup_ex(const rho::Hashtable<rho::String, rho::Strin
|
|
184
192
|
}
|
185
193
|
}
|
186
194
|
CMainWindow::getInstance()->alertShowPopup(new CAlertParams(title, message, icon, oResult, buttons, CAlertParams::DLG_CUSTOM));
|
195
|
+
#endif
|
187
196
|
}
|
188
197
|
|
189
198
|
void alert_vibrate(int duration_ms) {
|
@@ -192,6 +201,7 @@ void alert_vibrate(int duration_ms) {
|
|
192
201
|
|
193
202
|
void alert_play_file(char* file_name, char *media_type)
|
194
203
|
{
|
204
|
+
#ifndef RHODES_VERSION_LIBRARY
|
195
205
|
#ifndef OS_SAILFISH
|
196
206
|
RAWLOGC_INFO("AlertImpl", "OnAlertPlayFile: trying to play file");
|
197
207
|
String path = file_name;
|
@@ -214,11 +224,14 @@ void alert_play_file(char* file_name, char *media_type)
|
|
214
224
|
}
|
215
225
|
#endif
|
216
226
|
#endif
|
227
|
+
#endif //RHODES_VERSION_LIBRARY
|
217
228
|
}
|
218
229
|
|
219
230
|
void alert_hide_popup()
|
220
231
|
{
|
232
|
+
#ifndef RHODES_VERSION_LIBRARY
|
221
233
|
CMainWindow::getInstance()->alertHidePopup();
|
234
|
+
#endif
|
222
235
|
}
|
223
236
|
|
224
237
|
} //extern "C"
|