Commit graph

327 commits

Author SHA1 Message Date
Manuel Fuhr
c15913c1ab Reformat whole codebase using Android Studio 2022-07-25 06:14:46 +02:00
Manuel Fuhr
08df1d9909 Finish after sharing track 2022-06-08 06:52:50 +02:00
Manuel Fuhr
f42f10ba4b Remove help dialog for api10 2022-06-08 06:49:34 +02:00
Manuel Fuhr
669ea28d1b Share track via intent 2022-05-30 22:39:11 +02:00
Manuel Fuhr
bdecc2e1b9 Provide only single targetSdkVersion build
Remove api19 build and default to api30 because we no longer access
files of other apps.
2022-05-30 22:39:11 +02:00
Manuel Fuhr
a767ed6dbb Sort profiles 2022-05-30 22:39:11 +02:00
Manuel Fuhr
3cfa1d954b Test CoordinateReader 2022-05-30 22:39:11 +02:00
Manuel Fuhr
56b7c108e4 Remove redirect handling 2022-05-30 22:39:11 +02:00
Manuel Fuhr
9d93d25a84 Remove abstract CoordinateReader 2022-05-30 22:39:11 +02:00
Manuel Fuhr
01ad4dc09a Remove app specific coordinate readers 2022-05-30 22:39:11 +02:00
Manuel Fuhr
924a33ccb5 Remove wakelock 2022-05-30 22:39:11 +02:00
Manuel Fuhr
fc524fb4db Remove WpDatabaseScanner 2022-05-30 22:39:11 +02:00
Manuel Fuhr
b5895e1fd8 Split functions 2022-05-30 22:39:11 +02:00
Manuel Fuhr
fc9deccad7 Fix some AndroidStudio warnings 2022-05-30 22:39:11 +02:00
Manuel Fuhr
1d2809de70 Silent code cleanup 2022-05-30 22:39:11 +02:00
Manuel Fuhr
11f104afe9 Rearange BRouterActivity/BRouterView 2022-05-30 22:39:11 +02:00
Manuel Fuhr
eae79d3425 Report errors from DownloadWorker 2022-05-28 22:41:13 +02:00
Manuel Fuhr
9445361f28 Fix unpacking readmes.zip which contains directories 2022-05-24 22:53:28 +02:00
zod
0adc618c13
Merge pull request #433 from afischerdev/update-version
Repair BRouterWorker
2022-05-23 17:54:46 +02:00
afischerdev
13b8b1d3a1 changed aidl description 2022-05-22 14:01:11 +02:00
afischerdev
244596bdab removed test code 2022-05-22 13:11:31 +02:00
Manuel Fuhr
a75570a027 Merge branch 'master' into docs 2022-05-17 06:40:31 +02:00
Manuel Fuhr
8c15dc54b2 Autogenerate readmes.zip from docs 2022-05-17 06:25:16 +02:00
afischerdev
aaa8862e12 change config for hiking-mountain 2022-04-24 17:34:06 +02:00
Manuel Fuhr
4edc1b3c11 Move some information from notifaction to log 2022-04-19 17:38:34 +02:00
Manuel Fuhr
cc9732ea91 Remove System.exit(0) which causes app-restart 2022-04-05 21:55:28 +02:00
Manuel Fuhr
f0df9f94d4 Cleanup 2022-04-03 17:53:23 +02:00
Manuel Fuhr
952ea803b2 Use LinarProgessIndicator instead of sub-view 2022-04-03 17:53:21 +02:00
Manuel Fuhr
3a2c109ded Remove DownloadService 2022-04-03 17:53:05 +02:00
Manuel Fuhr
ecc4def40c Use WorkManager for downloads 2022-04-03 17:53:03 +02:00
Manuel Fuhr
21abce0139 Hacky way to disable reporting for small files 2022-04-03 17:51:01 +02:00
Manuel Fuhr
d74d0af687 Rewrite DownloadService
Split code into smaller pieces and remove duplication which already
caused confusion (492d79d42e changed wrong
download speed limit)
2022-04-03 17:51:01 +02:00
Manuel Fuhr
a091b07cb6 Reformat DownloadService 2022-04-03 17:51:01 +02:00
Manuel Fuhr
13f5ad0bcf Small cleanup of DownloadService 2022-04-03 17:51:01 +02:00
Manuel Fuhr
db42ae9f33 Always show main dialog (with Download Manager)
It can be confusing when the dialog is shown only sometimes and there is
no indication why the dialog isn't shown. The connection status can also
change after the start of the download manager so it has to handle those
errors anyway.

Closes #389
2022-04-03 17:51:01 +02:00
Manuel Fuhr
c80ad5f03b Update sdk and dependencies 2022-04-03 17:50:13 +02:00
Manuel Fuhr
d92c3beb3e Switch activities to AppCompat and adapt themes
No longer uses fullscreen, statusbar shall be visible to check connection status

Closes #57
2022-04-03 15:56:49 +02:00
Manuel Fuhr
cde4606760 Reformat and fix warnings in AndroidManifest 2022-04-02 18:35:42 +02:00
afischerdev
f577756433 trackdir and brouter.redirect changes 2022-02-11 15:00:55 +01:00
afischerdev
80d0a30729
Merge pull request #390 from zod/cleanup-binstaller
Use layouts in DownloadManager
2022-01-12 14:54:41 +01:00
Manuel Fuhr
1a3a77de72 Use initial view as minimal zoom level 2022-01-11 21:46:34 +01:00
afischerdev
f54d0f2f97
Merge pull request #385 from zod/workflow-fixes
Fix GitHub workflows
2022-01-11 16:57:26 +01:00
Manuel Fuhr
31e7c4ebbd Move info and button to own views 2022-01-07 13:03:01 +01:00
Manuel Fuhr
712bff8459 Use GestureDetector to handle touch events 2022-01-07 13:03:01 +01:00
Manuel Fuhr
b8496ffe5e Use View dimensions instead of display dimensions 2022-01-07 13:03:01 +01:00
Manuel Fuhr
50a7c2244f Clear all flags when scanning files 2022-01-07 13:03:01 +01:00
Manuel Fuhr
0eba6cb345 Move all download handling to BInstallerActivity 2022-01-07 13:03:01 +01:00
Manuel Fuhr
7b6fce1481 Move deleting tiles to BInstallerActivity 2022-01-07 13:03:00 +01:00
Manuel Fuhr
da7569b0a0 Use onClick handler to start download 2022-01-07 09:54:11 +01:00
Manuel Fuhr
51ef5c6aad Show download progress in different view 2022-01-07 09:53:39 +01:00
Manuel Fuhr
6045a18a61 Inflate BInstallerView from layout 2022-01-07 09:51:23 +01:00
Manuel Fuhr
89f075fa61 Draw only available segments 2022-01-07 09:51:23 +01:00
Manuel Fuhr
806ae6250e Draw rect using canvas 2022-01-07 09:51:23 +01:00
Manuel Fuhr
e045a732fb Rename DownloadReceiver 2022-01-07 09:51:23 +01:00
Manuel Fuhr
32747a1f6f Remove wakelock from BInstallerActivity 2022-01-07 09:51:23 +01:00
Manuel Fuhr
64a80e763b Merge startInstaller into constructor 2022-01-07 09:51:23 +01:00
Manuel Fuhr
dd7a2fcd98 More Fixes 2022-01-07 09:51:23 +01:00
Manuel Fuhr
de7dd71a94 Apply Quick Fixes suggested by Android Studio 2022-01-07 09:51:23 +01:00
Manuel Fuhr
89ef74f95b Android Studio automatic cleanup 2022-01-07 09:51:23 +01:00
Manuel Fuhr
553f064ce0 Optimize Imports 2022-01-07 09:51:23 +01:00
Manuel Fuhr
d9b8f69f59 Add test to ensure legacy storage access 2021-12-31 11:26:26 +01:00
Manuel Fuhr
82d28ed08a Fix build with empty signing environment variables
GitHub action secrets default to empty values if they aren't defined in
a repository. Any fork of the repo doesn't have access to the secrets
and the jobs therefore fail.
2021-12-31 08:30:37 +01:00
Manuel Fuhr
236c65d8ed Fix external storage access
- Allow writing on all versions
- Skip migration if BRouter version has already setup basedir
2021-12-30 14:24:03 +01:00
afischerdev
7b460d25d3 add file check for A10 #379 2021-12-28 10:49:56 +01:00
afischerdev
f5c3103dcf update workflow, add check #379 2021-12-27 20:02:13 +01:00
abrensch
50c5581e03
Update build.gradle
android version code 43->45 (due to problems uploading to google-play)
2021-12-23 16:38:41 +01:00
afischerdev
623f3c0279 set new version 1.6.3 2021-12-21 17:02:35 +01:00
Arndt Brenschede
492d79d42e inreased download speed limit from 4 to 16 mbit/s 2021-12-20 09:52:53 +01:00
Manuel Fuhr
54d5c5e943 Reformat files using Android Studio
android-studio/bin/format.sh -m '*.java' -r brouter-routing-app

To rebase active branches on top of the new master just rebase your
branch onto the commit prior to the reformatting and format every commit
of your branch using (<commit> should be replaced by this commit)

git rebase \
        --strategy-option=theirs \
        --onto <commit> \
        --exec 'format.sh -m "*.java" -r brouter-routing-app' \
        --exec 'git commit --all --no-edit --amend' \
        <commit>~

To ignore this mass edit during git blame see `.git-blame-ignore-revs`
2021-11-20 16:50:23 +01:00
afischerdev
168970ea34 removed option for main folder in Android Q 2021-11-18 10:47:09 +01:00
afischerdev
2794f5376e Cosmetics 2021-11-18 10:44:48 +01:00
afischerdev
7fa59d65db Cosmetics 2021-11-18 10:35:50 +01:00
afischerdev
3fddf3bd32 removed old icon 2021-11-18 10:27:20 +01:00
Manuel Fuhr
c92c289a3f Change profile check to also pass on river.brf 2021-11-18 06:27:21 +01:00
Manuel Fuhr
f29616eefc Don't overwrite built-in profiles 2021-11-18 06:27:21 +01:00
Manuel Fuhr
67bbc3d2ac Move serverconfig.txt handling to own class 2021-11-18 06:27:21 +01:00
Manuel Fuhr
1e594574b5 Improve UI 2021-11-16 16:25:44 +01:00
Manuel Fuhr
6a8f5036b2 Cleanup 2021-11-16 16:13:34 +01:00
Manuel Fuhr
18e015a3b5 Fix warning 2021-11-16 16:13:34 +01:00
Manuel Fuhr
a528630af9 Move profile import to own activity 2021-11-16 16:07:14 +01:00
Manuel Fuhr
a2c5b76105 Import code from @EssBee59
Fixes #362
2021-11-13 06:41:54 +01:00
afischerdev
30b2c5d6aa check rd5 available 2021-11-07 14:24:16 +01:00
afischerdev
78baefcfeb change migration check 2021-11-07 13:56:21 +01:00
afischerdev
83693903ee change import path internal coord reader 2021-11-07 13:40:14 +01:00
afischerdev
0f0d7db18f Comparison profiles for download 2021-11-07 13:32:44 +01:00
afischerdev
c9baec210a
Merge pull request #356 from zod/permission-handling
Improve permission handling
2021-11-07 12:56:32 +01:00
Manuel Fuhr
db77728d4c Always fallback to CoordinateReaderInternal 2021-11-07 11:19:53 +01:00
afischerdev
80a043568c
Merge pull request #352 from zod/scoped-storage
Set preserveLegacyExternalStorage for easier upgrades
2021-11-02 19:15:13 +01:00
afischerdev
e4a29a163e
Merge pull request #349 from zod/update-rd5-sizes
Update rd5 sizes
2021-11-02 18:39:26 +01:00
Manuel Fuhr
dc95984199 Improve detection of sdcard write access
This allows reading waypoints from apps on till devices running API 28
if they store their files in a accessible path (not Android/data). It
even works for devices running API 30 if they installed it as an update.
2021-11-02 17:41:25 +01:00
Manuel Fuhr
5f00e94a4c gradle: Disable 'generate_profile_variants.sh' on Windows 2021-10-29 17:35:53 +02:00
Manuel Fuhr
bfe50a349b gradle: Autogenerate profiles2.zip and add as asset 2021-10-29 17:35:53 +02:00
Manuel Fuhr
12148f6a5d Request runtime permission for WRITE_EXTERNAL_STORAGE
Originally implemented by Erlkoenig90 (#244) but lost during the api
split.
2021-10-23 07:16:20 +02:00
Manuel Fuhr
0e04c1a849 Increase minSdkVersion to 14 and merge implementations
AndroidX needs at least API level 14 (Ice Cream Sandwich) which was
released 10 years ago and should not exclude many devices. Having a
merged tree simplifies the development.
2021-10-23 06:55:17 +02:00
Manuel Fuhr
cf4a188e40 Rename flavours to specify targetSdkVersion
The targetSdkVersion specifies which behaviour the app expects from the
android platform. For past releases of BRouter the targetSdkVersion was
specified in the filename, therefore this restores the old bevahior.
2021-10-23 06:55:17 +02:00
Manuel Fuhr
4d9046d0f5 Update rd5 sizes 2021-10-21 07:53:44 +02:00
Manuel Fuhr
4e8b8643e6 Set preserveLegacyExternalStorage for easier upgrades
When updating from a previous app which has it's basedir on e.g.
/sdcard/emulated/0/brouter it's still possible to access the files on
android 11 with this flag.
2021-10-21 07:52:07 +02:00
Manuel Fuhr
e8d8dcda4a gradle: Fix indention before changes 2021-10-15 16:18:47 +02:00
afischerdev
51291237c5 add some brf - removed to much 2021-10-15 12:57:04 +02:00
afischerdev
12116b8467 change version numbers 2021-10-05 16:32:18 +02:00
afischerdev
b504cd70f3 removed generated brfs 2021-10-05 16:26:41 +02:00
afischerdev
6183f567b7 normalize profiles #312, defaults considerTurnRestrictions #307 2021-09-08 18:41:23 +02:00
afischerdev
b91653a1c8 change targetversion test #312 2021-09-07 13:48:15 +02:00
afischerdev
f6e014f61d android 11 part 3, split api 10/19 2021-08-31 11:29:05 +02:00
afischerdev
83e5fa8083 change connection test #321 2021-08-19 12:29:49 +02:00
afischerdev
90bb1b0079 migrate to gradle part 5 2021-08-18 13:03:54 +02:00
afischerdev
6e0db8691c android 11 part 2 2021-08-03 12:49:33 +02:00
afischerdev
9875672907 android 11 part 1 2021-07-24 11:49:29 +02:00
afischerdev
03574f834c more on version code 2021-07-07 12:21:52 +02:00
afischerdev
97a8757ecc one version code for all gradle files 2021-07-01 12:50:36 +02:00
afischerdev
8c5a961011
Merge branch 'master' into cleanup-fileaccess 2021-07-01 11:20:30 +02:00
afischerdev
47f1b10b99 migrate to gradle part 2 2021-06-29 13:02:21 +02:00
afischerdev
d0f3644b1f
Merge branch 'abrensch:master' into master 2021-06-29 11:48:37 +02:00
afischerdev
e210b92225
Merge pull request #243 from Erlkoenig90/migrate-gradle
Switch build system to gradle
2021-06-29 11:46:51 +02:00
afischerdev
f59eb0de1e
Merge branch 'abrensch:master' into master 2021-06-24 12:34:38 +02:00
Arndt Brenschede
ca48edda04 new diff file format, fixing empty-microtile-bug 2020-11-14 09:39:10 +01:00
afischerdev
54eb4e7b1e add json export and extra params 2020-06-29 10:06:11 +02:00
afischerdev
98b7b7312c add json export 2020-06-29 10:02:27 +02:00
Niklas Guertler
25ebc65180 Set minSdkVersion to 19 as try-with-resources requires that 2020-05-24 18:27:05 +02:00
Niklas Guertler
dbdfd36f88 Cleanup base directory selection, use Context.getExternalFilesDirs and request WRITE_EXTERNAL_STORAGE permission, use AndroidX and raise minSdkVersion to 14. Use File instead of plain Strings for paths in some places, use try-with-resources, and some other small improvements. 2020-05-24 17:59:23 +02:00
Niklas Guertler
72e2e13d07 Switched build system to gradle 2020-05-24 16:46:04 +02:00
Arndt Brenschede
b0410daf89 version 1.6.1 2020-03-01 21:55:34 +01:00
Arndt Brenschede
da044752b5 download manager scaling issues 2020-03-01 13:09:07 +01:00
Arndt Brenschede
4e1cbfe7d5 download manager scaling issues 2020-02-27 08:35:54 +01:00
Arndt Brenschede
f36587a474 download manager scaling issues 2020-02-27 08:31:05 +01:00
Arndt Brenschede
6acaefa982 ommit readmes/osmand subfolder in android app for now 2020-02-16 10:27:47 +01:00
Arndt Brenschede
96898c425f Merge branch 'master' of https://github.com/abrensch/brouter 2020-02-15 18:28:32 +01:00
Arndt Brenschede
26ad423e24 create readme subdirectories when installing app 2020-02-15 18:28:19 +01:00
Arndt Brenschede
f38ea269f1 asset zip changes 2020-02-15 17:27:30 +01:00
Arndt Brenschede
cf5479a261 1.6.0 preparation 2020-02-15 14:36:27 +01:00
Arndt Brenschede
2c73665174 download-manager delete function 2020-01-22 08:34:04 +01:00
Arndt Brenschede
43de4bb6ca rd5 diff progress 2020-01-19 15:22:05 +01:00
Arndt Brenschede
5c9b7fa7bf 1.5.5 versioning 2019-07-30 11:42:22 +02:00
Arndt Brenschede
c1f68e99d0 removed size-sorting of base-dir proposals 2019-07-20 13:26:31 +02:00
Arndt Brenschede
e1f8fce85a base-dir proposals + repeat-timout logik 2019-07-20 13:10:48 +02:00
Arndt Brenschede
a11941cfad result compression for android service interface 2019-07-09 01:15:43 +02:00
Arndt Brenschede
9ccdba149f changed master config file name to simplify 1.4 -> 1.5 migration 2019-07-07 12:44:44 +02:00
Arndt Brenschede
7c33b7e497 delete raw tracks after rd5 download 2019-07-06 12:39:13 +02:00
Arndt Brenschede
a57da730e8 minor changes for 1.5.3 2019-07-06 12:11:38 +02:00
Arndt Brenschede
e78bcc4762 fixed typos in help text 2019-07-06 11:43:00 +02:00
Arndt Brenschede
f50d03692e fixed wrong TI-mode for car-profiles 2019-07-06 11:39:30 +02:00
Arndt Brenschede
6a8e6f2093 Android API 23 pain 2019-07-04 20:57:04 +02:00
Arndt Brenschede
f9f08cc0b7 1.5.0 preparations 2019-06-30 17:34:21 +02:00
Arndt Brenschede
02b8202001 patch times and turns (volker) 2019-04-17 12:36:57 +02:00
Arndt Brenschede
19e434facb minor refactoring 2019-04-17 11:33:07 +02:00
Arndt Brenschede
307a50b840 fixed scaling in routing animation 2018-12-13 18:17:28 +01:00
Phyks (Lucas Verney)
d621964863 Radius are now stored in meters, to easily account for different
radiuses on X and Y axes.
2018-12-07 08:58:57 +01:00
Arndt Brenschede
ab2f5e3ae0 Better distance computation (revisited) 2018-12-07 00:45:12 +01:00
Phyks (Lucas Verney)
5a62480bd3 Remove some duplicate codes and magic numbers 2018-12-02 16:00:55 +01:00
Arndt Brenschede
d6cae133e2 oneway+psv details 2018-10-06 09:19:13 +02:00