Skip to content

Commit

Permalink
Update demos for version 5.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
The Grizzly Labs committed Nov 12, 2024
1 parent a6de873 commit 34499cb
Show file tree
Hide file tree
Showing 24 changed files with 10,270 additions and 5,509 deletions.
4 changes: 2 additions & 2 deletions android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ buildscript {
}
}
dependencies {
classpath 'com.android.tools.build:gradle:8.5.0'
classpath 'com.android.tools.build:gradle:8.6.1'
classpath "com.twilio:apkscale:0.1.7"
classpath "androidx.benchmark:benchmark-gradle-plugin:1.2.4"
classpath "firebase.test.lab:plugin:2.6.2"
Expand All @@ -47,7 +47,7 @@ allprojects {
}

ext {
ndkVersion = '26.2.11394342'
ndkVersion = '27.1.12297006'
compileSdkVersion = 35
targetSdkVersion = 35
minSdkVersion = 21
Expand Down
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.3.0'
implementation 'com.geniusscansdk:gssdk:5.3.1'

implementation 'androidx.appcompat:appcompat:1.7.0'
implementation 'com.google.android.material:material:1.12.0'
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.3.0'
implementation 'com.geniusscansdk:gssdk:5.3.1'

implementation 'androidx.appcompat:appcompat:1.7.0'
implementation 'com.google.android.material:material:1.12.0'
Expand Down
2 changes: 1 addition & 1 deletion android/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Fri Jun 23 10:17:23 CEST 2023
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
5 changes: 3 additions & 2 deletions cordova-plugin-genius-scan-demo/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,16 +29,17 @@
<icon density="xhdpi" src="res/android/ic_launcher-xhdpi.png" />
<icon density="xxhdpi" src="res/android/ic_launcher-xxhdpi.png" />
<icon density="xxxhdpi" src="res/android/ic_launcher-xxxhdpi.png" />
<resource-file src="src/android/build-extras.gradle" target="app/build-extras.gradle" />
<resource-file src="res/android/colors.xml" target="/app/src/main/res/values/colors.xml" />
<resource-file src="res/android/ic_launcher_foreground.xml" target="/app/src/main/res/drawable/ic_launcher_foreground.xml" />
<resource-file src="res/android/ic_launcher.xml" target="/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml" />
<preference name="AndroidXEnabled" value="true" />
</platform>
<engine name="ios" spec="~7.0.1" />
<engine name="android" spec="~12.0.0" />
<engine name="android" spec="~13.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.3.0">
<plugin name="@thegrizzlylabs/cordova-plugin-genius-scan" spec="@thegrizzlylabs/cordova-plugin-genius-scan@5.3.1">
<variable name="CAMERA_USAGE_DESCRIPTION" value="Access camera for demo" />
</plugin>
</widget>
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
android {
ndkVersion '27.1.12297006';
}
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.3.0" />
<PackageReference Include="GeniusScanSDK.ScanFlow.Android" Version="5.3.1" />
</ItemGroup>

<ItemGroup Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'ios'">
<PackageReference Include="GeniusScanSDK.ScanFlow.iOS" Version="5.3.0" />
<PackageReference Include="GeniusScanSDK.ScanFlow.iOS" Version="5.3.1" />
</ItemGroup>
</Project>
4 changes: 2 additions & 2 deletions flutter-plugin-genius-scan-demo/android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ if (flutterVersionName == null) {
}

android {
compileSdk 34
compileSdk 35
namespace 'com.geniusscansdk.flutter_genius_scan_example'

lintOptions {
Expand All @@ -33,7 +33,7 @@ android {
defaultConfig {
applicationId "com.geniusscansdk.flutter.demo"
minSdkVersion 21
targetSdkVersion 34
targetSdkVersion 35
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
}
Expand Down
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 @@ -76,7 +76,7 @@ packages:
name: flutter_genius_scan
url: "https://pub.dartlang.org"
source: hosted
version: "5.3.0"
version: "5.3.1"
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.3.0
version: 5.3.1
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.3.0;
minimumVersion = 5.3.1;
};
};
/* 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.3.0;
minimumVersion = 5.3.1;
};
};
/* End XCRemoteSwiftPackageReference section */
Expand Down
1 change: 1 addition & 0 deletions react-native-genius-scan-demo/Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ ruby ">= 2.6.10"
# Exclude problematic versions of cocoapods and activesupport that causes build failures.
gem 'cocoapods', '>= 1.13', '!= 1.15.0', '!= 1.15.1'
gem 'activesupport', '>= 6.1.7.5', '!= 7.1.0'
gem 'xcodeproj', '< 1.26.0'
43 changes: 0 additions & 43 deletions react-native-genius-scan-demo/README copy.md

This file was deleted.

95 changes: 29 additions & 66 deletions react-native-genius-scan-demo/README.md
Original file line number Diff line number Diff line change
@@ -1,79 +1,42 @@
This is a new [**React Native**](https://reactnative.dev) project, bootstrapped using [`@react-native-community/cli`](https://github.com/react-native-community/cli).
and# Genius Scan SDK for React Native demo

# Getting Started
## Installation

>**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.
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.

## Step 1: Start the Metro Server
```
nvm install 18
nvm alias default 18
```
First, you will need to start **Metro**, the JavaScript _bundler_ that ships _with_ React Native.
2. If you don't have it already, install the React Native CLI:
To start Metro, run the following command from the _root_ of your React Native project:
```
npm install -g react-native-cli
```
```bash
# using npm
npm start
3. Install the project dependencies:
# OR using Yarn
yarn start
```
```
yarn install
```
## Step 2: Start your Application
4. For iOS, install the Cocoapods dependencies:
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:
```
cd ios
pod install
```
### For Android
5. Run the app:
```bash
# using npm
npm run android
```
yarn ios
yarn android
```
# OR using Yarn
yarn android
```
For iOS, it's also possible to run the app from Xcode, after opening the `ios/demo.xcworkspace` project:
### For iOS

```bash
# using npm
npm run ios

# OR using Yarn
yarn ios
```

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.

This is one way to run your app — you can also run it directly from within Android Studio and Xcode respectively.

## Step 3: Modifying your App

Now that you have successfully run the app, let's modify it.

1. Open `App.tsx` in your text editor of choice and edit some lines.
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!

For **iOS**: Hit <kbd>Cmd ⌘</kbd> + <kbd>R</kbd> in your iOS Simulator to reload the app and see your changes!

## Congratulations! :tada:

You've successfully run and modified your React Native App. :partying_face:

### Now what?

- 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).
- If you're curious to learn more about React Native, check out the [Introduction to React Native](https://reactnative.dev/docs/getting-started).

# Troubleshooting

If you can't get this to work, see the [Troubleshooting](https://reactnative.dev/docs/troubleshooting) page.

# Learn More

To learn more about React Native, take a look at the following resources:

- [React Native Website](https://reactnative.dev) - learn more about React Native.
- [Getting Started](https://reactnative.dev/docs/environment-setup) - an **overview** of React Native and how setup your environment.
- [Learn the Basics](https://reactnative.dev/docs/getting-started) - a **guided tour** of the React Native **basics**.
- [Blog](https://reactnative.dev/blog) - read the latest official React Native **Blog** posts.
- [`@facebook/react-native`](https://github.com/facebook/react-native) - the Open Source; GitHub **repository** for React Native.
```
xed ios/demo.xcworkspace
```
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import com.facebook.react.ReactPackage
import com.facebook.react.defaults.DefaultNewArchitectureEntryPoint.load
import com.facebook.react.defaults.DefaultReactHost.getDefaultReactHost
import com.facebook.react.defaults.DefaultReactNativeHost
import com.facebook.react.soloader.OpenSourceMergedSoMapping
import com.facebook.soloader.SoLoader

class MainApplication : Application(), ReactApplication {
Expand All @@ -34,7 +35,7 @@ class MainApplication : Application(), ReactApplication {

override fun onCreate() {
super.onCreate()
SoLoader.init(this, false)
SoLoader.init(this, OpenSourceMergedSoMapping)
if (BuildConfig.IS_NEW_ARCHITECTURE_ENABLED) {
// If you opted-in for the New Architecture, we load the native entry point for this app.
load()
Expand Down
10 changes: 5 additions & 5 deletions react-native-genius-scan-demo/android/build.gradle
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
buildscript {
ext {
buildToolsVersion = "34.0.0"
minSdkVersion = 23
compileSdkVersion = 34
targetSdkVersion = 34
ndkVersion = "26.2.11394342"
buildToolsVersion = "35.0.0"
minSdkVersion = 24
compileSdkVersion = 35
targetSdkVersion = 35
ndkVersion = "27.1.12297006"
kotlinVersion = "1.9.24"
}
repositories {
Expand Down
2 changes: 1 addition & 1 deletion react-native-genius-scan-demo/android/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ reactNativeArchitectures=armeabi-v7a,arm64-v8a,x86,x86_64
# your application. You should enable this flag either if you want
# to write custom TurboModules/Fabric components OR use libraries that
# are providing them.
newArchEnabled=false
newArchEnabled=true

# Use this property to enable or disable the Hermes JS engine.
# If set to false, you will be using JSC instead.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.8-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.2-all.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
Expand Down
3 changes: 2 additions & 1 deletion react-native-genius-scan-demo/android/gradlew
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,8 @@ done
# shellcheck disable=SC2034
APP_BASE_NAME=${0##*/}
# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036)
APP_HOME=$( cd "${APP_HOME:-./}" > /dev/null && pwd -P ) || exit
APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s
' "$PWD" ) || exit

# Use the maximum available, or set MAX_FD != -1 to use that value.
MAX_FD=maximum
Expand Down
Loading

0 comments on commit 34499cb

Please sign in to comment.