Flutter plugin for scanning and generating QR codes using the ZXing library, supporting Android, iOS, and desktop platforms
flutterbarcode-generatorbarcode-scannergeneratorqrqrcodeqrcode-generatorqrcode-scannerscannerzxingbarcodezxscanner
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
634 B
20 lines
634 B
2 years ago
|
# This script copies the source files from the src directory to the ios and macos directories.
|
||
|
# Should be run every time the src directory files are updated.
|
||
|
|
||
|
srcPath="../src"
|
||
|
zxingPath="$srcPath/zxing/core/src"
|
||
|
iosSrcPath="../ios/Classes/src"
|
||
|
macosSrcPath="../macos/Classes/src"
|
||
|
|
||
|
# Remove the source files if they exist
|
||
|
rm -rf $iosSrcPath
|
||
|
rm -rf $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/"
|
||
|
|