Skip to content

Commit

Permalink
Move assets into lib??
Browse files Browse the repository at this point in the history
  • Loading branch information
ditman committed Feb 22, 2024
1 parent baae155 commit ff977f5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
File renamed without changes.
2 changes: 1 addition & 1 deletion wakelock_plus/lib/src/wakelock_plus_web_plugin.dart
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class WakelockPlusWebPlugin extends WakelockPlusPlatformInterface {
/// Builds an instance of the plugin, and imports the JS implementation.
WakelockPlusWebPlugin() {
_jsLoaded = importJsLibrary(
url: 'assets/no_sleep.js', flutterPluginName: 'wakelock_plus');
url: 'packages/wakelock_plus/assets/no_sleep.js', flutterPluginName: 'wakelock_plus');
}

// The future that signals when the JS is loaded.
Expand Down
3 changes: 2 additions & 1 deletion wakelock_plus/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -99,4 +99,5 @@ flutter:
# https://flutter.dev/custom-fonts/#from-packages

assets:
- assets/no_sleep.js
- lib/assets/no_sleep.js
- packages/wakelock_plus/assets/no_sleep.js

0 comments on commit ff977f5

Please sign in to comment.