Skip to content

Commit

Permalink
Fix to check_hard_coded_version script (firebase#1603)
Browse files Browse the repository at this point in the history
  • Loading branch information
collinjackson authored May 14, 2019
1 parent 7dfe5d2 commit fc0cd38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion script/check_hard_coded_version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ function check_hard_coded_version() {
PACKAGE_VERSION="$(cd "$dir" && cat pubspec.yaml | grep -E "^version: " | awk '{print $2}')"
IOS_VERSION="$(cd "$dir" && grep -r "#define LIBRARY_VERSION" ios/Classes/*.m | awk '{print $3}')"
ANDROID_VERSION="$(cd "$dir" && grep -r LIBRARY_VERSION android/src/main/java/* | awk '{print $8}')"
if [[ "$IOS_VERSION" == 0 && "$ANDROID_VERSION" == 0 ]]; then
if [[ "$IOS_VERSION" == "" && "$ANDROID_VERSION" == "" ]]; then
echo "No hard coded version found"
elif [[ "$IOS_VERSION" == "@\"$PACKAGE_VERSION\"" && "$ANDROID_VERSION" == "\"$PACKAGE_VERSION\";" ]]; then
echo "Hard coded version matched: $PACKAGE_VERSION"
Expand Down

0 comments on commit fc0cd38

Please sign in to comment.