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
@@ -37,6 +37,8 @@ ext/platform/android/src/com/rho/notification/NotificationFactory.java
|
|
37
37
|
ext/platform/android/src/com/rho/notification/NotificationSingleton.java
|
38
38
|
ext/platform/android/src/com/rho/notification/Notification.java
|
39
39
|
ext/platform/android/src/com/rho/notification/NotificationIntentService.java
|
40
|
+
ext/platform/android/src/com/rho/notification/NotificationScheduler.java
|
41
|
+
ext/platform/android/src/com/rho/notification/AlarmReceiver.java
|
40
42
|
ext/platform/android/generated/src/com/rho/intent/IntentBase.java
|
41
43
|
ext/platform/android/generated/src/com/rho/intent/IntentFactorySingleton.java
|
42
44
|
ext/platform/android/generated/src/com/rho/intent/IntentSingletonBase.java
|
@@ -0,0 +1,27 @@
|
|
1
|
+
package com.rho.notification;
|
2
|
+
|
3
|
+
import android.content.BroadcastReceiver;
|
4
|
+
import android.content.Context;
|
5
|
+
import android.content.Intent;
|
6
|
+
import com.rhomobile.rhodes.Logger;
|
7
|
+
import com.rhomobile.rhodes.RhodesActivity;
|
8
|
+
|
9
|
+
public class AlarmReceiver extends BroadcastReceiver {
|
10
|
+
|
11
|
+
String TAG = "AlarmReceiver";
|
12
|
+
|
13
|
+
@Override
|
14
|
+
public void onReceive(Context context, Intent intent) {
|
15
|
+
if (intent.getAction() != null && context != null) {
|
16
|
+
if (intent.getAction().equalsIgnoreCase(Intent.ACTION_BOOT_COMPLETED)) {
|
17
|
+
NotificationScheduler.getSchedulerSettings(context);
|
18
|
+
NotificationScheduler.setReminder(context, AlarmReceiver.class);
|
19
|
+
return;
|
20
|
+
}
|
21
|
+
}
|
22
|
+
|
23
|
+
Logger.D(TAG, "onAlarmReceive: ");
|
24
|
+
NotificationScheduler.showNotification(context, RhodesActivity.class);
|
25
|
+
|
26
|
+
}
|
27
|
+
}
|
@@ -8,6 +8,9 @@ import java.util.Map;
|
|
8
8
|
|
9
9
|
import android.app.Dialog;
|
10
10
|
import android.app.NotificationManager;
|
11
|
+
|
12
|
+
import com.rhomobile.rhodes.osfunctionality.AndroidFunctionalityManager;
|
13
|
+
|
11
14
|
import android.app.PendingIntent;
|
12
15
|
import android.content.Context;
|
13
16
|
import android.content.Intent;
|
@@ -15,7 +18,7 @@ import android.content.res.Resources;
|
|
15
18
|
import android.graphics.BitmapFactory;
|
16
19
|
import android.graphics.drawable.Drawable;
|
17
20
|
import android.os.Build;
|
18
|
-
import android.
|
21
|
+
import android.app.Notification.Builder;
|
19
22
|
import android.view.Gravity;
|
20
23
|
import android.view.View;
|
21
24
|
import android.view.Window;
|
@@ -36,12 +39,16 @@ import com.rhomobile.rhodes.file.RhoFileApi;
|
|
36
39
|
import com.rhomobile.rhodes.util.ContextFactory;
|
37
40
|
import com.rhomobile.rhodes.util.PerformOnUiThread;
|
38
41
|
|
42
|
+
import android.annotation.TargetApi;
|
43
|
+
|
39
44
|
public class Notification {
|
40
45
|
private static final String TAG = Notification.class.getSimpleName();
|
41
46
|
|
42
47
|
private static final int DLG_MAIN_VIEW_ID = 1;
|
43
48
|
|
44
49
|
static final String NOTIFICATION_ID = "nitification_id";
|
50
|
+
static final String NOTIFICATION_CHANEL_ID = "rho_notification_chanel_id";
|
51
|
+
static final String NOTIFICATION_CHANEL_NAME = "Rhodes notifications chanel";
|
45
52
|
|
46
53
|
int id;
|
47
54
|
IMethodResult result;
|
@@ -50,15 +57,19 @@ public class Notification {
|
|
50
57
|
ArrayList<ActionData> actions = new ArrayList<ActionData>();
|
51
58
|
int iconResourceId;
|
52
59
|
String iconPath;
|
53
|
-
List<String> kinds = new ArrayList<String>()
|
60
|
+
List<String> kinds = new ArrayList<String>();
|
61
|
+
Context ctx = null;
|
54
62
|
|
55
63
|
Dialog dialog;
|
56
64
|
|
57
|
-
public Notification(int id, Map<String, Object> props, IMethodResult result) {
|
65
|
+
public Notification(int id, Map<String, Object> props, IMethodResult result, Context c) {
|
58
66
|
this.id = id;
|
59
67
|
this.result = result;
|
60
68
|
|
61
|
-
|
69
|
+
if(c == null)
|
70
|
+
ctx = ContextFactory.getUiContext();
|
71
|
+
else
|
72
|
+
ctx = c;
|
62
73
|
|
63
74
|
String iconName = null;
|
64
75
|
|
@@ -175,7 +186,8 @@ public class Notification {
|
|
175
186
|
|
176
187
|
Logger.T(TAG, "Dialog: title: " + title + ", message: " + message + ", buttons: " + actions.size());
|
177
188
|
|
178
|
-
|
189
|
+
if(ctx == null)
|
190
|
+
ctx = ContextFactory.getUiContext();
|
179
191
|
int nTopPadding = 10;
|
180
192
|
|
181
193
|
dialog = new Dialog(ctx);
|
@@ -277,8 +289,11 @@ public class Notification {
|
|
277
289
|
public void showNotification() {
|
278
290
|
Logger.T(TAG, "Notification: title: " + title + ", message: " + message);
|
279
291
|
|
280
|
-
|
281
|
-
|
292
|
+
if(ctx == null) ctx = ContextFactory.getContext();
|
293
|
+
|
294
|
+
|
295
|
+
Builder builder = AndroidFunctionalityManager.getAndroidFunctionality().getNotificationBuilder(ctx,NOTIFICATION_CHANEL_ID,NOTIFICATION_CHANEL_NAME);
|
296
|
+
|
282
297
|
builder.setTicker(message);
|
283
298
|
if (title != null) {
|
284
299
|
builder.setContentTitle(title);
|
@@ -306,7 +321,9 @@ public class Notification {
|
|
306
321
|
|
307
322
|
builder.setSmallIcon(R.drawable.ic_notification);
|
308
323
|
builder.setContentIntent(PendingIntent.getActivity(ctx, id, new Intent(ctx, RhodesActivity.class), PendingIntent.FLAG_UPDATE_CURRENT));
|
309
|
-
|
324
|
+
|
325
|
+
builder.setDefaults(android.app.Notification.DEFAULT_VIBRATE | android.app.Notification.DEFAULT_SOUND);
|
326
|
+
|
310
327
|
if (kinds.contains(INotificationSingleton.TYPE_NOTIFICATION_DIALOG)) {
|
311
328
|
for (ActionData action: actions) {
|
312
329
|
|
@@ -374,7 +391,8 @@ public class Notification {
|
|
374
391
|
});
|
375
392
|
}
|
376
393
|
|
377
|
-
|
394
|
+
if(ctx == null)
|
395
|
+
ctx = ContextFactory.getContext();
|
378
396
|
NotificationManager notificationManager = (NotificationManager) ctx.getSystemService(Context.NOTIFICATION_SERVICE);
|
379
397
|
notificationManager.cancel(id);
|
380
398
|
}
|
@@ -398,7 +416,7 @@ public class Notification {
|
|
398
416
|
}
|
399
417
|
|
400
418
|
public boolean isNotificationAreaNeeded() {
|
401
|
-
return
|
419
|
+
return (kinds.contains(INotificationSingleton.TYPE_NOTIFICATION) || kinds.contains(INotificationSingleton.TYPE_NOTIFICATION_DIALOG));
|
402
420
|
}
|
403
421
|
|
404
422
|
private static class ActionData
|
data/lib/commonAPI/coreapi/ext/platform/android/src/com/rho/notification/NotificationFactory.java
CHANGED
@@ -8,6 +8,10 @@ import com.rhomobile.rhodes.extmanager.AbstractRhoListener;
|
|
8
8
|
import com.rhomobile.rhodes.extmanager.IRhoExtManager;
|
9
9
|
import com.rhomobile.rhodes.extmanager.IRhoListener;
|
10
10
|
|
11
|
+
import android.content.Context;
|
12
|
+
import android.content.Intent;
|
13
|
+
|
14
|
+
|
11
15
|
public class NotificationFactory extends AbstractRhoListener implements INotificationFactory, IRhoListener
|
12
16
|
{
|
13
17
|
private NotificationSingleton singleton;
|
@@ -19,6 +23,8 @@ public class NotificationFactory extends AbstractRhoListener implements INotific
|
|
19
23
|
@Override
|
20
24
|
public INotificationSingleton getApiSingleton()
|
21
25
|
{
|
26
|
+
if(NotificationScheduler.singleton != null)
|
27
|
+
singleton = NotificationScheduler.singleton;
|
22
28
|
if(singleton == null) singleton = new NotificationSingleton();
|
23
29
|
return singleton;
|
24
30
|
}
|
@@ -56,9 +62,16 @@ public class NotificationFactory extends AbstractRhoListener implements INotific
|
|
56
62
|
}
|
57
63
|
}
|
58
64
|
|
65
|
+
@Override
|
66
|
+
public void onCreate(RhodesActivity activity, Intent intent) {
|
67
|
+
NotificationScheduler.singleton = (NotificationSingleton)getApiSingleton();
|
68
|
+
NotificationScheduler.activity = activity;
|
69
|
+
}
|
70
|
+
|
59
71
|
@Override
|
60
72
|
public void onCreateApplication(IRhoExtManager extManager) {
|
61
73
|
NotificationFactorySingleton.setInstance(this);
|
62
|
-
|
74
|
+
extManager.addRhoListener(this);
|
75
|
+
|
63
76
|
}
|
64
77
|
}
|
data/lib/commonAPI/coreapi/ext/platform/android/src/com/rho/notification/NotificationScheduler.java
ADDED
@@ -0,0 +1,260 @@
|
|
1
|
+
package com.rho.notification;
|
2
|
+
|
3
|
+
import com.rhomobile.rhodes.RhodesActivity;
|
4
|
+
import com.rhomobile.rhodes.api.IMethodResult;
|
5
|
+
import com.rhomobile.rhodes.api.MethodResult;
|
6
|
+
|
7
|
+
import android.app.AlarmManager;
|
8
|
+
import android.app.Notification;
|
9
|
+
import android.app.NotificationManager;
|
10
|
+
import android.app.PendingIntent;
|
11
|
+
import android.content.ComponentName;
|
12
|
+
import android.content.Context;
|
13
|
+
import android.content.Intent;
|
14
|
+
import android.content.pm.PackageManager;
|
15
|
+
|
16
|
+
import java.util.Calendar;
|
17
|
+
import com.rhomobile.rhodes.Logger;
|
18
|
+
import android.os.SystemClock;
|
19
|
+
|
20
|
+
import android.net.Uri;
|
21
|
+
import android.support.v4.app.NotificationCompat;
|
22
|
+
import android.support.v4.app.TaskStackBuilder;
|
23
|
+
import android.media.RingtoneManager;
|
24
|
+
import android.content.SharedPreferences;
|
25
|
+
|
26
|
+
import java.util.Map;
|
27
|
+
import java.util.HashMap;
|
28
|
+
import java.util.List;
|
29
|
+
import java.util.ArrayList;
|
30
|
+
|
31
|
+
import static android.content.Context.ALARM_SERVICE;
|
32
|
+
|
33
|
+
public class NotificationScheduler {
|
34
|
+
public static final int RHO_NOTIFICATION_CODE = 100;
|
35
|
+
public static final String TAG = "NotificationScheduler";
|
36
|
+
|
37
|
+
public static NotificationSingleton singleton = null;
|
38
|
+
public static RhodesActivity activity = null;
|
39
|
+
|
40
|
+
private static String title = null;
|
41
|
+
private static String message = null;
|
42
|
+
private static int interval = 0;
|
43
|
+
private static Boolean repeats = false;
|
44
|
+
private static final String storage_name = "rho_notification_storage";
|
45
|
+
private static int hour = -1, minute = -1, seconds = -1;
|
46
|
+
|
47
|
+
private static Boolean checkTime() {
|
48
|
+
return (hour >= 0 && hour <= 23) && (minute >= 0 && minute <= 59) && (seconds >= 0 && seconds <= 59);
|
49
|
+
}
|
50
|
+
|
51
|
+
private static Boolean isCurrentTime() {
|
52
|
+
return hour == -1 || minute == -1 || seconds == -1;
|
53
|
+
}
|
54
|
+
|
55
|
+
public static void setReminderEx(Map<String, Object> propertyMap, IMethodResult result) {
|
56
|
+
Object titleObj = propertyMap.get(NotificationSingleton.HK_TITLE);
|
57
|
+
if (titleObj != null && (titleObj instanceof String))
|
58
|
+
title = (String) titleObj;
|
59
|
+
|
60
|
+
Object messageObj = propertyMap.get(NotificationSingleton.HK_MESSAGE);
|
61
|
+
if (messageObj != null && (messageObj instanceof String))
|
62
|
+
message = (String) messageObj;
|
63
|
+
|
64
|
+
Object intervalObj = propertyMap.get(NotificationSingleton.HK_INTERVAL);
|
65
|
+
if (intervalObj != null && (intervalObj instanceof Integer))
|
66
|
+
interval = (Integer) intervalObj;
|
67
|
+
|
68
|
+
Object repeatObj = propertyMap.get(NotificationSingleton.HK_REPEATS);
|
69
|
+
if (repeatObj != null && (repeatObj instanceof Boolean))
|
70
|
+
repeats = (Boolean) repeatObj;
|
71
|
+
|
72
|
+
Object startObj = propertyMap.get(NotificationSingleton.HK_START);
|
73
|
+
if (startObj != null && (startObj instanceof Map<?, ?>)) {
|
74
|
+
Map<String, Object> timeMap = (Map<String, Object>) startObj;
|
75
|
+
Object hourObj = timeMap.get(NotificationSingleton.HK_HOUR);
|
76
|
+
if (hourObj != null && (hourObj instanceof Integer))
|
77
|
+
hour = (Integer) hourObj;
|
78
|
+
else
|
79
|
+
hour = -1;
|
80
|
+
|
81
|
+
Object minuteObj = timeMap.get(NotificationSingleton.HK_MINUTE);
|
82
|
+
if (minuteObj != null && (minuteObj instanceof Integer))
|
83
|
+
minute = (Integer) minuteObj;
|
84
|
+
else
|
85
|
+
minute = -1;
|
86
|
+
|
87
|
+
Object secondObj = timeMap.get(NotificationSingleton.HK_SECONDS);
|
88
|
+
if (secondObj != null && (secondObj instanceof Integer))
|
89
|
+
seconds = (Integer) secondObj;
|
90
|
+
else
|
91
|
+
seconds = -1;
|
92
|
+
}
|
93
|
+
|
94
|
+
SharedPreferences settings = activity.getSharedPreferences(storage_name, Context.MODE_PRIVATE);
|
95
|
+
SharedPreferences.Editor editor = settings.edit();
|
96
|
+
|
97
|
+
editor.putString(NotificationSingleton.HK_TITLE, title);
|
98
|
+
editor.putString(NotificationSingleton.HK_MESSAGE, message);
|
99
|
+
editor.putInt(NotificationSingleton.HK_HOUR, hour);
|
100
|
+
editor.putInt(NotificationSingleton.HK_MINUTE, minute);
|
101
|
+
editor.putInt(NotificationSingleton.HK_SECONDS, seconds);
|
102
|
+
if (interval > 0)
|
103
|
+
editor.putInt(NotificationSingleton.HK_INTERVAL, interval);
|
104
|
+
if (repeats)
|
105
|
+
editor.putBoolean(NotificationSingleton.HK_REPEATS, repeats);
|
106
|
+
|
107
|
+
if (editor.commit()) {
|
108
|
+
Logger.I(TAG, "Key is successfully saved to Shared Preferences");
|
109
|
+
} else {
|
110
|
+
Logger.E(TAG, "Write key to Shared Preferences is failed");
|
111
|
+
}
|
112
|
+
|
113
|
+
NotificationScheduler.setReminder(activity, AlarmReceiver.class);
|
114
|
+
}
|
115
|
+
|
116
|
+
public static void getSchedulerSettings(Context context) {
|
117
|
+
try {
|
118
|
+
|
119
|
+
SharedPreferences settings = context.getSharedPreferences(storage_name, Context.MODE_PRIVATE);
|
120
|
+
|
121
|
+
String deadValue = "not exists";
|
122
|
+
int deadInt = -1;
|
123
|
+
|
124
|
+
title = settings.getString(NotificationSingleton.HK_TITLE, deadValue);
|
125
|
+
if (title == deadValue) {
|
126
|
+
title = null;
|
127
|
+
Logger.E(TAG, "Key - HK_TITLE not found!");
|
128
|
+
}
|
129
|
+
|
130
|
+
message = settings.getString(NotificationSingleton.HK_MESSAGE, deadValue);
|
131
|
+
if (message == deadValue) {
|
132
|
+
message = null;
|
133
|
+
Logger.E(TAG, "Key - HK_MESSAGE not found!");
|
134
|
+
}
|
135
|
+
|
136
|
+
interval = settings.getInt(NotificationSingleton.HK_INTERVAL, deadInt);
|
137
|
+
if (interval == deadInt) {
|
138
|
+
interval = 0;
|
139
|
+
Logger.I(TAG, "Key - HK_INTERVAL not found!");
|
140
|
+
}
|
141
|
+
|
142
|
+
repeats = settings.getBoolean(NotificationSingleton.HK_REPEATS, false);
|
143
|
+
hour = settings.getInt(NotificationSingleton.HK_HOUR, deadInt);
|
144
|
+
seconds = settings.getInt(NotificationSingleton.HK_SECONDS, deadInt);
|
145
|
+
minute = settings.getInt(NotificationSingleton.HK_MINUTE, deadInt);
|
146
|
+
} catch (ClassCastException e) {
|
147
|
+
message = null;
|
148
|
+
title = null;
|
149
|
+
Logger.E(TAG, e.getMessage());
|
150
|
+
}
|
151
|
+
|
152
|
+
}
|
153
|
+
|
154
|
+
public static void setReminder(Context context, Class<?> cls) {
|
155
|
+
Calendar now = Calendar.getInstance();
|
156
|
+
Calendar target = Calendar.getInstance();
|
157
|
+
|
158
|
+
if (!isCurrentTime()) {
|
159
|
+
target.set(Calendar.HOUR_OF_DAY, hour);
|
160
|
+
target.set(Calendar.MINUTE, minute);
|
161
|
+
target.set(Calendar.SECOND, seconds);
|
162
|
+
|
163
|
+
if (target.before(now))
|
164
|
+
target.add(Calendar.DATE, 1);
|
165
|
+
|
166
|
+
}
|
167
|
+
|
168
|
+
cancelReminder(context, cls);
|
169
|
+
|
170
|
+
ComponentName receiver = new ComponentName(context, cls);
|
171
|
+
PackageManager pm = context.getPackageManager();
|
172
|
+
|
173
|
+
pm.setComponentEnabledSetting(receiver, PackageManager.COMPONENT_ENABLED_STATE_ENABLED,
|
174
|
+
PackageManager.DONT_KILL_APP);
|
175
|
+
|
176
|
+
Intent new_intent = new Intent(context, cls);
|
177
|
+
PendingIntent pendingIntent = PendingIntent.getBroadcast(context, RHO_NOTIFICATION_CODE, new_intent,
|
178
|
+
PendingIntent.FLAG_UPDATE_CURRENT);
|
179
|
+
AlarmManager am = (AlarmManager) context.getSystemService(ALARM_SERVICE);
|
180
|
+
|
181
|
+
if (interval < 0) {
|
182
|
+
Logger.E(TAG, "Interval is negative!!! Ignore...");
|
183
|
+
interval = 0;
|
184
|
+
}
|
185
|
+
|
186
|
+
if (isCurrentTime()) {
|
187
|
+
|
188
|
+
Logger.I(TAG, "Scheduling: " + "mode - ELAPSED_REALTIME_WAKEUP, interval - " + Integer.toString(interval));
|
189
|
+
|
190
|
+
am.setRepeating(AlarmManager.ELAPSED_REALTIME_WAKEUP, SystemClock.elapsedRealtime() + (interval * 1000),
|
191
|
+
repeats ? (interval * 1000) : 0, pendingIntent);
|
192
|
+
} else {
|
193
|
+
Logger.I(TAG,
|
194
|
+
"Scheduling: " + "mode - RTC_WAKEUP, time - " + Integer.toString(target.get(Calendar.HOUR_OF_DAY))
|
195
|
+
+ ":" + Integer.toString(target.get(Calendar.MINUTE)) + ":"
|
196
|
+
+ Integer.toString(target.get(Calendar.SECOND)));
|
197
|
+
|
198
|
+
if (checkTime()) {
|
199
|
+
am.setRepeating(AlarmManager.RTC_WAKEUP, target.getTimeInMillis(), repeats ? (interval * 1000) : 0,
|
200
|
+
pendingIntent);
|
201
|
+
} else {
|
202
|
+
Logger.E(TAG, "Ivalid parameter for time!!!");
|
203
|
+
}
|
204
|
+
}
|
205
|
+
|
206
|
+
}
|
207
|
+
|
208
|
+
public static void cancelReminderEx() {
|
209
|
+
if (activity != null)
|
210
|
+
cancelReminder(activity, AlarmReceiver.class);
|
211
|
+
}
|
212
|
+
|
213
|
+
public static void cancelReminder(Context context, Class<?> cls) {
|
214
|
+
ComponentName receiver = new ComponentName(context, cls);
|
215
|
+
PackageManager pm = context.getPackageManager();
|
216
|
+
|
217
|
+
pm.setComponentEnabledSetting(receiver, PackageManager.COMPONENT_ENABLED_STATE_DISABLED,
|
218
|
+
PackageManager.DONT_KILL_APP);
|
219
|
+
|
220
|
+
Intent new_intent = new Intent(context, cls);
|
221
|
+
PendingIntent pendingIntent = PendingIntent.getBroadcast(context, RHO_NOTIFICATION_CODE, new_intent,
|
222
|
+
PendingIntent.FLAG_UPDATE_CURRENT);
|
223
|
+
AlarmManager am = (AlarmManager) context.getSystemService(ALARM_SERVICE);
|
224
|
+
am.cancel(pendingIntent);
|
225
|
+
pendingIntent.cancel();
|
226
|
+
}
|
227
|
+
|
228
|
+
public static void showNotification(Context context, Class<?> cls) {
|
229
|
+
Map<String, Object> props = new HashMap<String, Object>();
|
230
|
+
|
231
|
+
if (title == null || message == null) {
|
232
|
+
getSchedulerSettings(context); //try getting settings
|
233
|
+
if(title == null || message == null)
|
234
|
+
{
|
235
|
+
Logger.E(TAG, "Title and message must be set!!!");
|
236
|
+
return;
|
237
|
+
}
|
238
|
+
}
|
239
|
+
|
240
|
+
props.put(NotificationSingleton.HK_TITLE, title);
|
241
|
+
props.put(NotificationSingleton.HK_MESSAGE, message);
|
242
|
+
|
243
|
+
List<String> kinds = new ArrayList<String>();
|
244
|
+
kinds.add(INotificationSingleton.TYPE_NOTIFICATION_DIALOG);
|
245
|
+
|
246
|
+
props.put(NotificationSingleton.HK_TYPES, kinds);
|
247
|
+
|
248
|
+
if (singleton == null) {
|
249
|
+
singleton = new NotificationSingleton();
|
250
|
+
singleton.setContext(context);
|
251
|
+
}
|
252
|
+
singleton.showPopup(props, null);
|
253
|
+
|
254
|
+
if (repeats && interval == 0) {
|
255
|
+
setReminder(context, cls);
|
256
|
+
}
|
257
|
+
|
258
|
+
Logger.I(TAG, "Notification recived!!!");
|
259
|
+
}
|
260
|
+
}
|
data/lib/commonAPI/coreapi/ext/platform/android/src/com/rho/notification/NotificationSingleton.java
CHANGED
@@ -45,6 +45,8 @@ import com.rhomobile.rhodes.file.RhoFileApi;
|
|
45
45
|
import com.rhomobile.rhodes.util.ContextFactory;
|
46
46
|
import com.rhomobile.rhodes.util.PerformOnUiThread;
|
47
47
|
|
48
|
+
|
49
|
+
|
48
50
|
/**
|
49
51
|
* Singleton for the Notification extension. Holds all of the implementation for this extension.
|
50
52
|
* Uses code from both RhoElements2 and Rhodes3
|
@@ -63,6 +65,26 @@ public class NotificationSingleton implements INotificationSingleton
|
|
63
65
|
protected AudioTrack audioTrack = null;
|
64
66
|
private Vibrator vibrator;
|
65
67
|
private MediaPlayer currentMP;
|
68
|
+
private Context ctx = null;
|
69
|
+
|
70
|
+
public void setContext(Context c)
|
71
|
+
{
|
72
|
+
ctx = c;
|
73
|
+
}
|
74
|
+
|
75
|
+
@Override
|
76
|
+
public void setScheduler(final Map<String, Object> propertyMap, final IMethodResult result)
|
77
|
+
{
|
78
|
+
Logger.T(TAG, "setScheduler");
|
79
|
+
NotificationScheduler.setReminderEx(propertyMap, result);
|
80
|
+
}
|
81
|
+
|
82
|
+
@Override
|
83
|
+
public void removeScheduler(final IMethodResult result)
|
84
|
+
{
|
85
|
+
Logger.T(TAG, "removeScheduler");
|
86
|
+
NotificationScheduler.cancelReminderEx();
|
87
|
+
}
|
66
88
|
|
67
89
|
@Override
|
68
90
|
public void showPopup(final Map<String, Object> propertyMap, final IMethodResult result) {
|
@@ -74,7 +96,7 @@ public class NotificationSingleton implements INotificationSingleton
|
|
74
96
|
|
75
97
|
Logger.T(TAG, "Add notification: " + lastNotificationId);
|
76
98
|
|
77
|
-
notification = new Notification(lastNotificationId, propertyMap, result);
|
99
|
+
notification = new Notification(lastNotificationId, propertyMap, result, ctx);
|
78
100
|
notifications.append(lastNotificationId, notification);
|
79
101
|
}
|
80
102
|
|