Skip to content

Colota - Android GPS Location tracker

Release version 1.4.4 - Fixes executor crash

Max Dietrich88598edfd404
diff --git a/.github/labeler.yml b/.github/labeler.yml
index 8b7a7ef7..c8ca12c5 100644
--- a/.github/labeler.yml
+++ b/.github/labeler.yml
@@ -1,17 +1,46 @@
-cli:
- - ".github/**"
+# ============================
+# CI
+# ============================
+ci:
+ - '.github/workflows/**'
+# ============================
+# Android / Native Kotlin
+# ============================
android:
- "android/**"
+# ============================
+# iOS / Swift / Obj-C
+# ============================
ios:
- - "ios/**"
-
-documentation:
- - "README.md"
+ - 'ios/**'
+# ============================
+# React Native / JS / TS
+# ============================
frontend:
- - "src/**"
+ - 'src/**'
+ - 'js/**'
+ - '*.js'
+ - '*.ts'
+ - '*.tsx'
+ - '*.jsx'
+# ============================
+# Tests / Unit / Integration
+# ============================
tests:
- - "__tests__/**"
\ No newline at end of file
+ - 'tests/**'
+ - '__tests__/**'
+ - '*.spec.ts'
+ - '*.test.ts'
+ - '*.test.js'
+ - '*.spec.js'
+
+# ============================
+# Documentation
+# ============================
+documentation:
+ - '*.md'
+ - 'README.md'
diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml
index 451f0177..9eea4fe3 100644
--- a/.github/release-drafter.yml
+++ b/.github/release-drafter.yml
@@ -1,29 +1,29 @@
-name-template: "v$RESOLVED_VERSION"
-tag-template: "v$RESOLVED_VERSION"
+name-template: 'v$NEXT_PATCH_VERSION 🌍'
+tag-template: 'v$NEXT_PATCH_VERSION'
categories:
- - title: "πŸ’₯ Breaking-Changes"
- labels: ["breaking-change"]
- - title: "πŸš€ Features"
- labels: ["feature"]
- - title: "✨ Enhancements"
- labels: ["enhancement"]
- - title: "πŸ› Bug Fixes"
- labels: ["fix", "bugfix", "bug", "patch"]
- - title: "🧹 Maintenance "
- labels: ["refactor", "maintenance", "chores"]
- - title: "πŸ“š Documentation"
- label: ["documentation"]
-change-template: "πŸ”Ή $TITLE (#$NUMBER) by @$AUTHOR"
-change-title-escapes: '\<*_&'
-version-resolver:
- major:
- labels: ["breaking-change"]
- minor:
- labels: ["feature", "enhancement"]
- patch:
- labels: ["fix", "bugfix", "bug", "patch"]
- default: patch
+ - title: 'πŸš€ New Features'
+ labels:
+ - enhancement
+ - feature
+ - title: 'πŸ› Bug Fixes'
+ labels:
+ - bug
+ - fix
+ - title: 'πŸ›  Refactoring / Maintenance'
+ labels:
+ - refactor
+ - maintenance
+ - title: 'πŸ“š Documentation'
+ labels:
+ - documentation
+ - title: 'πŸ§ͺ Tests'
+ labels:
+ - tests
+change-template: '- $TITLE (#$NUMBER) @$AUTHOR'
+no-changes-template: '- No changes'
template: |
- ## What's Changed
+ ## What’s new
- $CHANGES
\ No newline at end of file
+ $CHANGES
+
+ ---
diff --git a/.github/workflows/latest-release.yml b/.github/workflows/build-latest-release.yml
similarity index 99%
rename from .github/workflows/latest-release.yml
rename to .github/workflows/build-latest-release.yml
index 30686ec6..c2604b6a 100644
--- a/.github/workflows/latest-release.yml
+++ b/.github/workflows/build-latest-release.yml
@@ -1,4 +1,4 @@
-name: Latest Release
+name: Build Latest Release
on:
push:
diff --git a/.github/workflows/build-release.yml b/.github/workflows/build-release.yml
new file mode 100644
index 00000000..427c4a9e
--- /dev/null
+++ b/.github/workflows/build-release.yml
@@ -0,0 +1,99 @@
+name: Build Tagged Release
+
+on:
+ push:
+ tags:
+ - 'v*.*.*'
+ paths-ignore:
+ - '**.md'
+ workflow_dispatch:
+
+concurrency:
+ group: tagged-release
+ cancel-in-progress: true
+
+jobs:
+ test:
+ name: Lint & Test
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v4
+ - uses: actions/setup-node@v4
+ with:
+ node-version: '20'
+ cache: 'npm'
+ - run: npm ci
+ - run: npm run lint
+ - run: npx tsc --noEmit
+ - run: npm test
+
+ build-and-release:
+ name: Build & Publish Release
+ needs: test
+ runs-on: ubuntu-latest
+ permissions:
+ contents: write
+
+ steps:
+ - name: Checkout code
+ uses: actions/checkout@v4
+ with:
+ fetch-depth: 0
+
+ - name: Setup Node & Java
+ uses: actions/setup-node@v4
+ with:
+ node-version: '20'
+ cache: 'npm'
+ - uses: actions/setup-java@v4
+ with:
+ distribution: 'temurin'
+ java-version: '17'
+ cache: 'gradle'
+
+ - name: Install dependencies
+ run: npm ci
+
+ - name: Create gradle.properties
+ run: |
+ cat <<EOF >> android/gradle.properties
+ org.gradle.jvmargs=-Xmx4096m -XX:MaxMetaspaceSize=512m
+ android.useAndroidX=true
+ android.enableJetifier=true
+ hermesEnabled=true
+ newArchEnabled=true
+ reactNativeArchitectures=arm64-v8a
+
+ MYAPP_UPLOAD_STORE_FILE=release.keystore
+ MYAPP_UPLOAD_STORE_PASSWORD=${{ secrets.KEYSTORE_PASSWORD }}
+ MYAPP_UPLOAD_KEY_ALIAS=${{ secrets.KEY_ALIAS }}
+ MYAPP_UPLOAD_KEY_PASSWORD=${{ secrets.KEY_PASSWORD }}
+ EOF
+
+ - name: Decode keystore
+ env:
+ KEYSTORE_BASE64: ${{ secrets.KEYSTORE_BASE64 }}
+ run: echo $KEYSTORE_BASE64 | base64 -d > android/app/release.keystore
+
+ - name: Validate signing inputs
+ run: |
+ test -f android/app/release.keystore || (echo "Keystore missing" && exit 1)
+ test -n "${{ secrets.KEYSTORE_PASSWORD }}" || exit 1
+ test -n "${{ secrets.KEY_ALIAS }}" || exit 1
+ test -n "${{ secrets.KEY_PASSWORD }}" || exit 1
+
+ - name: Build Release APK
+ run: |
+ cd android
+ chmod +x gradlew
+ ./gradlew assembleRelease --no-daemon \
+ -PhermesEnabled=true \
+ -Pandroid.useAndroidX=true \
+ -Dorg.gradle.jvmargs="-Xmx4096m -XX:MaxMetaspaceSize=512m"
+
+ - name: Secure Cleanup
+ if: always()
+ run: |
+ echo "Cleaning up sensitive files..."
+ rm -f android/app/release.keystore
+ rm -f android/gradle.properties
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
deleted file mode 100644
index c108ed9e..00000000
--- a/.github/workflows/release.yml
+++ /dev/null
@@ -1,105 +0,0 @@
-name: Release
-
-on:
- push:
- tags:
- - 'v*.*.*'
- paths-ignore:
- - '**.md'
-
-jobs:
- # 1. Validation Job: Must pass before building artifacts
- validate:
- name: Lint & Test
- runs-on: ubuntu-latest
- steps:
- - name: Checkout code
- uses: actions/checkout@v4
-
- - name: Setup Node.js
- uses: actions/setup-node@v4
- with:
- node-version: '20'
- cache: 'npm'
-
- - name: Install dependencies
- run: npm ci
-
- - name: Run ESLint
- run: npm run lint
-
- - name: Run TypeScript check
- run: npx tsc --noEmit
-
- - name: Run tests
- run: npm test
-
- # 2. Build Job: Only runs if 'validate' is successful
- build-release:
- name: Build Release APK & AAB
- needs: validate # <--- Critical: Prevents broken releases
- runs-on: ubuntu-latest
- permissions:
- contents: write # Required to create the release
-
- steps:
- - name: Checkout code
- uses: actions/checkout@v4
-
- - name: Setup Node.js
- uses: actions/setup-node@v4
- with:
- node-version: '20'
- cache: 'npm'
-
- - name: Setup Java
- uses: actions/setup-java@v4
- with:
- distribution: 'temurin'
- java-version: '17'
- cache: 'gradle'
-
- - name: Install dependencies
- run: npm ci
-
- - name: Decode keystore
- env:
- KEYSTORE_BASE64: ${{ secrets.KEYSTORE_BASE64 }}
- run: |
- # Decodes your secret and places it where Gradle expects it
- echo $KEYSTORE_BASE64 | base64 -d > android/app/release.keystore
-
- - name: Build Android Assets (APK & AAB)
- env:
- KEYSTORE_PASSWORD: ${{ secrets.KEYSTORE_PASSWORD }}
- KEY_ALIAS: ${{ secrets.KEY_ALIAS }}
- KEY_PASSWORD: ${{ secrets.KEY_PASSWORD }}
- run: |
- cd android
- # Build both formats in one go to optimize Gradle tasks
- ./gradlew assembleRelease bundleRelease --no-daemon
-
- - name: Get version from tag
- id: version
- run: echo "VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_OUTPUT
-
- - name: Rename APK for Clarity
- run: |
- mv android/app/build/outputs/apk/release/app-release.apk \
- android/app/build/outputs/apk/release/colota-${{ steps.version.outputs.VERSION }}.apk
-
- - name: Create GitHub Release
- uses: softprops/action-gh-release@v2
- with:
- files: |
- android/app/build/outputs/apk/release/colota-${{ steps.version.outputs.VERSION }}.apk
- android/app/build/outputs/bundle/release/app-release.aab
- draft: false
- prerelease: false
- generate_release_notes: true
- env:
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
-
- - name: Securely Clean up keystore
- if: always()
- run: shred -u android/app/release.keystore
\ No newline at end of file
diff --git a/android/app/build.gradle b/android/app/build.gradle
index d8a627a6..8ce405b7 100644
--- a/android/app/build.gradle
+++ b/android/app/build.gradle
@@ -86,8 +86,8 @@ android {
applicationId "com.Colota"
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
- versionCode 10
- versionName "1.4.3"
+ versionCode 11
+ versionName "1.4.4"
// Expose build config to the module
buildConfigField "int", "MIN_SDK_VERSION", "${rootProject.ext.minSdkVersion}"