Skip to content

Commit

Permalink
Readme fix & version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
kober32 committed Jul 3, 2020
1 parent 464fce7 commit bc65ae0
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 25 deletions.
42 changes: 20 additions & 22 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,48 +60,46 @@ In some cases (for example when you don't want to leave the configuration info i

__JAVA__

> The following code is an example based on `MainApplication.java` file that is generated by the React Native and can be found inside the `YOUR_APP/android/app/src/main/java/YOUR/PACKAGE` folder.
> Your implementation might differ.
_The following code is an example based on `MainApplication.java` file that is generated by the React Native and can be found inside the `YOUR_APP/android/app/src/main/java/YOUR/PACKAGE` folder._
_Your implementation might differ._

```java
import com.wultra.android.powerauth.reactnative.PowerAuthRNPackage;

public class MainApplication extends Application implements ReactApplication {

@Override
public void onCreate() {
super.onCreate();
initializePowerAuth();
}
@Override
public void onCreate() {
super.onCreate();
initializePowerAuth();
}

private void initializePowerAuth() {
for (ReactPackage pkg : this.getReactNativeHost().getReactInstanceManager().getPackages()) {
if (pkg instanceof PowerAuthRNPackage) {
try {
((PowerAuthRNPackage) pkg).configure("your-app-activation", "APPLICATION_KEY", "APPLICATION_SECRET", "KEY_SERVER_MASTER_PUBLIC", "https://your-powerauth-endpoint.com/", false);
} catch (Exception e) {
e.printStackTrace();
}
}
}
}
private void initializePowerAuth() {
for (ReactPackage pkg : this.getReactNativeHost().getReactInstanceManager().getPackages()) {
if (pkg instanceof PowerAuthRNPackage) {
try {
((PowerAuthRNPackage) pkg).configure("your-app-activation", "APPLICATION_KEY", "APPLICATION_SECRET", "KEY_SERVER_MASTER_PUBLIC", "https://your-powerauth-endpoint.com/", false);
} catch (Exception e) {
e.printStackTrace();
}
}
}
}
}
```

__OBJECTIVE-C__

> The following code is an example based on `AppDelegate.m` file that is generated by the React Native and can be found inside the `YOUR_APP/ios/PROJECT_NAME` folder.
> Your implementation might differ.
_The following code is an example based on `AppDelegate.m` file that is generated by the React Native and can be found inside the `YOUR_APP/ios/PROJECT_NAME` folder._
_Your implementation might differ._

```objc
#import "AppDelegate.h"
#import <PowerAuth.h>
#import <React/RCTRootView.h>

@interface AppDelegate ()

@property (nonatomic, strong) NSDictionary *launchOptions;

@end

@implementation AppDelegate
Expand Down
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.3.tgz",
"copymodule": "npm r react-native-powerauth-mobile-sdk && pushd .. && npm pack && popd && npm i ../react-native-powerauth-mobile-sdk-1.4.4.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.3.tgz",
"react-native-powerauth-mobile-sdk": "file:../react-native-powerauth-mobile-sdk-1.4.4.tgz",
"react-native-reanimated": "~1.7.0",
"react-native-screens": "~2.2.0",
"react-native-unimodules": "~0.9.0",
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.3",
"version": "1.4.4",
"description": "Wultra PowerAuth Mobile SDK React Native component for iOS and Android",
"main": "PowerAuth.js",
"files": [
Expand Down

0 comments on commit bc65ae0

Please sign in to comment.