Initial commit: ContactSync Android app
- SyncAdapter with account type com.bitrix24.contacts.sync - Two-phase sync: download to Room DB, then import to phone contacts - FCM push for instant contact addition - WorkManager: periodic sync (30min) + heartbeat (1h) - QR code activation (JSON format) - Event log UI with LiveData - Auto-update mechanism via version.php - Duplicate contacts cleanup - CALLER_IS_SYNCADAPTER optimization for bulk inserts Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
24
bump-version.sh
Normal file
24
bump-version.sh
Normal file
@@ -0,0 +1,24 @@
|
||||
#!/bin/bash
|
||||
# Bump version: increments versionCode and sets versionName
|
||||
# Usage: ./bump-version.sh 1.1.0
|
||||
|
||||
set -e
|
||||
|
||||
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
|
||||
GRADLE_FILE="$SCRIPT_DIR/app/build.gradle.kts"
|
||||
|
||||
# Current version
|
||||
CURRENT_CODE=$(grep 'versionCode' "$GRADLE_FILE" | head -1 | grep -o '[0-9]*')
|
||||
CURRENT_NAME=$(grep 'versionName' "$GRADLE_FILE" | head -1 | grep -o '"[^"]*"' | tr -d '"')
|
||||
|
||||
NEW_CODE=$((CURRENT_CODE + 1))
|
||||
NEW_NAME="${1:-$CURRENT_NAME}"
|
||||
|
||||
echo "Bumping version: $CURRENT_NAME ($CURRENT_CODE) → $NEW_NAME ($NEW_CODE)"
|
||||
|
||||
# Replace in build.gradle.kts
|
||||
sed -i "s/versionCode = $CURRENT_CODE/versionCode = $NEW_CODE/" "$GRADLE_FILE"
|
||||
sed -i "s/versionName = \"$CURRENT_NAME\"/versionName = \"$NEW_NAME\"/" "$GRADLE_FILE"
|
||||
|
||||
echo "Done. New version: $NEW_NAME ($NEW_CODE)"
|
||||
echo "Now run: ./deploy.sh"
|
||||
Reference in New Issue
Block a user