Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions app.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand All @@ -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"
}
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
{
"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",
"ios": "expo start -c --ios",
"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",
Expand Down
21 changes: 21 additions & 0 deletions scripts/bump-version.sh
Original file line number Diff line number Diff line change
@@ -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"
Loading