diff --git a/android/app/build.gradle b/android/app/build.gradle
index c3f84f8..d3079da 100644
--- a/android/app/build.gradle
+++ b/android/app/build.gradle
@@ -93,8 +93,8 @@ android {
applicationId 'com.nuvio.app'
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
- versionCode 16
- versionName "1.2.1"
+ versionCode 17
+ versionName "1.2.2"
}
splits {
diff --git a/android/app/src/main/res/values/strings.xml b/android/app/src/main/res/values/strings.xml
index 731aad9..421cce7 100644
--- a/android/app/src/main/res/values/strings.xml
+++ b/android/app/src/main/res/values/strings.xml
@@ -3,5 +3,5 @@
contain
false
dark
- 1.2.1
+ 1.2.2
\ No newline at end of file
diff --git a/app.json b/app.json
index 0965da4..c409534 100644
--- a/app.json
+++ b/app.json
@@ -2,7 +2,7 @@
"expo": {
"name": "Nuvio",
"slug": "nuvio",
- "version": "1.2.1",
+ "version": "1.2.2",
"orientation": "default",
"backgroundColor": "#020404",
"icon": "./assets/ios/AppIcon.appiconset/Icon-App-60x60@3x.png",
@@ -17,7 +17,7 @@
"ios": {
"supportsTablet": true,
"icon": "./assets/ios/AppIcon.appiconset/Icon-App-60x60@3x.png",
- "buildNumber": "16",
+ "buildNumber": "17",
"infoPlist": {
"NSAppTransportSecurity": {
"NSAllowsArbitraryLoads": true
@@ -48,7 +48,7 @@
"WAKE_LOCK"
],
"package": "com.nuvio.app",
- "versionCode": 16,
+ "versionCode": 17,
"architectures": [
"arm64-v8a",
"armeabi-v7a",
@@ -94,6 +94,6 @@
"fallbackToCacheTimeout": 30000,
"url": "https://grim-reyna-tapframe-69970143.koyeb.app/api/manifest"
},
- "runtimeVersion": "1.2.1"
+ "runtimeVersion": "1.2.2"
}
}
diff --git a/ios/Nuvio.xcodeproj/project.pbxproj b/ios/Nuvio.xcodeproj/project.pbxproj
index 9e052c5..4a0ce8f 100644
--- a/ios/Nuvio.xcodeproj/project.pbxproj
+++ b/ios/Nuvio.xcodeproj/project.pbxproj
@@ -430,7 +430,7 @@
);
OTHER_SWIFT_FLAGS = "$(inherited) -D EXPO_CONFIGURATION_DEBUG";
PRODUCT_BUNDLE_IDENTIFIER = com.nuvio.app;
- PRODUCT_NAME = Nuvio;
+ PRODUCT_NAME = "Nuvio";
SWIFT_OBJC_BRIDGING_HEADER = "Nuvio/Nuvio-Bridging-Header.h";
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
SWIFT_VERSION = 5.0;
@@ -464,7 +464,7 @@
);
OTHER_SWIFT_FLAGS = "$(inherited) -D EXPO_CONFIGURATION_RELEASE";
PRODUCT_BUNDLE_IDENTIFIER = com.nuvio.app;
- PRODUCT_NAME = Nuvio;
+ PRODUCT_NAME = "Nuvio";
SWIFT_OBJC_BRIDGING_HEADER = "Nuvio/Nuvio-Bridging-Header.h";
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
diff --git a/ios/Nuvio/Info.plist b/ios/Nuvio/Info.plist
index 4a70507..45d6340 100644
--- a/ios/Nuvio/Info.plist
+++ b/ios/Nuvio/Info.plist
@@ -19,7 +19,7 @@
CFBundlePackageType
$(PRODUCT_BUNDLE_PACKAGE_TYPE)
CFBundleShortVersionString
- 1.2.1
+ 1.2.2
CFBundleSignature
????
CFBundleURLTypes
@@ -39,7 +39,7 @@
CFBundleVersion
- 16
+ 17
LSMinimumSystemVersion
12.0
LSRequiresIPhoneOS
diff --git a/ios/Nuvio/NuvioRelease.entitlements b/ios/Nuvio/NuvioRelease.entitlements
index 0c67376..a0bc443 100644
--- a/ios/Nuvio/NuvioRelease.entitlements
+++ b/ios/Nuvio/NuvioRelease.entitlements
@@ -1,5 +1,10 @@
-
-
+
+ aps-environment
+ development
+ com.apple.developer.associated-domains
+
+
+
\ No newline at end of file
diff --git a/ios/Nuvio/Supporting/Expo.plist b/ios/Nuvio/Supporting/Expo.plist
index be3b6bf..13528dc 100644
--- a/ios/Nuvio/Supporting/Expo.plist
+++ b/ios/Nuvio/Supporting/Expo.plist
@@ -9,7 +9,7 @@
EXUpdatesLaunchWaitMs
30000
EXUpdatesRuntimeVersion
- 1.2.1
+ 1.2.2
EXUpdatesURL
https://grim-reyna-tapframe-69970143.koyeb.app/api/manifest
diff --git a/src/utils/version.ts b/src/utils/version.ts
index 4e8c6df..cec73c2 100644
--- a/src/utils/version.ts
+++ b/src/utils/version.ts
@@ -1,7 +1,7 @@
// Single source of truth for the app version displayed in Settings
// Update this when bumping app version
-export const APP_VERSION = '1.2.1';
+export const APP_VERSION = '1.2.2';
export function getDisplayedAppVersion(): string {
return APP_VERSION;
diff --git a/update-version.sh b/update-version.sh
index 899335c..c93399a 100644
--- a/update-version.sh
+++ b/update-version.sh
@@ -59,9 +59,10 @@ APP_JSON="./app.json"
VERSION_TS="./src/utils/version.ts"
INFO_PLIST="./ios/Nuvio/Info.plist"
ANDROID_BUILD_GRADLE="./android/app/build.gradle"
+ANDROID_STRINGS_XML="./android/app/src/main/res/values/strings.xml"
# Check if files exist
-for file in "$APP_JSON" "$VERSION_TS" "$INFO_PLIST" "$ANDROID_BUILD_GRADLE"; do
+for file in "$APP_JSON" "$VERSION_TS" "$INFO_PLIST" "$ANDROID_BUILD_GRADLE" "$ANDROID_STRINGS_XML"; do
if [ ! -f "$file" ]; then
print_error "File not found: $file"
exit 1
@@ -91,6 +92,7 @@ cp "$APP_JSON" "${APP_JSON}.backup"
cp "$VERSION_TS" "${VERSION_TS}.backup"
cp "$INFO_PLIST" "${INFO_PLIST}.backup"
cp "$ANDROID_BUILD_GRADLE" "${ANDROID_BUILD_GRADLE}.backup"
+cp "$ANDROID_STRINGS_XML" "${ANDROID_STRINGS_XML}.backup"
# Function to restore backups on error
restore_backups() {
@@ -99,6 +101,7 @@ restore_backups() {
mv "${VERSION_TS}.backup" "$VERSION_TS"
mv "${INFO_PLIST}.backup" "$INFO_PLIST"
mv "${ANDROID_BUILD_GRADLE}.backup" "$ANDROID_BUILD_GRADLE"
+ mv "${ANDROID_STRINGS_XML}.backup" "$ANDROID_STRINGS_XML"
}
# Set trap to restore backups on error
@@ -118,8 +121,8 @@ print_success "Updated app.json"
# Update src/utils/version.ts
print_status "Updating src/utils/version.ts..."
-# Replace the APP_VERSION constant value
-sed -E -i '' "s/export const APP_VERSION = '\\S*';/export const APP_VERSION = '$NEW_VERSION';/g" "$VERSION_TS"
+# Replace the APP_VERSION constant value (portable BSD sed regex)
+sed -E -i '' "s/export const APP_VERSION = '[^']*';/export const APP_VERSION = '$NEW_VERSION';/g" "$VERSION_TS"
print_success "Updated src/utils/version.ts"
# Update Info.plist
@@ -138,6 +141,12 @@ sed -i '' "s/versionCode [0-9]*/versionCode $NEW_BUILD_NUMBER/g" "$ANDROID_BUILD
sed -i '' "s/versionName \"[^\"]*\"/versionName \"$NEW_VERSION\"/g" "$ANDROID_BUILD_GRADLE"
print_success "Updated Android build.gradle"
+# Update Android strings.xml (expo_runtime_version)
+print_status "Updating Android strings.xml..."
+# Update value
+sed -i '' "s|[^<]*|$NEW_VERSION|g" "$ANDROID_STRINGS_XML"
+print_success "Updated Android strings.xml"
+
# Verify updates
print_status "Verifying updates..."
@@ -178,16 +187,24 @@ else
exit 1
fi
+# Check Android strings.xml
+if grep -q "$NEW_VERSION" "$ANDROID_STRINGS_XML"; then
+ print_success "Android strings.xml updated correctly"
+else
+ print_error "Android strings.xml update verification failed"
+ exit 1
+fi
+
# Clean up backups
print_status "Cleaning up backups..."
-rm "${APP_JSON}.backup" "${VERSION_TS}.backup" "${INFO_PLIST}.backup" "${ANDROID_BUILD_GRADLE}.backup"
+rm "${APP_JSON}.backup" "${VERSION_TS}.backup" "${INFO_PLIST}.backup" "${ANDROID_BUILD_GRADLE}.backup" "${ANDROID_STRINGS_XML}.backup"
print_success "Version update completed successfully!"
print_status "Summary:"
echo " Version: $NEW_VERSION"
echo " Runtime Version: $NEW_VERSION"
echo " Build Number: $NEW_BUILD_NUMBER"
-echo " Files updated: app.json, src/utils/version.ts, Info.plist, Android build.gradle"
+echo " Files updated: app.json, src/utils/version.ts, Info.plist, Android build.gradle, Android strings.xml"
echo ""
print_status "Next steps:"
echo " 1. Test the app to ensure everything works correctly"