1.2.1
This commit is contained in:
parent
b8d3d68b65
commit
4f593459b1
9 changed files with 42 additions and 20 deletions
|
|
@ -93,8 +93,8 @@ android {
|
||||||
applicationId 'com.nuvio.app'
|
applicationId 'com.nuvio.app'
|
||||||
minSdkVersion rootProject.ext.minSdkVersion
|
minSdkVersion rootProject.ext.minSdkVersion
|
||||||
targetSdkVersion rootProject.ext.targetSdkVersion
|
targetSdkVersion rootProject.ext.targetSdkVersion
|
||||||
versionCode 16
|
versionCode 17
|
||||||
versionName "1.2.1"
|
versionName "1.2.2"
|
||||||
}
|
}
|
||||||
|
|
||||||
splits {
|
splits {
|
||||||
|
|
|
||||||
|
|
@ -3,5 +3,5 @@
|
||||||
<string name="expo_splash_screen_resize_mode" translatable="false">contain</string>
|
<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_splash_screen_status_bar_translucent" translatable="false">false</string>
|
||||||
<string name="expo_system_ui_user_interface_style" translatable="false">dark</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>
|
</resources>
|
||||||
8
app.json
8
app.json
|
|
@ -2,7 +2,7 @@
|
||||||
"expo": {
|
"expo": {
|
||||||
"name": "Nuvio",
|
"name": "Nuvio",
|
||||||
"slug": "nuvio",
|
"slug": "nuvio",
|
||||||
"version": "1.2.1",
|
"version": "1.2.2",
|
||||||
"orientation": "default",
|
"orientation": "default",
|
||||||
"backgroundColor": "#020404",
|
"backgroundColor": "#020404",
|
||||||
"icon": "./assets/ios/AppIcon.appiconset/Icon-App-60x60@3x.png",
|
"icon": "./assets/ios/AppIcon.appiconset/Icon-App-60x60@3x.png",
|
||||||
|
|
@ -17,7 +17,7 @@
|
||||||
"ios": {
|
"ios": {
|
||||||
"supportsTablet": true,
|
"supportsTablet": true,
|
||||||
"icon": "./assets/ios/AppIcon.appiconset/Icon-App-60x60@3x.png",
|
"icon": "./assets/ios/AppIcon.appiconset/Icon-App-60x60@3x.png",
|
||||||
"buildNumber": "16",
|
"buildNumber": "17",
|
||||||
"infoPlist": {
|
"infoPlist": {
|
||||||
"NSAppTransportSecurity": {
|
"NSAppTransportSecurity": {
|
||||||
"NSAllowsArbitraryLoads": true
|
"NSAllowsArbitraryLoads": true
|
||||||
|
|
@ -48,7 +48,7 @@
|
||||||
"WAKE_LOCK"
|
"WAKE_LOCK"
|
||||||
],
|
],
|
||||||
"package": "com.nuvio.app",
|
"package": "com.nuvio.app",
|
||||||
"versionCode": 16,
|
"versionCode": 17,
|
||||||
"architectures": [
|
"architectures": [
|
||||||
"arm64-v8a",
|
"arm64-v8a",
|
||||||
"armeabi-v7a",
|
"armeabi-v7a",
|
||||||
|
|
@ -94,6 +94,6 @@
|
||||||
"fallbackToCacheTimeout": 30000,
|
"fallbackToCacheTimeout": 30000,
|
||||||
"url": "https://grim-reyna-tapframe-69970143.koyeb.app/api/manifest"
|
"url": "https://grim-reyna-tapframe-69970143.koyeb.app/api/manifest"
|
||||||
},
|
},
|
||||||
"runtimeVersion": "1.2.1"
|
"runtimeVersion": "1.2.2"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -430,7 +430,7 @@
|
||||||
);
|
);
|
||||||
OTHER_SWIFT_FLAGS = "$(inherited) -D EXPO_CONFIGURATION_DEBUG";
|
OTHER_SWIFT_FLAGS = "$(inherited) -D EXPO_CONFIGURATION_DEBUG";
|
||||||
PRODUCT_BUNDLE_IDENTIFIER = com.nuvio.app;
|
PRODUCT_BUNDLE_IDENTIFIER = com.nuvio.app;
|
||||||
PRODUCT_NAME = Nuvio;
|
PRODUCT_NAME = "Nuvio";
|
||||||
SWIFT_OBJC_BRIDGING_HEADER = "Nuvio/Nuvio-Bridging-Header.h";
|
SWIFT_OBJC_BRIDGING_HEADER = "Nuvio/Nuvio-Bridging-Header.h";
|
||||||
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
|
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
|
||||||
SWIFT_VERSION = 5.0;
|
SWIFT_VERSION = 5.0;
|
||||||
|
|
@ -464,7 +464,7 @@
|
||||||
);
|
);
|
||||||
OTHER_SWIFT_FLAGS = "$(inherited) -D EXPO_CONFIGURATION_RELEASE";
|
OTHER_SWIFT_FLAGS = "$(inherited) -D EXPO_CONFIGURATION_RELEASE";
|
||||||
PRODUCT_BUNDLE_IDENTIFIER = com.nuvio.app;
|
PRODUCT_BUNDLE_IDENTIFIER = com.nuvio.app;
|
||||||
PRODUCT_NAME = Nuvio;
|
PRODUCT_NAME = "Nuvio";
|
||||||
SWIFT_OBJC_BRIDGING_HEADER = "Nuvio/Nuvio-Bridging-Header.h";
|
SWIFT_OBJC_BRIDGING_HEADER = "Nuvio/Nuvio-Bridging-Header.h";
|
||||||
SWIFT_VERSION = 5.0;
|
SWIFT_VERSION = 5.0;
|
||||||
TARGETED_DEVICE_FAMILY = "1,2";
|
TARGETED_DEVICE_FAMILY = "1,2";
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@
|
||||||
<key>CFBundlePackageType</key>
|
<key>CFBundlePackageType</key>
|
||||||
<string>$(PRODUCT_BUNDLE_PACKAGE_TYPE)</string>
|
<string>$(PRODUCT_BUNDLE_PACKAGE_TYPE)</string>
|
||||||
<key>CFBundleShortVersionString</key>
|
<key>CFBundleShortVersionString</key>
|
||||||
<string>1.2.1</string>
|
<string>1.2.2</string>
|
||||||
<key>CFBundleSignature</key>
|
<key>CFBundleSignature</key>
|
||||||
<string>????</string>
|
<string>????</string>
|
||||||
<key>CFBundleURLTypes</key>
|
<key>CFBundleURLTypes</key>
|
||||||
|
|
@ -39,7 +39,7 @@
|
||||||
</dict>
|
</dict>
|
||||||
</array>
|
</array>
|
||||||
<key>CFBundleVersion</key>
|
<key>CFBundleVersion</key>
|
||||||
<string>16</string>
|
<string>17</string>
|
||||||
<key>LSMinimumSystemVersion</key>
|
<key>LSMinimumSystemVersion</key>
|
||||||
<string>12.0</string>
|
<string>12.0</string>
|
||||||
<key>LSRequiresIPhoneOS</key>
|
<key>LSRequiresIPhoneOS</key>
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,10 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?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">
|
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||||
<plist version="1.0">
|
<plist version="1.0">
|
||||||
<dict/>
|
<dict>
|
||||||
</plist>
|
<key>aps-environment</key>
|
||||||
|
<string>development</string>
|
||||||
|
<key>com.apple.developer.associated-domains</key>
|
||||||
|
<array/>
|
||||||
|
</dict>
|
||||||
|
</plist>
|
||||||
|
|
@ -9,7 +9,7 @@
|
||||||
<key>EXUpdatesLaunchWaitMs</key>
|
<key>EXUpdatesLaunchWaitMs</key>
|
||||||
<integer>30000</integer>
|
<integer>30000</integer>
|
||||||
<key>EXUpdatesRuntimeVersion</key>
|
<key>EXUpdatesRuntimeVersion</key>
|
||||||
<string>1.2.1</string>
|
<string>1.2.2</string>
|
||||||
<key>EXUpdatesURL</key>
|
<key>EXUpdatesURL</key>
|
||||||
<string>https://grim-reyna-tapframe-69970143.koyeb.app/api/manifest</string>
|
<string>https://grim-reyna-tapframe-69970143.koyeb.app/api/manifest</string>
|
||||||
</dict>
|
</dict>
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
// Single source of truth for the app version displayed in Settings
|
// Single source of truth for the app version displayed in Settings
|
||||||
// Update this when bumping app version
|
// Update this when bumping app version
|
||||||
|
|
||||||
export const APP_VERSION = '1.2.1';
|
export const APP_VERSION = '1.2.2';
|
||||||
|
|
||||||
export function getDisplayedAppVersion(): string {
|
export function getDisplayedAppVersion(): string {
|
||||||
return APP_VERSION;
|
return APP_VERSION;
|
||||||
|
|
|
||||||
|
|
@ -59,9 +59,10 @@ APP_JSON="./app.json"
|
||||||
VERSION_TS="./src/utils/version.ts"
|
VERSION_TS="./src/utils/version.ts"
|
||||||
INFO_PLIST="./ios/Nuvio/Info.plist"
|
INFO_PLIST="./ios/Nuvio/Info.plist"
|
||||||
ANDROID_BUILD_GRADLE="./android/app/build.gradle"
|
ANDROID_BUILD_GRADLE="./android/app/build.gradle"
|
||||||
|
ANDROID_STRINGS_XML="./android/app/src/main/res/values/strings.xml"
|
||||||
|
|
||||||
# Check if files exist
|
# 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
|
if [ ! -f "$file" ]; then
|
||||||
print_error "File not found: $file"
|
print_error "File not found: $file"
|
||||||
exit 1
|
exit 1
|
||||||
|
|
@ -91,6 +92,7 @@ cp "$APP_JSON" "${APP_JSON}.backup"
|
||||||
cp "$VERSION_TS" "${VERSION_TS}.backup"
|
cp "$VERSION_TS" "${VERSION_TS}.backup"
|
||||||
cp "$INFO_PLIST" "${INFO_PLIST}.backup"
|
cp "$INFO_PLIST" "${INFO_PLIST}.backup"
|
||||||
cp "$ANDROID_BUILD_GRADLE" "${ANDROID_BUILD_GRADLE}.backup"
|
cp "$ANDROID_BUILD_GRADLE" "${ANDROID_BUILD_GRADLE}.backup"
|
||||||
|
cp "$ANDROID_STRINGS_XML" "${ANDROID_STRINGS_XML}.backup"
|
||||||
|
|
||||||
# Function to restore backups on error
|
# Function to restore backups on error
|
||||||
restore_backups() {
|
restore_backups() {
|
||||||
|
|
@ -99,6 +101,7 @@ restore_backups() {
|
||||||
mv "${VERSION_TS}.backup" "$VERSION_TS"
|
mv "${VERSION_TS}.backup" "$VERSION_TS"
|
||||||
mv "${INFO_PLIST}.backup" "$INFO_PLIST"
|
mv "${INFO_PLIST}.backup" "$INFO_PLIST"
|
||||||
mv "${ANDROID_BUILD_GRADLE}.backup" "$ANDROID_BUILD_GRADLE"
|
mv "${ANDROID_BUILD_GRADLE}.backup" "$ANDROID_BUILD_GRADLE"
|
||||||
|
mv "${ANDROID_STRINGS_XML}.backup" "$ANDROID_STRINGS_XML"
|
||||||
}
|
}
|
||||||
|
|
||||||
# Set trap to restore backups on error
|
# Set trap to restore backups on error
|
||||||
|
|
@ -118,8 +121,8 @@ print_success "Updated app.json"
|
||||||
|
|
||||||
# Update src/utils/version.ts
|
# Update src/utils/version.ts
|
||||||
print_status "Updating src/utils/version.ts..."
|
print_status "Updating src/utils/version.ts..."
|
||||||
# Replace the APP_VERSION constant value
|
# Replace the APP_VERSION constant value (portable BSD sed regex)
|
||||||
sed -E -i '' "s/export const APP_VERSION = '\\S*';/export const APP_VERSION = '$NEW_VERSION';/g" "$VERSION_TS"
|
sed -E -i '' "s/export const APP_VERSION = '[^']*';/export const APP_VERSION = '$NEW_VERSION';/g" "$VERSION_TS"
|
||||||
print_success "Updated src/utils/version.ts"
|
print_success "Updated src/utils/version.ts"
|
||||||
|
|
||||||
# Update Info.plist
|
# 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"
|
sed -i '' "s/versionName \"[^\"]*\"/versionName \"$NEW_VERSION\"/g" "$ANDROID_BUILD_GRADLE"
|
||||||
print_success "Updated 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
|
# Verify updates
|
||||||
print_status "Verifying updates..."
|
print_status "Verifying updates..."
|
||||||
|
|
||||||
|
|
@ -178,16 +187,24 @@ else
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
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
|
# Clean up backups
|
||||||
print_status "Cleaning 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_success "Version update completed successfully!"
|
||||||
print_status "Summary:"
|
print_status "Summary:"
|
||||||
echo " Version: $NEW_VERSION"
|
echo " Version: $NEW_VERSION"
|
||||||
echo " Runtime Version: $NEW_VERSION"
|
echo " Runtime Version: $NEW_VERSION"
|
||||||
echo " Build Number: $NEW_BUILD_NUMBER"
|
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 ""
|
echo ""
|
||||||
print_status "Next steps:"
|
print_status "Next steps:"
|
||||||
echo " 1. Test the app to ensure everything works correctly"
|
echo " 1. Test the app to ensure everything works correctly"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue