Skip to content

Privacy-first password manager with built-in email aliasing. Fully encrypted and self-hostable.

Bump iOS app version and tweak bump version script (#878)

Leendert de Borst8058912eee4e
diff --git a/apps/mobile-app/app.json b/apps/mobile-app/app.json
index 707f77e70..95f9af8a0 100644
--- a/apps/mobile-app/app.json
+++ b/apps/mobile-app/app.json
@@ -2,7 +2,7 @@
"expo": {
"name": "AliasVault",
"slug": "AliasVault",
- "version": "0.17.0",
+ "version": "0.18.0",
"orientation": "portrait",
"icon": "./assets/images/icon.png",
"scheme": "net.aliasvault.app",
diff --git a/apps/mobile-app/ios/AliasVault/Info.plist b/apps/mobile-app/ios/AliasVault/Info.plist
index 4b441a123..a040d4124 100644
--- a/apps/mobile-app/ios/AliasVault/Info.plist
+++ b/apps/mobile-app/ios/AliasVault/Info.plist
@@ -24,7 +24,7 @@
<key>CFBundlePackageType</key>
<string>$(PRODUCT_BUNDLE_PACKAGE_TYPE)</string>
<key>CFBundleShortVersionString</key>
- <string>0.17.0</string>
+ <string>$(MARKETING_VERSION)</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleURLTypes</key>
@@ -44,7 +44,7 @@
</dict>
</array>
<key>CFBundleVersion</key>
- <string>1</string>
+ <string>$(CURRENT_PROJECT_VERSION)</string>
<key>LSMinimumSystemVersion</key>
<string>12.0</string>
<key>LSRequiresIPhoneOS</key>
diff --git a/scripts/bump-version.sh b/scripts/bump-version.sh
index 154a0b162..8a6e75b9c 100755
--- a/scripts/bump-version.sh
+++ b/scripts/bump-version.sh
@@ -82,6 +82,10 @@ get_browser_extension_version() {
# Function to extract version from mobile app
get_mobile_app_version() {
+ grep "\"version\": " ../apps/mobile-app/app.json | tr -d '"' | tr -d ',' | tr -d ' ' | cut -d':' -f2
+}
+
+get_mobile_app_ts_version() {
grep "public static readonly VERSION = " ../apps/mobile-app/utils/AppInfo.ts | tr -d "'" | tr -d ';' | tr -d ' ' | cut -d'=' -f2
}
@@ -105,6 +109,7 @@ echo "Checking current versions..."
server_version=$(get_server_version)
browser_version=$(get_browser_extension_version)
mobile_version=$(get_mobile_app_version)
+mobile_ts_version=$(get_mobile_app_ts_version)
ios_version=$(get_ios_version)
android_version=$(get_android_version)
safari_version=$(get_safari_version)
@@ -114,6 +119,7 @@ declare -A versions
versions["server"]="$server_version"
versions["browser"]="$browser_version"
versions["mobile"]="$mobile_version"
+versions["mobile_ts"]="$mobile_ts_version"
versions["ios"]="$ios_version"
versions["android"]="$android_version"
versions["safari"]="$safari_version"
@@ -123,6 +129,7 @@ declare -A display_names
display_names["server"]="Server"
display_names["browser"]="Browser Extension"
display_names["mobile"]="Mobile App"
+display_names["mobile_ts"]="Mobile App (TS)"
display_names["ios"]="iOS App"
display_names["android"]="Android App"
display_names["safari"]="Safari Extension"
@@ -188,11 +195,15 @@ update_version "../apps/browser-extension/wxt.config.ts" \
"version: \"[0-9]\+\.[0-9]\+\.[0-9]\+\"," \
"version: \"$version\","
-# Update mobile app version
+# Update generic mobile app version
echo "Updating mobile app version..."
update_version "../apps/mobile-app/utils/AppInfo.ts" \
"public static readonly VERSION = '[0-9]\+\.[0-9]\+\.[0-9]\+';" \
"public static readonly VERSION = '$version';"
+update_version "../apps/mobile-app/app.json" \
+ "\"version\": \"[0-9]\+\.[0-9]\+\.[0-9]\+\"," \
+ "\"version\": \"$version\","
+
# Update iOS app version
echo "Updating iOS app version..."