Commit graph

273 commits

Author SHA1 Message Date
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