Skip to content

Commit

Permalink
Merged in fix/iso-download (pull request #3)
Browse files Browse the repository at this point in the history
[WIP] Fix/ios download
  • Loading branch information
Marcin Wojnarowski committed Feb 10, 2022
2 parents d989123 + 76ee38a commit 1c9489c
Show file tree
Hide file tree
Showing 6 changed files with 411 additions and 290 deletions.
7 changes: 7 additions & 0 deletions ios/.swift-format
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"version": 1,
"lineLength": 100,
"indentation": {
"spaces": 4
}
}
1 change: 1 addition & 0 deletions ios/Classes/BetterPlayerPlugin.m
Original file line number Diff line number Diff line change
Expand Up @@ -486,6 +486,7 @@ - (void)handleMethodCall:(FlutterMethodCall *)call
} else if ([@"removeAsset" isEqualToString:call.method]) {
NSString *url = argsMap[@"url"];

// TODO: this handling is wrong, we should first check whether downloading is happening already
NSDictionary *kidMap =
[NSUserDefaults.standardUserDefaults dictionaryForKey:@"kid_map"];
NSString *kid = [kidMap valueForKey:url];
Expand Down
Loading

0 comments on commit 1c9489c

Please sign in to comment.