Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
a114e92
runs correctly
SwissBitcoinPay Sep 20, 2025
b0d13c1
runs
SwissBitcoinPay Sep 20, 2025
0d6f72e
runs
SwissBitcoinPay Sep 20, 2025
645c88a
runs ok
SwissBitcoinPay Sep 20, 2025
4a8191a
ok with screenguard
SwissBitcoinPay Sep 20, 2025
be5edd7
runs with screenguard
SwissBitcoinPay Sep 20, 2025
62d0331
ok with react-router-dom
SwissBitcoinPay Sep 20, 2025
6a2ac41
runs ok
SwissBitcoinPay Sep 20, 2025
987b0ae
runs ok
SwissBitcoinPay Sep 20, 2025
d6be896
runs ok
SwissBitcoinPay Sep 20, 2025
647dd22
runs ok
SwissBitcoinPay Sep 20, 2025
c2ff359
runs on web
SwissBitcoinPay Sep 20, 2025
3f4d9e3
updated all libs
SwissBitcoinPay Sep 20, 2025
3170bff
running on android dev
SwissBitcoinPay Sep 21, 2025
b27bcc7
no more loop on android
SwissBitcoinPay Sep 21, 2025
e9944aa
remove broken animations in Pos
SwissBitcoinPay Sep 21, 2025
8e6541d
fix sentry + vision camera
SwissBitcoinPay Sep 21, 2025
47bd074
Fix ledger bluetooth android
SwissBitcoinPay Sep 21, 2025
415c2f4
bump version
SwissBitcoinPay Sep 21, 2025
b2b22dc
updated fast image lib
SwissBitcoinPay Sep 21, 2025
2414e8f
update sentry
SwissBitcoinPay Sep 21, 2025
b2d4b67
revert sentry
SwissBitcoinPay Sep 21, 2025
9f1ffe6
sentry 6.21.0
SwissBitcoinPay Sep 21, 2025
c608acc
sentry 6.20.0
SwissBitcoinPay Sep 21, 2025
79c2249
test without sentry
SwissBitcoinPay Sep 21, 2025
822cea7
test fix
SwissBitcoinPay Sep 21, 2025
9a281a0
test by fixing pbxproj
SwissBitcoinPay Sep 21, 2025
ec586bd
try fix
SwissBitcoinPay Sep 21, 2025
76d8e5f
bump version
SwissBitcoinPay Sep 21, 2025
7cbb7ed
fix ios build
SwissBitcoinPay Sep 22, 2025
79adfa9
bump build number
SwissBitcoinPay Sep 22, 2025
4d3e1ae
test patch countLines
SwissBitcoinPay Sep 22, 2025
0d9c39a
new countLines fix
SwissBitcoinPay Sep 22, 2025
114403a
remove sentry wrapper
SwissBitcoinPay Sep 22, 2025
a5b2cf8
add cli-darwin
SwissBitcoinPay Sep 22, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .env
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
APP_VERSION=2.5.26
APP_BUILD_NUMBER=459
APP_VERSION=2.5.27
APP_BUILD_NUMBER=462
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ local.properties
*.keystore
*.android.bundle
android/app/src/main/res/drawable-mdpi
.kotlin/


# VS Code
Expand Down
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
20.19.4
10 changes: 5 additions & 5 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"bracketSpacing": true,
"jsxBracketSameLine": false,
"singleQuote": false,
"trailingComma": "none"
}
"bracketSpacing": true,
"jsxBracketSameLine": false,
"singleQuote": false,
"trailingComma": "none"
}
10 changes: 8 additions & 2 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,15 @@ source 'https://rubygems.org'

# You may use http://rbenv.org/ or https://rvm.io/ to install and use this version
ruby ">= 2.6.10"

# Exclude problematic versions of cocoapods and activesupport that causes build failures.
gem 'cocoapods', '>= 1.13', '!= 1.15.0', '!= 1.15.1'
gem 'activesupport', '>= 6.1.7.5', '!= 7.1.0'
gem 'xcodeproj', '< 1.26.0'
gem 'concurrent-ruby', '< 1.3.4'
gem 'concurrent-ruby', '< 1.3.4'

# Ruby 3.4.0 has removed some libraries from the standard library.
gem 'bigdecimal'
gem 'logger'
gem 'benchmark'
gem 'mutex_m'
4 changes: 2 additions & 2 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -73,14 +73,14 @@ def enableProguardInReleaseBuilds = true
* The preferred build flavor of JavaScriptCore (JSC)
*
* For example, to use the international variant, you can use:
* `def jscFlavor = 'org.webkit:android-jsc-intl:+'`
* `def jscFlavor = io.github.react-native-community:jsc-android-intl:2026004.+`
*
* The international variant includes ICU i18n library and necessary data
* allowing to use e.g. `Date.toLocaleString` and `String.localeCompare` that
* give correct results when using with locales other than en-US. Note that
* this variant is about 6MiB larger per architecture than default.
*/
def jscFlavor = 'org.webkit:android-jsc:+'
def jscFlavor = 'io.github.react-native-community:jsc-android:2026004.+'

/**
* Private function to get the list of Native Architectures you want to build.
Expand Down
11 changes: 0 additions & 11 deletions android/app/src/debug/AndroidManifest.xml

This file was deleted.

1 change: 1 addition & 0 deletions android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
android:largeHeap="true"
android:hardwareAccelerated="true"
android:theme="@style/AppTheme"
android:usesCleartextTraffic="${usesCleartextTraffic}"
android:supportsRtl="true">
<profileable android:shell="true" />
<activity
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,11 @@ import android.app.Application
import com.facebook.react.PackageList
import com.facebook.react.ReactApplication
import com.facebook.react.ReactHost
import com.facebook.react.ReactNativeApplicationEntryPoint.loadReactNative
import com.facebook.react.ReactNativeHost
import com.facebook.react.ReactPackage
import com.facebook.react.defaults.DefaultNewArchitectureEntryPoint.load
import com.facebook.react.defaults.DefaultReactHost.getDefaultReactHost
import com.facebook.react.defaults.DefaultReactNativeHost
import com.facebook.react.soloader.OpenSourceMergedSoMapping
import com.facebook.soloader.SoLoader
import ch.swissbitcoinpay.checkout.BitBoxBridgePackage

class MainApplication : Application(), ReactApplication {
Expand All @@ -37,10 +35,6 @@ class MainApplication : Application(), ReactApplication {

override fun onCreate() {
super.onCreate()
SoLoader.init(this, OpenSourceMergedSoMapping)
if (BuildConfig.IS_NEW_ARCHITECTURE_ENABLED) {
// If you opted-in for the New Architecture, we load the native entry point for this app.
load()
}
loadReactNative(this)
}
}
8 changes: 4 additions & 4 deletions android/build.gradle
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
buildscript {
ext {
buildToolsVersion = "35.0.0"
buildToolsVersion = "36.0.0"
minSdkVersion = 26
compileSdkVersion = 35
targetSdkVersion = 34
compileSdkVersion = 36
targetSdkVersion = 36
ndkVersion = "27.1.12297006"
kotlinVersion = "2.0.21"
kotlinVersion = "2.1.20"

androidXAnnotation = "1.2.0"
androidXBrowser = "1.3.0"
Expand Down
7 changes: 6 additions & 1 deletion android/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,9 @@ newArchEnabled=false
hermesEnabled=true

VisionCamera_enableCodeScanner=true
VisionCamera_disableFrameProcessors=true
VisionCamera_disableFrameProcessors=true

# Use this property to enable edge-to-edge display support.
# This allows your app to draw behind system bars for an immersive UI.
# Note: Only works with ReactActivity and should not be used with custom Activity.
edgeToEdgeEnabled=false
Binary file modified android/gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
3 changes: 1 addition & 2 deletions android/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionSha256Sum=2ab88d6de2c23e6adae7363ae6e29cbdd2a709e992929b48b6530fd0c7133bd6
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.2-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14.3-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
Expand Down
9 changes: 4 additions & 5 deletions android/gradlew

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions android/gradlew.bat

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import "react-native-get-random-values";
import "node-libs-react-native/globals.js";
import { AppRegistry, LogBox } from "react-native";
import { Root } from "./src/Root";
import Root from "./src/Root";
import { name as appName } from "./app.json";
import {
isSslPinningAvailable,
Expand Down
36 changes: 1 addition & 35 deletions ios/SwissBitcoinPay.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -35,18 +35,7 @@
BFEDB2B877EA4725BFBC7740 /* SpaceMono-Bold.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 4C7AED05711C4576BB05787D /* SpaceMono-Bold.ttf */; };
/* End PBXBuildFile section */

/* Begin PBXContainerItemProxy section */
00E356F41AD99517003FC87E /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = 83CBB9F71A601CBA00E9B192 /* Project object */;
proxyType = 1;
remoteGlobalIDString = 13B07F861A680F5B00A75B9A;
remoteInfo = SwissBitcoinPay;
};
/* End PBXContainerItemProxy section */

/* Begin PBXFileReference section */
00E356F11AD99517003FC87E /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
112FDAA795A44E5F9227AF2C /* Poppins-ExtraBold.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = "Poppins-ExtraBold.ttf"; path = "../src/assets/fonts/Poppins/Poppins-ExtraBold.ttf"; sourceTree = "<group>"; };
13B07F961A680F5B00A75B9A /* SwissBitcoinPay.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = SwissBitcoinPay.app; sourceTree = BUILT_PRODUCTS_DIR; };
13B07FAF1A68108700A75B9A /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AppDelegate.h; path = SwissBitcoinPay/AppDelegate.h; sourceTree = "<group>"; };
Expand Down Expand Up @@ -94,14 +83,6 @@
/* End PBXFrameworksBuildPhase section */

/* Begin PBXGroup section */
00E356F01AD99517003FC87E /* Supporting Files */ = {
isa = PBXGroup;
children = (
00E356F11AD99517003FC87E /* Info.plist */,
);
name = "Supporting Files";
sourceTree = "<group>";
};
13B07FAE1A68108700A75B9A /* SwissBitcoinPay */ = {
isa = PBXGroup;
children = (
Expand Down Expand Up @@ -247,13 +228,6 @@
/* End PBXProject section */

/* Begin PBXResourcesBuildPhase section */
00E356EC1AD99517003FC87E /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
13B07F8E1A680F5B00A75B9A /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
Expand Down Expand Up @@ -300,7 +274,7 @@
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "set -e\n\nWITH_ENVIRONMENT=\"$REACT_NATIVE_PATH/scripts/xcode/with-environment.sh\"\nREACT_NATIVE_XCODE=\"$REACT_NATIVE_PATH/scripts/react-native-xcode.sh\"\n\n/bin/sh -c \"$WITH_ENVIRONMENT \\\"/bin/sh ../node_modules/@sentry/react-native/scripts/sentry-xcode.sh $REACT_NATIVE_XCODE\\\"\"\n";
shellScript = "set -e\n\nWITH_ENVIRONMENT=\"$REACT_NATIVE_PATH/scripts/xcode/with-environment.sh\"\nREACT_NATIVE_XCODE=\"$REACT_NATIVE_PATH/scripts/react-native-xcode.sh\"\SENTRY_XCODE=\"../node_modules/@sentry/react-native/scripts/sentry-xcode.sh\"\BUNDLE_REACT_NATIVE=\"/bin/sh $SENTRY_XCODE $REACT_NATIVE_XCODE\"\n\n/bin/sh -c \"${PROJECT_DIR}/sentry-wrapper.sh\"\n";
};
00EEFC60759A1932668264C0 /* [CP] Embed Pods Frameworks */ = {
isa = PBXShellScriptBuildPhase;
Expand Down Expand Up @@ -385,14 +359,6 @@
};
/* End PBXSourcesBuildPhase section */

/* Begin PBXTargetDependency section */
00E356F51AD99517003FC87E /* PBXTargetDependency */ = {
isa = PBXTargetDependency;
target = 13B07F861A680F5B00A75B9A /* SwissBitcoinPay */;
targetProxy = 00E356F41AD99517003FC87E /* PBXContainerItemProxy */;
};
/* End PBXTargetDependency section */

/* Begin XCBuildConfiguration section */
13B07F941A680F5B00A75B9A /* Debug */ = {
isa = XCBuildConfiguration;
Expand Down
47 changes: 32 additions & 15 deletions ios/SwissBitcoinPay/AppDelegate.swift
Original file line number Diff line number Diff line change
@@ -1,31 +1,48 @@

import UIKit
import React
import React_RCTAppDelegate
import ReactAppDependencyProvider

@main
class AppDelegate: RCTAppDelegate {
override func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey : Any]? = nil) -> Bool {
self.moduleName = "SwissBitcoinPay"
self.dependencyProvider = RCTAppDependencyProvider()

// You can add your custom initial props in the dictionary below.
// They will be passed down to the ViewController used by React Native.
self.initialProps = [:]

return super.application(application, didFinishLaunchingWithOptions: launchOptions)
class AppDelegate: UIResponder, UIApplicationDelegate {
var window: UIWindow?

var reactNativeDelegate: ReactNativeDelegate?
var reactNativeFactory: RCTReactNativeFactory?

func application(
_ application: UIApplication,
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? = nil
) -> Bool {
let delegate = ReactNativeDelegate()
let factory = RCTReactNativeFactory(delegate: delegate)
delegate.dependencyProvider = RCTAppDependencyProvider()

reactNativeDelegate = delegate
reactNativeFactory = factory

window = UIWindow(frame: UIScreen.main.bounds)

factory.startReactNative(
withModuleName: "SwissBitcoinPay",
in: window,
launchOptions: launchOptions
)

return true
}

}

class ReactNativeDelegate: RCTDefaultReactNativeFactoryDelegate {
override func sourceURL(for bridge: RCTBridge) -> URL? {
self.bundleURL()
}

override func bundleURL() -> URL? {
#if DEBUG
RCTBundleURLProvider.sharedSettings().jsBundleURL(forBundleRoot: "index")
#else
Bundle.main.url(forResource: "main", withExtension: "jsbundle")
#endif
}
}
}
6 changes: 6 additions & 0 deletions ios/sentry-wrapper.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash

# Fix by https://github.com/getsentry/sentry-react-native/issues/5168#issuecomment-3307421119

set -e
exec ../node_modules/@sentry/react-native/scripts/sentry-xcode.sh ../node_modules/react-native/scripts/react-native-xcode.sh
8 changes: 2 additions & 6 deletions metro.config.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
const { getDefaultConfig, mergeConfig } = require('@react-native/metro-config');

const {
withSentryConfig
} = require("@sentry/react-native/metro");
const { getDefaultConfig, mergeConfig } = require("@react-native/metro-config");

const defaultConfig = getDefaultConfig(__dirname);

Expand All @@ -27,4 +23,4 @@ const config = {
}
};

module.exports = withSentryConfig(mergeConfig(defaultConfig, config));
module.exports = mergeConfig(defaultConfig, config);
Loading
Loading