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
@@ -1685,8 +1685,9 @@
|
|
1685
1685
|
1DEB922308733DC00010E9CD /* Debug */ = {
|
1686
1686
|
isa = XCBuildConfiguration;
|
1687
1687
|
buildSettings = {
|
1688
|
-
GCC_C_LANGUAGE_STANDARD = c99;
|
1689
1688
|
CLANG_CXX_LIBRARY = "libc++";
|
1689
|
+
ENABLE_BITCODE = YES;
|
1690
|
+
GCC_C_LANGUAGE_STANDARD = c99;
|
1690
1691
|
GCC_OPTIMIZATION_LEVEL = 0;
|
1691
1692
|
GCC_WARN_ABOUT_RETURN_TYPE = YES;
|
1692
1693
|
GCC_WARN_UNUSED_VARIABLE = YES;
|
@@ -1697,11 +1698,11 @@
|
|
1697
1698
|
"$(RHO_ROOT)/platform/shared/ruby/iphone",
|
1698
1699
|
"$(RHO_ROOT)/platform/shared",
|
1699
1700
|
"$(RHO_ROOT)/platform/iphone/Classes/**",
|
1700
|
-
/Users/MOHUS/rhodes/platform/shared/common,
|
1701
|
-
/Users/MOHUS/rhodes/platform/shared/rubyext,
|
1702
|
-
/Users/MOHUS/rhodes/platform/shared/ruby/include,
|
1703
|
-
/Users/MOHUS/rhodes/platform/shared/ruby/iphone,
|
1704
|
-
/Users/MOHUS/rhodes/platform/shared,
|
1701
|
+
/Users/MOHUS/rhodes.extract_ruby_to_lib/platform/shared/common,
|
1702
|
+
/Users/MOHUS/rhodes.extract_ruby_to_lib/platform/shared/rubyext,
|
1703
|
+
/Users/MOHUS/rhodes.extract_ruby_to_lib/platform/shared/ruby/include,
|
1704
|
+
/Users/MOHUS/rhodes.extract_ruby_to_lib/platform/shared/ruby/iphone,
|
1705
|
+
/Users/MOHUS/rhodes.extract_ruby_to_lib/platform/shared,
|
1705
1706
|
);
|
1706
1707
|
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
|
1707
1708
|
ONLY_ACTIVE_ARCH = NO;
|
@@ -1714,8 +1715,9 @@
|
|
1714
1715
|
1DEB922408733DC00010E9CD /* Release */ = {
|
1715
1716
|
isa = XCBuildConfiguration;
|
1716
1717
|
buildSettings = {
|
1717
|
-
GCC_C_LANGUAGE_STANDARD = c99;
|
1718
1718
|
CLANG_CXX_LIBRARY = "libc++";
|
1719
|
+
ENABLE_BITCODE = YES;
|
1720
|
+
GCC_C_LANGUAGE_STANDARD = c99;
|
1719
1721
|
GCC_WARN_ABOUT_RETURN_TYPE = YES;
|
1720
1722
|
GCC_WARN_UNUSED_VARIABLE = YES;
|
1721
1723
|
HEADER_SEARCH_PATHS = (
|
@@ -1759,12 +1761,12 @@
|
|
1759
1761
|
"$(RHO_ROOT)/platform/shared/ruby/iphone",
|
1760
1762
|
"$(RHO_ROOT)/platform/shared",
|
1761
1763
|
"$(RHO_ROOT)/platform/iphone/Classes/**",
|
1762
|
-
|
1763
|
-
|
1764
|
-
|
1765
|
-
|
1766
|
-
|
1767
|
-
|
1764
|
+
../../../../../../platform/shared/common,
|
1765
|
+
../../../../../../platform/shared/rubyext,
|
1766
|
+
../../../../../../platform/shared/ruby/include,
|
1767
|
+
../../../../../../platform/shared/ruby/iphone,
|
1768
|
+
../../../../../../platform/shared,
|
1769
|
+
../../../../../../platform/iphone/Classes,
|
1768
1770
|
);
|
1769
1771
|
INSTALL_PATH = /usr/local/lib;
|
1770
1772
|
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
|
@@ -1790,12 +1792,12 @@
|
|
1790
1792
|
"$(RHO_ROOT)/platform/shared/ruby/iphone",
|
1791
1793
|
"$(RHO_ROOT)/platform/shared",
|
1792
1794
|
"$(RHO_ROOT)/platform/iphone/Classes/**",
|
1793
|
-
|
1794
|
-
|
1795
|
-
|
1796
|
-
|
1797
|
-
|
1798
|
-
|
1795
|
+
../../../../../../platform/shared/common,
|
1796
|
+
../../../../../../platform/shared/rubyext,
|
1797
|
+
../../../../../../platform/shared/ruby/include,
|
1798
|
+
../../../../../../platform/shared/ruby/iphone,
|
1799
|
+
../../../../../../platform/shared,
|
1800
|
+
../../../../../../platform/iphone/Classes,
|
1799
1801
|
);
|
1800
1802
|
INSTALL_PATH = /usr/local/lib;
|
1801
1803
|
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
|
@@ -16,6 +16,7 @@
|
|
16
16
|
-(void) playFile:(NSString*)path media_type:(NSString*)media_type methodResult:(id<IMethodResult>)methodResult;
|
17
17
|
-(void) beep:(NSDictionary*)propertyMap methodResult:(id<IMethodResult>)methodResult;
|
18
18
|
-(void) vibrate:(int)duration methodResult:(id<IMethodResult>)methodResult;
|
19
|
+
-(void) setScheduler:(NSDictionary*)propertyMap methodResult:(id<IMethodResult>)methodResult;
|
19
20
|
|
20
21
|
|
21
22
|
|
@@ -13,8 +13,228 @@
|
|
13
13
|
#undef DEFAULT_LOGCATEGORY
|
14
14
|
#define DEFAULT_LOGCATEGORY "Alert"
|
15
15
|
|
16
|
+
#define NOTIFICATION_ID @"RhoNotification"
|
17
|
+
|
16
18
|
static UIAlertView *currentAlert = nil;
|
17
19
|
static BOOL is_current_alert_status = NO;
|
20
|
+
static BOOL granted_notification = NO;
|
21
|
+
|
22
|
+
@interface NotificationReminder : NSObject<UNUserNotificationCenterDelegate> {
|
23
|
+
id<IMethodResult> callbackHolder;
|
24
|
+
UNUserNotificationCenter* center;
|
25
|
+
NSString* title;
|
26
|
+
NSString* message;
|
27
|
+
NSInteger hour;
|
28
|
+
NSInteger minute;
|
29
|
+
NSInteger seconds;
|
30
|
+
}
|
31
|
+
|
32
|
+
- (id)init;
|
33
|
+
- (void)setCallback:(id<IMethodResult>)value;
|
34
|
+
- (void)setReminder:(NSDictionary*)propertyMap methodResult:(id<IMethodResult>)methodResult;
|
35
|
+
- (void)dealloc;
|
36
|
+
- (void)removeScheduler;
|
37
|
+
- (bool)checkTime;
|
38
|
+
- (bool)isCurrentTime;
|
39
|
+
- (void)userNotificationCenter:(UNUserNotificationCenter *)center
|
40
|
+
didReceiveNotificationResponse:(UNNotificationResponse *)response
|
41
|
+
withCompletionHandler:(void (^)(void))completionHandler;
|
42
|
+
- (void)userNotificationCenter:(UNUserNotificationCenter *)center
|
43
|
+
willPresentNotification:(UNNotification *)notification
|
44
|
+
withCompletionHandler:(void (^)(UNNotificationPresentationOptions options))completionHandler;
|
45
|
+
|
46
|
+
+ (NotificationReminder*)instance;
|
47
|
+
|
48
|
+
@end
|
49
|
+
|
50
|
+
static NotificationReminder* reminder = nil;
|
51
|
+
|
52
|
+
@implementation NotificationReminder
|
53
|
+
|
54
|
+
- (id)init {
|
55
|
+
callbackHolder = nil;
|
56
|
+
center = [UNUserNotificationCenter currentNotificationCenter];
|
57
|
+
center.delegate = self;
|
58
|
+
hour = -1;
|
59
|
+
minute = -1;
|
60
|
+
seconds = -1;
|
61
|
+
|
62
|
+
if(granted_notification == NO && center)
|
63
|
+
{
|
64
|
+
dispatch_semaphore_t question_semaphore = dispatch_semaphore_create(0);
|
65
|
+
dispatch_async(dispatch_get_main_queue(), ^{
|
66
|
+
[center requestAuthorizationWithOptions:(UNAuthorizationOptionAlert + UNAuthorizationOptionSound)
|
67
|
+
completionHandler:^(BOOL granted, NSError * _Nullable error) {
|
68
|
+
granted_notification = granted;
|
69
|
+
dispatch_semaphore_signal(question_semaphore);
|
70
|
+
}];
|
71
|
+
});
|
72
|
+
dispatch_semaphore_wait(question_semaphore, DISPATCH_TIME_FOREVER);
|
73
|
+
dispatch_release(question_semaphore);
|
74
|
+
}
|
75
|
+
|
76
|
+
return self;
|
77
|
+
}
|
78
|
+
|
79
|
+
+ (NotificationReminder*)instance {
|
80
|
+
static dispatch_once_t onceToken;
|
81
|
+
dispatch_once(&onceToken, ^{
|
82
|
+
reminder = [[NotificationReminder alloc] init];
|
83
|
+
});
|
84
|
+
return reminder;
|
85
|
+
}
|
86
|
+
|
87
|
+
- (void)setCallback:(id<IMethodResult>)value {
|
88
|
+
callbackHolder = value;
|
89
|
+
}
|
90
|
+
|
91
|
+
- (bool)checkTime {
|
92
|
+
return (hour >= 0 && hour <= 23) && (minute >= 0 && minute <= 59) && (seconds >= 0 && seconds <= 59);
|
93
|
+
}
|
94
|
+
|
95
|
+
- (bool)isCurrentTime {
|
96
|
+
return hour == -1 || minute == -1 || seconds == -1;
|
97
|
+
}
|
98
|
+
|
99
|
+
- (void)removeScheduler {
|
100
|
+
@synchronized(self)
|
101
|
+
{
|
102
|
+
if(center)
|
103
|
+
{
|
104
|
+
//NSArray* ids = [NSArray arrayWithObjects:NOTIFICATION_ID];
|
105
|
+
//[center removePendingNotificationRequestsWithIdentifiers:ids];
|
106
|
+
[center removeAllPendingNotificationRequests];
|
107
|
+
}
|
108
|
+
}
|
109
|
+
}
|
110
|
+
|
111
|
+
- (void)dealloc {
|
112
|
+
callbackHolder = nil;
|
113
|
+
center = nil;
|
114
|
+
title = @"";
|
115
|
+
message = @"";
|
116
|
+
reminder = nil;
|
117
|
+
[super dealloc];
|
118
|
+
}
|
119
|
+
|
120
|
+
- (void)userNotificationCenter:(UNUserNotificationCenter *)center
|
121
|
+
didReceiveNotificationResponse:(UNNotificationResponse *)response
|
122
|
+
withCompletionHandler:(void (^)(void))completionHandler {
|
123
|
+
if ([response.actionIdentifier isEqualToString:UNNotificationDismissActionIdentifier]) {
|
124
|
+
// The user dismissed the notification without taking action.
|
125
|
+
}
|
126
|
+
else if ([response.actionIdentifier isEqualToString:UNNotificationDefaultActionIdentifier]) {
|
127
|
+
}
|
128
|
+
|
129
|
+
}
|
130
|
+
|
131
|
+
- (void)userNotificationCenter:(UNUserNotificationCenter *)center
|
132
|
+
willPresentNotification:(UNNotification *)notification
|
133
|
+
withCompletionHandler:(void (^)(UNNotificationPresentationOptions options))completionHandler
|
134
|
+
{
|
135
|
+
NSLog(@"Notification recived");
|
136
|
+
completionHandler(UNAuthorizationOptionAlert + UNAuthorizationOptionSound);
|
137
|
+
}
|
138
|
+
|
139
|
+
-(void) setReminder:(NSDictionary*)propertyMap methodResult:(id<IMethodResult>)methodResult {
|
140
|
+
|
141
|
+
if(granted_notification == NO)
|
142
|
+
{
|
143
|
+
NSLog(@"Waning!!! Notification not granted!!!");
|
144
|
+
}
|
145
|
+
|
146
|
+
[self removeScheduler];
|
147
|
+
|
148
|
+
NSInteger interval = 0;
|
149
|
+
BOOL repeats = NO;
|
150
|
+
|
151
|
+
if ([propertyMap isKindOfClass:[NSDictionary class]])
|
152
|
+
{
|
153
|
+
NSEnumerator* enumerator = [propertyMap keyEnumerator];
|
154
|
+
NSObject* obj = nil;
|
155
|
+
|
156
|
+
while ((obj = [enumerator nextObject]) != nil)
|
157
|
+
{
|
158
|
+
NSString* objKey = (NSString*)obj;
|
159
|
+
NSObject* objVal = [propertyMap objectForKey:objKey];
|
160
|
+
|
161
|
+
if ([objKey isEqualToString:HK_TITLE]) {
|
162
|
+
title = (NSString*)objVal;
|
163
|
+
} else if ([objKey isEqualToString:HK_MESSAGE]) {
|
164
|
+
message = (NSString*)objVal;
|
165
|
+
} else if ([objKey isEqualToString:HK_INTERVAL]) {
|
166
|
+
interval = [(NSString*)objVal integerValue];
|
167
|
+
} else if ([objKey isEqualToString:HK_REPEATS]) {
|
168
|
+
repeats = [(NSString*)objVal boolValue];
|
169
|
+
} else if ([objKey isEqualToString:HK_START])
|
170
|
+
{
|
171
|
+
if([objVal isKindOfClass:[NSDictionary class]])
|
172
|
+
{
|
173
|
+
NSDictionary* timeMap = (NSDictionary*)objVal;
|
174
|
+
|
175
|
+
objVal = [timeMap objectForKey:HK_HOUR];
|
176
|
+
if(objVal && [objVal isKindOfClass:[NSNumber class]])
|
177
|
+
hour = [objVal integerValue];
|
178
|
+
else hour = -1;
|
179
|
+
|
180
|
+
objVal = [timeMap objectForKey:HK_MINUTE];
|
181
|
+
if(objVal && [objVal isKindOfClass:[NSNumber class]])
|
182
|
+
minute = [objVal integerValue];
|
183
|
+
else minute = -1;
|
184
|
+
|
185
|
+
objVal = [timeMap objectForKey:HK_SECONDS];
|
186
|
+
if(objVal && [objVal isKindOfClass:[NSNumber class]])
|
187
|
+
seconds = [objVal integerValue];
|
188
|
+
else seconds = -1;
|
189
|
+
}
|
190
|
+
else
|
191
|
+
{
|
192
|
+
hour = -1;
|
193
|
+
minute = -1;
|
194
|
+
seconds = -1;
|
195
|
+
}
|
196
|
+
}
|
197
|
+
}
|
198
|
+
}
|
199
|
+
|
200
|
+
UNMutableNotificationContent* content = [[UNMutableNotificationContent alloc] init];
|
201
|
+
content.title = title;//[NSString localizedUserNotificationStringForKey:title arguments:nil];
|
202
|
+
content.body = message;//[NSString localizedUserNotificationStringForKey:message arguments:nil];
|
203
|
+
content.sound = [UNNotificationSound defaultSound];
|
204
|
+
|
205
|
+
UNNotificationTrigger* trigger = nil;
|
206
|
+
|
207
|
+
if(![self isCurrentTime])
|
208
|
+
{
|
209
|
+
if(![self checkTime])
|
210
|
+
{
|
211
|
+
NSLog(@"Ivalid parameter for time!!!");
|
212
|
+
return;
|
213
|
+
}
|
214
|
+
NSDateComponents* date = [[NSDateComponents alloc] init];
|
215
|
+
date.hour = hour;
|
216
|
+
date.minute = minute;
|
217
|
+
date.second = seconds;
|
218
|
+
trigger = [UNCalendarNotificationTrigger triggerWithDateMatchingComponents:date repeats:repeats];
|
219
|
+
[date dealloc];
|
220
|
+
}
|
221
|
+
else
|
222
|
+
{
|
223
|
+
trigger = [UNTimeIntervalNotificationTrigger triggerWithTimeInterval:interval repeats: repeats];
|
224
|
+
}
|
225
|
+
|
226
|
+
UNNotificationRequest* request = [UNNotificationRequest
|
227
|
+
requestWithIdentifier: NOTIFICATION_ID content:content trigger:trigger];
|
228
|
+
|
229
|
+
[center addNotificationRequest:request withCompletionHandler:^(NSError * _Nullable error) {
|
230
|
+
if (error != nil) {
|
231
|
+
NSLog(@"%@", error.localizedDescription);
|
232
|
+
}
|
233
|
+
}];
|
234
|
+
|
235
|
+
}
|
236
|
+
|
237
|
+
@end
|
18
238
|
|
19
239
|
@interface AlertShowPopupTask : NSObject<UIAlertViewDelegate> {
|
20
240
|
NSMutableArray *buttons;
|
@@ -239,7 +459,20 @@ static BOOL is_current_alert_status = NO;
|
|
239
459
|
|
240
460
|
@implementation NotificationSingleton
|
241
461
|
|
462
|
+
-(void) setScheduler:(NSDictionary*)propertyMap methodResult:(id<IMethodResult>)methodResult
|
463
|
+
{
|
464
|
+
NotificationReminder* scheduler = [NotificationReminder instance];
|
465
|
+
[scheduler setReminder:propertyMap methodResult:methodResult];
|
466
|
+
}
|
467
|
+
|
468
|
+
-(void) removeScheduler:(id<IMethodResult>)methodResult;
|
469
|
+
{
|
470
|
+
NotificationReminder* scheduler = [NotificationReminder instance];
|
471
|
+
[scheduler removeScheduler];
|
472
|
+
}
|
473
|
+
|
242
474
|
-(void) showPopup:(NSDictionary*)propertyMap methodResult:(id<IMethodResult>)methodResult {
|
475
|
+
|
243
476
|
id runnable = [[AlertShowPopupTask alloc] init];
|
244
477
|
[propertyMap retain];
|
245
478
|
if ([methodResult hasCallback])
|
@@ -277,4 +510,4 @@ static BOOL is_current_alert_status = NO;
|
|
277
510
|
[Rhodes performOnUiThread:runnable wait:NO];
|
278
511
|
}
|
279
512
|
|
280
|
-
@end
|
513
|
+
@end
|
@@ -1,6 +1,7 @@
|
|
1
1
|
greaterThan(QT_MINOR_VERSION, 6): {
|
2
2
|
CONFIG += c++14
|
3
3
|
DEFINES += RHODES_VERSION_2
|
4
|
+
QT += core
|
4
5
|
}
|
5
6
|
|
6
7
|
equals(QT_MAJOR_VERSION, 5) {
|
@@ -18,6 +19,7 @@ TARGET = coreapi
|
|
18
19
|
TEMPLATE = lib
|
19
20
|
|
20
21
|
CONFIG += staticlib warn_on
|
22
|
+
#CONFIG += debug
|
21
23
|
|
22
24
|
INCLUDEPATH += ../../shared\
|
23
25
|
../../shared/generated\
|
@@ -48,6 +48,13 @@ public:
|
|
48
48
|
{
|
49
49
|
alert_vibrate(duration);
|
50
50
|
}
|
51
|
+
|
52
|
+
virtual void setScheduler( const rho::Hashtable<rho::String, rho::String>& propertyMap, rho::apiGenerator::CMethodResult& oResult){
|
53
|
+
|
54
|
+
}
|
55
|
+
virtual void removeScheduler(rho::apiGenerator::CMethodResult& oResult){
|
56
|
+
|
57
|
+
}
|
51
58
|
};
|
52
59
|
|
53
60
|
class CNotificationFactory: public CNotificationFactoryBase
|
@@ -7,6 +7,7 @@
|
|
7
7
|
|
8
8
|
#ifdef RHODES_EMULATOR
|
9
9
|
#define RHO_APPS_DIR ""
|
10
|
+
#include "common/RhoSimConf.h"
|
10
11
|
#else
|
11
12
|
#define RHO_APPS_DIR "apps/"
|
12
13
|
#endif
|
@@ -232,7 +233,11 @@ public:
|
|
232
233
|
|
233
234
|
virtual void getRhoPlatformVersion(rho::apiGenerator::CMethodResult& oResult)
|
234
235
|
{
|
236
|
+
#ifndef RHODES_EMULATOR
|
235
237
|
oResult.set(RHOCONF().getString("rhodes_gem_version"));
|
238
|
+
#else
|
239
|
+
oResult.set(RHOSIMCONF().getString("rhodes_gem_version"));
|
240
|
+
#endif
|
236
241
|
}
|
237
242
|
};
|
238
243
|
|
@@ -862,9 +862,6 @@ var Rho = Rho || (function ($) {
|
|
862
862
|
var apiUrl = null;
|
863
863
|
|
864
864
|
function apiControllerUrl() {
|
865
|
-
// it has been already detected
|
866
|
-
if (apiUrl)
|
867
|
-
return apiUrl;
|
868
865
|
|
869
866
|
// it may be hardcoded by developer in html this way:
|
870
867
|
//
|
@@ -874,6 +871,11 @@ var Rho = Rho || (function ($) {
|
|
874
871
|
if (baseUrl)
|
875
872
|
return (apiUrl = baseUrl);
|
876
873
|
|
874
|
+
// it has been already detected
|
875
|
+
if (apiUrl)
|
876
|
+
return apiUrl;
|
877
|
+
|
878
|
+
|
877
879
|
// it should be a default value for other protocols
|
878
880
|
if (0 != window.location.protocol.indexOf('file'))
|
879
881
|
return (apiUrl = API_CONTROLLER_URL);
|
@@ -960,7 +962,8 @@ var Rho = Rho || (function ($) {
|
|
960
962
|
WP8: 'wp8',
|
961
963
|
UWP: 'uwp',
|
962
964
|
WM: 'wm',
|
963
|
-
WIN32: 'win32'
|
965
|
+
WIN32: 'win32',
|
966
|
+
SAILFISH: 'sailfish'
|
964
967
|
},
|
965
968
|
nativeApiCall: nativeApiCall_ajax,
|
966
969
|
nativeApiResult: function(){/* intentionally empty stub function */}
|
@@ -1088,7 +1091,7 @@ if (typeof(qt) == "undefined"){
|
|
1088
1091
|
}
|
1089
1092
|
resultHandler(JSON.parse(nativeApiResult));
|
1090
1093
|
}
|
1091
|
-
};
|
1094
|
+
};
|
1092
1095
|
});
|
1093
1096
|
|
1094
1097
|
} else {
|
@@ -1098,7 +1101,7 @@ if (typeof(qt) == "undefined"){
|
|
1098
1101
|
if (window[RHO_API_TAG] && 'function' == typeof window[RHO_API_TAG]['apiCall']) {
|
1099
1102
|
var ret = undefined;
|
1100
1103
|
window[RHO_API_TAG].apiCall(cmdText, async, function(returnValue) {console.log(ret = returnValue);});
|
1101
|
-
}
|
1104
|
+
}
|
1102
1105
|
}*/
|
1103
1106
|
apiCall: ajaxBridgeApiCall
|
1104
1107
|
}
|
@@ -1123,7 +1126,8 @@ if (typeof(qt) == "undefined"){
|
|
1123
1126
|
[/RhoSimulator/ , bridges[rhoPlatform.id.RHOSIMULATOR]],
|
1124
1127
|
[/Windows\s+Phone\s+10/ , bridges[rhoPlatform.id.UWP] ],
|
1125
1128
|
[/Android/ , bridges[rhoPlatform.id.ANDROID] ],
|
1126
|
-
[/iPhone|iPod|iPad/ , bridges[rhoPlatform.id.IPHONE] ],
|
1129
|
+
//[/iPhone|iPod|iPad/ , bridges[rhoPlatform.id.IPHONE] ],
|
1130
|
+
[/iPhone|iPod|iPad/ , bridges[rhoPlatform.id.AJAX] ],
|
1127
1131
|
[/.*WindowsPhone.*/ , bridges[rhoPlatform.id.UWP] ],
|
1128
1132
|
[/.*MicrosoftMDG.*/ , bridges[rhoPlatform.id.UWP] ],
|
1129
1133
|
[/.*WebView.*/ , bridges[rhoPlatform.id.UWP] ],
|
@@ -1151,8 +1155,14 @@ if (typeof(qt) == "undefined"){
|
|
1151
1155
|
rhoPlatform.nativeApiCall = function() {
|
1152
1156
|
// use forced bridge type value in case it defined,
|
1153
1157
|
// otherwise use auto-detected bridge type
|
1154
|
-
var platformBridge = bridges[window[rhoUtil.flag.NATIVE_BRIDGE_TYPE]] || detectedPlatformBridge;
|
1155
1158
|
|
1159
|
+
var platformBridge = detectedPlatformBridge;
|
1160
|
+
if (rhoUtil.flag.NATIVE_BRIDGE_TYPE in window) {
|
1161
|
+
var btype = window[rhoUtil.flag.NATIVE_BRIDGE_TYPE];
|
1162
|
+
if (btype in bridges) {
|
1163
|
+
platformBridge = bridges[btype];
|
1164
|
+
}
|
1165
|
+
}
|
1156
1166
|
platformBridge().apiCall.apply(this, arguments);
|
1157
1167
|
}
|
1158
1168
|
|