Colota - Android GPS Location tracker
chore: add fastlane changelog for v1.2.0 (versionCode 19)
Max Dietrichedb451b0647b
diff --git a/apps/mobile/android/app/build.gradle b/apps/mobile/android/app/build.gradleindex f42653a3..9d791649 100644--- a/apps/mobile/android/app/build.gradle+++ b/apps/mobile/android/app/build.gradle@@ -87,8 +87,8 @@ android {applicationId "com.Colota"minSdkVersion rootProject.ext.minSdkVersiontargetSdkVersion rootProject.ext.targetSdkVersion- versionCode 18- versionName "1.1.0"+ versionCode 19+ versionName "1.2.0"// Expose build config to the modulebuildConfigField "int", "MIN_SDK_VERSION", "${rootProject.ext.minSdkVersion}"diff --git a/apps/mobile/android/app/fastlane/metadata/android/en-US/changelogs/19.txt b/apps/mobile/android/app/fastlane/metadata/android/en-US/changelogs/19.txtnew file mode 100644index 00000000..563e3610--- /dev/null+++ b/apps/mobile/android/app/fastlane/metadata/android/en-US/changelogs/19.txt@@ -0,0 +1,5 @@+- Added Android 17+ local network permission handling+- Fixed speed data: guard with hasSpeed() and calculate fallback from GPS points+- Fixed sync retry-forever mode dropping locations after repeated failures+- Hardened security: restrict HTTP to private networks, narrowed ProGuard rules+- Lowered minimum accuracy threshold from 50m to 1mdiff --git a/package.json b/package.jsonindex a12b572a..0c935364 100644--- a/package.json+++ b/package.json@@ -1,6 +1,6 @@{"name": "colota",- "version": "1.1.0",+ "version": "1.2.0","private": true,"workspaces": ["apps/*",diff --git a/packages/shared/package.json b/packages/shared/package.jsonindex a194b7ec..5a7865f5 100644--- a/packages/shared/package.json+++ b/packages/shared/package.json@@ -1,6 +1,5 @@{"name": "@colota/shared",- "version": "1.0.0","private": true,"main": "dist/index.js","types": "dist/index.d.ts",diff --git a/scripts/bump-version.py b/scripts/bump-version.pydeleted file mode 100644index 8ddec50f..00000000--- a/scripts/bump-version.py+++ /dev/null@@ -1,121 +0,0 @@-#!/usr/bin/env python3-"""-bump-version.py - Update the version across the entire Colota monorepo.--Usage:- python scripts/bump-version.py <version>--Example:- python scripts/bump-version.py 1.1.0--The script updates:- - package.json (root)- - apps/mobile/package.json- - apps/docs/package.json- - packages/shared/package.json- - apps/mobile/android/app/build.gradle (versionName + auto-incremented versionCode)--It does NOT create any git commits or tags.-"""--import json-import re-import sys-from pathlib import Path--REPO_ROOT = Path(__file__).resolve().parent.parent--PACKAGE_FILES = [- REPO_ROOT / "package.json",- REPO_ROOT / "apps" / "mobile" / "package.json",- REPO_ROOT / "apps" / "docs" / "package.json",- REPO_ROOT / "packages" / "shared" / "package.json",-]--BUILD_GRADLE = REPO_ROOT / "apps" / "mobile" / "android" / "app" / "build.gradle"---def update_package_json(file: Path, version: str):- if not file.is_file():- print(f" Warning: {file} not found - skipping.")- return-- text = file.read_text(encoding="utf-8")- pkg = json.loads(text)- old_version = pkg.get("version", "(none)")-- pkg["version"] = version-- # Detect indent from original file- indent_match = re.search(r"^([ \t]+)", text, re.MULTILINE)- indent = indent_match.group(1) if indent_match else " "- indent_size = len(indent)-- file.write_text(json.dumps(pkg, indent=indent_size, ensure_ascii=False) + "\n", encoding="utf-8")-- display = file.relative_to(REPO_ROOT)- print(f" {display}: {old_version} -> {version}")---def update_build_gradle(file: Path, version: str):- if not file.is_file():- print(f" Warning: {file} not found - skipping.")- return-- text = file.read_text(encoding="utf-8")-- # Read current values- name_match = re.search(r'versionName "(.+?)"', text)- code_match = re.search(r"versionCode (\d+)", text)-- old_name = name_match.group(1) if name_match else "(unknown)"- old_code = int(code_match.group(1)) if code_match else 0- new_code = old_code + 1-- # Update- text = re.sub(r'versionName ".+?"', f'versionName "{version}"', text)- text = re.sub(r"versionCode \d+", f"versionCode {new_code}", text)-- file.write_text(text, encoding="utf-8")-- display = file.relative_to(REPO_ROOT)- print(f" {display}:")- print(f' versionName: "{old_name}" -> "{version}"')- print(f" versionCode: {old_code} -> {new_code}")---def main():- if len(sys.argv) != 2:- print("Usage: python scripts/bump-version.py <version>")- print(" version must be in semver format: x.y.z (e.g. 1.2.3)")- sys.exit(1)-- version = sys.argv[1]-- if not re.match(r"^\d+\.\d+\.\d+$", version):- print(f"Error: Invalid version format '{version}'.")- print(" Expected semver format: x.y.z (e.g. 1.2.3)")- sys.exit(1)-- print()- print(f"Bumping version to {version}")- print("================================")- print()-- print("Updating package.json files:")- for file in PACKAGE_FILES:- update_package_json(file, version)- print()-- print("Updating build.gradle:")- update_build_gradle(BUILD_GRADLE, version)- print()-- print("================================")- print(f"Done. Version bumped to {version}.")- print("No git commits or tags were created.")- print()---if __name__ == "__main__":- main()