From a0c9d99c20fa2b5d892d5baaa471f8354f08e81c Mon Sep 17 00:00:00 2001 From: Khoren Markosyan Date: Sun, 8 Jan 2023 20:16:21 +0400 Subject: [PATCH] code cleanup --- .pubignore | 10 +++++----- init.sh | 32 -------------------------------- init_win.ps1 | 33 --------------------------------- 3 files changed, 5 insertions(+), 70 deletions(-) delete mode 100644 init.sh delete mode 100644 init_win.ps1 diff --git a/.pubignore b/.pubignore index 768718c..b25e89c 100644 --- a/.pubignore +++ b/.pubignore @@ -28,9 +28,9 @@ .packages build/ -# iOS and MacOS src folders -!ios/Classes/src/ -!macos/Classes/src/ +# Ignore Example and ZXScanner folders +example/ +zxscanner/ -/src/zxing/ -!/src/zxing/core/ +src/zxing/* +!src/zxing/core/ diff --git a/init.sh b/init.sh deleted file mode 100644 index 631eb80..0000000 --- a/init.sh +++ /dev/null @@ -1,32 +0,0 @@ -# Define the project name (the same as name: in the pubspec.yaml file) -project="flutter_zxing" - -# Define the versions to download -zxing_version="1.4.0" - -# Define the paths to the directories where the files will be installed -projectPath="../../$project" -zxingPath="$projectPath/ios/Classes/src/zxing" - -# Create the download directory -mkdir -p download -cd download - -# Download the zxing source code and unzip it -wget -O "zxing-cpp-$zxing_version.zip" "https://github.com/nu-book/zxing-cpp/archive/refs/tags/v$zxing_version.zip" -unzip "zxing-cpp-$zxing_version.zip" - -# remove zxing from project -rm -R "$zxingPath" - -# create the zxing directory -mkdir -p "$zxingPath" - -# copy zxing -cp -R "zxing-cpp-$zxing_version/core/" "$zxingPath" - -# print success message for zxing -echo "ZXing $zxing_version has been successfully installed" - -# remove the downloaded files -rm -R ../download \ No newline at end of file diff --git a/init_win.ps1 b/init_win.ps1 deleted file mode 100644 index 763e15d..0000000 --- a/init_win.ps1 +++ /dev/null @@ -1,33 +0,0 @@ -# Define the project name (the same as name: in the pubspec.yaml file) -Set-Variable project "flutter_zxing" - -# Define the versions to download -Set-Variable zxing_version "1.4.0" - -# Define the paths to the directories where the files will be installed -Set-Variable projectPath "../../$project" -Set-Variable zxingPath "$projectPath/ios/Classes/src/zxing" - -# Create the download directory -mkdir -p download -Set-Location download - -# Download the zxing source code and unzip it -Invoke-WebRequest -O "zxing-cpp-$zxing_version.zip" "https://github.com/nu-book/zxing-cpp/archive/refs/tags/v$zxing_version.zip" -Expand-Archive "zxing-cpp-$zxing_version.zip" - -# remove zxing from project -Remove-Item -R "$zxingPath" - -# create the zxing directory -mkdir -p "$zxingPath" - -# copy zxing -Copy-Item -R "zxing-cpp-$zxing_version/zxing-cpp-$zxing_version/core/" "$zxingPath" - -# print success message for zxing -Write-Output "ZXing $zxing_version has been successfully installed" - -# remove the downloaded files -Set-Location .. -Remove-Item -R download \ No newline at end of file