Browse Source

updated README.md

pull/76/head
Khoren Markosyan 2 years ago
parent
commit
85383c3fee
  1. 33
      README.md
  2. 4
      example/pubspec.lock
  3. 5
      scripts/update_ios_macos_src.sh
  4. 8
      zxscanner/pubspec.lock

33
README.md

@ -61,6 +61,39 @@ This README file was mainly generated using ChatGPT, a tool that generates human
## Getting Started
### Cloning the flutter_zxing project
To clone the flutter_zxing project from Github which includes submodules, use the following command:
```bash
git clone --recursive https://github.com/khoren93/flutter_zxing.git
```
### Installing dependencies
Use Melos to install the dependencies of the flutter_zxing project. Melos is a tool that helps you manage multiple Dart packages in a single repository. To install Melos, use the following command:
```bash
pub global activate melos
```
To install the dependencies of the flutter_zxing project, use the following command:
```bash
melos bootstrap
```
To allow the building on iOS and MacOS, you need to run the following command:
```bash
cd scripts
sh update_ios_macos_src.sh
```
Now you can run the flutter_zxing example app on your device or emulator.
## Usage
### To read barcode
```dart

4
example/pubspec.lock

@ -148,7 +148,7 @@ packages:
path: ".."
relative: true
source: path
version: "1.0.0-beta.4"
version: "1.0.0-beta.7"
font_awesome_flutter:
dependency: "direct main"
description:
@ -359,4 +359,4 @@ packages:
version: "6.1.0"
sdks:
dart: ">=2.18.0 <3.0.0"
flutter: ">=3.3.0"
flutter: ">=3.0.0"

5
scripts/update_ios_macos_src.sh

@ -10,10 +10,13 @@ macosSrcPath="../macos/Classes/src"
rm -rf $iosSrcPath
rm -rf $macosSrcPath
# create the source directories
mkdir -p $iosSrcPath
mkdir -p $macosSrcPath
# Copy the source files
rsync -av --exclude '*.txt' --exclude "zxing/" "$srcPath/" "$iosSrcPath/"
rsync -av "$zxingPath/" "$iosSrcPath/zxing/"
rsync -av --exclude '*.txt' --exclude "zxing/" "$srcPath/" "$macosSrcPath/"
rsync -av "$zxingPath/" "$macosSrcPath/zxing/"

8
zxscanner/pubspec.lock

@ -318,10 +318,10 @@ packages:
flutter_zxing:
dependency: "direct main"
description:
name: flutter_zxing
url: "https://pub.dartlang.org"
source: hosted
version: "0.10.0"
path: ".."
relative: true
source: path
version: "1.0.0-beta.7"
font_awesome_flutter:
dependency: "direct main"
description:

Loading…
Cancel
Save