Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #86 from blackberry-webworks/master

Requesting pull of master from bb-ww into bb for Ripple Framework
  • Loading branch information...
commit c3126aa0669068f5ee102b65231fdaebdcdfa9ff 2 parents ea0ea91 + 66fea27
Ken Wallis authored
Showing with 52 additions and 4 deletions.
  1. +10 −3 Ripple/ripple.cpp
  2. +1 −1  config.ini
  3. +21 −0 dist-ci.xml
  4. +20 −0 dist-windows.xml
View
13 Ripple/ripple.cpp
@@ -47,8 +47,10 @@ void Ripple::init(void)
setAttribute(Qt::WA_DeleteOnClose);
webViewInternal = new QtGraphicsStageWebView(this);
- webViewInternal->qtStageWebView()->settings()->setAttribute(QWebSettings::DeveloperExtrasEnabled, true);
- webViewInternal->qtStageWebView()->settings()->enablePersistentStorage(_config->localStoragePath());
+ webViewInternal->qtStageWebView()->settings()->setAttribute(QWebSettings::DeveloperExtrasEnabled, true);
+ webViewInternal->qtStageWebView()->settings()->enablePersistentStorage(_config->localStoragePath());
+ webViewInternal->qtStageWebView()->settings()->setOfflineStoragePath(_config->localStoragePath());
+ webViewInternal->qtStageWebView()->settings()->setOfflineWebApplicationCachePath(_config->localStoragePath());
webViewInternal->qtStageWebView()->settings()->setOfflineStorageDefaultQuota(512000000);
webViewInternal->qtStageWebView()->settings()->setAttribute(QWebSettings::LocalContentCanAccessRemoteUrls, true);
webViewInternal->qtStageWebView()->settings()->setAttribute(QWebSettings::LocalContentCanAccessFileUrls, true);
@@ -102,7 +104,12 @@ void Ripple::init(void)
move(_config->windowPosition());
- webViewInternal->qtStageWebView()->load(QUrl(_config->toolingContent()));
+ //workaround in case the toolingContent point to a folder without end '/', append one, so the offline mode still works
+ QUrl url(_config->toolingContent());
+ QString path = url.path();
+ if ( url.toLocalFile().isEmpty() && !path.endsWith('/'))
+ url.setPath(path + "/");
+ webViewInternal->qtStageWebView()->load(url);
setCentralWidget(webViewInternal);
View
2  config.ini
@@ -1,2 +1,2 @@
[Ripple]
-windowContent=http://developer.blackberry.com/html5/update/rippleui
+windowContent=http://developer.blackberry.com/ripple/
View
21 dist-ci.xml
@@ -38,6 +38,27 @@ xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assemb
<include>QtOpenGL4.dll</include>
</includes>
</fileSet>
+
+ <!-- openssl-->
+ <fileSet>
+ <directory>${env.QTDIR}/openssl/win/bin</directory>
+ <outputDirectory>win</outputDirectory>
+ <includes>
+ <include>*.dll</include>
+ </includes>
+ </fileSet>
+
+ <!-- QT mobility-->
+ <fileSet>
+ <directory>${env.QT_MOBILITY_ROOT}/lib</directory>
+ <outputDirectory>win</outputDirectory>
+ <includes>
+ <include>QtLocation1.dll</include>
+ <include>QtMultimediaKit1.dll</include>
+ <include>QtSensors1.dll</include>
+ </includes>
+ </fileSet>
+
<fileSet>
<directory>${env.QTDIR}/plugins/imageformats</directory>
<outputDirectory>win/imageformats</outputDirectory>
View
20 dist-windows.xml
@@ -38,6 +38,26 @@ xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assemb
<include>QtOpenGL4.dll</include>
</includes>
</fileSet>
+
+ <!-- openssl-->
+ <fileSet>
+ <directory>${env.QTDIR}/openssl/win/bin</directory>
+ <outputDirectory>win</outputDirectory>
+ <includes>
+ <include>*.dll</include>
+ </includes>
+ </fileSet>
+
+ <!-- QT mobility-->
+ <fileSet>
+ <directory>${env.QT_MOBILITY_ROOT}/lib</directory>
+ <outputDirectory>win</outputDirectory>
+ <includes>
+ <include>QtLocation1.dll</include>
+ <include>QtMultimediaKit1.dll</include>
+ <include>QtSensors1.dll</include>
+ </includes>
+ </fileSet>
<fileSet>
<directory>${env.QTDIR}/plugins/imageformats</directory>
Please sign in to comment.
Something went wrong with that request. Please try again.