Skip to content

Commit 34499cb

Browse files
author
The Grizzly Labs
committed
Update demos for version 5.3.1
1 parent a6de873 commit 34499cb

File tree

24 files changed

+10270
-5509
lines changed

24 files changed

+10270
-5509
lines changed

android/build.gradle

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ buildscript {
2323
}
2424
}
2525
dependencies {
26-
classpath 'com.android.tools.build:gradle:8.5.0'
26+
classpath 'com.android.tools.build:gradle:8.6.1'
2727
classpath "com.twilio:apkscale:0.1.7"
2828
classpath "androidx.benchmark:benchmark-gradle-plugin:1.2.4"
2929
classpath "firebase.test.lab:plugin:2.6.2"
@@ -47,7 +47,7 @@ allprojects {
4747
}
4848

4949
ext {
50-
ndkVersion = '26.2.11394342'
50+
ndkVersion = '27.1.12297006'
5151
compileSdkVersion = 35
5252
targetSdkVersion = 35
5353
minSdkVersion = 21

android/demo-custom/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ android {
2424
}
2525

2626
dependencies {
27-
implementation 'com.geniusscansdk:gssdk:5.3.0'
27+
implementation 'com.geniusscansdk:gssdk:5.3.1'
2828

2929
implementation 'androidx.appcompat:appcompat:1.7.0'
3030
implementation 'com.google.android.material:material:1.12.0'

android/demo-simple/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ android {
2525
}
2626

2727
dependencies {
28-
implementation 'com.geniusscansdk:gssdk:5.3.0'
28+
implementation 'com.geniusscansdk:gssdk:5.3.1'
2929

3030
implementation 'androidx.appcompat:appcompat:1.7.0'
3131
implementation 'com.google.android.material:material:1.12.0'
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#Fri Jun 23 10:17:23 CEST 2023
22
distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
4-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip
4+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-bin.zip
55
zipStoreBase=GRADLE_USER_HOME
66
zipStorePath=wrapper/dists

cordova-plugin-genius-scan-demo/config.xml

+3-2
Original file line numberDiff line numberDiff line change
@@ -29,16 +29,17 @@
2929
<icon density="xhdpi" src="res/android/ic_launcher-xhdpi.png" />
3030
<icon density="xxhdpi" src="res/android/ic_launcher-xxhdpi.png" />
3131
<icon density="xxxhdpi" src="res/android/ic_launcher-xxxhdpi.png" />
32+
<resource-file src="src/android/build-extras.gradle" target="app/build-extras.gradle" />
3233
<resource-file src="res/android/colors.xml" target="/app/src/main/res/values/colors.xml" />
3334
<resource-file src="res/android/ic_launcher_foreground.xml" target="/app/src/main/res/drawable/ic_launcher_foreground.xml" />
3435
<resource-file src="res/android/ic_launcher.xml" target="/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml" />
3536
<preference name="AndroidXEnabled" value="true" />
3637
</platform>
3738
<engine name="ios" spec="~7.0.1" />
38-
<engine name="android" spec="~12.0.0" />
39+
<engine name="android" spec="~13.0.0" />
3940
<plugin name="cordova-plugin-file" spec="^6.0.1" />
4041
<plugin name="cordova-plugin-preview-any-file" spec="^0.2.9" />
41-
<plugin name="@thegrizzlylabs/cordova-plugin-genius-scan" spec="@thegrizzlylabs/cordova-plugin-genius-scan@5.3.0">
42+
<plugin name="@thegrizzlylabs/cordova-plugin-genius-scan" spec="@thegrizzlylabs/cordova-plugin-genius-scan@5.3.1">
4243
<variable name="CAMERA_USAGE_DESCRIPTION" value="Access camera for demo" />
4344
</plugin>
4445
</widget>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
android {
2+
ndkVersion '27.1.12297006';
3+
}

dotnet-maui/SimpleDemo.csproj

+2-2
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,10 @@
5555
</ItemGroup>
5656

5757
<ItemGroup Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'android'">
58-
<PackageReference Include="GeniusScanSDK.ScanFlow.Android" Version="5.3.0" />
58+
<PackageReference Include="GeniusScanSDK.ScanFlow.Android" Version="5.3.1" />
5959
</ItemGroup>
6060

6161
<ItemGroup Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'ios'">
62-
<PackageReference Include="GeniusScanSDK.ScanFlow.iOS" Version="5.3.0" />
62+
<PackageReference Include="GeniusScanSDK.ScanFlow.iOS" Version="5.3.1" />
6363
</ItemGroup>
6464
</Project>

flutter-plugin-genius-scan-demo/android/app/build.gradle

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ if (flutterVersionName == null) {
2323
}
2424

2525
android {
26-
compileSdk 34
26+
compileSdk 35
2727
namespace 'com.geniusscansdk.flutter_genius_scan_example'
2828

2929
lintOptions {
@@ -33,7 +33,7 @@ android {
3333
defaultConfig {
3434
applicationId "com.geniusscansdk.flutter.demo"
3535
minSdkVersion 21
36-
targetSdkVersion 34
36+
targetSdkVersion 35
3737
versionCode flutterVersionCode.toInteger()
3838
versionName flutterVersionName
3939
}

flutter-plugin-genius-scan-demo/pubspec.lock

+1-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ packages:
7676
name: flutter_genius_scan
7777
url: "https://pub.dartlang.org"
7878
source: hosted
79-
version: "5.3.0"
79+
version: "5.3.1"
8080
flutter_test:
8181
dependency: "direct dev"
8282
description: flutter

flutter-plugin-genius-scan-demo/pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ dependencies:
1515
open_filex: ^4.3.4
1616

1717
flutter_genius_scan:
18-
version: 5.3.0
18+
version: 5.3.1
1919
path_provider: ^2.1.1
2020

2121
dev_dependencies:

ios/GSSDKCustomDemo/GSSDKCustomDemo.xcodeproj/project.pbxproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,7 @@
449449
repositoryURL = "https://github.com/thegrizzlylabs/geniusscan-sdk-spm";
450450
requirement = {
451451
kind = upToNextMajorVersion;
452-
minimumVersion = 5.3.0;
452+
minimumVersion = 5.3.1;
453453
};
454454
};
455455
/* End XCRemoteSwiftPackageReference section */

ios/GSSDKSimpleDemo/GSSDKSimpleDemo.xcodeproj/project.pbxproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -539,7 +539,7 @@
539539
repositoryURL = "https://github.com/thegrizzlylabs/geniusscan-sdk-spm";
540540
requirement = {
541541
kind = upToNextMajorVersion;
542-
minimumVersion = 5.3.0;
542+
minimumVersion = 5.3.1;
543543
};
544544
};
545545
/* End XCRemoteSwiftPackageReference section */

react-native-genius-scan-demo/Gemfile

+1
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ ruby ">= 2.6.10"
66
# Exclude problematic versions of cocoapods and activesupport that causes build failures.
77
gem 'cocoapods', '>= 1.13', '!= 1.15.0', '!= 1.15.1'
88
gem 'activesupport', '>= 6.1.7.5', '!= 7.1.0'
9+
gem 'xcodeproj', '< 1.26.0'

react-native-genius-scan-demo/README copy.md

-43
This file was deleted.
+29-66
Original file line numberDiff line numberDiff line change
@@ -1,79 +1,42 @@
1-
This is a new [**React Native**](https://reactnative.dev) project, bootstrapped using [`@react-native-community/cli`](https://github.com/react-native-community/cli).
1+
and# Genius Scan SDK for React Native demo
22

3-
# Getting Started
3+
## Installation
44

5-
>**Note**: Make sure you have completed the [React Native - Environment Setup](https://reactnative.dev/docs/environment-setup) instructions till "Creating a new application" step, before proceeding.
5+
1. Ensure [you are using the recommended version of Node](https://reactnative.dev/docs/environment-setup?guide=native). For instance, for React Native 0.75, you need to use Node 18 or newer.
66

7-
## Step 1: Start the Metro Server
7+
```
8+
nvm install 18
9+
nvm alias default 18
10+
```
811
9-
First, you will need to start **Metro**, the JavaScript _bundler_ that ships _with_ React Native.
12+
2. If you don't have it already, install the React Native CLI:
1013
11-
To start Metro, run the following command from the _root_ of your React Native project:
14+
```
15+
npm install -g react-native-cli
16+
```
1217
13-
```bash
14-
# using npm
15-
npm start
18+
3. Install the project dependencies:
1619
17-
# OR using Yarn
18-
yarn start
19-
```
20+
```
21+
yarn install
22+
```
2023
21-
## Step 2: Start your Application
24+
4. For iOS, install the Cocoapods dependencies:
2225
23-
Let Metro Bundler run in its _own_ terminal. Open a _new_ terminal from the _root_ of your React Native project. Run the following command to start your _Android_ or _iOS_ app:
26+
```
27+
cd ios
28+
pod install
29+
```
2430
25-
### For Android
31+
5. Run the app:
2632
27-
```bash
28-
# using npm
29-
npm run android
33+
```
34+
yarn ios
35+
yarn android
36+
```
3037
31-
# OR using Yarn
32-
yarn android
33-
```
38+
For iOS, it's also possible to run the app from Xcode, after opening the `ios/demo.xcworkspace` project:
3439
35-
### For iOS
36-
37-
```bash
38-
# using npm
39-
npm run ios
40-
41-
# OR using Yarn
42-
yarn ios
43-
```
44-
45-
If everything is set up _correctly_, you should see your new app running in your _Android Emulator_ or _iOS Simulator_ shortly provided you have set up your emulator/simulator correctly.
46-
47-
This is one way to run your app — you can also run it directly from within Android Studio and Xcode respectively.
48-
49-
## Step 3: Modifying your App
50-
51-
Now that you have successfully run the app, let's modify it.
52-
53-
1. Open `App.tsx` in your text editor of choice and edit some lines.
54-
2. For **Android**: Press the <kbd>R</kbd> key twice or select **"Reload"** from the **Developer Menu** (<kbd>Ctrl</kbd> + <kbd>M</kbd> (on Window and Linux) or <kbd>Cmd ⌘</kbd> + <kbd>M</kbd> (on macOS)) to see your changes!
55-
56-
For **iOS**: Hit <kbd>Cmd ⌘</kbd> + <kbd>R</kbd> in your iOS Simulator to reload the app and see your changes!
57-
58-
## Congratulations! :tada:
59-
60-
You've successfully run and modified your React Native App. :partying_face:
61-
62-
### Now what?
63-
64-
- If you want to add this new React Native code to an existing application, check out the [Integration guide](https://reactnative.dev/docs/integration-with-existing-apps).
65-
- If you're curious to learn more about React Native, check out the [Introduction to React Native](https://reactnative.dev/docs/getting-started).
66-
67-
# Troubleshooting
68-
69-
If you can't get this to work, see the [Troubleshooting](https://reactnative.dev/docs/troubleshooting) page.
70-
71-
# Learn More
72-
73-
To learn more about React Native, take a look at the following resources:
74-
75-
- [React Native Website](https://reactnative.dev) - learn more about React Native.
76-
- [Getting Started](https://reactnative.dev/docs/environment-setup) - an **overview** of React Native and how setup your environment.
77-
- [Learn the Basics](https://reactnative.dev/docs/getting-started) - a **guided tour** of the React Native **basics**.
78-
- [Blog](https://reactnative.dev/blog) - read the latest official React Native **Blog** posts.
79-
- [`@facebook/react-native`](https://github.com/facebook/react-native) - the Open Source; GitHub **repository** for React Native.
40+
```
41+
xed ios/demo.xcworkspace
42+
```

react-native-genius-scan-demo/android/app/src/main/java/com/geniusscansdk/reactnative/demo/MainApplication.kt

+2-1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import com.facebook.react.ReactPackage
99
import com.facebook.react.defaults.DefaultNewArchitectureEntryPoint.load
1010
import com.facebook.react.defaults.DefaultReactHost.getDefaultReactHost
1111
import com.facebook.react.defaults.DefaultReactNativeHost
12+
import com.facebook.react.soloader.OpenSourceMergedSoMapping
1213
import com.facebook.soloader.SoLoader
1314

1415
class MainApplication : Application(), ReactApplication {
@@ -34,7 +35,7 @@ class MainApplication : Application(), ReactApplication {
3435

3536
override fun onCreate() {
3637
super.onCreate()
37-
SoLoader.init(this, false)
38+
SoLoader.init(this, OpenSourceMergedSoMapping)
3839
if (BuildConfig.IS_NEW_ARCHITECTURE_ENABLED) {
3940
// If you opted-in for the New Architecture, we load the native entry point for this app.
4041
load()

react-native-genius-scan-demo/android/build.gradle

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
buildscript {
22
ext {
3-
buildToolsVersion = "34.0.0"
4-
minSdkVersion = 23
5-
compileSdkVersion = 34
6-
targetSdkVersion = 34
7-
ndkVersion = "26.2.11394342"
3+
buildToolsVersion = "35.0.0"
4+
minSdkVersion = 24
5+
compileSdkVersion = 35
6+
targetSdkVersion = 35
7+
ndkVersion = "27.1.12297006"
88
kotlinVersion = "1.9.24"
99
}
1010
repositories {

react-native-genius-scan-demo/android/gradle.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ reactNativeArchitectures=armeabi-v7a,arm64-v8a,x86,x86_64
3232
# your application. You should enable this flag either if you want
3333
# to write custom TurboModules/Fabric components OR use libraries that
3434
# are providing them.
35-
newArchEnabled=false
35+
newArchEnabled=true
3636

3737
# Use this property to enable or disable the Hermes JS engine.
3838
# If set to false, you will be using JSC instead.

react-native-genius-scan-demo/android/gradle/wrapper/gradle-wrapper.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.8-all.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.2-all.zip
44
networkTimeout=10000
55
validateDistributionUrl=true
66
zipStoreBase=GRADLE_USER_HOME

react-native-genius-scan-demo/android/gradlew

+2-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,8 @@ done
8484
# shellcheck disable=SC2034
8585
APP_BASE_NAME=${0##*/}
8686
# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036)
87-
APP_HOME=$( cd "${APP_HOME:-./}" > /dev/null && pwd -P ) || exit
87+
APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s
88+
' "$PWD" ) || exit
8889

8990
# Use the maximum available, or set MAX_FD != -1 to use that value.
9091
MAX_FD=maximum

0 commit comments

Comments
 (0)