Skip to content

Commit

Permalink
Update version script
Browse files Browse the repository at this point in the history
  • Loading branch information
crow committed Jan 13, 2025
1 parent 3abb637 commit 5523612
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/update_version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ if [ -z "$1" ]
fi

# Update AirshipPluginVersion classes with current plugin version
sed -i '' "s/\(pluginVersion *= *\)\".*\"/\1\"$VERSION\"/g" "$ROOT_PATH/ios/Classes/AirshipPluginVersion.swift"
sed -i '' "s/\(pluginVersion *= *\)\".*\"/\1\"$VERSION\"/g" "$ROOT_PATH/ios/airship_flutter/Sources/airship_flutter/AirshipPluginVersion.swift"
sed -i '' "s/\(AIRSHIP_PLUGIN_VERSION *= *\)\".*\"/\1\"$VERSION\"/g" "$ROOT_PATH/android/src/main/kotlin/com/airship/flutter/AirshipPluginVersion.kt"

# Update podspec
Expand All @@ -22,4 +22,4 @@ sed -i '' "s/\(^AIRSHIP_FLUTTER_VERSION *= *\)\".*\"/\1\"$VERSION\"/g" "$ROOT_PA
sed -i '' "s/\(^ airship_flutter *: *\).*/\1\^$VERSION/g" "$ROOT_PATH/README.md"

# Update version in pubspec.yaml with the current
sed -i '' "s/\(^version: *\).*/\1$VERSION/g" "$ROOT_PATH/pubspec.yaml"
sed -i '' "s/\(^version: *\).*/\1$VERSION/g" "$ROOT_PATH/pubspec.yaml"

0 comments on commit 5523612

Please sign in to comment.