mirror of
https://github.com/Dasemu/NavFrame.git
synced 2026-11-26 07:16:06 +00:00
Compare commits
21
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d5819d939c | ||
|
|
2977db39b6 | ||
|
|
6316c8854c | ||
|
|
b6eeb62929 | ||
|
|
20436c119f | ||
|
|
bca606170f | ||
|
|
4d0df9c0a2 | ||
|
|
21dc71a450 | ||
|
|
93a20d35d7 | ||
|
|
21023d229c | ||
|
|
bdd5b4f1ab | ||
|
|
1a14b3164d | ||
|
|
67c5ba684b | ||
|
|
bdb91c3d7a | ||
|
|
b109ea8633 | ||
|
|
d0ea978209 | ||
|
|
018cd3834e | ||
|
|
a9ff685bf0 | ||
|
|
4ffd4d874e | ||
|
|
27bc1f6958 | ||
|
|
317f8cbfaa |
No files matched your search
@@ -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[@]}"
|
||||
@@ -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.
|
||||
@@ -6,7 +6,7 @@ NavFrame is an experimental Android navigation app that renders its own 480×240
|
||||
|
||||
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.
|
||||
|
||||
The current checkout is version 0.13.1. 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.
|
||||
The current checkout is version 0.14.6. 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, sustained TFT map rendering, and a 30-minute screen-off session remains pending unless a newer test report says otherwise.
|
||||
|
||||
@@ -39,6 +39,10 @@ Version 0.13.2 automatically saves the latest 100 TFT map failures and recoverie
|
||||
|
||||
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 traces retain their geometry without online recalculation or invented turn announcements. See [GPX import](docs/IMPORTED_ROUTES.md).
|
||||
|
||||
## Documentation
|
||||
|
||||
- [Documentation index](docs/README.md)
|
||||
|
||||
@@ -5,8 +5,8 @@ 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").orElse("18").get().toInt()
|
||||
require(navframeVersionCode in 1..2_100_000_000) { "Android versionCode must be between 1 and 2100000000" }
|
||||
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
|
||||
@@ -15,8 +15,8 @@ android {
|
||||
applicationId = "dev.navframe.app"
|
||||
minSdk = 26
|
||||
targetSdk = 35
|
||||
versionName = "0.13.3"
|
||||
versionCode = navframeVersionCode
|
||||
versionName = "0.14.6"
|
||||
versionCode = 23
|
||||
}
|
||||
if (hasReleaseSigning) {
|
||||
signingConfigs.create("production") {
|
||||
@@ -30,6 +30,7 @@ android {
|
||||
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()}.")
|
||||
|
||||
@@ -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 Regular10240-10495
|
||||
@@ -0,0 +1,3 @@
|
||||
|
||||
|
||||
Noto Sans Regular10496-10751
|
||||
@@ -0,0 +1,3 @@
|
||||
|
||||
|
||||
Noto Sans Regular10752-11007
|
||||
@@ -0,0 +1,3 @@
|
||||
|
||||
|
||||
Noto Sans Regular11008-11263
|
||||
@@ -0,0 +1,3 @@
|
||||
|
||||
|
||||
Noto Sans Regular11264-11519
|
||||
@@ -0,0 +1,3 @@
|
||||
|
||||
|
||||
Noto Sans Regular11520-11775
|
||||
@@ -0,0 +1,3 @@
|
||||
|
||||
|
||||
Noto Sans Regular11776-12031
|
||||
@@ -0,0 +1,3 @@
|
||||
|
||||
|
||||
Noto Sans Regular12032-12287
|
||||
@@ -0,0 +1,3 @@
|
||||
|
||||
|
||||
Noto Sans Regular12288-12543
|
||||
@@ -0,0 +1,3 @@
|
||||
|
||||
|
||||
Noto Sans Regular12544-12799
|
||||
@@ -0,0 +1,3 @@
|
||||
|
||||
|
||||
Noto Sans Regular12800-13055
|
||||
@@ -0,0 +1,3 @@
|
||||
|
||||
|
||||
Noto Sans Regular13056-13311
|
||||
@@ -0,0 +1,3 @@
|
||||
|
||||
|
||||
Noto Sans Regular13312-13567
|
||||
@@ -0,0 +1,3 @@
|
||||
|
||||
|
||||
Noto Sans Regular13568-13823
|
||||
@@ -0,0 +1,3 @@
|
||||
|
||||
|
||||
Noto Sans Regular13824-14079
|
||||
@@ -0,0 +1,3 @@
|
||||
|
||||
|
||||
Noto Sans Regular14080-14335
|
||||
@@ -0,0 +1,3 @@
|
||||
|
||||
|
||||
Noto Sans Regular14336-14591
|
||||
@@ -0,0 +1,3 @@
|
||||
|
||||
|
||||
Noto Sans Regular14592-14847
|
||||
@@ -0,0 +1,3 @@
|
||||
|
||||
|
||||
Noto Sans Regular14848-15103
|
||||
@@ -0,0 +1,3 @@
|
||||
|
||||
|
||||
Noto Sans Regular15104-15359
|
||||
@@ -0,0 +1,3 @@
|
||||
|
||||
|
||||
Noto Sans Regular15360-15615
|
||||
@@ -0,0 +1,3 @@
|
||||
|
||||
|
||||
Noto Sans Regular15616-15871
|
||||
@@ -0,0 +1,3 @@
|
||||
|
||||
|
||||
Noto Sans Regular15872-16127
|
||||
@@ -0,0 +1,3 @@
|
||||
|
||||
|
||||
Noto Sans Regular16128-16383
|
||||
@@ -0,0 +1,3 @@
|
||||
|
||||
|
||||
Noto Sans Regular16384-16639
|
||||
@@ -0,0 +1,3 @@
|
||||
|
||||
|
||||
Noto Sans Regular16640-16895
|
||||
@@ -0,0 +1,3 @@
|
||||
|
||||
|
||||
Noto Sans Regular16896-17151
|
||||
@@ -0,0 +1,3 @@
|
||||
|
||||
|
||||
Noto Sans Regular17152-17407
|
||||
@@ -0,0 +1,3 @@
|
||||
|
||||
|
||||
Noto Sans Regular17408-17663
|
||||
@@ -0,0 +1,3 @@
|
||||
|
||||
|
||||
Noto Sans Regular17664-17919
|
||||
@@ -0,0 +1,3 @@
|
||||
|
||||
|
||||
Noto Sans Regular17920-18175
|
||||
@@ -0,0 +1,3 @@
|
||||
|
||||
|
||||
Noto Sans Regular18176-18431
|
||||
@@ -0,0 +1,3 @@
|
||||
|
||||
|
||||
Noto Sans Regular18432-18687
|
||||
@@ -0,0 +1,3 @@
|
||||
|
||||
|
||||
Noto Sans Regular18688-18943
|
||||
@@ -0,0 +1,3 @@
|
||||
|
||||
|
||||
Noto Sans Regular18944-19199
|
||||
@@ -0,0 +1,3 @@
|
||||
|
||||
|
||||
Noto Sans Regular19200-19455
|
||||
@@ -0,0 +1,3 @@
|
||||
|
||||
|
||||
Noto Sans Regular19456-19711
|
||||
@@ -0,0 +1,3 @@
|
||||
|
||||
|
||||
Noto Sans Regular19712-19967
|
||||
@@ -0,0 +1,3 @@
|
||||
|
||||
|
||||
Noto Sans Regular19968-20223
|
||||
@@ -0,0 +1,3 @@
|
||||
|
||||
|
||||
Noto Sans Regular20224-20479
|
||||
@@ -0,0 +1,3 @@
|
||||
|
||||
|
||||
Noto Sans Regular 2048-2303
|
||||
@@ -0,0 +1,3 @@
|
||||
|
||||
|
||||
Noto Sans Regular20480-20735
|
||||
@@ -0,0 +1,3 @@
|
||||
|
||||
|
||||
Noto Sans Regular20736-20991
|
||||
@@ -0,0 +1,3 @@
|
||||
|
||||
|
||||
Noto Sans Regular20992-21247
|
||||
@@ -0,0 +1,3 @@
|
||||
|
||||
|
||||
Noto Sans Regular21248-21503
|
||||
@@ -0,0 +1,3 @@
|
||||
|
||||
|
||||
Noto Sans Regular21504-21759
|
||||
@@ -0,0 +1,3 @@
|
||||
|
||||
|
||||
Noto Sans Regular21760-22015
|
||||
@@ -0,0 +1,3 @@
|
||||
|
||||
|
||||
Noto Sans Regular22016-22271
|
||||
@@ -0,0 +1,3 @@
|
||||
|
||||
|
||||
Noto Sans Regular22272-22527
|
||||
@@ -0,0 +1,3 @@
|
||||
|
||||
|
||||
Noto Sans Regular22528-22783
|
||||
@@ -0,0 +1,3 @@
|
||||
|
||||
|
||||
Noto Sans Regular22784-23039
|
||||
@@ -0,0 +1,3 @@
|
||||
|
||||
|
||||
Noto Sans Regular 2304-2559
|
||||
@@ -0,0 +1,3 @@
|
||||
|
||||
|
||||
Noto Sans Regular23040-23295
|
||||
@@ -0,0 +1,3 @@
|
||||
|
||||
|
||||
Noto Sans Regular23296-23551
|
||||
@@ -0,0 +1,3 @@
|
||||
|
||||
|
||||
Noto Sans Regular23552-23807
|
||||
@@ -0,0 +1,3 @@
|
||||
|
||||
|
||||
Noto Sans Regular23808-24063
|
||||
@@ -0,0 +1,3 @@
|
||||
|
||||
|
||||
Noto Sans Regular24064-24319
|
||||
@@ -0,0 +1,3 @@
|
||||
|
||||
|
||||
Noto Sans Regular24320-24575
|
||||
@@ -0,0 +1,3 @@
|
||||
|
||||
|
||||
Noto Sans Regular24576-24831
|
||||
@@ -0,0 +1,3 @@
|
||||
|
||||
|
||||
Noto Sans Regular24832-25087
|
||||
@@ -0,0 +1,3 @@
|
||||
|
||||
|
||||
Noto Sans Regular25088-25343
|
||||
@@ -0,0 +1,3 @@
|
||||
|
||||
|
||||
Noto Sans Regular25344-25599
|
||||
@@ -0,0 +1,3 @@
|
||||
|
||||
|
||||
Noto Sans Regular 2560-2815
|
||||
@@ -0,0 +1,3 @@
|
||||
|
||||
|
||||
Noto Sans Regular25600-25855
|
||||
@@ -0,0 +1,3 @@
|
||||
|
||||
|
||||
Noto Sans Regular25856-26111
|
||||
@@ -0,0 +1,3 @@
|
||||
|
||||
|
||||
Noto Sans Regular26112-26367
|
||||
@@ -0,0 +1,3 @@
|
||||
|
||||
|
||||
Noto Sans Regular26368-26623
|
||||
@@ -0,0 +1,3 @@
|
||||
|
||||
|
||||
Noto Sans Regular26624-26879
|
||||
@@ -0,0 +1,3 @@
|
||||
|
||||
|
||||
Noto Sans Regular26880-27135
|
||||
@@ -0,0 +1,3 @@
|
||||
|
||||
|
||||
Noto Sans Regular27136-27391
|
||||
@@ -0,0 +1,3 @@
|
||||
|
||||
|
||||
Noto Sans Regular27392-27647
|
||||
@@ -0,0 +1,3 @@
|
||||
|
||||
|
||||
Noto Sans Regular27648-27903
|
||||
@@ -0,0 +1,3 @@
|
||||
|
||||
|
||||
Noto Sans Regular27904-28159
|
||||
@@ -0,0 +1,3 @@
|
||||
|
||||
|
||||
Noto Sans Regular 2816-3071
|
||||
@@ -0,0 +1,3 @@
|
||||
|
||||
|
||||
Noto Sans Regular28160-28415
|
||||
@@ -0,0 +1,3 @@
|
||||
|
||||
|
||||
Noto Sans Regular28416-28671
|
||||
@@ -0,0 +1,3 @@
|
||||
|
||||
|
||||
Noto Sans Regular28672-28927
|
||||
@@ -0,0 +1,3 @@
|
||||
|
||||
|
||||
Noto Sans Regular28928-29183
|
||||
@@ -0,0 +1,3 @@
|
||||
|
||||
|
||||
Noto Sans Regular29184-29439
|
||||
@@ -0,0 +1,3 @@
|
||||
|
||||
|
||||
Noto Sans Regular29440-29695
|
||||
@@ -0,0 +1,3 @@
|
||||
|
||||
|
||||
Noto Sans Regular29696-29951
|
||||
@@ -0,0 +1,3 @@
|
||||
|
||||
|
||||
Noto Sans Regular29952-30207
|
||||
@@ -0,0 +1,3 @@
|
||||
|
||||
|
||||
Noto Sans Regular30208-30463
|
||||
@@ -0,0 +1,3 @@
|
||||
|
||||
|
||||
Noto Sans Regular30464-30719
|
||||
@@ -0,0 +1,3 @@
|
||||
|
||||
|
||||
Noto Sans Regular 3072-3327
|
||||
@@ -0,0 +1,3 @@
|
||||
|
||||
|
||||
Noto Sans Regular30720-30975
|
||||
@@ -0,0 +1,3 @@
|
||||
|
||||
|
||||
Noto Sans Regular30976-31231
|
||||
@@ -0,0 +1,3 @@
|
||||
|
||||
|
||||
Noto Sans Regular31232-31487
|
||||
@@ -0,0 +1,3 @@
|
||||
|
||||
|
||||
Noto Sans Regular31488-31743
|
||||
@@ -0,0 +1,3 @@
|
||||
|
||||
|
||||
Noto Sans Regular31744-31999
|
||||
@@ -0,0 +1,3 @@
|
||||
|
||||
|
||||
Noto Sans Regular32000-32255
|
||||
@@ -0,0 +1,3 @@
|
||||
|
||||
|
||||
Noto Sans Regular32256-32511
|
||||
@@ -0,0 +1,3 @@
|
||||
|
||||
|
||||
Noto Sans Regular32512-32767
|
||||
@@ -0,0 +1,3 @@
|
||||
|
||||
|
||||
Noto Sans Regular32768-33023
|
||||
@@ -0,0 +1,3 @@
|
||||
|
||||
|
||||
Noto Sans Regular33024-33279
|
||||
Loaded 100 of 278 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user