Compare commits

...
Author SHA1 Message Date
dasemu 0314a03333 docs: explain automatic road routing on GPX import 2026-10-26 09:42:16 +01:00
dasemu bbe2eeb23c fix: automatically road-route GPX stops on import 2026-10-26 09:42:01 +01:00
dasemu 2382db66fa fix: automatically road-route GPX stops on import 2026-10-26 09:41:59 +01:00
dasemu e819c09848 fix: automatically road-route GPX stops on import 2026-10-26 09:41:56 +01:00
dasemu e6ca89784f fix: automatically road-route GPX stops on import 2026-10-26 09:41:52 +01:00
dasemu 694fefd98b Merge pull request #15 from Dasemu/feat/gpx-route-road-calculation
Feat/gpx route road calculation
2026-10-26 09:38:49 +01:00
dasemu e5f4cfd8bd chore: bump GPX feature version to 0.14.7 2026-10-26 09:35:45 +01:00
dasemu 6a04c38a77 chore: bump GPX feature version to 0.14.7 2026-10-26 09:35:43 +01:00
dasemu a7f7198fd3 fix: render route preview warning on a new line 2026-10-26 09:29:40 +01:00
dasemu b14c625263 feat: support road calculation for imported GPX stops 2026-10-26 09:28:46 +01:00
dasemu 196b7da8ea feat: support road calculation for imported GPX stops 2026-10-26 09:28:42 +01:00
dasemu 0ee1f621cf feat: support road calculation for imported GPX stops 2026-10-26 09:28:39 +01:00
dasemu d5819d939c Merge pull request #13 from Dasemu/development
Development
2026-10-26 07:41:47 +01:00
Claude 2977db39b6 fix: keep missing bundled assets classified as NOT_FOUND after merging main
Merging main brought the hotfix that filters SDK messages through a fixed
vocabulary before classification and appends that evidence to safeText.
"asset" was not in the vocabulary, so "Could not read asset" reduced to
"could not read" and the NOT_FOUND rule from 0.13.7 never matched,
failing MapRenderDiagnosticsTest.missingBundledAssetIsReportedAsNotFound.

Allow "asset"/"assets" as diagnostic vocabulary and expect the evidence
suffix the merged safeText now carries.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FdDjmR7v3NW8B5F37mxZWE
2026-10-26 05:53:34 +00:00
Claude 6316c8854c release: promote development as 0.14.6 and automate version bumps
The development -> main promotion must carry x.(y+1).z relative to main
(0.13.6 -> 0.14.6), but development still declared 0.13.7, so the branch
and version policy check failed.

Set versionName 0.14.6 (versionCode 23 > main's 22) and the README
version. Add a --write mode to the policy script that applies the exact
required versionName, versionCode and README version for any allowed
source/destination pair, and make a failed check print that command, so
bumps are never computed by hand again.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FdDjmR7v3NW8B5F37mxZWE
2026-10-26 05:52:21 +00:00
dasemu b6eeb62929 Merge branch 'main' into development 2026-10-26 06:48:25 +01:00
dasemu 20436c119f Merge pull request #12 from Dasemu/fix/tft-missing-glyph-ranges
fix: keep TFT snapshots alive when labels need unbundled glyph ranges
2026-10-26 03:27:45 +01:00
Claude bca606170f fix: keep TFT snapshots alive when labels need unbundled glyph ranges
MapLibre's MapSnapshotter aborts the whole still image on any glyph load
error. The offline style only bundled Noto Sans ranges 0-2047, while the
Asturias archive labels use U+1E36/U+1E37 (Asturian Ḷḷ) and typographic
quotes/dashes, so the TFT failed with SDK/STYLE_READY UNKNOWN/UNKNOWN
("Could not read asset") whenever such a label was in view, while the
phone MapView kept working.

Bundle the unmodified demotiles ranges 7680-7935 and 8192-8447, add an
empty placeholder for every other BMP range, report missing assets as
NOT_FOUND, and release 0.13.7.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014YKH4z66ZCe2wK4GvgRg7g
2026-10-26 02:19:57 +00:00
dasemu 4d0df9c0a2 Merge pull request #11 from Dasemu/hotfix/tft-render-diagnostics
Improve TFT map failure diagnostics and preserve incident onset
2026-10-13 16:00:33 +02:00
dasemu 21dc71a450 Merge pull request #10 from Dasemu/hotfix/imported-route-rejoin
hotfix: resume GPX guidance when rejoining after a detour
2026-10-13 15:28:09 +02:00
Darío Sevilla 93a20d35d7 fix: retain actionable TFT SDK diagnostics and prolonged failure onset 2026-10-13 13:19:27 +00:00
Darío Sevilla 21023d229c test: prevent false arrival when rejoining a closed GPX trace 2026-10-13 13:18:46 +00:00
Darío Sevilla bdd5b4f1ab fix: resume imported GPX guidance after a confirmed detour 2026-10-13 13:14:19 +00:00
dasemu 1a14b3164d Merge pull request #9 from Dasemu/fix/gpx-route-track-pair
Fix GPX import with route stops and a detailed track
2026-10-13 14:50:00 +02:00
Darío Sevilla 67c5ba684b fix: import GPX files containing route stops and a detailed track 2026-10-13 10:08:55 +00:00
dasemu bdb91c3d7a Merge pull request #8 from Dasemu/fix/branch-version-policy
Install PR branch and version policy on development
2026-10-13 11:59:46 +02:00
dasemu b109ea8633 Merge pull request #7 from Dasemu/hotfix/branch-version-policy
Enforce hotfix, fix and feature PR version policy
2026-10-13 11:59:36 +02:00
Darío Sevilla d0ea978209 docs: preserve repository branching rules for contributors 2026-10-13 09:55:30 +00:00
Darío Sevilla 018cd3834e ci: enforce feature fix and hotfix branch version policy 2026-10-13 09:54:56 +00:00
dasemu a9ff685bf0 Merge pull request #6 from Dasemu/feat/import-gpx-routes
Import GPX routes and start navigation automatically
2026-10-13 11:49:20 +02:00
Darío Sevilla 4ffd4d874e feat: require precise GPS for imported routes and release 0.13.4 2026-10-13 09:48:19 +00:00
Darío Sevilla 27bc1f6958 ci: retain manifest defaults when overriding production version code 2026-10-13 09:44:11 +00:00
Darío Sevilla 317f8cbfaa feat: import GPX traces and start navigation without destination search 2026-10-13 09:43:16 +00:00
dasemu cffdeb39c4 Merge pull request #5 from Dasemu/feat/persistent-tft-diagnostics
Feat/persistent tft diagnostics
2026-10-13 11:40:48 +02:00
dasemu 0ad42025b7 Merge branch 'main' into feat/persistent-tft-diagnostics 2026-10-13 11:40:39 +02:00
dasemu 9f5d3963db Merge pull request #4 from Dasemu/ci/automatic-android-releases
Publish signed main APK releases and development debug artifacts
2026-10-13 11:39:28 +02:00
Darío Sevilla e96e905b09 ci: publish signed main releases and development debug artifacts 2026-10-13 09:36:40 +00:00
dasemu b5a7c67512 Merge pull request #3 from Dasemu/feat/faster-location-compass
Improve location startup and add compass heading
2026-10-13 11:09:17 +02:00
dasemu 4b586cc3e2 Merge pull request #2 from Dasemu/feat/persistent-tft-diagnostics
Persist TFT map diagnostics across phone restarts
2026-10-13 11:09:09 +02:00
dasemu 470689573a Merge pull request #1 from Dasemu/docs/public-readiness-tft-investigation
Document TFT map incident and update English public guides
2026-10-13 11:08:53 +02:00
Darío Sevilla d335a084d4 feat: reuse native location fixes and add low-speed compass heading 2026-10-13 05:51:13 +00:00
Darío Sevilla 74b222a094 feat: persist and share TFT map failure history across restarts 2026-10-12 05:21:06 +00:00
Darío Sevilla f727149369 docs: prepare English public documentation and preserve license scope 2026-10-12 05:06:35 +00:00
Darío Sevilla 008e4e3d80 docs: investigate persistent TFT map failure in La Corredoria 2026-10-12 05:03:44 +00:00
dasemu 6fec09f20f Fix off-route detection and TFT network lifecycle 2026-10-01 13:57:29 +02:00
dasemu 823d5db5d7 Expand map area on motorcycle display 2026-10-01 12:35:12 +02:00
297 changed files with 3538 additions and 355 deletions

No files matched your search

+125 -5
View File
@@ -1,13 +1,15 @@
name: Android build and checks
on:
push:
branches: [main]
branches: [main, development]
pull_request:
workflow_dispatch:
permissions:
contents: read
# Grouping by branch would drop pending builds during rapid pushes.
concurrency:
group: android-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
group: android-${{ github.workflow }}-${{ github.run_id }}
cancel-in-progress: false
jobs:
verify:
runs-on: ubuntu-latest
@@ -23,15 +25,133 @@ jobs:
run: sdkmanager "platforms;android-36" "build-tools;35.0.0"
- uses: gradle/actions/setup-gradle@v4
- name: Build, unit tests and lint
run: ./gradlew --no-daemon :app:assembleDebug :app:testDebugUnitTest :app:lintDebug :core:test :navilite:testDebugUnitTest
run: ./gradlew --no-daemon --max-workers=4 :app:assembleDebug :app:testDebugUnitTest :app:lintDebug :core:test :navilite:testDebugUnitTest
- name: Preserve check reports
if: always()
uses: actions/upload-artifact@v4
with:
name: android-check-reports
name: android-check-reports-${{ github.run_id }}
path: |
app/build/reports/
core/build/reports/
navilite/build/reports/
if-no-files-found: ignore
retention-days: 7
- name: Upload development debug APK
if: github.event_name != 'pull_request' && github.ref == 'refs/heads/development'
uses: actions/upload-artifact@v4
with:
name: navframe-debug-${{ github.sha }}
path: app/build/outputs/apk/debug/app-debug.apk
if-no-files-found: error
retention-days: 14
release:
if: github.event_name != 'pull_request' && github.ref == 'refs/heads/main'
needs: verify
runs-on: ubuntu-latest
timeout-minutes: 45
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: temurin
java-version: '17'
- uses: android-actions/setup-android@v4
- name: Install Android compile SDK
run: sdkmanager "platforms;android-36" "build-tools;35.0.0"
- uses: gradle/actions/setup-gradle@v4
- name: Restore production signing key
env:
ANDROID_RELEASE_KEYSTORE_BASE64: ${{ secrets.ANDROID_RELEASE_KEYSTORE_BASE64 }}
ANDROID_RELEASE_KEYSTORE_PASSWORD: ${{ secrets.ANDROID_RELEASE_KEYSTORE_PASSWORD }}
ANDROID_RELEASE_KEY_ALIAS: ${{ secrets.ANDROID_RELEASE_KEY_ALIAS }}
ANDROID_RELEASE_KEY_PASSWORD: ${{ secrets.ANDROID_RELEASE_KEY_PASSWORD }}
run: |
set -euo pipefail
for name in ANDROID_RELEASE_KEYSTORE_BASE64 ANDROID_RELEASE_KEYSTORE_PASSWORD ANDROID_RELEASE_KEY_ALIAS ANDROID_RELEASE_KEY_PASSWORD; do
if [[ -z "${!name}" ]]; then
echo "::error::Missing production signing secret: $name (see docs/ANDROID_RELEASES.md)"
exit 1
fi
done
umask 077
printf '%s' "$ANDROID_RELEASE_KEYSTORE_BASE64" | base64 --decode > "$RUNNER_TEMP/navframe-release.p12"
echo "NAVFRAME_KEYSTORE_PATH=$RUNNER_TEMP/navframe-release.p12" >> "$GITHUB_ENV"
- name: Build signed production APK and lint
env:
NAVFRAME_KEYSTORE_PASSWORD: ${{ secrets.ANDROID_RELEASE_KEYSTORE_PASSWORD }}
NAVFRAME_KEY_ALIAS: ${{ secrets.ANDROID_RELEASE_KEY_ALIAS }}
NAVFRAME_KEY_PASSWORD: ${{ secrets.ANDROID_RELEASE_KEY_PASSWORD }}
run: |
set -euo pipefail
# Preserve numeric versionName for the diagnostic history schema.
VERSION_CODE=$((1000000 + GITHUB_RUN_NUMBER))
./gradlew --no-daemon --max-workers=4 :app:assembleRelease :app:lintRelease -PnavframeVersionCode="$VERSION_CODE"
- name: Verify signature and prepare release files
id: package
run: |
set -euo pipefail
SDK_ROOT="${ANDROID_SDK_ROOT:-$ANDROID_HOME}"
"$SDK_ROOT/build-tools/35.0.0/apksigner" verify --verbose app/build/outputs/apk/release/app-release.apk
python3 - <<'PY'
import json, os, pathlib, re, shutil, hashlib
metadata = json.loads(pathlib.Path('app/build/outputs/apk/release/output-metadata.json').read_text())
item = metadata['elements'][0]
version = item['versionName']
if not re.fullmatch(r'[0-9]+(?:\.[0-9]+){1,3}', version):
raise SystemExit('Unexpected versionName')
if item['versionCode'] != 1000000 + int(os.environ['GITHUB_RUN_NUMBER']):
raise SystemExit('Unexpected production versionCode')
tag = f"app-v{version}-build-{os.environ['GITHUB_RUN_NUMBER']}-{os.environ['GITHUB_SHA'][:12]}"
folder = pathlib.Path(os.environ['RUNNER_TEMP']) / 'navframe-release-output'; folder.mkdir()
apk = folder / f'navframe-{tag}.apk'
shutil.copyfile('app/build/outputs/apk/release/app-release.apk', apk)
(folder / 'SHA256SUMS.txt').write_text(f'{hashlib.sha256(apk.read_bytes()).hexdigest()} {apk.name}\n')
(folder / 'build-info.json').write_text(json.dumps({'versionName': version, 'versionCode': item['versionCode'], 'commit': os.environ['GITHUB_SHA'], 'runNumber': int(os.environ['GITHUB_RUN_NUMBER'])}, indent=2) + '\n')
with open(os.environ['GITHUB_OUTPUT'], 'a') as out:
out.write(f'tag={tag}\nversion={version}\ndirectory={folder}\n')
PY
- name: Publish production release
env:
GH_TOKEN: ${{ github.token }}
RELEASE_TAG: ${{ steps.package.outputs.tag }}
VERSION_NAME: ${{ steps.package.outputs.version }}
RELEASE_DIRECTORY: ${{ steps.package.outputs.directory }}
run: |
set -euo pipefail
# A rerun may finish its own draft but cannot replace published assets.
if gh release view "$RELEASE_TAG" --json isDraft,targetCommitish > "$RUNNER_TEMP/existing-release.json" 2>/dev/null; then
python3 - <<'PY'
import json, os, pathlib
release = json.loads(pathlib.Path(os.environ['RUNNER_TEMP'], 'existing-release.json').read_text())
if release['targetCommitish'] != os.environ['GITHUB_SHA']:
raise SystemExit('Existing release targets another commit')
PY
if [[ "$(python3 -c 'import json,os,pathlib; print(str(json.loads(pathlib.Path(os.environ["RUNNER_TEMP"], "existing-release.json").read_text())["isDraft"]).lower())')" == false ]]; then
echo "Production release already published; preserving its assets."
exit 0
fi
gh release upload "$RELEASE_TAG" "$RELEASE_DIRECTORY"/* --clobber
else
printf 'Signed production APK for commit %s.\n\nVersion code: %s. Checksums and build metadata are attached.\n' "$GITHUB_SHA" "$((1000000 + GITHUB_RUN_NUMBER))" > "$RUNNER_TEMP/release-notes.md"
gh release create "$RELEASE_TAG" "$RELEASE_DIRECTORY"/* --draft --target "$GITHUB_SHA" --title "NavFrame $VERSION_NAME · build $GITHUB_RUN_NUMBER" --notes-file "$RUNNER_TEMP/release-notes.md"
fi
# An older build finishing late cannot replace the current main release as latest.
LATEST=false
if [[ "$(gh api "repos/$GITHUB_REPOSITORY/git/ref/heads/main" --jq '.object.sha')" == "$GITHUB_SHA" ]]; then
LATEST=true
fi
gh release edit "$RELEASE_TAG" --draft=false --latest="$LATEST"
- name: Preserve production lint report
if: always()
uses: actions/upload-artifact@v4
with:
name: android-release-lint-${{ github.run_id }}
path: app/build/reports/lint-results-release.*
if-no-files-found: ignore
retention-days: 7
- name: Remove temporary signing key
if: always()
run: rm -f "$RUNNER_TEMP/navframe-release.p12"
+56
View File
@@ -0,0 +1,56 @@
name: PR branch and version policy
on:
pull_request_target:
types: [opened, synchronize, reopened, edited, labeled, unlabeled]
branches: [main, development]
permissions:
contents: read
issues: read
jobs:
policy:
name: Branch and version policy
runs-on: ubuntu-latest
steps:
# Run only the trusted base policy. Never execute code from the PR head.
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.base.sha }}
persist-credentials: false
- name: Test the trusted policy
run: python3 -m unittest discover -s scripts/tests -v
- name: Check explicit owner approval for a major bump
id: approval
uses: actions/github-script@v7
with:
script: |
const label = 'major-version-approved';
const pr = context.payload.pull_request;
let approved = false;
if (pr.labels.some(item => item.name === label)) {
const events = await github.paginate(github.rest.issues.listEvents, {
...context.repo, issue_number: pr.number, per_page: 100
});
const latest = events.filter(event =>
['labeled', 'unlabeled'].includes(event.event) && event.label?.name === label
).at(-1);
approved = latest?.event === 'labeled' &&
latest.actor?.login === context.repo.owner;
}
core.setOutput('approved', String(approved));
- name: Fetch PR snapshots and validate versions
env:
BASE_SHA: ${{ github.event.pull_request.base.sha }}
HEAD_SHA: ${{ github.event.pull_request.head.sha }}
BASE_BRANCH: ${{ github.event.pull_request.base.ref }}
HEAD_BRANCH: ${{ github.event.pull_request.head.ref }}
PR_NUMBER: ${{ github.event.pull_request.number }}
MAJOR_APPROVED: ${{ steps.approval.outputs.approved }}
run: |
set -euo pipefail
# Public read-only fetch; checkout credentials are not persisted.
git fetch --no-tags origin "$BASE_SHA" "refs/pull/$PR_NUMBER/head"
args=()
if [[ "$MAJOR_APPROVED" == true ]]; then args+=(--major-approved); fi
python3 scripts/check_version_policy.py \
--base-ref "$BASE_SHA" --head-ref "$HEAD_SHA" \
--base-branch "$BASE_BRANCH" --head-branch "$HEAD_BRANCH" "${args[@]}"
+11
View File
@@ -0,0 +1,11 @@
# Repository contribution policy
- Branch new features as `feat/*` and open their PRs against `development`.
- Branch ordinary fixes as `fix/*` and open their PRs against `development`.
- Branch urgent production fixes as `hotfix/*` and open their PRs against `main`.
- Each `feat/*` or `fix/*` PR into `development`, and each `hotfix/*` PR into `main`, increments only the third versionName component: `x.y.(z+1)` relative to its destination.
- A promotion PR from `development` into `main` increments only the second component: `x.(y+1).z`. Do not reset the third component.
- Change the first component only when the repository owner explicitly requests it. Follow the owner-applied approval label procedure in `docs/ANDROID_RELEASES.md`.
- Increase the committed Android versionCode with every PR. Keep versionName changes in the PR for review, alongside the corresponding README version.
- Read `docs/ANDROID_RELEASES.md` for the workflow and run the version policy tests when changing it.
- Do not merge PRs on the owner's behalf unless explicitly asked; the owner reviews and merges them.
+4
View File
@@ -10,6 +10,10 @@ Contributions are welcome. NavFrame is experimental software for motorcycle navi
- Preserve OSM attribution and source dates/hashes for derived data. Check third-party licenses before adding code, fonts, images, or data.
- Keep endpoints configurable where appropriate. Never commit API keys, signing keys, personal coordinates, Bluetooth identifiers, or local machine configuration.
## Licensing contributions
The project currently has no global license grant for original code and documentation. Discuss contribution and redistribution terms with the maintainers before submitting substantial work. Identify any third-party origin and license explicitly. Changes to the Pillion-derived `navilite` module must preserve its PolyForm Noncommercial provenance and required notices; do not assume a license for original project material overrides third-party terms.
## Build and checks
Use JDK 17 and an Android SDK with API 36. The Gradle wrapper pins the Gradle version.
+22 -4
View File
@@ -4,11 +4,11 @@ NavFrame is an experimental Android navigation app that renders its own 480×240
## Current status
The owner has confirmed static and synthetic NavFrame frames on a Xiaomi 11 Lite 5G NE running Android 14 and a 2026 Yamaha MT-07. The owner has also confirmed that the bundled Asturias map works offline on the phone. These results do not validate the current MapLibre map renderer on the motorcycle TFT: the last reported TFT map attempt showed `MAPA NO DISPONIBLE`, and no later physical map-render result is recorded.
The owner has confirmed static and synthetic NavFrame frames on a Xiaomi 11 Lite 5G NE running Android 14 and a 2026 Yamaha MT-07, and the bundled Asturias map working offline on the phone. On 2026-10-12, the owner reported that the latest version displayed the map on the TFT for about 20 minutes, then showed `Mapa no disponible` in La Corredoria (Oviedo) for the rest of the trip while the phone map continued working. An offline map was installed. The exact installed build, diagnostic code and background state were not recorded; the cause is under investigation. This establishes a successful map display followed by a persistent failure, not sustained TFT reliability.
Version 0.13.0 adds voice/routing language selection for Spanish, English, German, French, and Italian, plus a system-language option; unsupported system locales resolve to English. Speech still depends on the Android TextToSpeech engine and its installed voice data. The app includes offline map and place data for Asturias, plus installable regional packages. Worldwide regions can be discovered and built on demand through the [regional package workflow](docs/GLOBAL_OFFLINE.md); this is not complete worldwide coverage. Installed packages currently provide map and local place/camera data. Offline route calculation, global camera completeness, and complete worldwide font coverage are not provided.
The current checkout is version 0.14.8. The 0.13 series adds voice/routing language selection for Spanish, English, German, French, and Italian, plus a system-language option; unsupported system locales resolve to English. Speech still depends on the Android TextToSpeech engine and its installed voice data. The app includes offline map and place data for Asturias, plus installable regional packages. Worldwide regions can be discovered and built on demand through the [regional package workflow](docs/GLOBAL_OFFLINE.md); this is not complete worldwide coverage. Installed packages currently provide map and local place/camera data. Offline route calculation, global camera completeness, and complete worldwide font coverage are not provided.
Route calculation and address search use configurable online services. Spoken output uses the selected language when Android provides voice data; voice availability and offline behavior depend on the device's TextToSpeech engine. Physical validation of route guidance, voice playback, camera alerts, TFT map rendering, and a 30-minute screen-off session remains pending unless a newer test report says otherwise.
Route calculation and address search use configurable online services. Spoken output uses the selected language when Android provides voice data; voice availability and offline behavior depend on the device's TextToSpeech engine. Physical validation of route guidance, voice playback, camera alerts, sustained TFT map rendering, and a 30-minute screen-off session remains pending unless a newer test report says otherwise.
## Build
@@ -27,6 +27,22 @@ python3 -m unittest discover -s tools/offline -p 'test_*.py'
Set up `local.properties` for your own Android SDK when needed. It is excluded from Git. See [Contributing](CONTRIBUTING.md) for the development and review process.
## Location and compass
Version 0.13.3 uses available native Android location sources and recent cached fixes to avoid waiting exclusively for a new satellite fix. The map can recenter on a recent approximate position with accuracy up to 100 metres; starting route guidance still requires 25 metres. A compass heading orients the map at low speed, while usable movement course takes priority when riding. See [Location and compass](docs/LOCATION_AND_COMPASS.md) for behavior and device-validation limits.
## TFT diagnostic history
Version 0.13.2 automatically saves the latest 100 TFT map failures and recoveries on the phone. After a reboot or empty battery, open **Information and licenses → TFT map diagnosis → Share** to export the saved history. It excludes coordinates, URLs, route/search text, and Bluetooth identifiers. See [Persistent TFT diagnostics](docs/TFT_DIAGNOSTICS.md) for retention and limitations.
## Automated builds
GitHub Actions uploads a debug APK artifact for pushes to `development`. Pushes to `main` publish a signed production APK release after build, tests, lint and signature checks pass. Production signing requires the repository secrets described in [Android builds and releases](docs/ANDROID_RELEASES.md). Pull requests run checks without publishing releases.
## Imported routes
Choose **☰ → Cargar ruta GPX** to load a standard GPX route or track and start following it once precise GPS is available. Imported tracks retain their geometry without online recalculation or invented turn announcements. GPX route stop lists are automatically road-routed through the configured Valhalla service before navigation can start (Internet required). See [GPX import](docs/IMPORTED_ROUTES.md).
## Documentation
- [Documentation index](docs/README.md)
@@ -42,4 +58,6 @@ Set up `local.properties` for your own Android SDK when needed. It is excluded f
## License notes
There is no single permissive license covering every part of this repository. In particular, NaviLite contains code adapted from Pillion under PolyForm Noncommercial 1.0.0, which restricts commercial use. Other code, datasets, fonts, and dependencies have their own terms and notices. Review [Licensing](docs/LICENSING.md) and the included notices before copying, redistributing, or using any part of this project. OpenStreetMap-derived offline data is distributed under ODbL 1.0 with attribution.
No project-wide license is granted for original NavFrame code or documentation. Public repository visibility alone does not grant permission to copy, modify or redistribute that material. The Pillion-derived `navilite` module retains **PolyForm Noncommercial 1.0.0** and its required notices; its commercial-use restrictions must be respected.
Map data, fonts, dependencies and other third-party material retain their respective terms. OpenStreetMap-derived offline data is distributed under ODbL 1.0 with attribution. Review [Licensing](docs/LICENSING.md) and the included notices before copying, redistributing or using project material. Before redistributing a release, verify the terms for original material and every included component.
+26 -2
View File
@@ -1,17 +1,41 @@
plugins { id("com.android.application"); kotlin("android") }
val releaseSigningNames = listOf("NAVFRAME_KEYSTORE_PATH", "NAVFRAME_KEYSTORE_PASSWORD", "NAVFRAME_KEY_ALIAS", "NAVFRAME_KEY_PASSWORD")
val releaseSigning = releaseSigningNames.associateWith { System.getenv(it).orEmpty() }
val hasReleaseSigning = releaseSigning.values.all { it.isNotBlank() }
if (releaseSigning.values.any { it.isNotBlank() } && !hasReleaseSigning) {
throw GradleException("Incomplete release signing configuration. Required variables: ${releaseSigningNames.joinToString()}")
}
val navframeVersionCode = providers.gradleProperty("navframeVersionCode").orNull?.toInt()
require(navframeVersionCode == null || navframeVersionCode in 1..2_100_000_000) { "Android versionCode must be between 1 and 2100000000" }
android {
namespace = "dev.navframe.app"
compileSdk = 36
buildFeatures { buildConfig = true }
defaultConfig {
applicationId = "dev.navframe.app"
minSdk = 26
targetSdk = 35
versionCode = 16
versionName = "0.13.0"
versionName = "0.14.8"
versionCode = 25
}
if (hasReleaseSigning) {
signingConfigs.create("production") {
storeFile = file(releaseSigning.getValue("NAVFRAME_KEYSTORE_PATH"))
storePassword = releaseSigning.getValue("NAVFRAME_KEYSTORE_PASSWORD")
keyAlias = releaseSigning.getValue("NAVFRAME_KEY_ALIAS")
keyPassword = releaseSigning.getValue("NAVFRAME_KEY_PASSWORD")
}
buildTypes.getByName("release").signingConfig = signingConfigs.getByName("production")
}
testOptions { unitTests.isIncludeAndroidResources = true }
compileOptions { sourceCompatibility = JavaVersion.VERSION_17; targetCompatibility = JavaVersion.VERSION_17 }
}
navframeVersionCode?.let { android.defaultConfig.versionCode = it }
gradle.taskGraph.whenReady {
if (!hasReleaseSigning && allTasks.any { it.path in setOf(":app:assembleRelease", ":app:bundleRelease", ":app:packageRelease") }) {
throw GradleException("Production builds require release signing. Configure ${releaseSigningNames.joinToString()}.")
}
}
kotlin { jvmToolchain(17) }
dependencies {
implementation(project(":core"))
+3 -1
View File
@@ -2,7 +2,9 @@
Unmodified glyph PBF files supplied by MapLibre demotiles, font/Noto Sans Regular.
Source: https://github.com/maplibre/demotiles/tree/gh-pages/font/Noto%20Sans%20Regular
Unicode ranges 0–2047. The license below is reproduced unchanged from that font directory.
Unicode ranges 0–2047, 7680–7935 (Latin Extended Additional, e.g. Asturian Ḷ/ḷ) and 8192–8447 (General Punctuation, e.g. ’ – —).
Every other range up to 65535 is an empty NavFrame placeholder containing no glyph data, generated by tools/offline/fill-glyph-ranges.py.
The license below is reproduced unchanged from that font directory.
This Font Software is licensed under the SIL Open Font License,
Version 1.1.
@@ -0,0 +1,3 @@
Noto Sans Regular 10240-10495
@@ -0,0 +1,3 @@
Noto Sans Regular 10496-10751
@@ -0,0 +1,3 @@
Noto Sans Regular 10752-11007
@@ -0,0 +1,3 @@
Noto Sans Regular 11008-11263
@@ -0,0 +1,3 @@
Noto Sans Regular 11264-11519
@@ -0,0 +1,3 @@
Noto Sans Regular 11520-11775
@@ -0,0 +1,3 @@
Noto Sans Regular 11776-12031
@@ -0,0 +1,3 @@
Noto Sans Regular 12032-12287
@@ -0,0 +1,3 @@
Noto Sans Regular 12288-12543
@@ -0,0 +1,3 @@
Noto Sans Regular 12544-12799
@@ -0,0 +1,3 @@
Noto Sans Regular 12800-13055
@@ -0,0 +1,3 @@
Noto Sans Regular 13056-13311
@@ -0,0 +1,3 @@
Noto Sans Regular 13312-13567
@@ -0,0 +1,3 @@
Noto Sans Regular 13568-13823
@@ -0,0 +1,3 @@
Noto Sans Regular 13824-14079
@@ -0,0 +1,3 @@
Noto Sans Regular 14080-14335
@@ -0,0 +1,3 @@
Noto Sans Regular 14336-14591
@@ -0,0 +1,3 @@
Noto Sans Regular 14592-14847
@@ -0,0 +1,3 @@
Noto Sans Regular 14848-15103
@@ -0,0 +1,3 @@
Noto Sans Regular 15104-15359
@@ -0,0 +1,3 @@
Noto Sans Regular 15360-15615
@@ -0,0 +1,3 @@
Noto Sans Regular 15616-15871
@@ -0,0 +1,3 @@
Noto Sans Regular 15872-16127
@@ -0,0 +1,3 @@
Noto Sans Regular 16128-16383
@@ -0,0 +1,3 @@
Noto Sans Regular 16384-16639
@@ -0,0 +1,3 @@
Noto Sans Regular 16640-16895
@@ -0,0 +1,3 @@
Noto Sans Regular 16896-17151
@@ -0,0 +1,3 @@
Noto Sans Regular 17152-17407
@@ -0,0 +1,3 @@
Noto Sans Regular 17408-17663
@@ -0,0 +1,3 @@
Noto Sans Regular 17664-17919
@@ -0,0 +1,3 @@
Noto Sans Regular 17920-18175
@@ -0,0 +1,3 @@
Noto Sans Regular 18176-18431
@@ -0,0 +1,3 @@
Noto Sans Regular 18432-18687
@@ -0,0 +1,3 @@
Noto Sans Regular 18688-18943
@@ -0,0 +1,3 @@
Noto Sans Regular 18944-19199
@@ -0,0 +1,3 @@
Noto Sans Regular 19200-19455
@@ -0,0 +1,3 @@
Noto Sans Regular 19456-19711
@@ -0,0 +1,3 @@
Noto Sans Regular 19712-19967
@@ -0,0 +1,3 @@
Noto Sans Regular 19968-20223
@@ -0,0 +1,3 @@
Noto Sans Regular 20224-20479
@@ -0,0 +1,3 @@

Noto Sans Regular 2048-2303
@@ -0,0 +1,3 @@
Noto Sans Regular 20480-20735
@@ -0,0 +1,3 @@
Noto Sans Regular 20736-20991
@@ -0,0 +1,3 @@
Noto Sans Regular 20992-21247
@@ -0,0 +1,3 @@
Noto Sans Regular 21248-21503
@@ -0,0 +1,3 @@
Noto Sans Regular 21504-21759
@@ -0,0 +1,3 @@
Noto Sans Regular 21760-22015
@@ -0,0 +1,3 @@
Noto Sans Regular 22016-22271
@@ -0,0 +1,3 @@
Noto Sans Regular 22272-22527
@@ -0,0 +1,3 @@
Noto Sans Regular 22528-22783
@@ -0,0 +1,3 @@
Noto Sans Regular 22784-23039
@@ -0,0 +1,3 @@

Noto Sans Regular 2304-2559
@@ -0,0 +1,3 @@
Noto Sans Regular 23040-23295
@@ -0,0 +1,3 @@
Noto Sans Regular 23296-23551
@@ -0,0 +1,3 @@
Noto Sans Regular 23552-23807
@@ -0,0 +1,3 @@
Noto Sans Regular 23808-24063
@@ -0,0 +1,3 @@
Noto Sans Regular 24064-24319
@@ -0,0 +1,3 @@
Noto Sans Regular 24320-24575
@@ -0,0 +1,3 @@
Noto Sans Regular 24576-24831
@@ -0,0 +1,3 @@
Noto Sans Regular 24832-25087
@@ -0,0 +1,3 @@
Noto Sans Regular 25088-25343
@@ -0,0 +1,3 @@
Noto Sans Regular 25344-25599
@@ -0,0 +1,3 @@

Noto Sans Regular 2560-2815
@@ -0,0 +1,3 @@
Noto Sans Regular 25600-25855
@@ -0,0 +1,3 @@
Noto Sans Regular 25856-26111
@@ -0,0 +1,3 @@
Noto Sans Regular 26112-26367
@@ -0,0 +1,3 @@
Noto Sans Regular 26368-26623
@@ -0,0 +1,3 @@
Noto Sans Regular 26624-26879
@@ -0,0 +1,3 @@
Noto Sans Regular 26880-27135
@@ -0,0 +1,3 @@
Noto Sans Regular 27136-27391
@@ -0,0 +1,3 @@
Noto Sans Regular 27392-27647
@@ -0,0 +1,3 @@
Noto Sans Regular 27648-27903
@@ -0,0 +1,3 @@
Noto Sans Regular 27904-28159
@@ -0,0 +1,3 @@

Noto Sans Regular 2816-3071
@@ -0,0 +1,3 @@
Noto Sans Regular 28160-28415
@@ -0,0 +1,3 @@
Noto Sans Regular 28416-28671
@@ -0,0 +1,3 @@
Noto Sans Regular 28672-28927
@@ -0,0 +1,3 @@
Noto Sans Regular 28928-29183
@@ -0,0 +1,3 @@
Noto Sans Regular 29184-29439
@@ -0,0 +1,3 @@
Noto Sans Regular 29440-29695
@@ -0,0 +1,3 @@
Noto Sans Regular 29696-29951
@@ -0,0 +1,3 @@
Noto Sans Regular 29952-30207
@@ -0,0 +1,3 @@
Noto Sans Regular 30208-30463
@@ -0,0 +1,3 @@
Noto Sans Regular 30464-30719
@@ -0,0 +1,3 @@

Noto Sans Regular 3072-3327
@@ -0,0 +1,3 @@
Noto Sans Regular 30720-30975
@@ -0,0 +1,3 @@
Noto Sans Regular 30976-31231
@@ -0,0 +1,3 @@
Noto Sans Regular 31232-31487
@@ -0,0 +1,3 @@
Noto Sans Regular 31488-31743
@@ -0,0 +1,3 @@
Noto Sans Regular 31744-31999
@@ -0,0 +1,3 @@
Noto Sans Regular 32000-32255
@@ -0,0 +1,3 @@
Noto Sans Regular 32256-32511
@@ -0,0 +1,3 @@
Noto Sans Regular 32512-32767
Loaded 100 of 297 files, more files were not shown because too many files have changed in this diff. Show more