From cee800d5105b359d38681251fd2c997e1f84220d Mon Sep 17 00:00:00 2001 From: Akshay Nair Date: Wed, 3 Jun 2020 23:38:07 +0530 Subject: Fixes build issue for shared preferences --- .flutter-plugins-dependencies | 2 +- TODO.md | 3 ++- android/app/src/main/AndroidManifest.xml | 8 ++++---- pubspec.lock | 28 +++++++++++++++++++++++++++- pubspec.yaml | 4 ++-- 5 files changed, 36 insertions(+), 9 deletions(-) diff --git a/.flutter-plugins-dependencies b/.flutter-plugins-dependencies index dc53c64..ff3074a 100644 --- a/.flutter-plugins-dependencies +++ b/.flutter-plugins-dependencies @@ -1 +1 @@ -{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"shared_preferences","path":"/home/akshayn/.pub-cache/hosted/pub.dartlang.org/shared_preferences-0.4.3/","dependencies":[]}],"android":[{"name":"android_intent","path":"/home/akshayn/.pub-cache/hosted/pub.dartlang.org/android_intent-0.3.7+2/","dependencies":[]},{"name":"device_apps","path":"/home/akshayn/.pub-cache/hosted/pub.dartlang.org/device_apps-1.0.9/","dependencies":[]},{"name":"shared_preferences","path":"/home/akshayn/.pub-cache/hosted/pub.dartlang.org/shared_preferences-0.4.3/","dependencies":[]}],"macos":[],"linux":[],"windows":[],"web":[]},"dependencyGraph":[{"name":"android_intent","dependencies":[]},{"name":"device_apps","dependencies":[]},{"name":"shared_preferences","dependencies":[]}],"date_created":"2020-06-03 23:16:12.347212","version":"1.19.0-2.0.pre.214"} \ No newline at end of file +{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"shared_preferences","path":"/home/akshayn/.pub-cache/hosted/pub.dartlang.org/shared_preferences-0.5.7+3/","dependencies":[]}],"android":[{"name":"android_intent","path":"/home/akshayn/.pub-cache/hosted/pub.dartlang.org/android_intent-0.3.7+2/","dependencies":[]},{"name":"device_apps","path":"/home/akshayn/.pub-cache/hosted/pub.dartlang.org/device_apps-1.0.9/","dependencies":[]},{"name":"shared_preferences","path":"/home/akshayn/.pub-cache/hosted/pub.dartlang.org/shared_preferences-0.5.7+3/","dependencies":[]}],"macos":[{"name":"shared_preferences_macos","path":"/home/akshayn/.pub-cache/hosted/pub.dartlang.org/shared_preferences_macos-0.0.1+10/","dependencies":[]}],"linux":[],"windows":[],"web":[{"name":"shared_preferences_web","path":"/home/akshayn/.pub-cache/hosted/pub.dartlang.org/shared_preferences_web-0.1.2+7/","dependencies":[]}]},"dependencyGraph":[{"name":"android_intent","dependencies":[]},{"name":"device_apps","dependencies":[]},{"name":"shared_preferences","dependencies":["shared_preferences_macos","shared_preferences_web"]},{"name":"shared_preferences_macos","dependencies":[]},{"name":"shared_preferences_web","dependencies":[]}],"date_created":"2020-06-03 23:34:53.607416","version":"1.19.0-2.0.pre.214"} \ No newline at end of file diff --git a/TODO.md b/TODO.md index 3ad9ce6..12482a1 100644 --- a/TODO.md +++ b/TODO.md @@ -9,7 +9,7 @@ ## Issues - [ ] Fix scroll/fling conflict (snap) - [ ] Fix uninstall action issue - - [ ] Fix build issue + - [X] Fix build issue ## HomePage - [X] Create statusbar @@ -24,6 +24,7 @@ - [X] Add uninstall action - [X] Add goto app settings action - [X] Add "add to favorites" action + - [ ] Use getStringList for favorites list you dipshit - [ ] Sort the list according to frequently used - [ ] Make app list load faster - [ ] Make keyboard close on swipe diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml index fcffffb..3eb3424 100644 --- a/android/app/src/main/AndroidManifest.xml +++ b/android/app/src/main/AndroidManifest.xml @@ -5,10 +5,10 @@ In most cases you can leave this as-is, but you if you want to provide additional functionality it is fine to subclass or reimplement FlutterApplication and put your custom class here. --> - + - - + + diff --git a/pubspec.lock b/pubspec.lock index f73fff8..5e65493 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -67,6 +67,11 @@ packages: description: flutter source: sdk version: "0.0.0" + flutter_web_plugins: + dependency: transitive + description: flutter + source: sdk + version: "0.0.0" intl: dependency: "direct main" description: @@ -108,7 +113,28 @@ packages: name: shared_preferences url: "https://pub.dartlang.org" source: hosted - version: "0.4.3" + version: "0.5.7+3" + shared_preferences_macos: + dependency: transitive + description: + name: shared_preferences_macos + url: "https://pub.dartlang.org" + source: hosted + version: "0.0.1+10" + shared_preferences_platform_interface: + dependency: transitive + description: + name: shared_preferences_platform_interface + url: "https://pub.dartlang.org" + source: hosted + version: "1.0.4" + shared_preferences_web: + dependency: transitive + description: + name: shared_preferences_web + url: "https://pub.dartlang.org" + source: hosted + version: "0.1.2+7" sky_engine: dependency: transitive description: flutter diff --git a/pubspec.yaml b/pubspec.yaml index 0fdeb79..99a259b 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -15,7 +15,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev # In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion. # Read more about iOS versioning at # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html -version: 1.0.0+1 +version: 0.0.1+1 environment: sdk: ">=2.7.0 <3.0.0" @@ -26,7 +26,7 @@ dependencies: intl: ^0.16.1 device_apps: ^1.0.9 android_intent: ^0.3.7 - shared_preferences: ^0.4.3 + shared_preferences: ^0.5.7+1 dev_dependencies: flutter_test: -- cgit v1.3.1