From 1113c8fcfa8ac56b505dd3c420fe57bf09b35b8f Mon Sep 17 00:00:00 2001 From: The Grizzly Labs Date: Tue, 9 Apr 2024 21:36:11 +0000 Subject: [PATCH] Update demos for version 5.0.2 --- android/demo-custom/build.gradle | 2 +- android/demo-simple/build.gradle | 2 +- cordova-plugin-genius-scan-demo/config.xml | 2 +- dotnet-maui/SimpleDemo.csproj | 4 +- flutter-plugin-genius-scan-demo/pubspec.lock | 2 +- flutter-plugin-genius-scan-demo/pubspec.yaml | 2 +- .../GSSDKCustomDemo.xcodeproj/project.pbxproj | 2 +- .../GSSDKSimpleDemo.xcodeproj/project.pbxproj | 2 +- react-native-genius-scan-demo/README.md | 51 +++++++++++++------ react-native-genius-scan-demo/package.json | 2 +- 10 files changed, 46 insertions(+), 25 deletions(-) diff --git a/android/demo-custom/build.gradle b/android/demo-custom/build.gradle index af25762..17e88ef 100644 --- a/android/demo-custom/build.gradle +++ b/android/demo-custom/build.gradle @@ -24,7 +24,7 @@ android { } dependencies { - implementation 'com.geniusscansdk:gssdk:5.0.1' + implementation 'com.geniusscansdk:gssdk:5.0.2' implementation 'androidx.fragment:fragment:1.6.2' implementation 'androidx.appcompat:appcompat:1.6.1' diff --git a/android/demo-simple/build.gradle b/android/demo-simple/build.gradle index 99b7c0b..3d2886d 100644 --- a/android/demo-simple/build.gradle +++ b/android/demo-simple/build.gradle @@ -25,7 +25,7 @@ android { } dependencies { - implementation 'com.geniusscansdk:gssdk:5.0.1' + implementation 'com.geniusscansdk:gssdk:5.0.2' implementation 'androidx.appcompat:appcompat:1.6.1' implementation 'com.google.android.material:material:1.10.0' diff --git a/cordova-plugin-genius-scan-demo/config.xml b/cordova-plugin-genius-scan-demo/config.xml index cf701da..cfb5181 100644 --- a/cordova-plugin-genius-scan-demo/config.xml +++ b/cordova-plugin-genius-scan-demo/config.xml @@ -38,7 +38,7 @@ - + diff --git a/dotnet-maui/SimpleDemo.csproj b/dotnet-maui/SimpleDemo.csproj index 68216f7..3621dbc 100644 --- a/dotnet-maui/SimpleDemo.csproj +++ b/dotnet-maui/SimpleDemo.csproj @@ -55,10 +55,10 @@ - + - + diff --git a/flutter-plugin-genius-scan-demo/pubspec.lock b/flutter-plugin-genius-scan-demo/pubspec.lock index 7c7cce2..c200954 100644 --- a/flutter-plugin-genius-scan-demo/pubspec.lock +++ b/flutter-plugin-genius-scan-demo/pubspec.lock @@ -84,7 +84,7 @@ packages: name: flutter_genius_scan url: "https://pub.dartlang.org" source: hosted - version: "5.0.1" + version: "5.0.2" flutter_test: dependency: "direct dev" description: flutter diff --git a/flutter-plugin-genius-scan-demo/pubspec.yaml b/flutter-plugin-genius-scan-demo/pubspec.yaml index a01e7e1..c250c3c 100644 --- a/flutter-plugin-genius-scan-demo/pubspec.yaml +++ b/flutter-plugin-genius-scan-demo/pubspec.yaml @@ -15,7 +15,7 @@ dependencies: open_filex: ^4.3.4 flutter_genius_scan: - version: 5.0.1 + version: 5.0.2 path_provider: ^2.1.1 dev_dependencies: diff --git a/ios/GSSDKCustomDemo/GSSDKCustomDemo.xcodeproj/project.pbxproj b/ios/GSSDKCustomDemo/GSSDKCustomDemo.xcodeproj/project.pbxproj index bd515d4..851c431 100644 --- a/ios/GSSDKCustomDemo/GSSDKCustomDemo.xcodeproj/project.pbxproj +++ b/ios/GSSDKCustomDemo/GSSDKCustomDemo.xcodeproj/project.pbxproj @@ -449,7 +449,7 @@ repositoryURL = "https://github.com/thegrizzlylabs/geniusscan-sdk-spm"; requirement = { kind = upToNextMajorVersion; - minimumVersion = 5.0.1; + minimumVersion = 5.0.2; }; }; /* End XCRemoteSwiftPackageReference section */ diff --git a/ios/GSSDKSimpleDemo/GSSDKSimpleDemo.xcodeproj/project.pbxproj b/ios/GSSDKSimpleDemo/GSSDKSimpleDemo.xcodeproj/project.pbxproj index dd8579c..64b55bf 100644 --- a/ios/GSSDKSimpleDemo/GSSDKSimpleDemo.xcodeproj/project.pbxproj +++ b/ios/GSSDKSimpleDemo/GSSDKSimpleDemo.xcodeproj/project.pbxproj @@ -539,7 +539,7 @@ repositoryURL = "https://github.com/thegrizzlylabs/geniusscan-sdk-spm"; requirement = { kind = upToNextMajorVersion; - minimumVersion = 5.0.1; + minimumVersion = 5.0.2; }; }; /* End XCRemoteSwiftPackageReference section */ diff --git a/react-native-genius-scan-demo/README.md b/react-native-genius-scan-demo/README.md index 7e6f83e..a063a58 100644 --- a/react-native-genius-scan-demo/README.md +++ b/react-native-genius-scan-demo/README.md @@ -1,22 +1,43 @@ # Genius Scan SDK for React Native demo ## Installation -If you don't have it already, install react native CLI -``` -npm install -g react-native-cli -``` -And then, from the demo folder: +1. Ensure [you are using the recommended version of Node](https://reactnative.dev/docs/environment-setup?guide=native). For instance, for React Native 0.71, you need to use Node 14 or newer. -Install project dependencies -``` -npm install -``` + ``` + nvm install 14 + nvm alias default 14 + ``` -For iOS, run the command `pod install` from the `ios` folder. +2. If you don't have it already, install the React Native CLI: -Run the app in a simulator or on a phone -``` -npx react-native run-ios -npx react-native run-android -``` + ``` + npm install -g react-native-cli + ``` + +3. Install the project dependencies: + + ``` + cd demo + npm install + ``` + +4. For iOS, install the Cocoapods dependencies: + + ``` + cd ios + pod install + ``` + +5. Run the app: + + ``` + npx react-native run-ios + npx react-native run-android + ``` + + For iOS you can open the `ios/demo.xcworkspace` project: + + ``` + xed ios/demo.xcworkspace + ``` \ No newline at end of file diff --git a/react-native-genius-scan-demo/package.json b/react-native-genius-scan-demo/package.json index 93c7816..b2658d8 100644 --- a/react-native-genius-scan-demo/package.json +++ b/react-native-genius-scan-demo/package.json @@ -10,7 +10,7 @@ "lint": "eslint ." }, "dependencies": { - "@thegrizzlylabs/react-native-genius-scan": "^5.0.1", + "@thegrizzlylabs/react-native-genius-scan": "^5.0.2", "react": "18.2.0", "react-native": "0.71.14", "react-native-file-viewer": "^2.1.4"