iOS build

This commit is contained in:
minibits-cash
2025-03-26 21:06:06 +01:00
parent 1efbe02e90
commit 3a160fc885
16 changed files with 2626 additions and 657 deletions

View File

@@ -32,7 +32,7 @@ reactNativeArchitectures=armeabi-v7a,arm64-v8a,x86,x86_64
# your application. You should enable this flag either if you want
# to write custom TurboModules/Fabric components OR use libraries that
# are providing them.
newArchEnabled=false
newArchEnabled=true
# Use this property to enable or disable the Hermes JS engine.
# If set to false, you will be using JSC instead.

View File

@@ -4,5 +4,5 @@ extensions.configure(com.facebook.react.ReactSettingsExtension){ ex -> ex.autoli
rootProject.name = 'minibits_wallet'
includeBuild('../node_modules/@react-native/gradle-plugin')
// code-push
include ':app', ':react-native-code-push'
project(':react-native-code-push').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-code-push/android/app')
// include ':app', ':react-native-code-push'
// project(':react-native-code-push').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-code-push/android/app')

2428
ios/Podfile.lock Normal file

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict/>
</plist>

View File

@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<Workspace
version = "1.0">
<FileRef
location = "group:minibits_wallet.xcodeproj">
</FileRef>
<FileRef
location = "group:Pods/Pods.xcodeproj">
</FileRef>
</Workspace>

View File

@@ -4,20 +4,22 @@
<dict>
<key>NSPrivacyAccessedAPITypes</key>
<array>
<dict>
<key>NSPrivacyAccessedAPIType</key>
<string>NSPrivacyAccessedAPICategoryFileTimestamp</string>
<key>NSPrivacyAccessedAPITypeReasons</key>
<array>
<string>C617.1</string>
</array>
</dict>
<dict>
<key>NSPrivacyAccessedAPIType</key>
<string>NSPrivacyAccessedAPICategoryUserDefaults</string>
<key>NSPrivacyAccessedAPITypeReasons</key>
<array>
<string>CA92.1</string>
<string>1C8F.1</string>
<string>C56D.1</string>
</array>
</dict>
<dict>
<key>NSPrivacyAccessedAPIType</key>
<string>NSPrivacyAccessedAPICategoryFileTimestamp</string>
<key>NSPrivacyAccessedAPITypeReasons</key>
<array>
<string>C617.1</string>
</array>
</dict>
<dict>

View File

@@ -8,7 +8,7 @@
"android:test": "react-native run-android --mode=release",
"android:bundle": "react-native build-android --mode=release",
"android:apk": "cd android && ./gradlew assembleRelease",
"ios": "react-native run-ios",
"ios": "npx react-native run-ios --scheme \"minibits_wallet\" --workspace \"ios/minibits_wallet.xcworkspace\"",
"lint": "eslint .",
"start": "react-native start",
"test": "jest",
@@ -54,7 +54,7 @@
"react": "18.3.1",
"react-native": "0.77.0",
"react-native-animated-pagination-dots": "^0.1.73",
"react-native-camera-kit": "teslamotors/react-native-camera-kit#7e94541bbfa34f3a74756d7a1a1a7e3468e6a25c",
"react-native-camera-kit": "14.2.0",
"react-native-dotenv": "^3.4.11",
"react-native-exit-app": "^2.0.0",
"react-native-flash-message": "^0.4.2",
@@ -62,7 +62,7 @@
"react-native-json-tree": "^1.4.0",
"react-native-keychain": "^9.2.2",
"react-native-logs": "^5.3.0",
"react-native-mmkv": "^2.12.2",
"react-native-mmkv": "^3.2.0",
"react-native-modal": "^13.0.1",
"react-native-pager-view": "^6.7.0",
"react-native-qrcode-svg": "^6.3.14",

View File

@@ -1,15 +1,62 @@
diff --git a/node_modules/react-native-exit-app/ios/RNExitApp/RNExitApp.h b/node_modules/react-native-exit-app/ios/RNExitApp/RNExitApp.h
index 3d7124c..e200589 100644
index 50a2135..78a9256 100644
--- a/node_modules/react-native-exit-app/ios/RNExitApp/RNExitApp.h
+++ b/node_modules/react-native-exit-app/ios/RNExitApp/RNExitApp.h
@@ -6,10 +6,6 @@
#import "React/RCTBridgeModule.h"
#endif
-#if RCT_NEW_ARCH_ENABLED
-#import <React-Codegen/RNExitAppSpec/RNExitAppSpec.h>
-#endif
-
@interface RNExitApp : NSObject <RCTBridgeModule>
@end
@@ -6,14 +6,10 @@
#import "React/RCTBridgeModule.h"
#endif
-#if RCT_NEW_ARCH_ENABLED
-#import <React-Codegen/RNExitAppSpec/RNExitAppSpec.h>
-#endif
-
@interface RNExitApp : NSObject <RCTBridgeModule>
@end
-#if RCT_NEW_ARCH_ENABLED
-@interface RNExitApp () <NativeRNExitAppSpec>
-@end
-#endif
+//#if RCT_NEW_ARCH_ENABLED
+//@interface RNExitApp () <NativeRNExitAppSpec>
+//@end
+//#endif
diff --git a/node_modules/react-native-exit-app/ios/RNExitApp/RNExitApp.mm b/node_modules/react-native-exit-app/ios/RNExitApp/RNExitApp.mm
index bec5948..ef219ec 100644
--- a/node_modules/react-native-exit-app/ios/RNExitApp/RNExitApp.mm
+++ b/node_modules/react-native-exit-app/ios/RNExitApp/RNExitApp.mm
@@ -2,9 +2,9 @@
#import "RNExitApp.h"
-#if RCT_NEW_ARCH_ENABLED
-#import <RNExitAppSpec/RNExitAppSpec.h>
-#endif
+//#if RCT_NEW_ARCH_ENABLED
+//#import <RNExitAppSpec/RNExitAppSpec.h>
+//#endif
@implementation RNExitApp
@@ -17,14 +17,14 @@ @implementation RNExitApp
# pragma mark - New Architecture
-#if RCT_NEW_ARCH_ENABLED
+//#if RCT_NEW_ARCH_ENABLED
-- (std::shared_ptr<facebook::react::TurboModule>)getTurboModule:
- (const facebook::react::ObjCTurboModule::InitParams &)params
-{
- return std::make_shared<facebook::react::NativeRNExitAppSpecJSI>(params);
-}
+//- (std::shared_ptr<facebook::react::TurboModule>)getTurboModule:
+// (const facebook::react::ObjCTurboModule::InitParams &)params
+//{
+// return std::make_shared<facebook::react::NativeRNExitAppSpecJSI>(params);
+//}
-#endif
+//#endif
@end

View File

@@ -28,8 +28,17 @@ i18n.enableFallback = true;
// also, react native provides locales in the en_US format, whereas js expect them in en-US format
// this is smaller than a full intl polyfill and does what we need
let localeIos = "en_US"
/*if(Platform.OS === 'ios') {
if(NativeModules.SettingsManager.settings.AppleLocale || NativeModules.SettingsManager.settings.AppleLanguages[0]){
localeIos = NativeModules.SettingsManager.settings.AppleLocale || NativeModules.SettingsManager.settings.AppleLanguages[0]
}
}*/
const fullLocaleRN: string = (Platform.OS === 'ios'
? NativeModules.SettingsManager.settings.AppleLocale
? localeIos
: NativeModules.I18nManager.localeIdentifier
).toString().replaceAll('_', '-')

613
yarn.lock

File diff suppressed because it is too large Load Diff