Skip to content

Commit 0ca9c7c

Browse files
v7: Migration to Isar (#78)
* Improved stability * Minor improvements * Added Isar * Broken a lot of stuff * Broken a lot of stuff * What am I even doing? * Wow, a little bit of progress * More migration * Migrated import/export functionality * Reimplemented metadata feature Implemented faulty migrator * Just a whole bunch of changes * Updated pubspec version Removed unnecessary dependencies * Finished migrator Minor bug fixes * Hey, no more errors! * Fixed bug in `tileImage` triggered when no tiles were available Fixed bug in root's `watchChanges` (typo) * Built Example Applications * Updated versioning information Updated Windows installer Updated CHANGELOG Removed iOS configuration from example app * Improved performance of bulk downloader Improved performance of 'Oldest Tile Remover' algorithm Added support for conflict resolution to import functionality Added import conflict chooser to example application Changed `reset`s functionality to better match expectations * Built Example Applications * Simplified `LineRegion.toDrawable` Fixed bugs Upgraded to FM v3.1.0 Removed unnecessary dependencies Improved documentation * Built Example Applications * Added buffering to bulk downloading Added database compact condition to global settings Added metadata migration Improved example application to use buffering Improved performance Fixed bugs Improved documentation Updated CHANGELOG Updated pubspec.yaml * Updated dependencies * Built Example Applications * Removed centralised registry database * Built Example Applications * Split into modules Minor internal refactoring Bug fixes Updated README * Updated Isar dependency * Re-run code generator * Added initialisation safety system Bug fixes * Readded previously removed functionality Improved documentation * Built Example Applications * Improved example application * Updated example application Fixed bugs and improved stability * Built Example Applications * Improved migrator method * Built Example Applications * Improved recovery database efficiency Improved watcher stability * Built Example Applications * Fixed bugs Updated dependencies Improved example application * Built Example Applications * Fixed bugs * Built Example Applications * Improved regions with clearer documentation and a preparatory `name` property Improved migrator regular expressions to avoid issues with unusual inputs Replaced `BaseRegion.toList` with `toOutline` to be more self explanatory * Migrated to Flutter v3.7.0 Updated example app design scheme * Built Example Applications * Improved example application * Updated example application dependencies * Built Example Applications * Changed `part of` directives to point to the library instead of the root file * Built Example Applications --------- Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Former-commit-id: 8e24058a0ee954613290906e62c16ad8b6c51544 [formerly 0de89d5] Former-commit-id: bf947e4137803bd19bb7f9f19bf3938a4c8b7ead
1 parent cc95512 commit 0ca9c7c

File tree

148 files changed

+8423
-4339
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

148 files changed

+8423
-4339
lines changed

.vscode/settings.json

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,6 @@
11
{
22
"cSpell.words": [
3-
"Abdelrahman",
4-
"armeabi",
5-
"dontkillmyapp",
6-
"iscc",
7-
"Mattraks",
8-
"osrm",
9-
"pwsh",
10-
"Redmi",
11-
"Redownload",
12-
"Sherif",
13-
"sqflite",
14-
"subosito",
15-
"temurin",
16-
"Xiaomi"
3+
"isar",
4+
"lukas"
175
]
186
}

.vscode/tasks.json

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"version": "2.0.0",
3+
"tasks": [
4+
{
5+
"type": "flutter",
6+
"command": "flutter",
7+
"args": [
8+
"pub",
9+
"run",
10+
"build_runner",
11+
"build",
12+
"--delete-conflicting-outputs"
13+
],
14+
"problemMatcher": [
15+
"$dart-build_runner"
16+
],
17+
"group": "build",
18+
"label": "Run Code Generator",
19+
"detail": "flutter pub run build_runner build"
20+
}
21+
]
22+
}

CHANGELOG.md

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,30 @@ Many thanks to my sponsors, no matter how much or how little they donated. Spons
77
* @huulbaek
88
* @andrewames
99
* @ozzy1873
10-
* Anonymous Donor (via Ko-Fi, no username provided)
11-
* Private Donor (via GitHub, chosen private)
12-
* Private Donor (via GitHub, chosen private)
10+
* @mohammedX6
11+
* @weishuhn
12+
* and 3 anonymous or private donors
1313

1414
# Changelog
1515

16-
## [6.2.0] - 2022/10/XX
16+
## [7.0.0] - 2023/01/XX
17+
18+
* Migrated to Isar database
19+
* Major performance improvements, thanks to Isar
20+
* Added buffering to bulk tile downloading
21+
* Added method to catch tile retrieval errors
22+
* Removed v4 -> v5 migrator & added v6 -> v7 migrator
23+
* Removed some synchronous methods from structure management
24+
* Removed 'fmtc_advanced' import file
25+
26+
Plus the usual:
27+
28+
* Minor performance improvements
29+
* Bug fixes
30+
* Dependency updates
31+
* Documentation improvements
32+
33+
## [6.2.0] - 2022/10/25
1734

1835
* Performance improvements
1936
* Changed license to GPL v3

README.md

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# flutter_map_tile_caching
1+
# [flutter_map](https://pub.dev/packages/flutter_map)_tile_caching
22

33
A plugin for ['flutter_map'](https://pub.dev/packages/flutter_map) providing advanced caching functionality, with ability to download map regions for offline use. Also includes useful prebuilt widgets.
44

@@ -29,14 +29,18 @@ You can read more about me and what I do on my [GitHub Sponsors](https://github.
2929

3030
Alternatively, if you prefer not to use GitHub Sponsors, please feel free to use my [Ko-fi](https://ko-fi.com/jaffaketchup). Note that the PayPal backend will take a small percentage amount of donations made through this method.
3131

32-
## (Commercial) Licensing
32+
## (Proprietary) Licensing
3333

34-
_I am not a lawyer, and this information is to the best of my understanding._
34+
_I am not a lawyer, and this information is to the best of my understanding. You are urged to read the license yourself for a thorough understanding._
3535

36-
This project is released under GPL-v3. For more information about this license, see <https://choosealicense.com/licenses/gpl-3.0/>. Essentially, whilst you can use this code within commercial projects, they must not be proprietary/closed-source.
36+
This project is released under GPL v3. For detailed information about this license, see <https://www.gnu.org/licenses/gpl-3.0.en.html>. [choosealicense.com](https://choosealicense.com/licenses/gpl-3.0/) summarises the license with the following paragraph:
3737

38-
However, I am willing to sell alternative licenses on a case-by-case basis and on request: please read on for more information.
38+
> Permissions of this strong copyleft license are conditioned on making available complete source code of licensed works and modifications, which include larger works using a licensed work, under the same license. Copyright and license notices must be preserved. Contributors provide an express grant of patent rights.
3939
40-
I learnt (and am still learning) to code with free, open-source software due to my age and therefore my lack of money, and for that reason, I believe in promoting open-source wherever possible to give equal opportunities to everybody, no matter their age or financial position. I'm not sure it's fair for commercial proprietary applications to use software made by people for free out of generosity. On the other hand, I am also trying to make a small amount of money from my projects, by donations or by selling licenses. And I recognise that commercial businesses may want to use my projects.
40+
Essentially, whilst you can use this code within commercial projects, they must not be proprietary - they incorporate this 'licensed work' so they must be available under the same license. You must distribute your source code on request (under the same GPL v3 license) to anyone who uses your program.
4141

42-
Therefore, if you would like a license to use this software on a closed-source application, I will be willing to sell a yearly license for a reasonable price. If this seems like what you want/need, please do not hesitate to get in touch via [github@jaffaketchup.com](mailto://github@jaffaketchup.com).
42+
However, I am willing to sell alternative (proprietary) licenses on a case-by-case basis and on request.
43+
44+
I learnt (and am still learning) to code with free, open-source software due to my age and lack of money, and for that reason, I believe in promoting open-source wherever possible to give equal opportunities to everybody, no matter their age or financial position. I'm not sure it's fair for commercial proprietary applications to use software made by people for free out of generosity. On the other hand, I am also trying to make a small amount of money from my projects, by donations or by selling licenses. And I recognise that commercial businesses may want to use my projects for their own proprietary applications.
45+
46+
Therefore, if you would like a license to use this software within a proprietary, I am willing to sell a (preferably yearly or usage based) license for a reasonable price. If this seems like what you want/need, please do not hesitate to get in touch via [github@jaffaketchup.com](mailto://github@jaffaketchup.com).

analysis_options.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
include: jaffa_lints.yaml
22

3+
analyzer:
4+
exclude:
5+
- lib/src/db/defs/*.g.dart
6+
37
linter:
48
rules:
59
avoid_slow_async_io: false

dartdoc_options.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
dartdoc:
2+
favicon: 'example/assets/icons/ProjectIcon.png'

example/currentAppVersion.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
6.2.1
1+
7.0.0

example/ios/.gitignore

Lines changed: 0 additions & 34 deletions
This file was deleted.

example/ios/Flutter/AppFrameworkInfo.plist

Lines changed: 0 additions & 26 deletions
This file was deleted.

example/ios/Flutter/Debug.xcconfig

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)