This commit is contained in:
tapframe 2025-09-30 17:17:48 +05:30
parent b8d3d68b65
commit 4f593459b1
9 changed files with 42 additions and 20 deletions

View file

@ -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 {

View file

@ -3,5 +3,5 @@
<string name="expo_splash_screen_resize_mode" translatable="false">contain</string>
<string name="expo_splash_screen_status_bar_translucent" translatable="false">false</string>
<string name="expo_system_ui_user_interface_style" translatable="false">dark</string>
<string name="expo_runtime_version">1.2.1</string>
<string name="expo_runtime_version">1.2.2</string>
</resources>

View file

@ -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"
}
}

View file

@ -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";

View file

@ -19,7 +19,7 @@
<key>CFBundlePackageType</key>
<string>$(PRODUCT_BUNDLE_PACKAGE_TYPE)</string>
<key>CFBundleShortVersionString</key>
<string>1.2.1</string>
<string>1.2.2</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleURLTypes</key>
@ -39,7 +39,7 @@
</dict>
</array>
<key>CFBundleVersion</key>
<string>16</string>
<string>17</string>
<key>LSMinimumSystemVersion</key>
<string>12.0</string>
<key>LSRequiresIPhoneOS</key>

View file

@ -1,5 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict/>
</plist>
<dict>
<key>aps-environment</key>
<string>development</string>
<key>com.apple.developer.associated-domains</key>
<array/>
</dict>
</plist>

View file

@ -9,7 +9,7 @@
<key>EXUpdatesLaunchWaitMs</key>
<integer>30000</integer>
<key>EXUpdatesRuntimeVersion</key>
<string>1.2.1</string>
<string>1.2.2</string>
<key>EXUpdatesURL</key>
<string>https://grim-reyna-tapframe-69970143.koyeb.app/api/manifest</string>
</dict>

View file

@ -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;

View file

@ -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 <string name="expo_runtime_version"> value
sed -i '' "s|<string name=\"expo_runtime_version\">[^<]*</string>|<string name=\"expo_runtime_version\">$NEW_VERSION</string>|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 "<string name=\"expo_runtime_version\">$NEW_VERSION</string>" "$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"