Skip to content

Commit

Permalink
fix: IOS RN 0.74 fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
juanky201271 committed Feb 12, 2025
1 parent 1688f7c commit 9a9e30c
Show file tree
Hide file tree
Showing 21 changed files with 94 additions and 86 deletions.
2 changes: 1 addition & 1 deletion android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ android {
applicationId 'org.ZingoLabs.Zingo' // Real
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 217 // Real
versionCode 218 // Real
versionName "zingo-1.11.0" // Real
testBuildType System.getProperty('testBuildType', 'debug')
testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner'
Expand Down
4 changes: 2 additions & 2 deletions app/LoadedApp/LoadedApp.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1189,7 +1189,7 @@ export class LoadedAppClass extends Component<LoadedAppClassProps, LoadedAppClas
},
{ text: translate('cancel') as string, style: 'cancel' },
],
{ cancelable: false, userInterfaceStyle: 'light' },
{ cancelable: false },
);
} else if (item === MenuItemEnum.TipZingoLabs) {
const { translate } = this.state;
Expand All @@ -1207,7 +1207,7 @@ export class LoadedAppClass extends Component<LoadedAppClassProps, LoadedAppClas
style: 'cancel',
},
],
{ cancelable: false, userInterfaceStyle: 'light' },
{ cancelable: false },
);
} else if (item === MenuItemEnum.AddressBook) {
this.setState({
Expand Down
4 changes: 2 additions & 2 deletions app/LoadingApp/LoadingApp.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -720,7 +720,7 @@ export class LoadingAppClass extends Component<LoadingAppClassProps, LoadingAppC
onPress: () => reject(),
},
],
{ cancelable: false, userInterfaceStyle: 'light' },
{ cancelable: false },
);
});
};
Expand Down Expand Up @@ -1243,7 +1243,7 @@ export class LoadingAppClass extends Component<LoadingAppClassProps, LoadingAppC
},
{ text: this.props.translate('cancel') as string, style: 'cancel' },
],
{ cancelable: false, userInterfaceStyle: 'light' },
{ cancelable: false },
);
}
};
Expand Down
2 changes: 1 addition & 1 deletion app/LoadingApp/components/StartMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ const StartMenu: React.FunctionComponent<StartMenuProps> = ({
},
{ text: translate('cancel') as string, style: 'cancel' },
],
{ cancelable: false, userInterfaceStyle: 'light' },
{ cancelable: false },
);
} else {
createNewWallet();
Expand Down
2 changes: 1 addition & 1 deletion app/createAlert.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export const createAlert = async (
},
{ text: translate('cancel') as string, style: 'cancel' },
],
{ cancelable: false, userInterfaceStyle: 'light' },
{ cancelable: false },
);
} else {
// no email button
Expand Down
6 changes: 3 additions & 3 deletions app/recoveryWalletInfo.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as Keychain from 'react-native-keychain';
import { GlobalConst, WalletType } from './AppState';

const options = (biometrics: Keychain.BIOMETRY_TYPE | null): Keychain.Options => {
const options = (biometrics: Keychain.BIOMETRY_TYPE | null): Keychain.BaseOptions => {
return {
service: GlobalConst.serviceKeyChain,
accessControl: Keychain.ACCESS_CONTROL.BIOMETRY_CURRENT_SET_OR_DEVICE_PASSCODE, // for both
Expand All @@ -11,8 +11,8 @@ const options = (biometrics: Keychain.BIOMETRY_TYPE | null): Keychain.Options =>
// with biometrics in the device -> SECURE HARDWARE
securityLevel: biometrics ? Keychain.SECURITY_LEVEL.SECURE_HARDWARE : Keychain.SECURITY_LEVEL.SECURE_SOFTWARE,
// with biometrics in the device -> RSA
storage: biometrics ? Keychain.STORAGE_TYPE.RSA : Keychain.STORAGE_TYPE.AES,
} as Keychain.Options;
storage: biometrics ? Keychain.STORAGE_TYPE.RSA : Keychain.STORAGE_TYPE.AES_GCM,
} as Keychain.BaseOptions;
};

export const saveRecoveryWalletInfo = async (keys: WalletType): Promise<void> => {
Expand Down
2 changes: 1 addition & 1 deletion app/translations/en.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"zingo": "Zingo",
"version": "zingo-1.11.0 (217)",
"version": "zingo-1.11.0 (218)",
"loading": "loading...",
"connectingserver": "Connecting to the server...",
"wait": "Please wait...",
Expand Down
2 changes: 1 addition & 1 deletion app/translations/es.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"zingo": "Zingo",
"version": "zingo-1.11.0 (217)",
"version": "zingo-1.11.0 (218)",
"loading": "cargando...",
"connectingserver": "Conectando con el servidor...",
"wait": "Por favor espere...",
Expand Down
2 changes: 1 addition & 1 deletion app/translations/pt.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"zingo": "Zingo",
"version": "zingo-1.11.0 (217)",
"version": "zingo-1.11.0 (218)",
"loading": "carregando...",
"connectingserver": "Conectando-se ao servidor...",
"wait": "Aguarde um momento...",
Expand Down
2 changes: 1 addition & 1 deletion app/translations/ru.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"zingo": "Zingo",
"version": "zingo-1.11.0 (217)",
"version": "zingo-1.11.0 (218)",
"loading": "загрузка...",
"connectingserver": "Подключение к серверу...",
"wait": "Пожалуйста, подождите...",
Expand Down
2 changes: 1 addition & 1 deletion components/AddressBook/components/AbSummaryLine.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ const AbSummaryLine: React.FunctionComponent<AbSummaryLineProps> = ({
},
{ text: translate('cancel') as string, style: 'cancel' },
],
{ cancelable: false, userInterfaceStyle: 'light' },
{ cancelable: false },
);
};

Expand Down
2 changes: 1 addition & 1 deletion components/Components/PriceFetcher.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ const PriceFetcher: React.FunctionComponent<PriceFetcherProps> = ({ setZecPrice,
{ text: translate('send.fetch-button') as string, onPress: () => onPressFetch() },
{ text: translate('cancel') as string, style: 'cancel' },
],
{ cancelable: false, userInterfaceStyle: 'light' },
{ cancelable: false },
);
};

Expand Down
2 changes: 1 addition & 1 deletion components/Header/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ const Header: React.FunctionComponent<HeaderProps> = ({
{ text: translate('confirm') as string, onPress: () => shieldFunds() },
{ text: translate('cancel') as string, style: 'cancel' },
],
{ cancelable: false, userInterfaceStyle: 'light' },
{ cancelable: false },
);
};

Expand Down
2 changes: 1 addition & 1 deletion components/Messages/components/MessageList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ const MessageList: React.FunctionComponent<MessageListProps> = ({
.trim()
.split(' ')
.filter((w: string) => !!w);
console.log(words);
//console.log(words);
if (words[0]) {
initials = words[0].charAt(0).toUpperCase();
}
Expand Down
2 changes: 1 addition & 1 deletion components/Seed/Seed.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ const Seed: React.FunctionComponent<SeedProps> = ({
},
{ text: translate('cancel') as string, onPress: () => onClickCancel(), style: 'cancel' },
],
{ cancelable: false, userInterfaceStyle: 'light' },
{ cancelable: false },
);
};

Expand Down
4 changes: 2 additions & 2 deletions components/Send/Send.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1278,7 +1278,7 @@ const Send: React.FunctionComponent<SendProps> = ({
},
{ text: translate('cancel') as string, style: 'cancel' },
],
{ cancelable: false, userInterfaceStyle: 'light' },
{ cancelable: false },
);
}
}}>
Expand Down Expand Up @@ -1371,7 +1371,7 @@ const Send: React.FunctionComponent<SendProps> = ({
},
{ text: translate('cancel') as string, style: 'cancel' },
],
{ cancelable: false, userInterfaceStyle: 'light' },
{ cancelable: false },
);
}
}}>
Expand Down
2 changes: 1 addition & 1 deletion components/Send/components/ShowAddressAlertAsync.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const ShowAddressAlertAsync = (translate: (key: string) => TranslateType): Promi
onPress: () => reject(),
},
],
{ cancelable: false, userInterfaceStyle: 'light' },
{ cancelable: false },
);
});
};
Expand Down
2 changes: 1 addition & 1 deletion components/Ufvk/ShowUfvk.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ const ShowUfvk: React.FunctionComponent<ShowUfvkProps> = ({ onClickOK, onClickCa
},
{ text: translate('cancel') as string, onPress: () => onClickCancel(), style: 'cancel' },
],
{ cancelable: false, userInterfaceStyle: 'light' },
{ cancelable: false },
);
};

Expand Down
3 changes: 2 additions & 1 deletion ios/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import Foundation
import UIKit
import BackgroundTasks
import Network

@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {
Expand All @@ -24,7 +25,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
let jsCodeLocation: URL

jsCodeLocation = RCTBundleURLProvider.sharedSettings().jsBundleURL(forBundleRoot: "index", fallbackExtension: nil)
jsCodeLocation = RCTBundleURLProvider.sharedSettings().jsBundleURL(forBundleRoot: "index", fallbackExtension: nil)!
//jsCodeLocation = Bundle.main.url(forResource: "main", withExtension: "jsbundle")!
let rootView = RCTRootView(bundleURL: jsCodeLocation, moduleName: "Zingo", initialProperties: nil, launchOptions: launchOptions)
let rootViewController = UIViewController()
Expand Down
Loading

0 comments on commit 9a9e30c

Please sign in to comment.