rhodes 5.5.2 → 5.5.15
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CONTRIBUTING.md +1 -1
- data/CREDITS +3 -3
- data/LICENSE +1 -1
- data/README.html +1 -1
- data/Rakefile +53 -14
- data/bin/get-rhodes-info +0 -0
- data/extensions/rhoconnect-push/ext/rhoconnect-push/platform/android/Rakefile +1 -1
- data/lib/build/jake.rb +11 -0
- data/lib/commonAPI/barcode/ext/platform/iphone/impl/BarcodeFactory.m +2 -1
- data/lib/commonAPI/coreapi/ext/NativeTabbar.xml +4 -0
- data/lib/commonAPI/coreapi/ext/platform/iphone/cpp_based_impl/SystemImpl.mm +1 -0
- data/lib/commonAPI/coreapi/ext/platform/iphone/impl/NativeTabbarSingleton.m +7 -2
- data/lib/commonAPI/coreapi/ext/platform/iphone/impl/NativeToolbarSingleton.m +6 -2
- data/lib/commonAPI/coreapi/ext/platform/iphone/impl/NavbarSingleton.m +8 -2
- data/lib/commonAPI/coreapi/ext/shared/ApplicationImpl.cpp +3 -0
- data/lib/commonAPI/coreapi/ext/shared/NetworkImpl.cpp +1 -0
- data/lib/commonAPI/coreapi/ext/shared/TimerImpl.cpp +36 -27
- data/lib/commonAPI/coreapi/public/api/rhoapi.js +6 -3
- data/lib/commonAPI/mediacapture/ext.yml +1 -2
- data/lib/commonAPI/mediacapture/ext/build.bat +8 -0
- data/lib/commonAPI/mediacapture/ext/platform/qt/MediaCapture.pro +82 -0
- data/lib/commonAPI/mediacapture/ext/platform/qt/Rakefile +35 -0
- data/lib/commonAPI/mediacapture/ext/platform/qt/resources/diaClosed.png +0 -0
- data/lib/commonAPI/mediacapture/ext/platform/qt/resources/diaOpened.png +0 -0
- data/lib/commonAPI/mediacapture/ext/platform/qt/resources/mediacapture.qrc +7 -0
- data/lib/commonAPI/mediacapture/ext/platform/qt/resources/photoSave.png +0 -0
- data/lib/commonAPI/mediacapture/ext/platform/qt/src/CCameraData.cpp +83 -0
- data/lib/commonAPI/mediacapture/ext/platform/qt/src/CCameraData.h +54 -0
- data/lib/commonAPI/mediacapture/ext/platform/qt/src/CameraDialogBuilder.h +36 -0
- data/lib/commonAPI/mediacapture/ext/platform/qt/src/CameraDialogController.h +31 -0
- data/lib/commonAPI/mediacapture/ext/platform/qt/src/CameraDialogView.h +73 -0
- data/lib/commonAPI/mediacapture/ext/platform/qt/src/Camera_impl.cpp +337 -0
- data/lib/commonAPI/mediacapture/ext/platform/qt/src/ImageFileNameGetter.h +40 -0
- data/lib/commonAPI/mediacapture/ext/platform/qt/src/ImageFilenameGetterResult.h +36 -0
- data/lib/commonAPI/mediacapture/ext/platform/qt/src/cameracrossthreadhalper.h +17 -0
- data/lib/commonAPI/mediacapture/ext/platform/qt/src/cameradialogview.cpp +178 -0
- data/lib/commonAPI/mediacapture/ext/shared/MediacaptureInit.cpp +8 -8
- data/lib/framework/rhodes.rb +1 -1
- data/lib/framework/version.rb +1 -1
- data/platform/android/Rhodes/AndroidManifest.xml.erb +1 -1
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/RhodesService.java +9 -2
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/mainview/SplashScreen.java +33 -0
- data/platform/android/build/android.rake +97 -43
- data/platform/android/build/android_studio_project_generator.rb +21 -0
- data/platform/android/build/android_tools.rb +8 -6
- data/platform/iphone/Classes/AppManager/AppManager.h +6 -0
- data/platform/iphone/Classes/AppManager/AppManager.m +76 -37
- data/platform/iphone/Classes/MapView/GoogleGeocoder.m +2 -3
- data/platform/iphone/Classes/MapView/MapViewController.m +3 -3
- data/platform/iphone/Classes/NativeBar.h +1 -0
- data/platform/iphone/Classes/NativeBar.m +15 -0
- data/platform/iphone/Classes/RhoViewController.m +8 -3
- data/platform/iphone/Classes/RhoWKWebView.m +1 -1
- data/platform/iphone/Classes/Rhodes.m +55 -38
- data/platform/iphone/Classes/SimpleMainView.m +3 -2
- data/platform/iphone/Classes/TabbedMainView.h +2 -0
- data/platform/iphone/Classes/TabbedMainView.m +15 -3
- data/platform/iphone/Classes/URLProtocol/CRhoURLProtocol.h +2 -0
- data/platform/iphone/Classes/URLProtocol/CRhoURLProtocol.m +185 -30
- data/platform/iphone/Classes/rho/net/IPhoneNetRequest.mm +105 -6
- data/platform/iphone/rbuild/iphone.rake +426 -267
- data/platform/iphone/rbuild/putsOverride.rake +8 -0
- data/platform/shared/api_generator/iphone/CJSConverter.mm +5 -3
- data/platform/shared/common/BundleManager.cpp +16 -6
- data/platform/shared/common/PosixThreadImpl.cpp +10 -4
- data/platform/shared/common/RhoTime.cpp +81 -40
- data/platform/shared/common/RhodesApp.cpp +2 -2
- data/platform/shared/common/RhodesApp.h +1 -1
- data/platform/shared/db/DBAdapter.cpp +33 -0
- data/platform/shared/db/DBAdapter.h +5 -0
- data/platform/shared/logging/RhoLogConf.cpp +17 -1
- data/platform/shared/logging/RhoLogConf.h +6 -0
- data/platform/shared/net/CURLNetRequest.cpp +6 -0
- data/platform/shared/net/HttpServer.cpp +27 -1
- data/platform/shared/net/INetRequest.cpp +33 -6
- data/platform/shared/net/INetRequest.h +2 -0
- data/platform/shared/qt/RhoSimulator_dev.pro +14 -10
- data/platform/shared/qt/rhodes/QtMainWindow.cpp +2 -2
- data/platform/shared/qt/rhodes/iexecutable.h +27 -0
- data/platform/shared/qt/rhodes/impl/MainWindowImpl.cpp +5 -0
- data/platform/shared/qt/rhodes/impl/MainWindowImpl.h +3 -0
- data/platform/shared/qt/rhodes/qkineticscroller.cpp +2 -2
- data/platform/shared/qt/rhodes/qkineticscroller_p.h +1 -1
- data/platform/shared/qt/rhodes/qtscrollerfilter.cpp +3 -3
- data/platform/shared/qt/rhodes/qtscrollevent.cpp +2 -2
- data/platform/shared/qt/rhodes/qwebviewkineticscroller.cpp +1 -1
- data/platform/shared/qt/rhodes/qwebviewkineticscroller.h +1 -1
- data/platform/shared/qt/rhodes/resources/rho.png +0 -0
- data/platform/shared/qt/rhodes/rhodes.pro +3 -2
- data/platform/wm/build/wm.rake +28 -9
- data/platform/wm/rhodes/browser/BrowserFactory.cpp +4 -6
- data/platform/wm/rhodes/browser/stubs.cpp +5 -0
- data/platform/wm/rhodes/rho/net/NetRequestImpl.h +3 -0
- data/platform/wm/rhodes/rhodes.vcproj +31 -2
- data/rakefile.rb +53 -14
- data/res/build-tools/iphonesim/build/Release/iphonesim_8 +2 -2
- data/res/generators/rhogen.rb +6 -147
- data/res/generators/templates/api/platform/iphone/generated/base_impl/MontanaBase.m +7 -7
- data/res/generators/templates/api/platform/iphone/generated/javascript/montana_js_wrap.mm +2 -4
- data/res/generators/templates/application/AndroidManifest.erb +1 -1
- data/res/generators/templates/application/app/Settings/home.erb +1 -1
- data/res/generators/templates/application/build.yml +52 -6
- data/res/generators/templates/application/icon/icon.png +0 -0
- data/res/generators/templates/application/resources/android/res/drawable-hdpi/ic_notification.png +0 -0
- data/res/generators/templates/application/resources/android/res/drawable-hdpi/icon.png +0 -0
- data/res/generators/templates/application/resources/android/res/drawable-hdpi/loading.png +0 -0
- data/res/generators/templates/application/resources/android/res/drawable-ldpi/ic_notification.png +0 -0
- data/res/generators/templates/application/resources/android/res/drawable-ldpi/icon.png +0 -0
- data/res/generators/templates/application/resources/android/res/drawable-ldpi/loading.png +0 -0
- data/res/generators/templates/application/resources/android/res/drawable-mdpi/ic_notification.png +0 -0
- data/res/generators/templates/application/resources/android/res/drawable-mdpi/icon.png +0 -0
- data/res/generators/templates/application/resources/android/res/drawable-mdpi/loading.png +0 -0
- data/res/generators/templates/application/resources/android/res/drawable-xhdpi/ic_notification.png +0 -0
- data/res/generators/templates/application/resources/android/res/drawable-xhdpi/icon.png +0 -0
- data/res/generators/templates/application/resources/android/res/drawable-xhdpi/loading.png +0 -0
- data/res/generators/templates/application/resources/android/res/drawable-xxhdpi/ic_notification.png +0 -0
- data/res/generators/templates/application/resources/android/res/drawable-xxhdpi/icon.png +0 -0
- data/res/generators/templates/application/resources/android/res/drawable-xxhdpi/loading.png +0 -0
- data/res/generators/templates/application/resources/android/res/drawable-xxxhdpi/ic_notification.png +0 -0
- data/res/generators/templates/application/resources/android/res/drawable-xxxhdpi/icon.png +0 -0
- data/res/generators/templates/application/resources/android/res/drawable-xxxhdpi/loading.png +0 -0
- data/res/generators/templates/application/resources/android/res/drawable/ic_notification.png +0 -0
- data/res/generators/templates/application/resources/android/res/drawable/icon.png +0 -0
- data/res/generators/templates/application/resources/android/res/drawable/loading.png +0 -0
- data/res/generators/templates/application/resources/android/res/mipmap-hdpi/icon.png +0 -0
- data/res/generators/templates/application/resources/android/res/mipmap-ldpi/icon.png +0 -0
- data/res/generators/templates/application/resources/android/res/mipmap-mdpi/icon.png +0 -0
- data/res/generators/templates/application/resources/android/res/mipmap-xhdpi/icon.png +0 -0
- data/res/generators/templates/application/resources/android/res/mipmap-xxhdpi/icon.png +0 -0
- data/res/generators/templates/application/resources/android/res/mipmap-xxxhdpi/icon.png +0 -0
- data/res/generators/templates/application/resources/android/res/mipmap/icon.png +0 -0
- data/res/generators/templates/application/{app/loading-568h@2x.png → resources/ios/Default-568h@2x.png} +0 -0
- data/res/generators/templates/application/{app/loading-667h@2x.png → resources/ios/Default-667h@2x.png} +0 -0
- data/res/generators/templates/application/{app/loading-736h@3x.png → resources/ios/Default-736h@3x.png} +0 -0
- data/res/generators/templates/application/{app/loading-Landscape.png → resources/ios/Default-Landscape.png} +0 -0
- data/res/generators/templates/application/{app/loading-Landscape@2x.png → resources/ios/Default-Landscape@2x.png} +0 -0
- data/res/generators/templates/application/{app/loading-LandscapeLeft.png → resources/ios/Default-LandscapeLeft.png} +0 -0
- data/res/generators/templates/application/{app/loading-LandscapeLeft@2x.png → resources/ios/Default-LandscapeLeft@2x.png} +0 -0
- data/res/generators/templates/application/{app/loading-LandscapeRight.png → resources/ios/Default-LandscapeRight.png} +0 -0
- data/res/generators/templates/application/{app/loading-LandscapeRight@2x.png → resources/ios/Default-LandscapeRight@2x.png} +0 -0
- data/res/generators/templates/application/{app/loading-Portrait.png → resources/ios/Default-Portrait.png} +0 -0
- data/res/generators/templates/application/{app/loading-Portrait@2x.png → resources/ios/Default-Portrait@2x.png} +0 -0
- data/res/generators/templates/application/{app/loading-PortraitUpsideDown.png → resources/ios/Default-PortraitUpsideDown.png} +0 -0
- data/res/generators/templates/application/{app/loading-PortraitUpsideDown@2x.png → resources/ios/Default-PortraitUpsideDown@2x.png} +0 -0
- data/res/generators/templates/application/resources/ios/Default.png +0 -0
- data/res/generators/templates/application/{app/loading@2x.png → resources/ios/Default@2x.png} +0 -0
- data/res/generators/templates/application/resources/ios/iTunesArtwork.png +0 -0
- data/res/generators/templates/application/resources/ios/iTunesArtwork@2x.png +0 -0
- data/res/generators/templates/application/resources/ios/icon114.png +0 -0
- data/res/generators/templates/application/resources/ios/icon120.png +0 -0
- data/res/generators/templates/application/resources/ios/icon144.png +0 -0
- data/res/generators/templates/application/resources/ios/icon152.png +0 -0
- data/res/generators/templates/application/resources/ios/icon180.png +0 -0
- data/res/generators/templates/application/resources/ios/icon57.png +0 -0
- data/res/generators/templates/application/resources/ios/icon60.png +0 -0
- data/res/generators/templates/application/resources/ios/icon72.png +0 -0
- data/res/generators/templates/application/resources/ios/icon76.png +0 -0
- data/res/generators/templates/application/rhoconfig.txt +2 -1
- data/res/generators/templates/iphone_project/Bremen7.xcodeproj/project.pbxproj +44 -0
- data/res/generators/templates/iphone_project/Resources/back_btn.png +0 -0
- data/res/generators/templates/iphone_project/Resources/back_btn@2x.png +0 -0
- data/res/generators/templates/iphone_project/Resources/back_btn@3x.png +0 -0
- data/res/generators/templates/iphone_project/Resources/forward_btn.png +0 -0
- data/res/generators/templates/iphone_project/Resources/forward_btn@2x.png +0 -0
- data/res/generators/templates/iphone_project/Resources/forward_btn@3x.png +0 -0
- data/res/generators/templates/iphone_project/Resources/gears.png +0 -0
- data/res/generators/templates/iphone_project/Resources/gears@2x.png +0 -0
- data/res/generators/templates/iphone_project/Resources/gears@3x.png +0 -0
- data/res/generators/templates/iphone_project/Resources/home_btn.png +0 -0
- data/res/generators/templates/iphone_project/Resources/home_btn@2x.png +0 -0
- data/res/generators/templates/iphone_project/Resources/home_btn@3x.png +0 -0
- data/res/generators/templates/iphone_project/Resources/sync_btn.png +0 -0
- data/res/generators/templates/iphone_project/Resources/sync_btn@2x.png +0 -0
- data/res/generators/templates/iphone_project/Resources/sync_btn@3x.png +0 -0
- data/res/generators/templates/iphone_project/buildRhoBundle +23 -7
- data/res/generators/templates/iphone_project/root/Info.plist +0 -7
- data/res/generators/templates/iphone_project/root/iTunesArtwork +0 -0
- data/res/generators/templates/iphone_project/root/iTunesArtwork@2x +0 -0
- data/res/generators/templates/iphone_project/root/icon114.png +0 -0
- data/res/generators/templates/iphone_project/root/icon120.png +0 -0
- data/res/generators/templates/iphone_project/root/icon144.png +0 -0
- data/res/generators/templates/iphone_project/root/icon152.png +0 -0
- data/res/generators/templates/iphone_project/root/icon180.png +0 -0
- data/res/generators/templates/iphone_project/root/icon57.png +0 -0
- data/res/generators/templates/iphone_project/root/icon60.png +0 -0
- data/res/generators/templates/iphone_project/root/icon72.png +0 -0
- data/res/generators/templates/iphone_project/root/icon76.png +0 -0
- data/res/generators/templates/project/android_studio_project/app/build.gradle.erb +88 -0
- data/res/generators/templates/project/android_studio_project/build.gradle +23 -0
- data/res/generators/templates/project/android_studio_project/gradle.properties +17 -0
- data/res/generators/templates/project/android_studio_project/gradlew +160 -0
- data/res/generators/templates/project/android_studio_project/gradlew.bat +90 -0
- data/res/generators/templates/project/android_studio_project/settings.gradle +1 -0
- data/rhodes.gemspec +7 -6
- data/version +1 -1
- metadata +135 -42
- data/res/generators/templates/application/icon/icon.svg +0 -22
- data/res/generators/templates/application/icon/icon114.png +0 -0
- data/res/generators/templates/application/icon/icon120.png +0 -0
- data/res/generators/templates/application/icon/icon144.png +0 -0
- data/res/generators/templates/application/icon/icon152.png +0 -0
- data/res/generators/templates/application/icon/icon180.png +0 -0
- data/res/generators/templates/application/icon/icon57.png +0 -0
- data/res/generators/templates/application/icon/icon60.png +0 -0
- data/res/generators/templates/application/icon/icon72.png +0 -0
- data/res/generators/templates/application/icon/icon76.png +0 -0
- data/res/generators/templates/application/production/iTunesArtwork.png +0 -0
- data/res/generators/templates/application/production/iTunesArtwork@2x.png +0 -0
@@ -50,6 +50,7 @@ class CNetResponseImpl : public INetResponse
|
|
50
50
|
String m_data;
|
51
51
|
int m_nRespCode;
|
52
52
|
String m_cookies;
|
53
|
+
String m_errorMessage;
|
53
54
|
public:
|
54
55
|
CNetResponseImpl() : m_bValid(false),m_nRespCode(-1){}
|
55
56
|
|
@@ -75,6 +76,8 @@ public:
|
|
75
76
|
}
|
76
77
|
virtual int getRespCode(){ return m_nRespCode;}
|
77
78
|
|
79
|
+
virtual String getErrorMessage() { return m_errorMessage; }
|
80
|
+
|
78
81
|
bool isValid()const{ return m_bValid; }
|
79
82
|
void setValid(bool b){ m_bValid = b; }
|
80
83
|
|
@@ -454,7 +454,7 @@
|
|
454
454
|
/>
|
455
455
|
<DeploymentTool
|
456
456
|
ForceDirty="-1"
|
457
|
-
RemoteDirectory="%CSIDL_PROGRAM_FILES%\
|
457
|
+
RemoteDirectory="%CSIDL_PROGRAM_FILES%\Kitchen Sink"
|
458
458
|
RegisterOutput="0"
|
459
459
|
AdditionalFiles=""
|
460
460
|
/>
|
@@ -1095,7 +1095,7 @@
|
|
1095
1095
|
/>
|
1096
1096
|
<DeploymentTool
|
1097
1097
|
ForceDirty="-1"
|
1098
|
-
RemoteDirectory="%CSIDL_PROGRAM_FILES%\
|
1098
|
+
RemoteDirectory="%CSIDL_PROGRAM_FILES%\Kitchen Sink"
|
1099
1099
|
RegisterOutput="0"
|
1100
1100
|
AdditionalFiles=""
|
1101
1101
|
/>
|
@@ -2031,6 +2031,31 @@
|
|
2031
2031
|
</Configuration>
|
2032
2032
|
</Configurations>
|
2033
2033
|
<References>
|
2034
|
+
<AssemblyReference
|
2035
|
+
RelativePath="System.dll"
|
2036
|
+
AssemblyName="System, Version=2.0.0.0, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL"
|
2037
|
+
MinFrameworkVersion="131072"
|
2038
|
+
/>
|
2039
|
+
<AssemblyReference
|
2040
|
+
RelativePath="System.Data.dll"
|
2041
|
+
AssemblyName="System.Data, Version=2.0.0.0, PublicKeyToken=b77a5c561934e089, processorArchitecture=x86"
|
2042
|
+
MinFrameworkVersion="131072"
|
2043
|
+
/>
|
2044
|
+
<AssemblyReference
|
2045
|
+
RelativePath="System.Drawing.dll"
|
2046
|
+
AssemblyName="System.Drawing, Version=2.0.0.0, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL"
|
2047
|
+
MinFrameworkVersion="131072"
|
2048
|
+
/>
|
2049
|
+
<AssemblyReference
|
2050
|
+
RelativePath="System.Windows.Forms.dll"
|
2051
|
+
AssemblyName="System.Windows.Forms, Version=2.0.0.0, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL"
|
2052
|
+
MinFrameworkVersion="131072"
|
2053
|
+
/>
|
2054
|
+
<AssemblyReference
|
2055
|
+
RelativePath="System.XML.dll"
|
2056
|
+
AssemblyName="System.Xml, Version=2.0.0.0, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL"
|
2057
|
+
MinFrameworkVersion="131072"
|
2058
|
+
/>
|
2034
2059
|
</References>
|
2035
2060
|
<Files>
|
2036
2061
|
<Filter
|
@@ -2999,6 +3024,10 @@
|
|
2999
3024
|
RelativePath=".\browser\IEBrowserEngine.h"
|
3000
3025
|
>
|
3001
3026
|
</File>
|
3027
|
+
<File
|
3028
|
+
RelativePath=".\browser\stubs.cpp"
|
3029
|
+
>
|
3030
|
+
</File>
|
3002
3031
|
</Filter>
|
3003
3032
|
</Files>
|
3004
3033
|
<Globals>
|
data/rakefile.rb
CHANGED
@@ -74,6 +74,7 @@ end
|
|
74
74
|
#------------------------------------------------------------------------
|
75
75
|
|
76
76
|
$app_basedir = pwd
|
77
|
+
$is_webkit_engine = false
|
77
78
|
$startdir = File.dirname(__FILE__)
|
78
79
|
$startdir.gsub!('\\', '/')
|
79
80
|
|
@@ -156,7 +157,7 @@ namespace "framework" do
|
|
156
157
|
end
|
157
158
|
end
|
158
159
|
|
159
|
-
$application_build_configs_keys = ['security_token', 'encrypt_database', 'android_title', 'iphone_db_in_approot', 'iphone_set_approot', 'iphone_userpath_in_approot', "iphone_use_new_ios7_status_bar_style", "iphone_full_screen", "webkit_outprocess", "webengine"]
|
160
|
+
$application_build_configs_keys = ['security_token', 'encrypt_database', 'android_title', 'iphone_db_in_approot', 'iphone_set_approot', 'iphone_userpath_in_approot', "iphone_use_new_ios7_status_bar_style", "iphone_full_screen", "webkit_outprocess", "webengine", "iphone_enable_startup_logging"]
|
160
161
|
|
161
162
|
$winxpe_build = false
|
162
163
|
|
@@ -832,7 +833,7 @@ def cloud_url_git_match(str)
|
|
832
833
|
# else
|
833
834
|
server = res[1]; user = res[2]; app = res[3]
|
834
835
|
end
|
835
|
-
|
836
|
+
|
836
837
|
(server.nil? || app.nil?) ? {} : { :str => "#{server}:#{user}/#{app}", :server => server, :user => user, :app => app }
|
837
838
|
end
|
838
839
|
|
@@ -2019,9 +2020,9 @@ namespace "config" do
|
|
2019
2020
|
|
2020
2021
|
$app_config["capabilities"] += ["symbol"] unless $app_config["capabilities"].index("symbol")
|
2021
2022
|
if $current_platform == "wm"
|
2022
|
-
$app_config["extensions"] += ["webkit"]
|
2023
|
+
$app_config["extensions"] += ["webkit"]
|
2023
2024
|
else
|
2024
|
-
$app_config["extensions"] += ["rhoelementsext"]
|
2025
|
+
$app_config["extensions"] += ["rhoelementsext"]
|
2025
2026
|
$app_config["extensions"] += ["symbolapi"] #extension with plug-ins
|
2026
2027
|
|
2027
2028
|
#check for RE2 plugins
|
@@ -2038,7 +2039,7 @@ namespace "config" do
|
|
2038
2039
|
end
|
2039
2040
|
|
2040
2041
|
application_build_configs['moto-plugins'] = plugins if plugins.length() > 0
|
2041
|
-
end
|
2042
|
+
end
|
2042
2043
|
|
2043
2044
|
|
2044
2045
|
if !$app_config["capabilities"].index('native_browser') && $current_platform != "android"
|
@@ -2099,7 +2100,7 @@ namespace "config" do
|
|
2099
2100
|
$app_config['extensions'] = $app_config['extensions'] | ['hardwarekeys']
|
2100
2101
|
$app_config['extensions'] = $app_config['extensions'] | ['sensor']
|
2101
2102
|
end
|
2102
|
-
|
2103
|
+
|
2103
2104
|
if $current_platform == "wp8"
|
2104
2105
|
$app_config['extensions'] = $app_config['extensions'] | ['barcode']
|
2105
2106
|
end
|
@@ -2294,6 +2295,10 @@ def add_linker_library(libraryname)
|
|
2294
2295
|
$ldflags << "#{tmpdir}/#{libraryname}\n" unless $ldflags.nil?
|
2295
2296
|
end
|
2296
2297
|
|
2298
|
+
def add_inker_library_absolute(fulllibraryfilepath)
|
2299
|
+
$ldflags << fulllibraryfilepath + "\n" unless $ldflags.nil?
|
2300
|
+
end
|
2301
|
+
|
2297
2302
|
def set_linker_flags
|
2298
2303
|
if $config["platform"] == "iphone"
|
2299
2304
|
simulator = $sdk =~ /iphonesimulator/
|
@@ -2486,6 +2491,10 @@ def init_extensions(dest, mode = "")
|
|
2486
2491
|
|
2487
2492
|
$app_config["extensions"].each do |extname|
|
2488
2493
|
puts 'ext - ' + extname
|
2494
|
+
|
2495
|
+
if extname == "webkit"
|
2496
|
+
$is_webkit_engine = true
|
2497
|
+
end
|
2489
2498
|
|
2490
2499
|
extpath = nil
|
2491
2500
|
extpaths.each do |p|
|
@@ -2539,6 +2548,19 @@ def init_extensions(dest, mode = "")
|
|
2539
2548
|
end
|
2540
2549
|
end
|
2541
2550
|
|
2551
|
+
# add additional libraries
|
2552
|
+
link_libraries = []
|
2553
|
+
if (!extconf["link_libraries"].nil?) && (extconf["link_libraries"].is_a? Array)
|
2554
|
+
link_libraries += extconf["link_libraries"]
|
2555
|
+
end
|
2556
|
+
if (!extconf[$config["platform"]].nil?) && (!extconf[$config["platform"]]["link_libraries"].nil?) && (extconf[$config["platform"]]["link_libraries"].is_a? Array)
|
2557
|
+
link_libraries += extconf[$config["platform"]]["link_libraries"]
|
2558
|
+
end
|
2559
|
+
link_libraries.each do |linklib|
|
2560
|
+
fulllibpath = File.join(extpath, linklib)
|
2561
|
+
add_inker_library_absolute(fulllibpath)
|
2562
|
+
end
|
2563
|
+
|
2542
2564
|
if entry && entry.length() > 0
|
2543
2565
|
if xml_api_paths.nil? #&& !(("rhoelementsext" == extname || "dominjector" == extname ) && ($config["platform"] == "wm"||$config["platform"] == "android"))
|
2544
2566
|
|
@@ -2547,7 +2569,7 @@ def init_extensions(dest, mode = "")
|
|
2547
2569
|
|
2548
2570
|
if (("rhoelementsext" == extname || "dominjector" == extname) && ($config["platform"] == "wm"||$config["platform"] == "android"))
|
2549
2571
|
extentries << entry
|
2550
|
-
extentries_init << entry
|
2572
|
+
extentries_init << entry
|
2551
2573
|
elsif !$js_application
|
2552
2574
|
extentries << entry
|
2553
2575
|
entry = "if (rho_ruby_is_started()) #{entry}"
|
@@ -2670,6 +2692,23 @@ def init_extensions(dest, mode = "")
|
|
2670
2692
|
|
2671
2693
|
end
|
2672
2694
|
|
2695
|
+
stubs = File.join($startdir, "platform", "wm", "rhodes", "browser", "stubs.cpp")
|
2696
|
+
if $is_webkit_engine == false
|
2697
|
+
File.open(stubs, "w+") do |f|
|
2698
|
+
f.puts "// WARNING! THIS FILE IS GENERATED AUTOMATICALLY! DO NOT EDIT IT MANUALLY!"
|
2699
|
+
f.puts "#include \"StdAfx.h\""
|
2700
|
+
f.puts "#include \"common/RhoStd.h\""
|
2701
|
+
f.puts "#include \"IBrowserEngine.h\""
|
2702
|
+
f.puts "rho::IBrowserEngine* rho_wmimpl_get_webkitBrowserEngine(HWND hwndParent, HINSTANCE rhoAppInstance) {return 0;}"
|
2703
|
+
Jake.modify_file_if_content_changed( stubs, f )
|
2704
|
+
end
|
2705
|
+
else
|
2706
|
+
File.open(stubs, "w+") do |f|
|
2707
|
+
f.puts "// WARNING! THIS FILE IS GENERATED AUTOMATICALLY! DO NOT EDIT IT MANUALLY!"
|
2708
|
+
f.puts "#include \"StdAfx.h\""
|
2709
|
+
Jake.modify_file_if_content_changed( stubs, f )
|
2710
|
+
end
|
2711
|
+
end
|
2673
2712
|
|
2674
2713
|
if ($ruby_only_extensions_list)
|
2675
2714
|
BuildOutput.warning([
|
@@ -4151,7 +4190,7 @@ namespace "wm_gem" do
|
|
4151
4190
|
$neon_root = $config["env"]["paths"]["neon"] unless $config["env"]["paths"]["neon"].nil?
|
4152
4191
|
$rhoelementsext_main_dir = File.join($startdir, 'extensions/rhoelementsext/ext')
|
4153
4192
|
$rhoelementsext_wm_dir = File.join($rhoelementsext_main_dir, "rhoelementsext/platform/wm")
|
4154
|
-
|
4193
|
+
|
4155
4194
|
$re_version = $config['version']
|
4156
4195
|
end
|
4157
4196
|
|
@@ -4161,23 +4200,23 @@ namespace "wm_gem" do
|
|
4161
4200
|
|
4162
4201
|
dest_dir = "./libs/data"
|
4163
4202
|
mkdir_p dest_dir
|
4164
|
-
|
4203
|
+
|
4165
4204
|
src_dir = File.join($startdir, "neon/R2D1/Build" )
|
4166
|
-
|
4205
|
+
|
4167
4206
|
cp_r File.join(src_dir, "Config"), dest_dir, :preserve => true
|
4168
4207
|
cp_r File.join(src_dir, "Windows/NPAPI"), dest_dir, :preserve => true
|
4169
4208
|
cp_r File.join(src_dir, "Windows/Plugins"), File.join(dest_dir, 'Plugin'), :preserve => true
|
4170
4209
|
|
4171
4210
|
Dir.glob(File.join(src_dir, "Windows/Binaries/*.*")).each { |f| cp_r f, dest_dir }
|
4172
4211
|
Dir.glob(File.join(src_dir, "Windows/WebKit/*.*")).each { |f| cp_r f, dest_dir }
|
4173
|
-
|
4212
|
+
|
4174
4213
|
chdir File.dirname(__FILE__)
|
4175
4214
|
chmod_R 0777, "./libs/data"
|
4176
4215
|
end
|
4177
4216
|
end
|
4178
|
-
end
|
4217
|
+
end
|
4179
4218
|
end
|
4180
|
-
namespace "build" do
|
4219
|
+
namespace "build" do
|
4181
4220
|
task :set_neon, :neon_dir do |t, args|
|
4182
4221
|
Jake.edit_yml(File.join(File.dirname(__FILE__), 'rhoelements.yml')) do |yml|
|
4183
4222
|
yml['env']['paths']['neon'] = args[:neon_dir]
|
@@ -4209,7 +4248,7 @@ namespace :run do
|
|
4209
4248
|
desc "start rholog(webrick) server"
|
4210
4249
|
task :webrickrhologserver, :app_path do |t, args|
|
4211
4250
|
require 'webrick'
|
4212
|
-
|
4251
|
+
|
4213
4252
|
puts "Args were: #{args}"
|
4214
4253
|
$app_path = args[:app_path]
|
4215
4254
|
|
@@ -34,8 +34,8 @@ device = SimCtl.device(udid: device_uid)
|
|
34
34
|
|
35
35
|
if device == nil
|
36
36
|
|
37
|
-
devicetype = SimCtl.devicetype(name: 'iPhone
|
38
|
-
devicename = 'Rhomobile
|
37
|
+
devicetype = SimCtl.devicetype(name: 'iPhone 7')
|
38
|
+
devicename = 'Rhomobile iPhone7 '+sdk_ver
|
39
39
|
|
40
40
|
if ARGV[3] == 'ipad'
|
41
41
|
devicetype = SimCtl.devicetype(name: 'iPad Air 2')
|
data/res/generators/rhogen.rb
CHANGED
@@ -149,77 +149,6 @@ module Rhogen
|
|
149
149
|
file.destination = "#{name}/app/loading.png"
|
150
150
|
end
|
151
151
|
|
152
|
-
file :loadingpng5 do |file|
|
153
|
-
file.source = 'app/loading-568h@2x.png'
|
154
|
-
file.destination = "#{name}/app/loading-568h@2x.png"
|
155
|
-
end
|
156
|
-
|
157
|
-
file :loadingpng51 do |file|
|
158
|
-
file.source = 'app/loading-667h@2x.png'
|
159
|
-
file.destination = "#{name}/app/loading-667h@2x.png"
|
160
|
-
end
|
161
|
-
|
162
|
-
file :loadingpng52 do |file|
|
163
|
-
file.source = 'app/loading-736h@3x.png'
|
164
|
-
file.destination = "#{name}/app/loading-736h@3x.png"
|
165
|
-
end
|
166
|
-
|
167
|
-
file :loadingpngl do |file|
|
168
|
-
file.source = 'app/loading-Landscape.png'
|
169
|
-
file.destination = "#{name}/app/loading-Landscape.png"
|
170
|
-
end
|
171
|
-
|
172
|
-
file :loadingpngll do |file|
|
173
|
-
file.source = 'app/loading-LandscapeLeft.png'
|
174
|
-
file.destination = "#{name}/app/loading-LandscapeLeft.png"
|
175
|
-
end
|
176
|
-
|
177
|
-
file :loadingpnglr do |file|
|
178
|
-
file.source = 'app/loading-LandscapeRight.png'
|
179
|
-
file.destination = "#{name}/app/loading-LandscapeRight.png"
|
180
|
-
end
|
181
|
-
|
182
|
-
file :loadingpngp do |file|
|
183
|
-
file.source = 'app/loading-Portrait.png'
|
184
|
-
file.destination = "#{name}/app/loading-Portrait.png"
|
185
|
-
end
|
186
|
-
|
187
|
-
file :loadingpngpud do |file|
|
188
|
-
file.source = 'app/loading-PortraitUpsideDown.png'
|
189
|
-
file.destination = "#{name}/app/loading-PortraitUpsideDown.png"
|
190
|
-
end
|
191
|
-
|
192
|
-
file :loadingpngl2 do |file|
|
193
|
-
file.source = 'app/loading-Landscape@2x.png'
|
194
|
-
file.destination = "#{name}/app/loading-Landscape@2x.png"
|
195
|
-
end
|
196
|
-
|
197
|
-
file :loadingpngll2 do |file|
|
198
|
-
file.source = 'app/loading-LandscapeLeft@2x.png'
|
199
|
-
file.destination = "#{name}/app/loading-LandscapeLeft@2x.png"
|
200
|
-
end
|
201
|
-
|
202
|
-
file :loadingpnglr2 do |file|
|
203
|
-
file.source = 'app/loading-LandscapeRight@2x.png'
|
204
|
-
file.destination = "#{name}/app/loading-LandscapeRight@2x.png"
|
205
|
-
end
|
206
|
-
|
207
|
-
file :loadingpngp2 do |file|
|
208
|
-
file.source = 'app/loading-Portrait@2x.png'
|
209
|
-
file.destination = "#{name}/app/loading-Portrait@2x.png"
|
210
|
-
end
|
211
|
-
|
212
|
-
file :loadingpngpud2 do |file|
|
213
|
-
file.source = 'app/loading-PortraitUpsideDown@2x.png'
|
214
|
-
file.destination = "#{name}/app/loading-PortraitUpsideDown@2x.png"
|
215
|
-
end
|
216
|
-
|
217
|
-
file :loadingpngx do |file|
|
218
|
-
file.source = 'app/loading@2x.png'
|
219
|
-
file.destination = "#{name}/app/loading@2x.png"
|
220
|
-
end
|
221
|
-
|
222
|
-
|
223
152
|
directory :helpers do |directory|
|
224
153
|
directory.source = 'app/helpers'
|
225
154
|
directory.destination = "#{name}/app/helpers"
|
@@ -230,9 +159,9 @@ module Rhogen
|
|
230
159
|
directory.destination = "#{name}/icon"
|
231
160
|
end
|
232
161
|
|
233
|
-
directory :
|
234
|
-
directory.source = '
|
235
|
-
directory.destination = "#{name}/
|
162
|
+
directory :resources do |directory|
|
163
|
+
directory.source = 'resources'
|
164
|
+
directory.destination = "#{name}/resources"
|
236
165
|
end
|
237
166
|
|
238
167
|
template :settings1 do |template|
|
@@ -382,84 +311,14 @@ module Rhogen
|
|
382
311
|
file.destination = "#{name}/app/loading.png"
|
383
312
|
end
|
384
313
|
|
385
|
-
file :loadingpng5 do |file|
|
386
|
-
file.source = 'app/loading-568h@2x.png'
|
387
|
-
file.destination = "#{name}/app/loading-568h@2x.png"
|
388
|
-
end
|
389
|
-
|
390
|
-
file :loadingpng51 do |file|
|
391
|
-
file.source = 'app/loading-667h@2x.png'
|
392
|
-
file.destination = "#{name}/app/loading-667h@2x.png"
|
393
|
-
end
|
394
|
-
|
395
|
-
file :loadingpng52 do |file|
|
396
|
-
file.source = 'app/loading-736h@3x.png'
|
397
|
-
file.destination = "#{name}/app/loading-736h@3x.png"
|
398
|
-
end
|
399
|
-
|
400
|
-
file :loadingpngl do |file|
|
401
|
-
file.source = 'app/loading-Landscape.png'
|
402
|
-
file.destination = "#{name}/app/loading-Landscape.png"
|
403
|
-
end
|
404
|
-
|
405
|
-
file :loadingpngll do |file|
|
406
|
-
file.source = 'app/loading-LandscapeLeft.png'
|
407
|
-
file.destination = "#{name}/app/loading-LandscapeLeft.png"
|
408
|
-
end
|
409
|
-
|
410
|
-
file :loadingpnglr do |file|
|
411
|
-
file.source = 'app/loading-LandscapeRight.png'
|
412
|
-
file.destination = "#{name}/app/loading-LandscapeRight.png"
|
413
|
-
end
|
414
|
-
|
415
|
-
file :loadingpngp do |file|
|
416
|
-
file.source = 'app/loading-Portrait.png'
|
417
|
-
file.destination = "#{name}/app/loading-Portrait.png"
|
418
|
-
end
|
419
|
-
|
420
|
-
file :loadingpngpud do |file|
|
421
|
-
file.source = 'app/loading-PortraitUpsideDown.png'
|
422
|
-
file.destination = "#{name}/app/loading-PortraitUpsideDown.png"
|
423
|
-
end
|
424
|
-
|
425
|
-
file :loadingpngl2 do |file|
|
426
|
-
file.source = 'app/loading-Landscape@2x.png'
|
427
|
-
file.destination = "#{name}/app/loading-Landscape@2x.png"
|
428
|
-
end
|
429
|
-
|
430
|
-
file :loadingpngll2 do |file|
|
431
|
-
file.source = 'app/loading-LandscapeLeft@2x.png'
|
432
|
-
file.destination = "#{name}/app/loading-LandscapeLeft@2x.png"
|
433
|
-
end
|
434
|
-
|
435
|
-
file :loadingpnglr2 do |file|
|
436
|
-
file.source = 'app/loading-LandscapeRight@2x.png'
|
437
|
-
file.destination = "#{name}/app/loading-LandscapeRight@2x.png"
|
438
|
-
end
|
439
|
-
|
440
|
-
file :loadingpngp2 do |file|
|
441
|
-
file.source = 'app/loading-Portrait@2x.png'
|
442
|
-
file.destination = "#{name}/app/loading-Portrait@2x.png"
|
443
|
-
end
|
444
|
-
|
445
|
-
file :loadingpngpud2 do |file|
|
446
|
-
file.source = 'app/loading-PortraitUpsideDown@2x.png'
|
447
|
-
file.destination = "#{name}/app/loading-PortraitUpsideDown@2x.png"
|
448
|
-
end
|
449
|
-
|
450
|
-
file :loadingpngx do |file|
|
451
|
-
file.source = 'app/loading@2x.png'
|
452
|
-
file.destination = "#{name}/app/loading@2x.png"
|
453
|
-
end
|
454
|
-
|
455
314
|
directory :icon do |directory|
|
456
315
|
directory.source = 'icon'
|
457
316
|
directory.destination = "#{name}/icon"
|
458
317
|
end
|
459
318
|
|
460
|
-
directory :
|
461
|
-
directory.source = '
|
462
|
-
directory.destination = "#{name}/
|
319
|
+
directory :resources do |directory|
|
320
|
+
directory.source = 'resources'
|
321
|
+
directory.destination = "#{name}/resources"
|
463
322
|
end
|
464
323
|
|
465
324
|
file :androidmanifesterb do |file|
|
@@ -14,8 +14,8 @@ static NSDictionary* ourPropertyAliases= nil;
|
|
14
14
|
@implementation <%= $cur_module.name %>Base
|
15
15
|
|
16
16
|
- (void) resetAllPropertiesToDefault {
|
17
|
-
<% if $cur_module.is_template_propertybag
|
18
|
-
%> mDeclaredProperties = [[NSSet setWithObjects:<%
|
17
|
+
<% if $cur_module.is_template_propertybag
|
18
|
+
%> mDeclaredProperties = [[NSSet setWithObjects:<%
|
19
19
|
$cur_module.properties.each do |prop|
|
20
20
|
line = '@"'+prop.native_name+'", ' %><%= line %><%
|
21
21
|
end
|
@@ -98,7 +98,7 @@ static NSDictionary* ourPropertyAliases= nil;
|
|
98
98
|
NSObject* value = propertyValue;
|
99
99
|
NSString* strValue = propertyValue;
|
100
100
|
if ([propertyName isEqualToString:@"ID"] && [value isKindOfClass:[NSString class]] && [strValue isEqualToString:@""]) {
|
101
|
-
NSLog(@"Clearing ID!");
|
101
|
+
//NSLog(@"Clearing ID!");
|
102
102
|
}
|
103
103
|
if ([value isKindOfClass:[NSNumber class]]) {
|
104
104
|
NSNumber* numValue = (NSNumber*)value;
|
@@ -137,13 +137,13 @@ static NSDictionary* ourPropertyAliases= nil;
|
|
137
137
|
-(void) getProperties:(NSArray*)arrayofNames methodResult:(id<IMethodResult>)methodResult {
|
138
138
|
NSMutableDictionary* dict = [[NSMutableDictionary dictionaryWithCapacity:[arrayofNames count]] autorelease];
|
139
139
|
CMethodResult_SimpleHolder* resultHolder = [CMethodResult_SimpleHolder makeEmptyHolder];
|
140
|
-
for (NSString* key in arrayofNames) {
|
140
|
+
for (NSString* key in arrayofNames) {
|
141
141
|
[resultHolder setResult:nil];
|
142
142
|
[self getProperty:key methodResult:resultHolder];
|
143
143
|
if ([resultHolder getResult] != nil) {
|
144
144
|
NSString* value = (NSString*)[resultHolder getResult];
|
145
145
|
[dict setObject:value forKey:key];
|
146
|
-
} <%
|
146
|
+
} <%
|
147
147
|
if !$cur_module.is_property_bag_limit_to_only_declared_properties && $cur_module.is_template_propertybag %>
|
148
148
|
else {
|
149
149
|
[dict setObject:@"" forKey:key];
|
@@ -159,7 +159,7 @@ if !$cur_module.is_property_bag_limit_to_only_declared_properties && $cur_module
|
|
159
159
|
|
160
160
|
|
161
161
|
-(void) setProperties:(NSDictionary*)propertyMap methodResult:(id<IMethodResult>)methodResult {
|
162
|
-
for (NSString* key in propertyMap) {
|
162
|
+
for (NSString* key in propertyMap) {
|
163
163
|
NSString* value = (NSString*)[propertyMap objectForKey:key];
|
164
164
|
[self setProperty:key propertyValue:value methodResult:methodResult];
|
165
165
|
}
|
@@ -242,4 +242,4 @@ end %>
|
|
242
242
|
[super dealloc];
|
243
243
|
}
|
244
244
|
|
245
|
-
@end
|
245
|
+
@end
|