diff --git a/apps/mobile/bump.config.ts b/apps/mobile/bump.config.ts index e4d488086..49d61fd01 100644 --- a/apps/mobile/bump.config.ts +++ b/apps/mobile/bump.config.ts @@ -23,6 +23,7 @@ export default defineConfig({ push: false, commitMessage: "release(mobile): release v${NEW_VERSION}", tagPrefix: "mobile@", + tag: false, changelog: false, allowedBranches: ["dev"], }) diff --git a/apps/mobile/changelog/0.2.8.md b/apps/mobile/changelog/0.2.8.md new file mode 100644 index 000000000..6af02e8f5 --- /dev/null +++ b/apps/mobile/changelog/0.2.8.md @@ -0,0 +1,11 @@ +# What's New in v0.2.8 + +## Shiny new things + +## Improvements + +## No longer broken + +## Thanks + +Special thanks to volunteer contributors @ for their valuable contributions diff --git a/apps/mobile/ios/Folo/Info.plist b/apps/mobile/ios/Folo/Info.plist index dc5f63cd6..af266f8ce 100644 --- a/apps/mobile/ios/Folo/Info.plist +++ b/apps/mobile/ios/Folo/Info.plist @@ -32,7 +32,7 @@ CFBundlePackageType $(PRODUCT_BUNDLE_PACKAGE_TYPE) CFBundleShortVersionString - 0.2.7 + 0.2.8 CFBundleSignature ???? CFBundleURLTypes @@ -53,7 +53,7 @@ CFBundleVersion - 133 + 135 ITSAppUsesNonExemptEncryption LSApplicationCategoryType diff --git a/apps/mobile/package.json b/apps/mobile/package.json index 6e4e6013f..738324102 100644 --- a/apps/mobile/package.json +++ b/apps/mobile/package.json @@ -1,6 +1,6 @@ { "name": "@follow/mobile", - "version": "0.2.7", + "version": "0.2.8", "private": true, "main": "src/main.tsx", "scripts": { diff --git a/apps/mobile/scripts/changelog-cli/config.json b/apps/mobile/scripts/changelog-cli/config.json deleted file mode 100644 index 57c8fea5d..000000000 --- a/apps/mobile/scripts/changelog-cli/config.json +++ /dev/null @@ -1,54 +0,0 @@ -{ - "internalTeamMembers": [ - "Innei", - "DIYgod", - "hyoban", - "renovate[bot]", - "github-actions[bot]", - "dependabot[bot]", - "vercel[bot]", - "whitewater" - ], - "aiModel": { - "provider": "openai", - "model": "gpt-4o-mini", - "temperature": 0.3, - "maxTokens": 1000, - "apiKey": "", - "baseURL": "https://openrouter.ai/v1", - "customEndpoint": "" - }, - "commitAnalysis": { - "categories": { - "features": { - "keywords": ["feat", "feature", "add", "implement", "introduce"], - "section": "Shiny new things" - }, - "improvements": { - "keywords": ["improve", "enhance", "optimize", "refactor", "update", "perf"], - "section": "Improvements" - }, - "fixes": { - "keywords": ["fix", "bug", "patch", "resolve", "correct"], - "section": "No longer broken" - } - }, - "ignorePatterns": [ - "^chore:", - "^docs:", - "^test:", - "^ci:", - "^build:", - "Merge pull request", - "Merge branch", - "version bump", - "changelog", - "Update dependencies" - ] - }, - "changelog": { - "maxCommitsPerSection": 5, - "includeCommitHash": true, - "includePullRequestLinks": true - } -} diff --git a/scripts/increment-build-id.sh b/scripts/increment-build-id.sh index 7f43a991e..38264d8f5 100755 --- a/scripts/increment-build-id.sh +++ b/scripts/increment-build-id.sh @@ -2,47 +2,68 @@ # Script to check if the current branch is a release branch and if there are staged changes in apps/mobile/src # If both conditions are met, automatically increment the iOS and Android build ID +# Use -f flag to force increment regardless of branch or staged changes set -e -# Get the current branch name -CURRENT_BRANCH=$(git branch --show-current) +# Parse command line arguments +FORCE=false +while [[ $# -gt 0 ]]; do + case $1 in + -f | --force) + FORCE=true + shift + ;; + *) + echo "Unknown option $1" + echo "Usage: $0 [-f|--force]" + exit 1 + ;; + esac +done -# Check if it is a release branch -if [[ ! "$CURRENT_BRANCH" =~ ^release/ ]]; then - exit 0 +# If force flag is not set, perform the usual checks +if [ "$FORCE" = false ]; then + # Get the current branch name + CURRENT_BRANCH=$(git branch --show-current) + + # Check if it is a release branch + if [[ ! "$CURRENT_BRANCH" =~ ^release/ ]]; then + exit 0 + fi + + # Check if there are staged changes in apps/mobile/src + MOBILE_SRC_CHANGES=$(git diff --cached --name-only | grep "^apps/mobile/src" || true) + + if [ -z "$MOBILE_SRC_CHANGES" ]; then + echo "No changes in apps/mobile/src, skipping build ID increment" + exit 0 + fi + + echo "Found changes in apps/mobile/src on release branch, incrementing build ID..." +else + echo "Force flag detected, incrementing build ID..." fi -# Check if there are staged changes in apps/mobile/src -MOBILE_SRC_CHANGES=$(git diff --cached --name-only | grep "^apps/mobile/src" || true) - -if [ -z "$MOBILE_SRC_CHANGES" ]; then - echo "No changes in apps/mobile/src, skipping build ID increment" - exit 0 -fi - -echo "Found changes in apps/mobile/src on release branch, incrementing build ID..." - # iOS Info.plist path IOS_INFO_PLIST="apps/mobile/ios/Folo/Info.plist" if [ -f "$IOS_INFO_PLIST" ]; then # Get the current build ID CURRENT_BUILD=$(plutil -extract CFBundleVersion raw "$IOS_INFO_PLIST") - + # Increment build ID NEW_BUILD=$((CURRENT_BUILD + 1)) - + # Update Info.plist plutil -replace CFBundleVersion -string "$NEW_BUILD" "$IOS_INFO_PLIST" - + echo "iOS build ID updated from $CURRENT_BUILD to $NEW_BUILD" - + # Add the updated Info.plist to the staged area git add "$IOS_INFO_PLIST" else echo "Warning: iOS Info.plist not found at $IOS_INFO_PLIST" fi - -echo "Build ID increment completed" \ No newline at end of file +echo "Build ID increment completed"