Skip to content

Commit 58498b2

Browse files
committed
Merge branch 'qt-securecontext' into release-v4.46.3
2 parents ab325eb + f3f3d12 commit 58498b2

File tree

10 files changed

+23
-23
lines changed

10 files changed

+23
-23
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
## Unreleased
44

5+
# 4.46.3
6+
- Fix camera access on linux
7+
58
# 4.46.2
69
- Fix Linux blank screen issue related to the local mimetype database
710

backend/update.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const updateFileURL = "https://bitboxapp.shiftcrypto.io/desktop.json"
2727

2828
var (
2929
// Version of the backend as displayed to the user.
30-
Version = semver.NewSemVer(4, 46, 2)
30+
Version = semver.NewSemVer(4, 46, 3)
3131
)
3232

3333
// UpdateFile is retrieved from the server.

frontends/android/BitBoxApp/app/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ android {
77
applicationId "ch.shiftcrypto.bitboxapp"
88
minSdkVersion 21
99
targetSdkVersion 34
10-
versionCode 57
11-
versionName "android-4.46.2"
10+
versionCode 58
11+
versionName "android-4.46.3"
1212
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
1313
}
1414
buildTypes {

frontends/ios/BitBoxApp/Config.xcconfig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
// https://help.apple.com/xcode/#/dev745c5c974
33

44
// App version
5-
MARKETING_VERSION = 4.46.2
5+
MARKETING_VERSION = 4.46.3
66

77
// Build number, increment this for every separate publication,
88
// even if the app version is the same.
9-
CURRENT_PROJECT_VERSION = 5
9+
CURRENT_PROJECT_VERSION = 6

frontends/qt/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ linux:
3737
cp resources/linux/usr/share/icons/hicolor/128x128/apps/bitbox.png build/linux-tmp
3838
mkdir build/tmp-deb/opt/
3939
cp -aR build/linux-tmp build/tmp-deb/opt/bitbox
40-
cd build/linux && fpm --after-install ../../resources/deb-afterinstall.sh -s dir -t deb -n bitbox -v 4.46.2 -C ../tmp-deb/
41-
cd build/linux && fpm --after-install ../../resources/deb-afterinstall.sh -s dir -t rpm -n bitbox -v 4.46.2 -C ../tmp-deb/
40+
cd build/linux && fpm --after-install ../../resources/deb-afterinstall.sh -s dir -t deb -n bitbox -v 4.46.3 -C ../tmp-deb/
41+
cd build/linux && fpm --after-install ../../resources/deb-afterinstall.sh -s dir -t rpm -n bitbox -v 4.46.3 -C ../tmp-deb/
4242
# create AppImage
4343
cd build/linux-tmp && /opt/linuxdeployqt-continuous-x86_64.AppImage BitBox -appimage -unsupported-allow-new-glibc
4444
mv build/linux-tmp/BitBoxApp-*-x86_64.AppImage build/linux/

frontends/qt/main.cpp

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -184,8 +184,8 @@ class RequestInterceptor : public QWebEngineUrlRequestInterceptor {
184184
// We treat the exchange pages specially because we need to allow exchange
185185
// widgets to load in an iframe as well as let them open external links
186186
// in a browser.
187-
bool onExchangePage = currentUrl.contains(QRegularExpression(QString("^%1:/exchange/.*$").arg(scheme)));
188-
bool onBitsurancePage = currentUrl.contains(QRegularExpression(QString("^%1:/bitsurance/.*$").arg(scheme)));
187+
bool onExchangePage = currentUrl.contains(QRegularExpression(QString("^%1:/index\.html\#/exchange/.*$").arg(scheme)));
188+
bool onBitsurancePage = currentUrl.contains(QRegularExpression(QString("^%1:/index\.html\#/bitsurance/.*$").arg(scheme)));
189189
if (onExchangePage || onBitsurancePage) {
190190
if (info.firstPartyUrl().toString() == info.requestUrl().toString()) {
191191
// Ignore requests for certain file types (e.g., .js, .css) Somehow Moonpay loads
@@ -208,7 +208,7 @@ class RequestInterceptor : public QWebEngineUrlRequestInterceptor {
208208

209209
// All the requests originated in the wallet-connect section are allowed, as they are needed to
210210
// load the Dapp logos and it is not easy to filter out non-images requests.
211-
bool onWCPage = currentUrl.contains(QRegularExpression(QString(R"(^%1:/account/[^\/]+/wallet-connect/.*$)").arg(scheme)));
211+
bool onWCPage = currentUrl.contains(QRegularExpression(QString(R"(^%1:/index\.html\#/account/[^\/]+/wallet-connect/.*$)").arg(scheme)));
212212
if (onWCPage) {
213213
return;
214214
}
@@ -339,11 +339,8 @@ int main(int argc, char *argv[])
339339
}
340340

341341
QWebEngineUrlScheme bbappScheme(scheme);
342-
bbappScheme.setSyntax(QWebEngineUrlScheme::Syntax::HostAndPort);
343-
bbappScheme.setFlags(
344-
QWebEngineUrlScheme::LocalScheme |
345-
QWebEngineUrlScheme::SecureScheme |
346-
QWebEngineUrlScheme::LocalAccessAllowed);
342+
bbappScheme.setSyntax(QWebEngineUrlScheme::Syntax::Path);
343+
bbappScheme.setFlags(QWebEngineUrlScheme::SecureScheme);
347344
QWebEngineUrlScheme::registerScheme(bbappScheme);
348345

349346
view = new WebEngineView();

frontends/qt/resources/MacOS/Info.plist

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@
2121
<string>APPL</string>
2222

2323
<key>CFBundleVersion</key>
24-
<string>4.46.2</string>
24+
<string>4.46.3</string>
2525

2626
<key>CFBundleShortVersionString</key>
27-
<string>4.46.2</string>
27+
<string>4.46.3</string>
2828

2929
<key>CFBundleSignature</key>
3030
<string>????</string>

frontends/qt/setup.nsi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ SetCompressor /SOLID lzma
2222

2323
# General Symbol Definitions
2424
!define REGKEY "SOFTWARE\$(^Name)"
25-
!define VERSION 4.46.2.0
25+
!define VERSION 4.46.3.0
2626
!define COMPANY "Shift Crypto AG"
2727
!define URL https://github.com/BitBoxSwiss/bitbox-wallet-app/releases/
2828
!define BINDIR "build\windows"

frontends/web/src/app.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ export const App = () => {
6363
}, [t]);
6464

6565
const maybeRoute = useCallback(() => {
66-
const currentURL = window.location.pathname;
67-
const isIndex = currentURL === '/' || currentURL === '/index.html' || currentURL === '/android_asset/web/index.html' || currentURL.endsWith('/assets/web/index.html');
66+
const currentURL = window.location.hash.replace(/^#/, '');
67+
const isIndex = currentURL === '' || currentURL === '/';
6868
const inAccounts = currentURL.startsWith('/account/');
6969

7070
// QT and Android start their apps in '/index.html' and '/android_asset/web/index.html' respectively

frontends/web/src/index.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
import React from 'react';
1919
import { createRoot } from 'react-dom/client';
2020
import { I18nextProvider } from 'react-i18next';
21-
import { BrowserRouter } from 'react-router-dom';
21+
import { HashRouter } from 'react-router-dom';
2222
import { App } from './app';
2323
import { i18n } from './i18n/i18n';
2424
import './style/index.css';
@@ -30,9 +30,9 @@ root.render(
3030
<React.StrictMode>
3131
<I18nextProvider i18n={i18n}>
3232
<React.Suspense fallback={null}>
33-
<BrowserRouter>
33+
<HashRouter>
3434
<App />
35-
</BrowserRouter>
35+
</HashRouter>
3636
</React.Suspense>
3737
</I18nextProvider>
3838
</React.StrictMode>

0 commit comments

Comments
 (0)