Skip to content

Commit

Permalink
Fixed iOS crash during activation.
Browse files Browse the repository at this point in the history
  • Loading branch information
kober32 committed Jul 15, 2020
1 parent bc65ae0 commit c4f527d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions demoapp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"start": "react-native start",
"android": "react-native run-android",
"ios": "react-native run-ios",
"copymodule": "npm r react-native-powerauth-mobile-sdk && pushd .. && npm pack && popd && npm i ../react-native-powerauth-mobile-sdk-1.4.4.tgz",
"copymodule": "npm r react-native-powerauth-mobile-sdk && pushd .. && npm pack && popd && npm i ../react-native-powerauth-mobile-sdk-1.4.5.tgz",
"web": "expo start --web"
},
"dependencies": {
Expand All @@ -14,7 +14,7 @@
"react-dom": "~16.9.0",
"react-native": "~0.61.5",
"react-native-gesture-handler": "~1.6.0",
"react-native-powerauth-mobile-sdk": "file:../react-native-powerauth-mobile-sdk-1.4.4.tgz",
"react-native-powerauth-mobile-sdk": "file:../react-native-powerauth-mobile-sdk-1.4.5.tgz",
"react-native-reanimated": "~1.7.0",
"react-native-screens": "~2.2.0",
"react-native-unimodules": "~0.9.0",
Expand Down
5 changes: 4 additions & 1 deletion ios/PowerAuth/PowerAuth.m
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,10 @@ - (BOOL)configureWithInstanceId:(NSString *)instanceId
if (error == nil) {
NSDictionary *response = @{
@"activationFingerprint": result.activationFingerprint,
@"activationRecovery": result.activationRecovery
@"activationRecovery": result.activationRecovery ? @{
@"recoveryCode": result.activationRecovery.recoveryCode,
@"puk": result.activationRecovery.puk
} : [NSNull null]
};
resolve(response);
} else {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "react-native-powerauth-mobile-sdk",
"title": "PowerAuth SDK for React Native Mobile Apps",
"version": "1.4.4",
"version": "1.4.5",
"description": "Wultra PowerAuth Mobile SDK React Native component for iOS and Android",
"main": "PowerAuth.js",
"files": [
Expand Down

0 comments on commit c4f527d

Please sign in to comment.