-
Notifications
You must be signed in to change notification settings - Fork 523
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft: Downloads in dart with simpler interface without Databases #793
Closed
Closed
Changes from all commits
Commits
Show all changes
58 commits
Select commit
Hold shift + click to select a range
17ef212
Add basic Android 13 support
rekire d0b332c
Convert classes to kotlin
rekire 503a104
Add missing imports and fix some null value issues
rekire 914cacd
Rename variable
rekire da64872
Native download basement
rekire dcacc92
Reformat generation of metadata
rekire 3d8aa48
Fix test on Windows
rekire 27ebe3b
Add way to isolate tests
rekire e5c6781
Playing with platform interface
rekire 673a16a
Migrate to simplified API
rekire 1f3fcb3
Migrate sample app to new api
rekire 8a30069
Extend download class to keep track of progress
rekire 642c454
Deprecate legacy api and add a migration path
rekire 1e2e82d
Sync UI with ValueNotifier
rekire 1dd5ff2
Track download progress
rekire 39d2262
Fix memory leak and download progress
rekire 0d976a0
Add code to resume downloads
rekire e236787
Make pause and resuming working
rekire 2ef9e50
Rename files
rekire ce3ef3a
Add abstraction layer to support platform specific overrides
rekire 1c29f12
Sync Dart with Android code
rekire 8bb4da7
Make the download working without status updates on Android using wor…
rekire b561b92
Add progress updates from Android
rekire ef8195b
Random changes after running app in emulator
rekire 634c317
Hello objective C: Avoid crashes
rekire cab5a4a
Update iOS meta data
rekire e8a53b7
Add swift support and delete legacy code
rekire 5cb7f98
Add Linux sample app
rekire 3adbe75
Add MacOS sample app
rekire 27718fc
Make MacOS sample app working
rekire b19bf75
Hide window control bar on MacOS
rekire ee35d30
Add entitlements to make network communication working
rekire e078c72
Make downloads working in iOS
rekire 9c7569e
Delete unused files
rekire 378be18
Send status updates from swift
rekire 9422f3b
Parse url from meta file
rekire 43826e7
Update documentation
rekire 91f4aca
Refactoring to support pausing
rekire 1f600c6
Simplify code: cancel is pause and delete
rekire c237ed6
Add missing Windows sample files
rekire c3b7ccd
Add missing metadata
rekire 2b97abc
Cleanup
rekire 3732e31
Remove last "vn.hunghd" usages
rekire e2d1ca4
Cleanup
rekire d938149
Add some debugging paused calls not received on native code
rekire 788b358
Allow pausing and resuming on iOS
rekire 58fdfaa
Refactoring to use enums for the download status and equalize code st…
rekire 935f501
Cleanup
rekire 88898bd
Fix progress recovery
rekire ab42221
Update documentation
rekire ac02b88
Extend documentation and some refactoring
rekire a2ec20f
Simplify code
rekire 8759a6a
Yet another simplifying pass with migration to the JSON format
rekire 1abf64c
Class renamings and migration to json config
rekire 7be20ac
Deduplicate code for metadata and make state recovering working again
rekire ba9b83b
Partially safe progress on iOS
rekire b9eeb20
Resume downloads on Android
rekire fa53de2
Add support for observing and controlling groups of downloads
rekire File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# This file tracks properties of this Flutter project. | ||
# Used by Flutter tool to assess capabilities and perform upgrades etc. | ||
# | ||
# This file should be version controlled. | ||
|
||
version: | ||
revision: 096162697a9cdc79f4e47f7230d70935fa81fd24 | ||
channel: beta | ||
|
||
project_type: plugin | ||
|
||
# Tracks metadata for the flutter migrate command | ||
migration: | ||
platforms: | ||
- platform: root | ||
create_revision: 096162697a9cdc79f4e47f7230d70935fa81fd24 | ||
base_revision: 096162697a9cdc79f4e47f7230d70935fa81fd24 | ||
- platform: android | ||
create_revision: 096162697a9cdc79f4e47f7230d70935fa81fd24 | ||
base_revision: 096162697a9cdc79f4e47f7230d70935fa81fd24 | ||
- platform: ios | ||
create_revision: 096162697a9cdc79f4e47f7230d70935fa81fd24 | ||
base_revision: 096162697a9cdc79f4e47f7230d70935fa81fd24 | ||
- platform: windows | ||
create_revision: 096162697a9cdc79f4e47f7230d70935fa81fd24 | ||
base_revision: 096162697a9cdc79f4e47f7230d70935fa81fd24 | ||
|
||
# User provided section | ||
|
||
# List of Local paths (relative to this file) that should be | ||
# ignored by the migrate tool. | ||
# | ||
# Files that are not part of the templates will be ignored by default. | ||
unmanaged_files: | ||
- 'lib/main.dart' | ||
- 'ios/Runner.xcodeproj/project.pbxproj' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
*.iml | ||
.gradle | ||
/local.properties | ||
local.properties | ||
/.idea/workspace.xml | ||
/.idea/misc.xml | ||
/.idea/markdown-navigator | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | ||
package="vn.hunghd.flutterdownloader"> | ||
package="com.github.fluttercommunity.flutterdownloader"> | ||
|
||
<!-- See https://developer.android.com/training/package-visibility --> | ||
<queries> | ||
<intent> | ||
<action android:name="android.intent.action.VIEW" /> | ||
</intent> | ||
</queries> | ||
<uses-permission android:name="android.permission.POST_NOTIFICATIONS" /> | ||
|
||
</manifest> |
11 changes: 0 additions & 11 deletions
11
android/src/main/java/vn/hunghd/flutterdownloader/DownloadStatus.java
This file was deleted.
Oops, something went wrong.
41 changes: 0 additions & 41 deletions
41
android/src/main/java/vn/hunghd/flutterdownloader/DownloadTask.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's use double quotes for all strings. It'll be easier to convert to Gradle Kotlin DSL in the future.