Skip to content

Commit

Permalink
Update demos for version 5.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
The Grizzly Labs committed Apr 9, 2024
1 parent 926aafc commit 1113c8f
Show file tree
Hide file tree
Showing 10 changed files with 46 additions and 25 deletions.
2 changes: 1 addition & 1 deletion android/demo-custom/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
2 changes: 1 addition & 1 deletion android/demo-simple/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
2 changes: 1 addition & 1 deletion cordova-plugin-genius-scan-demo/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
<engine name="android" spec="~12.0.0" />
<plugin name="cordova-plugin-file" spec="^6.0.1" />
<plugin name="cordova-plugin-preview-any-file" spec="^0.2.9" />
<plugin name="@thegrizzlylabs/cordova-plugin-genius-scan" spec="@thegrizzlylabs/cordova-plugin-genius-scan@5.0.1">
<plugin name="@thegrizzlylabs/cordova-plugin-genius-scan" spec="@thegrizzlylabs/cordova-plugin-genius-scan@5.0.2">
<variable name="CAMERA_USAGE_DESCRIPTION" value="Access camera for demo" />
</plugin>
</widget>
4 changes: 2 additions & 2 deletions dotnet-maui/SimpleDemo.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,10 @@
</ItemGroup>

<ItemGroup Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'android'">
<PackageReference Include="GeniusScanSDK.ScanFlow.Android" Version="5.0.1" />
<PackageReference Include="GeniusScanSDK.ScanFlow.Android" Version="5.0.2" />
</ItemGroup>

<ItemGroup Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'ios'">
<PackageReference Include="GeniusScanSDK.ScanFlow.iOS" Version="5.0.1" />
<PackageReference Include="GeniusScanSDK.ScanFlow.iOS" Version="5.0.2" />
</ItemGroup>
</Project>
2 changes: 1 addition & 1 deletion flutter-plugin-genius-scan-demo/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion flutter-plugin-genius-scan-demo/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down
51 changes: 36 additions & 15 deletions react-native-genius-scan-demo/README.md
Original file line number Diff line number Diff line change
@@ -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
```
2 changes: 1 addition & 1 deletion react-native-genius-scan-demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 1113c8f

Please sign in to comment.