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
@@ -789,9 +789,9 @@ module_function :read_manifest_package
|
|
789
789
|
|
790
790
|
args = []
|
791
791
|
args << "-sigalg"
|
792
|
-
args << "
|
793
|
-
args << "-digestalg"
|
794
|
-
args << "
|
792
|
+
args << "SHA256withRSA"
|
793
|
+
#args << "-digestalg"
|
794
|
+
#args << "SHA256"
|
795
795
|
args << "-verbose"
|
796
796
|
args << "-keystore"
|
797
797
|
args << keystore
|
@@ -947,3 +947,36 @@ def stop_emulator
|
|
947
947
|
Jake.run3_dont_fail('killall -9 emulator 2> /dev/null')
|
948
948
|
end
|
949
949
|
end
|
950
|
+
|
951
|
+
def isWindows?
|
952
|
+
if /cygwin|mswin|mingw|bccwin|wince|emx/ =~ RUBY_PLATFORM
|
953
|
+
return true
|
954
|
+
else
|
955
|
+
return false
|
956
|
+
end
|
957
|
+
end
|
958
|
+
|
959
|
+
def PathToWindowsWay(path)
|
960
|
+
if isWindows?
|
961
|
+
return path.gsub("/", "\\")
|
962
|
+
else
|
963
|
+
return path
|
964
|
+
end
|
965
|
+
end
|
966
|
+
|
967
|
+
def FormatManifestToAapt2Compat(path)
|
968
|
+
f = File.open(path, "r")
|
969
|
+
text = ''
|
970
|
+
users_permissions = ''
|
971
|
+
f.each_line do |line|
|
972
|
+
if (line.include?('<uses-permission'))
|
973
|
+
users_permissions += line
|
974
|
+
else
|
975
|
+
text = text + line
|
976
|
+
end
|
977
|
+
end
|
978
|
+
f.close
|
979
|
+
|
980
|
+
text.gsub! '<!-- Permission declarations -->', users_permissions
|
981
|
+
f = File.open(path, "w") {|file| file << text }
|
982
|
+
end
|
@@ -56,6 +56,7 @@ end
|
|
56
56
|
|
57
57
|
def setup_ndk(ndkpath,apilevel,abi)
|
58
58
|
puts "setup_ndk(#{ndkpath}, #{apilevel}, #{abi})" if USE_TRACES
|
59
|
+
apilevel = 21 if apilevel.to_i < 21 && abi == 'aarch64'
|
59
60
|
$apilevel = apilevel
|
60
61
|
ndk = NDKWrapper.new( ndkpath )
|
61
62
|
|
@@ -65,12 +66,22 @@ def setup_ndk(ndkpath,apilevel,abi)
|
|
65
66
|
$ndksysroot = ndk.sysroot apilevel, abi
|
66
67
|
|
67
68
|
$ndkgccver = ndk.gccver
|
69
|
+
$ndk_rev_major = ndk.rev_major
|
70
|
+
$target_toolchain = ndk.toolchain
|
68
71
|
$androidndkpath = ndkpath unless $androidndkpath
|
69
72
|
|
70
73
|
$sysincludes = ndk.sysincludes apilevel, abi
|
71
74
|
$link_sysroot = ndk.link_sysroot apilevel, abi
|
72
75
|
|
73
|
-
|
76
|
+
if ($ndk_rev_major >= 18)
|
77
|
+
$link_sysroot_ext = ndk.link_sysroot_level_ext apilevel, abi
|
78
|
+
end
|
79
|
+
|
80
|
+
if($ndk_rev_major >= 18)
|
81
|
+
puts "NDK sysroot: #{$ndksysroot}, linker sysroot: #{$link_sysroot}, CLANG v#{$ndkgccver}, sysincludes: #{$sysincludes}"
|
82
|
+
else
|
83
|
+
puts "NDK sysroot: #{$ndksysroot}, linker sysroot: #{$link_sysroot}, GCC v#{$ndkgccver}, sysincludes: #{$sysincludes}"
|
84
|
+
end
|
74
85
|
|
75
86
|
# Detect rlim_t
|
76
87
|
if $have_rlim_t.nil?
|
@@ -87,10 +98,19 @@ def setup_ndk(ndkpath,apilevel,abi)
|
|
87
98
|
end
|
88
99
|
end
|
89
100
|
end
|
101
|
+
|
102
|
+
puts "setup success!" if USE_TRACES
|
90
103
|
end
|
91
104
|
|
92
105
|
def cc_def_args
|
93
106
|
args = []
|
107
|
+
if($ndk_rev_major >= 18)
|
108
|
+
args << "--target=#{$target_toolchain}#{$apilevel}"
|
109
|
+
args << "-fno-addrsig"
|
110
|
+
if ($target_toolchain == 'i686-linux-android' && $apilevel.to_i <= 23)
|
111
|
+
args << '-mstackrealign'
|
112
|
+
end
|
113
|
+
end
|
94
114
|
args << "--sysroot"
|
95
115
|
args << $ndksysroot
|
96
116
|
args << "-isystem #{$sysincludes}" if $sysincludes
|
@@ -100,14 +120,16 @@ def cc_def_args
|
|
100
120
|
args << "-Wno-sign-compare"
|
101
121
|
args << "-Wno-unused"
|
102
122
|
args << '-Wno-unused-parameter'
|
103
|
-
|
123
|
+
if($ndk_rev_major < 18)
|
124
|
+
args << "-mandroid"
|
125
|
+
end
|
104
126
|
args << "-DANDROID"
|
105
127
|
args << "-DOS_ANDROID"
|
106
128
|
args << "-DRHO_DEBUG"
|
107
129
|
args << "-D__ANDROID_API__=#{$apilevel}" if $apilevel
|
108
130
|
args << "-DHAVE_RLIM_T" if $have_rlim_t
|
109
131
|
unless $debug
|
110
|
-
args << "-
|
132
|
+
args << "-O1"
|
111
133
|
args << "-DNDEBUG"
|
112
134
|
else
|
113
135
|
args << "-O0"
|
@@ -128,7 +150,13 @@ def cpp_def_args
|
|
128
150
|
args << "-fvisibility-inlines-hidden"
|
129
151
|
args << "-fno-exceptions"
|
130
152
|
args << "-fno-rtti"
|
131
|
-
|
153
|
+
|
154
|
+
if($ndk_rev_major < 18)
|
155
|
+
args << "-std=c++11"
|
156
|
+
else
|
157
|
+
args << "-stdlib=libc++"
|
158
|
+
end
|
159
|
+
|
132
160
|
args << "-Wno-reorder"
|
133
161
|
#args << "-I\"#{File.join($androidndkpath,'sources','cxx-stl','stlport','stlport')}\""
|
134
162
|
args << "-I\"#{File.join($androidndkpath,'sources','cxx-stl','gnu-libstdc++',$ndkgccver,'include')}\""
|
@@ -200,8 +228,14 @@ def cc_run(command, args, chdir = nil, coloring = true, env = nil, verbose = tru
|
|
200
228
|
|
201
229
|
isWinXP = false
|
202
230
|
if RUBY_PLATFORM =~ /(win|w)32$/
|
203
|
-
|
204
|
-
|
231
|
+
begin
|
232
|
+
winName = `WMIC OS get Name`
|
233
|
+
#fix for invalid UTF
|
234
|
+
winName.encode('UTF-8', 'UTF-8', invalid: :replace, undef: :replace, replace: '?')
|
235
|
+
isWinXP = true if winName =~ /Windows XP/
|
236
|
+
rescue ArgumentError
|
237
|
+
isWinXP = false
|
238
|
+
end
|
205
239
|
end
|
206
240
|
|
207
241
|
env = ENV unless env
|
@@ -332,12 +366,35 @@ def cc_link(outname, objects, additional = nil, deps = nil)
|
|
332
366
|
|
333
367
|
args = []
|
334
368
|
|
369
|
+
if($ndk_rev_major >= 18)
|
370
|
+
args << "-v"
|
371
|
+
args << "--target=#{$target_toolchain}#{$apilevel}"
|
372
|
+
args << "-fuse-ld=gold"
|
373
|
+
end
|
374
|
+
|
375
|
+
localabi = "unknown"
|
376
|
+
if $target_toolchain == "aarch64-linux-android"
|
377
|
+
localabi = "arm64-v8a"
|
378
|
+
elsif ($target_toolchain == "arm-linux-androideabi" || $target_toolchain == "armv7a-linux-androideabi")
|
379
|
+
localabi = "armeabi"
|
380
|
+
elsif $target_toolchain == "i686-linux-android"
|
381
|
+
localabi = "x86"
|
382
|
+
else
|
383
|
+
localabi = "x86_64"
|
384
|
+
end
|
385
|
+
|
335
386
|
if $ndkabi == "arm-eabi"
|
336
387
|
args << "-nostdlib"
|
337
388
|
args << "-Wl,-shared,-Bsymbolic"
|
389
|
+
elsif localabi == "arm64-v8a" or localabi == "armeabi"
|
390
|
+
args << "-shared"
|
391
|
+
args << "-Wl,-shared,-Bsymbolic"
|
338
392
|
else
|
339
393
|
args << "-shared"
|
340
394
|
end
|
395
|
+
|
396
|
+
#args << "-Wl,-shared,-Bsymbolic" if localabi == "armeabi" or localabi == "arm64-v8a"
|
397
|
+
|
341
398
|
#args << "-static-libstdc++"
|
342
399
|
args << "-Wl,--no-whole-archive"
|
343
400
|
args << "-Wl,--no-undefined"
|
@@ -350,51 +407,47 @@ def cc_link(outname, objects, additional = nil, deps = nil)
|
|
350
407
|
args << "\"#{outname}\""
|
351
408
|
args += objects.collect { |x| "\"#{x}\""}
|
352
409
|
args += additional if additional.is_a? Array and not additional.empty?
|
353
|
-
|
354
|
-
|
355
|
-
|
356
|
-
|
357
|
-
|
358
|
-
|
359
|
-
|
360
|
-
if $gccbin.include? "toolchains/x86"
|
361
|
-
localabi = "x86"
|
362
|
-
end
|
363
|
-
if $gccbin.include? "toolchains\\x86"
|
364
|
-
localabi = "x86"
|
365
|
-
end
|
366
|
-
|
367
|
-
#libandroid_support = File.join($androidndkpath, "sources", "cxx-stl", "llvm-libc++", "libs", localabi)
|
368
|
-
#if File.exists? libandroid_support
|
369
|
-
# args << "-L\"#{libandroid_support}\""
|
370
|
-
# args << "-landroid_support"
|
371
|
-
# puts "libandroid_support exists"
|
372
|
-
#else
|
373
|
-
# localabi = "armeabi-v7a"
|
374
|
-
# libandroid_support = File.join($androidndkpath, "sources", "cxx-stl", "llvm-libc++", "libs", localabi)
|
375
|
-
# if File.exists? libandroid_support
|
376
|
-
# args << "-L\"#{libandroid_support}\""
|
377
|
-
# args << "-landroid_support"
|
378
|
-
# puts "libandroid_support exists"
|
379
|
-
# else
|
380
|
-
# puts "libandroid_support does not exists"
|
381
|
-
# end
|
382
|
-
#end
|
383
|
-
|
384
|
-
libgnustl_static = File.join($androidndkpath, "sources", "cxx-stl", "gnu-libstdc++", "4.9", "libs", localabi)
|
385
|
-
if File.exists? libgnustl_static
|
386
|
-
args << "-L\"#{libgnustl_static}\""
|
387
|
-
args << "-lgnustl_static"
|
388
|
-
puts "libgnustl_static exists"
|
410
|
+
if($ndk_rev_major >= 18)
|
411
|
+
args << "-L#{$link_sysroot}"
|
412
|
+
args << "-Wl,-rpath-link=#{$link_sysroot}"
|
413
|
+
args << "-L#{$link_sysroot_ext}"
|
414
|
+
args << "-Wl,-rpath-link=#{$link_sysroot_ext}"
|
415
|
+
args << "-L#{$link_sysroot_ext}/../"
|
416
|
+
args << "-Wl,-rpath-link=#{$link_sysroot_ext}/../"
|
389
417
|
else
|
390
|
-
|
418
|
+
args << "-L#{$link_sysroot}/usr/lib"
|
419
|
+
args << "-Wl,-rpath-link=#{$link_sysroot}/usr/lib"
|
420
|
+
end
|
421
|
+
|
422
|
+
args << "-lc"
|
423
|
+
args << "-lm"
|
424
|
+
|
425
|
+
if($ndk_rev_major < 18)
|
391
426
|
libgnustl_static = File.join($androidndkpath, "sources", "cxx-stl", "gnu-libstdc++", "4.9", "libs", localabi)
|
392
427
|
if File.exists? libgnustl_static
|
393
428
|
args << "-L\"#{libgnustl_static}\""
|
394
429
|
args << "-lgnustl_static"
|
395
430
|
puts "libgnustl_static exists"
|
396
431
|
else
|
397
|
-
|
432
|
+
localabi = "armeabi-v7a" if localabi == "armeabi"
|
433
|
+
libgnustl_static = File.join($androidndkpath, "sources", "cxx-stl", "gnu-libstdc++", "4.9", "libs", localabi)
|
434
|
+
if File.exists? libgnustl_static
|
435
|
+
args << "-L\"#{libgnustl_static}\""
|
436
|
+
args << "-lgnustl_static"
|
437
|
+
puts "libgnustl_static exists"
|
438
|
+
else
|
439
|
+
puts "libgnustl_static does not exists"
|
440
|
+
end
|
441
|
+
end
|
442
|
+
else
|
443
|
+
localabi = "armeabi-v7a" if localabi == "armeabi"
|
444
|
+
llvm_stl_shared = File.join($androidndkpath, "sources", "cxx-stl", "llvm-libc++", "libs", localabi)
|
445
|
+
if File.exists? llvm_stl_shared
|
446
|
+
args << "-L\"#{llvm_stl_shared}\""
|
447
|
+
args << "-lc++_shared"
|
448
|
+
puts "llvm stl shared library exists"
|
449
|
+
else
|
450
|
+
puts "llvm stl shared library does not exists"
|
398
451
|
end
|
399
452
|
end
|
400
453
|
|
@@ -48,3 +48,14 @@ platform/shared/api_generator/js_helpers.cpp
|
|
48
48
|
platform/shared/api_generator/MethodResult.cpp
|
49
49
|
platform/shared/api_generator/StringifyHelper.cpp
|
50
50
|
platform/shared/tinyxml2/tinyxml2.cpp
|
51
|
+
platform/shared/rhoruby/impl/MutableArrayImpl.cpp
|
52
|
+
platform/shared/rhoruby/impl/MutableBooleanImpl.cpp
|
53
|
+
platform/shared/rhoruby/impl/MutableFloatImpl.cpp
|
54
|
+
platform/shared/rhoruby/impl/MutableHashImpl.cpp
|
55
|
+
platform/shared/rhoruby/impl/MutableIntegerImpl.cpp
|
56
|
+
platform/shared/rhoruby/impl/MutableStringImpl.cpp
|
57
|
+
platform/shared/rhoruby/impl/NilImpl.cpp
|
58
|
+
platform/shared/rhoruby/impl/ObjectImpl.cpp
|
59
|
+
platform/shared/rhoruby/impl/RefCountedObjectImpl.cpp
|
60
|
+
platform/shared/rhoruby/impl/RhoRubyImpl.cpp
|
61
|
+
platform/shared/rhoruby/impl/RhoRubySingletone.cpp
|
@@ -26,3 +26,5 @@ platform/android/Rhodes/jni/src/rhocryptimpl.cpp
|
|
26
26
|
platform/android/Rhodes/jni/src/extmanager.cpp
|
27
27
|
platform/android/Rhodes/jni/src/MethodExecutorJni.cpp
|
28
28
|
platform/android/Rhodes/jni/src/MethodResultJni.cpp
|
29
|
+
platform/android/Rhodes/jni/src/SecurityTokenGenerator.cpp
|
30
|
+
platform/android/Rhodes/jni/src/JNIRhoRubyCppWrapper.cpp
|
@@ -19,6 +19,10 @@ class ManifestGenerator
|
|
19
19
|
attr_accessor :rhodesActivityIntentFilters
|
20
20
|
attr_accessor :hardwareAcceleration
|
21
21
|
attr_accessor :apikey
|
22
|
+
attr_accessor :buildSdkVer
|
23
|
+
attr_accessor :buildToolsVer
|
24
|
+
attr_accessor :androidVerMaj
|
25
|
+
attr_accessor :androidVerMin
|
22
26
|
|
23
27
|
attr_accessor :manifestManifestAdds
|
24
28
|
attr_accessor :applicationManifestAdds
|
@@ -89,8 +93,11 @@ class ManifestGenerator
|
|
89
93
|
end
|
90
94
|
|
91
95
|
def render(erbPath)
|
92
|
-
puts "
|
93
|
-
|
96
|
+
puts "Rendering final AndroidManifest.xml: #{erbPath}"
|
97
|
+
|
98
|
+
buildToolsVerMajor = self.buildToolsVer.split('.')[0].to_i
|
99
|
+
canRenderNetworkSecurityConfig = ((self.buildSdkVer.to_i >= 24) && (buildToolsVerMajor>=24))
|
100
|
+
|
94
101
|
tpl = File.read erbPath
|
95
102
|
erb = ERB.new tpl
|
96
103
|
erb.result binding
|
@@ -7,11 +7,18 @@ class MavenDepsExtractor
|
|
7
7
|
include Singleton
|
8
8
|
|
9
9
|
@logger = nil
|
10
|
+
@api_level = nil
|
11
|
+
|
12
|
+
@repos_ = nil
|
10
13
|
|
11
14
|
def set_logger( logger )
|
12
15
|
@logger = logger
|
13
16
|
end
|
14
17
|
|
18
|
+
def set_api_level( level )
|
19
|
+
@api_level = level
|
20
|
+
end
|
21
|
+
|
15
22
|
def initialize
|
16
23
|
|
17
24
|
@dependencies = {}
|
@@ -21,9 +28,17 @@ class MavenDepsExtractor
|
|
21
28
|
@mvnbin = File.join( @m2home, 'bin', 'mvn' )
|
22
29
|
|
23
30
|
if RUBY_PLATFORM =~ /(win|w)32$/
|
24
|
-
@mvnbin += '.
|
31
|
+
@mvnbin += '.cmd'
|
25
32
|
end
|
26
33
|
|
34
|
+
@repos_ =
|
35
|
+
[
|
36
|
+
"file://#{File.join($androidsdkpath,'extras','google','m2repository')}",
|
37
|
+
"file://#{File.join($androidsdkpath,'extras','android','m2repository')}",
|
38
|
+
"https://jcenter.bintray.com",
|
39
|
+
"https://maven.google.com"
|
40
|
+
]
|
41
|
+
|
27
42
|
@jars = []
|
28
43
|
@res_dirs = []
|
29
44
|
@asset_dirs = []
|
@@ -111,18 +126,16 @@ class MavenDepsExtractor
|
|
111
126
|
def extract_all
|
112
127
|
@logger.info 'Extracting maven dependencies'
|
113
128
|
|
114
|
-
|
115
|
-
com_cache_dir = File.join(@m2home,'m2','com')
|
116
|
-
|
129
|
+
#@logger.info 'Removing maven cache for android packages - just in case'
|
130
|
+
#com_cache_dir = File.join(@m2home,'m2','com')
|
131
|
+
#rm_rf com_cache_dir if File.directory?(com_cache_dir)
|
117
132
|
|
118
133
|
copy_dir = File.join( @temp_dir, '.tmp')
|
119
134
|
mkdir_p copy_dir
|
135
|
+
get_art_poms(copy_dir)
|
120
136
|
copy_dependencies copy_dir
|
121
|
-
|
122
|
-
@logger.info "Extracting dependencies"
|
123
137
|
extract copy_dir, @temp_dir
|
124
|
-
|
125
|
-
rm_r copy_dir
|
138
|
+
rm_r copy_dir
|
126
139
|
end
|
127
140
|
|
128
141
|
def extract( src, dst )
|
@@ -184,14 +197,56 @@ class MavenDepsExtractor
|
|
184
197
|
argv.join(' ')
|
185
198
|
end
|
186
199
|
|
200
|
+
def get_art_poms(path)
|
201
|
+
dependencies = @dependencies.values.flatten.map { |d| Hash[ ["grp_id","art_id","ver"].zip(split_dependency(d)) ] }
|
202
|
+
|
203
|
+
remoteRepositories = ""
|
204
|
+
|
205
|
+
@repos_.each_with_index do |repo, i|
|
206
|
+
remoteRepositories += "repo#{i}::::#{repo},"
|
207
|
+
end
|
208
|
+
|
209
|
+
dependencies.each do |dep|
|
210
|
+
cmd = dep_get_cmd(dep["grp_id"], dep["art_id"], dep["ver"], remoteRepositories)
|
211
|
+
env = maven_env
|
212
|
+
pwd = path
|
213
|
+
|
214
|
+
@logger.info "Running Maven dependency get plugin"
|
215
|
+
puts cmd.to_s
|
216
|
+
Jake.run3( cmd, pwd, env )
|
217
|
+
end
|
218
|
+
|
219
|
+
end
|
220
|
+
|
221
|
+
def dep_get_cmd(grp_id, art_id, ver, repos)
|
222
|
+
argv = []
|
223
|
+
argv << @mvnbin
|
224
|
+
argv << 'dependency:get'
|
225
|
+
argv << "-Dmaven.repo.local=#{File.join(@m2home,'m2')}"
|
226
|
+
|
227
|
+
argv << "-DgroupId=#{grp_id}"
|
228
|
+
argv << "-DartifactId=#{art_id}"
|
229
|
+
argv << "-Dversion=#{ver}"
|
230
|
+
argv << "-DremoteRepositories=#{repos}"
|
231
|
+
argv << "-Dpackaging=pom"
|
232
|
+
argv << "-Ddest=./"
|
233
|
+
argv << "-Dtransitive=false"
|
234
|
+
|
235
|
+
argv << '-e' if USE_TRACES
|
236
|
+
argv << '-X' if USE_TRACES
|
237
|
+
|
238
|
+
argv.join(' ')
|
239
|
+
end
|
240
|
+
|
187
241
|
def copy_dependencies( path )
|
188
242
|
pom = File.join( path, 'pom.xml')
|
189
|
-
generate_pom(pom)
|
243
|
+
generate_pom(pom, path)
|
190
244
|
|
191
245
|
cmd = dep_copy_cmd
|
192
246
|
env = maven_env
|
193
247
|
pwd = path
|
194
248
|
|
249
|
+
puts "current pwd: #{pwd}"
|
195
250
|
@logger.info "Running Maven dependency copy plugin"
|
196
251
|
Jake.run3( cmd, pwd, env )
|
197
252
|
rm pom
|
@@ -205,17 +260,43 @@ class MavenDepsExtractor
|
|
205
260
|
dep.split(':')
|
206
261
|
end
|
207
262
|
|
208
|
-
def generate_pom(path)
|
263
|
+
def generate_pom(path, current_path)
|
209
264
|
require 'erb'
|
210
265
|
|
211
266
|
@logger.info "Generating pom.xml for dependencies at #{path}"
|
212
267
|
|
213
|
-
dependencies = @dependencies.values.flatten.map { |d| Hash[ ["grp_id","art_id","ver"].zip(split_dependency(d)) ] }
|
268
|
+
#dependencies = @dependencies.values.flatten.map { |d| Hash[ ["grp_id","art_id","ver"].zip(split_dependency(d)) ] }
|
269
|
+
dependencies = []
|
270
|
+
|
271
|
+
require 'nokogiri'
|
272
|
+
Dir.glob(File.join(current_path, "*.pom")).each do |pom|
|
273
|
+
doc = File.open(File.join(pom)) { |f| Nokogiri::XML(f) }
|
274
|
+
root = doc.search("project")
|
275
|
+
packaging = root.search("packaging")
|
276
|
+
|
277
|
+
artifactId = root.search("artifactId")[0].content
|
278
|
+
groupId = root.search("groupId")[0].content
|
279
|
+
version = root.search("version")[0].content
|
280
|
+
type = ''
|
281
|
+
|
282
|
+
if packaging[0] == nil
|
283
|
+
type = 'jar'
|
284
|
+
else
|
285
|
+
puts packaging.to_s
|
286
|
+
type = packaging[0].content
|
287
|
+
end
|
214
288
|
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
289
|
+
hash = Hash.new
|
290
|
+
hash["grp_id"] = groupId
|
291
|
+
hash["art_id"] = artifactId
|
292
|
+
hash["ver"] = version
|
293
|
+
hash["packaging"] = type
|
294
|
+
dependencies << hash
|
295
|
+
|
296
|
+
rm_r pom
|
297
|
+
end
|
298
|
+
|
299
|
+
repos = @repos_
|
219
300
|
|
220
301
|
tpl = File.read(File.join(@rhoroot,'platform','android','build','pom.erb'))
|
221
302
|
erb = ERB.new tpl
|