From 2addf62cf28e57da3ef003e4bb0b9c55a0c7feb6 Mon Sep 17 00:00:00 2001 From: Piotr Garlej Date: Wed, 29 Apr 2026 12:53:31 +0200 Subject: [PATCH] bump version to 1.1.1 and add version bump script --- app.json | 8 ++++---- package-lock.json | 4 ++-- package.json | 7 +++++-- scripts/bump-version.sh | 21 +++++++++++++++++++++ 4 files changed, 32 insertions(+), 8 deletions(-) create mode 100755 scripts/bump-version.sh diff --git a/app.json b/app.json index 5deb89f..97cff19 100644 --- a/app.json +++ b/app.json @@ -2,7 +2,7 @@ "expo": { "name": "simple-notepad", "slug": "simple-notepad", - "version": "1.1.0", + "version": "1.1.1", "orientation": "portrait", "icon": "./assets/images/icon.png", "scheme": "simple-notepad", @@ -20,12 +20,12 @@ "supportsTablet": true }, "android": { - "edgeToEdgeEnabled": true, "adaptiveIcon": { "foregroundImage": "./assets/images/adaptive-icon.png", "backgroundColor": "#ffffff" }, - "package": "com.pgarr.simplenotepad" + "package": "com.pgarr.simplenotepad", + "versionCode": 13 }, "web": { "bundler": "metro", @@ -44,7 +44,7 @@ "projectId": "9e3820b7-558b-4bd2-a1b2-e49561e741e6" } }, - "runtimeVersion": "1.1.0", + "runtimeVersion": "1.1.1", "updates": { "url": "https://u.expo.dev/9e3820b7-558b-4bd2-a1b2-e49561e741e6" } diff --git a/package-lock.json b/package-lock.json index fbe6567..e3968d0 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "simple-notepad", - "version": "1.1.0", + "version": "1.1.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "simple-notepad", - "version": "1.1.0", + "version": "1.1.1", "dependencies": { "@react-navigation/native": "^7.0.0", "@rn-primitives/portal": "~1.3.0", diff --git a/package.json b/package.json index 533be0f..5ad385c 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "simple-notepad", "main": "expo-router/entry", - "version": "1.1.0", + "version": "1.1.1", "scripts": { "dev": "expo start -c", "android": "expo start -c --android", @@ -9,7 +9,10 @@ "web": "expo start -c --web", "test-watch": "jest --watchAll", "test-ci": "jest --no-watchman --runInBand", - "clean": "rm -rf .expo node_modules" + "clean": "rm -rf .expo node_modules", + "bump:patch": "scripts/bump-version.sh patch", + "bump:minor": "scripts/bump-version.sh minor", + "bump:major": "scripts/bump-version.sh major" }, "dependencies": { "@react-navigation/native": "^7.0.0", diff --git a/scripts/bump-version.sh b/scripts/bump-version.sh new file mode 100755 index 0000000..8eeb56a --- /dev/null +++ b/scripts/bump-version.sh @@ -0,0 +1,21 @@ +#!/bin/bash +set -e + +TYPE=${1:-patch} # patch | minor | major + +# Bump package.json and capture new version +NEW_VERSION=$(npm version $TYPE --no-git-tag-version | tr -d 'v') + +# Sync app.json +node -e " + const fs = require('fs'); + const app = JSON.parse(fs.readFileSync('app.json', 'utf8')); + app.expo.version = '$NEW_VERSION'; + app.expo.runtimeVersion = '$NEW_VERSION'; + app.expo.android = app.expo.android || {}; + app.expo.android.versionCode = (app.expo.android.versionCode || 0) + 1; + const parts = '$NEW_VERSION'.split('.').map(Number); + fs.writeFileSync('app.json', JSON.stringify(app, null, 2) + '\n'); +" + +echo "Bumped to $NEW_VERSION"