From 6613545147a43324f5a7e296a3f0d6f17ff5730a Mon Sep 17 00:00:00 2001 From: minibits-cash Date: Fri, 17 Oct 2025 11:25:59 +0200 Subject: [PATCH] v0.3.2-beta.1 native release, paymentRequest receive fix --- babel.config.js | 1 - index.js | 1 + ios/minibits_wallet.xcodeproj/project.pbxproj | 18 ++-- .../xcschemes/minibits_wallet.xcscheme | 2 +- src/components/BottomModal.tsx | 27 +++--- src/models/WalletProfileStore.ts | 2 +- src/screens/Contacts/OwnName.tsx | 3 +- src/screens/RecoveryOptionsScreen.tsx | 93 ++++++------------- src/screens/WalletScreen.tsx | 9 +- src/services/minibitsService.ts | 16 ++-- src/services/sqlite.ts | 8 +- src/services/wallet/receiveTask.ts | 2 +- src/services/walletService.ts | 22 +++-- 13 files changed, 88 insertions(+), 116 deletions(-) diff --git a/babel.config.js b/babel.config.js index 1e7d5912..d757d48c 100644 --- a/babel.config.js +++ b/babel.config.js @@ -1,4 +1,3 @@ -api.cache(false) module.exports = { presets: ['module:@react-native/babel-preset'], plugins: [ diff --git a/index.js b/index.js index ca725622..38222479 100644 --- a/index.js +++ b/index.js @@ -93,6 +93,7 @@ notifee.onBackgroundEvent(async ({ type, detail }) => { return true }) +globalThis.RNFB_SILENCE_MODULAR_DEPRECATION_WARNINGS = true messaging().onMessage(NotificationService.onForegroundNotification) messaging().setBackgroundMessageHandler(NotificationService.onBackgroundNotification) NotificationService.initNotifications() diff --git a/ios/minibits_wallet.xcodeproj/project.pbxproj b/ios/minibits_wallet.xcodeproj/project.pbxproj index a3a1f914..54cb0f6e 100644 --- a/ios/minibits_wallet.xcodeproj/project.pbxproj +++ b/ios/minibits_wallet.xcodeproj/project.pbxproj @@ -301,7 +301,7 @@ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CLANG_ENABLE_MODULES = YES; CODE_SIGN_ENTITLEMENTS = minibits_wallet/minibits_wallet.entitlements; - CURRENT_PROJECT_VERSION = 16; + CURRENT_PROJECT_VERSION = 17; DEVELOPMENT_TEAM = GR2ZKMCLAM; ENABLE_BITCODE = NO; INFOPLIST_FILE = minibits_wallet/Info.plist; @@ -312,7 +312,7 @@ "$(inherited)", "@executable_path/Frameworks", ); - MARKETING_VERSION = 0.3.1; + MARKETING_VERSION = 0.3.2; OTHER_LDFLAGS = ( "$(inherited)", "-ObjC", @@ -337,7 +337,7 @@ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CLANG_ENABLE_MODULES = YES; CODE_SIGN_ENTITLEMENTS = minibits_wallet/minibits_wallet.entitlements; - CURRENT_PROJECT_VERSION = 16; + CURRENT_PROJECT_VERSION = 17; DEVELOPMENT_TEAM = GR2ZKMCLAM; INFOPLIST_FILE = minibits_wallet/Info.plist; INFOPLIST_KEY_CFBundleDisplayName = Minibits; @@ -347,7 +347,7 @@ "$(inherited)", "@executable_path/Frameworks", ); - MARKETING_VERSION = 0.3.1; + MARKETING_VERSION = 0.3.2; OTHER_LDFLAGS = ( "$(inherited)", "-ObjC", @@ -447,10 +447,7 @@ "-DFOLLY_CFG_NO_COROUTINES=1", "-DFOLLY_HAVE_CLOCK_GETTIME=1", ); - OTHER_LDFLAGS = ( - "$(inherited)", - " ", - ); + OTHER_LDFLAGS = "$(inherited) "; REACT_NATIVE_PATH = "${PODS_ROOT}/../../node_modules/react-native"; SDKROOT = iphoneos; SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) DEBUG"; @@ -533,10 +530,7 @@ "-DFOLLY_CFG_NO_COROUTINES=1", "-DFOLLY_HAVE_CLOCK_GETTIME=1", ); - OTHER_LDFLAGS = ( - "$(inherited)", - " ", - ); + OTHER_LDFLAGS = "$(inherited) "; REACT_NATIVE_PATH = "${PODS_ROOT}/../../node_modules/react-native"; SDKROOT = iphoneos; SWIFT_COMPILATION_MODE = wholemodule; diff --git a/ios/minibits_wallet.xcodeproj/xcshareddata/xcschemes/minibits_wallet.xcscheme b/ios/minibits_wallet.xcodeproj/xcshareddata/xcschemes/minibits_wallet.xcscheme index 9a1b755f..72677cb8 100644 --- a/ios/minibits_wallet.xcodeproj/xcshareddata/xcschemes/minibits_wallet.xcscheme +++ b/ios/minibits_wallet.xcodeproj/xcshareddata/xcschemes/minibits_wallet.xcscheme @@ -31,7 +31,7 @@ shouldAutocreateTestPlan = "YES"> @@ -244,8 +250,7 @@ const $outerContainerBase: ViewStyle = { } const $innerContainerBase: ViewStyle = { - width: '100%', - alignItems: 'center', + width: '100%', borderTopLeftRadius: spacing.small, borderTopRightRadius: spacing.small, padding: spacing.small diff --git a/src/models/WalletProfileStore.ts b/src/models/WalletProfileStore.ts index 24ee6dde..68ff841f 100644 --- a/src/models/WalletProfileStore.ts +++ b/src/models/WalletProfileStore.ts @@ -200,7 +200,7 @@ export const WalletProfileStoreModel = types }), recoverAddress: flow(function* recover(walletId: string, seedHash: string) { - let profileRecord: WalletProfileRecord = yield MinibitsClient.recoverProfile( + let profileRecord: WalletProfileRecord = yield MinibitsClient.recoverAddress( walletId, seedHash ) diff --git a/src/screens/Contacts/OwnName.tsx b/src/screens/Contacts/OwnName.tsx index 15159c57..daaa5333 100644 --- a/src/screens/Contacts/OwnName.tsx +++ b/src/screens/Contacts/OwnName.tsx @@ -239,8 +239,7 @@ export const OwnName = observer(function (props: {pubkey: string}) { } const { paid } = await MinibitsClient.checkDonationPaid( - donationInvoice.payment_hash as string, - pubkey as string + donationInvoice.payment_hash as string, ) if(paid) { diff --git a/src/screens/RecoveryOptionsScreen.tsx b/src/screens/RecoveryOptionsScreen.tsx index 83408317..f2d6ff69 100644 --- a/src/screens/RecoveryOptionsScreen.tsx +++ b/src/screens/RecoveryOptionsScreen.tsx @@ -330,8 +330,9 @@ export const RecoveryOptionsScreen = observer(function RecoveryOptionsScreen(_: + } style={$item} - /> + /> + +