diff --git a/.circleci/config.yml b/.circleci/config.yml
index 8809e70..574b500 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -1,28 +1,28 @@
-version: 2
-jobs:
- build:
- docker:
- - image: cirrusci/flutter:stable
-
- branches:
- only: master
-
- steps:
- - checkout
- - run:
- name: Run Flutter doctor
- command: flutter doctor
- - run:
- name: Update package
- command: flutter pub upgrade
- - run: echo $ENCODED_KEYSTORE | base64 -di > ${HOME}/keystore.jks
- - run: echo 'export KEYSTORE=${HOME}/keystore.jks' >> $BASH_ENV
- - run: dart tool/env.dart
- - run:
- name: Build the Android apk
- command: flutter build apk --split-per-abi --obfuscate --split-debug-info=debug/
- - run:
- name: Build the Android version
- command: flutter build appbundle --obfuscate --split-debug-info=debug/
- - store_artifacts:
- path: build/app/outputs/
+version: 2
+jobs:
+ build:
+ docker:
+ - image: cirrusci/flutter:stable
+
+ branches:
+ only: master
+
+ steps:
+ - checkout
+ - run:
+ name: Run Flutter doctor
+ command: flutter doctor
+ - run:
+ name: Update package
+ command: flutter pub upgrade
+ - run: echo $ENCODED_KEYSTORE | base64 -di > ${HOME}/keystore.jks
+ - run: echo 'export KEYSTORE=${HOME}/keystore.jks' >> $BASH_ENV
+ - run: dart tool/env.dart
+ - run:
+ name: Build the Android apk
+ command: flutter build apk --split-per-abi --obfuscate --split-debug-info=debug/
+ - run:
+ name: Build the Android version
+ command: flutter build appbundle --obfuscate --split-debug-info=debug/
+ - store_artifacts:
+ path: build/app/outputs/
diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml
index 305c91c..b67802d 100644
--- a/.github/FUNDING.yml
+++ b/.github/FUNDING.yml
@@ -1,12 +1,12 @@
-# These are supported funding model platforms
-
-github: # Replace with up to 4buy-enabled usernames e.g., [user1, user2]
-patreon: # Replace with a single Patreon username
-open_collective: # Replace with a single Open Collective username
-ko_fi: # Replace with a single Ko-fi username
-tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
-community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
-liberapay: stonegate # Replace with a single Liberapay username
-issuehunt: # Replace with a single IssueHunt username
-otechie: # Replace with a single Otechie username
-custom: ["https://www.buymeacoffee.com/stonegate"] # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
+# These are supported funding model platforms
+
+github: # Replace with up to 4buy-enabled usernames e.g., [user1, user2]
+patreon: # Replace with a single Patreon username
+open_collective: # Replace with a single Open Collective username
+ko_fi: # Replace with a single Ko-fi username
+tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
+community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
+liberapay: stonegate # Replace with a single Liberapay username
+issuehunt: # Replace with a single IssueHunt username
+otechie: # Replace with a single Otechie username
+custom: ["https://www.buymeacoffee.com/stonegate"] # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
diff --git a/.github/workflows/flutter_build.yml b/.github/workflows/flutter_build.yml
index a573d44..b5db384 100644
--- a/.github/workflows/flutter_build.yml
+++ b/.github/workflows/flutter_build.yml
@@ -1,43 +1,40 @@
-name: Flutter Build
-on:
- push:
- branches:
- - master
-jobs:
- build:
- runs-on: ubuntu-latest
- steps:
- - uses: actions/checkout@v1
- - uses: actions/setup-java@v1
- with:
- java-version: "12.x"
- - uses: subosito/flutter-action@v1
- with:
- channel: "stable" # 'dev', 'alpha', default to: 'stable'
- - run: flutter pub get
- - run: echo $ENCODED_KEYSTORE | base64 -di > android/app/keystore.jks
- env:
- ENCODED_KEYSTORE: ${{ secrets.ENCODED_KEYSTORE }}
- - run: dart tool/env.dart
- env:
- API_KEY: ${{ secrets.API_KEY }}
- PI_API_SECRET: ${{ secrets.PI_API_SECRET}}
- PI_API_KEY: ${{ secrets.PI_API_KEY}}
- - run: flutter build apk --split-per-abi --obfuscate --split-debug-info=debug/
- env:
- KEYSTORE_PASSWORD: ${{ secrets.KEYSTORE_PASSWORD }}
- KEY_ALIAS: ${{ secrets.KEY_ALIAS }}
- KEY_PASSWORD: ${{ secrets.KEY_PASSWORD}}
-
- - run: flutter build appbundle --obfuscate --split-debug-info=debug/
- env:
- API_KEY: ${{ secrets.API_KEY }}
- KEYSTORE_PASSWORD: ${{ secrets.KEYSTORE_PASSWORD }}
- KEY_ALIAS: ${{ secrets.KEY_ALIAS }}
- KEY_PASSWORD: ${{ secrets.KEY_PASSWORD}}
- PI_API_SECRET: ${{ secrets.PI_API_SECRET}}
- PI_API_KEY: ${{ secrets.PI_API_KEY}}
- - uses: actions/upload-artifact@v2
- with:
- name: release-apk
- path: build/app/outputs/**/release/*
+name: Flutter Build
+on:
+ push:
+ branches:
+ - master
+jobs:
+ build:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v1
+ - uses: actions/setup-java@v1
+ with:
+ java-version: "12.x"
+ - uses: subosito/flutter-action@v1
+ with:
+ channel: "stable" # 'dev', 'alpha', default to: 'stable'
+ - run: flutter pub get
+ - run: echo $ENCODED_KEYSTORE | base64 -di > android/app/keystore.jks
+ env:
+ ENCODED_KEYSTORE: ${{ secrets.ENCODED_KEYSTORE }}
+ - run: dart tool/env.dart
+ env:
+ API_KEY: ${{ secrets.API_KEY }}
+ PI_API_SECRET: ${{ secrets.PI_API_SECRET}}
+ PI_API_KEY: ${{ secrets.PI_API_KEY}}
+ - run: flutter build apk --split-per-abi --obfuscate --split-debug-info=debug/
+ env:
+ KEYSTORE_PASSWORD: ${{ secrets.KEYSTORE_PASSWORD }}
+ KEY_ALIAS: ${{ secrets.KEY_ALIAS }}
+ KEY_PASSWORD: ${{ secrets.KEY_PASSWORD}}
+
+ - run: flutter build appbundle --obfuscate --split-debug-info=debug/
+ env:
+ KEYSTORE_PASSWORD: ${{ secrets.KEYSTORE_PASSWORD }}
+ KEY_ALIAS: ${{ secrets.KEY_ALIAS }}
+ KEY_PASSWORD: ${{ secrets.KEY_PASSWORD}}
+ - uses: actions/upload-artifact@v2
+ with:
+ name: release-file
+ path: build/app/outputs/**/release/*
diff --git a/.gitignore b/.gitignore
index bdb020c..26adfd1 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,41 +1,41 @@
-# Miscellaneous
-*.class
-*.log
-*.pyc
-*.swp
-.DS_Store
-.atom/
-.buildlog/
-.history
-.svn/
-
-# IntelliJ related
-*.iml
-*.ipr
-*.iws
-.idea/
-
-# The .vscode folder contains launch configuration and tasks you configure in
-# VS Code which you may wish to be included in version control, so this line
-# is commented out by default.
-#.vscode/
-
-# Flutter/Dart/Pub related
-**/doc/api/
-.dart_tool/
-.flutter-plugins
-.flutter-plugins-dependencies
-.packages
-.pub-cache/
-.pub/
-/lib/.env.dart
-/build/
-pubspec.lock
-.vscode
-analysis_options.yaml
-
-# Web related
-lib/generated_plugin_registrant.dart
-
-# Exceptions to above rules.
-!/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages
+# Miscellaneous
+*.class
+*.log
+*.pyc
+*.swp
+.DS_Store
+.atom/
+.buildlog/
+.history
+.svn/
+
+# IntelliJ related
+*.iml
+*.ipr
+*.iws
+.idea/
+
+# The .vscode folder contains launch configuration and tasks you configure in
+# VS Code which you may wish to be included in version control, so this line
+# is commented out by default.
+#.vscode/
+
+# Flutter/Dart/Pub related
+**/doc/api/
+.dart_tool/
+.flutter-plugins
+.flutter-plugins-dependencies
+.packages
+.pub-cache/
+.pub/
+/lib/.env.dart
+/build/
+pubspec.lock
+.vscode
+analysis_options.yaml
+
+# Web related
+lib/generated_plugin_registrant.dart
+
+# Exceptions to above rules.
+!/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages
diff --git a/.metadata b/.metadata
index 7ec1395..5a59dd8 100644
--- a/.metadata
+++ b/.metadata
@@ -1,10 +1,10 @@
-# 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 and should not be manually edited.
-
-version:
- revision: 659dc8129d4edb9166e9a0d600439d135740933f
- channel: beta
-
-project_type: app
+# 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 and should not be manually edited.
+
+version:
+ revision: 659dc8129d4edb9166e9a0d600439d135740933f
+ channel: beta
+
+project_type: app
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 9853b7e..1cd4392 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,331 +1,331 @@
-# Tsacdop Changelog
-
-## 0.5.0
-
-Release date 2020/10/13
-
-### New fewtures
-
-* Support multi select on recent and favorite tab.
-* Select all/ select before/ select after.
-* Option to delete episode download file when played.
-* OPtion to mark as listened after skipped.
-
-### Bug fixed
-
-* Feed pubdate parse error.
-* Episodes load with initial position failed.
-
-### Minor changes
-
-* Single colume layout update.
-* About page UI update.
-* More smooth animation when open podcast detail page.
-* Change sort by button style in podcast detail page.
-* Auto rewind 3 seconds when resuming from paused state.
-
-## 0.4.20
-
-Release date 2020/10/3
-
-### Bug fixed
-
-* Rss feed parse error.
-
-## 0.4.19
-
-Release date 2020/10/1
-
-### New features
-
-* Set podcastindex as default search engine.
-* Option to hide podcast discovery in search page.
-* Italian translation support, thanks Edoardo.
-
-### Bug fixed
-
-* Mark all listened error.
-
-## 0.4.18
-
-Release date 2020/9/27
-
-### New features
-
-* Support gpodder.net sync.
-* Portuguese translation, thanks Bruno.
-* Turn off auto update for podcast.
-* Pull to refresh in recent tab, supports group update.
-
-### Minor changes
-
-* Longpress 'see all' to open full podcast list.
-
-## 0.4.17
-
-Release date 2020/9/16
-
-### Bug fixed
-
-* Remove notification after app removed from recent.
-
-## 0.4.16
-
-Release date 2020/9/15
-
-### New features
-
-* Discovery feature in search page.
-* Multi select in podcast page.
-* Customize the speed options available.
-
-### Bugs fixed
-
-* Fix download error when podcast name includes /.
-* Make the group name editable directly.
-* Fixed shownote timestamp click error.
-
-### Minor changes
-
-* Update donate button UI.
-
-## 0.4.15
-
-Release date 2020/8/30
-
-### New features
-
-* Option to change notification panel layout.
-* Option to change show notes font style.
-* Option to hide listened default.
-* Change skip next/previous to fastForward/rewind on headset click.
-
-### Bugs fixed
-
-* Download error when filename too long.
-
-### Minor change
-
-* Update download button style and downloaded indicator style.
-* Add 1.1 to speed setting.
-* Add 5s to skip seconds setting.
-
-## 0.4.14
-
-Release date 2020/8/20
-Only for izzyonandroid.
-
-## 0.4.13
-
-Release date 2020/8/19
-
-### Bugs fixed
-
-* Downloaded episode play error, you might need to redownload the episode.
-
-## 0.4.12
-
-Release date 2020/8/15
-
-### Bugs fixed
-
-* Crash when reorder episodes or podcasts.
-* Popup menu setting import bug.
-* Default language failed to load.
-
-### Minor changes
-
-* Change language|feedback|podcast settings to button sheet.
-* Add history in home playlist button.
-* History page UI improved.
-
-## 0.4.11
-
-Release date 2020/8/12
-
-### New features
-
-* Boost volume. You can change boost level in settings.
-* You can tap time stamp to skip instantly in shownote when the episode is playing.
-* Add history list in playlist page.
-* You can also mark not listened now.
-
-### Minor change
-
-* Improved time picker UI.
-* Add episode setting page.
-
-### Bugs fix
-
-* Play record didn't saved after stop playing.
-* Network error message didn't disapear after skip to next.
-* Fireside avatar load error.
-
-## 0.4.10
-
-Release date 2020/8/6
-
-### Bugs fixed
-
-* Episdoe date parse error.
-* Play from start after interrupt.
-* Playlist in player unstable.
-* Language setting not saved after restart app.
-
-### Minor change
-
-* Fast forward and rewind buttons UI changed.
-
-## v0.4.9
-
-Release date 2020/8/1
-
-### New features
-
-* Player UI redesign.
-* Added player height setting.
-* Added skip silence feature.
-
-### Bugs fixed
-
-* Language fixs. (Thanks to Atrate)
-* Make app movable to SD card. (Thanks to Atrate)
-
-### Minor change
-
-* Episode page open animation improved.
-* Podcast page load faster than before.
-* Removed unnecessary scroll overlay effect.
-* Episode page bottom menu hide when scroll down.
-
-## v0.4.8
-
-Release date 2020/7/25
-
-### New features
-
-* Filter in podcast detail page, you can also hide listened episodes.
-* Search result ui improved, you can see more info for result.
-* Update audio service to latest version.
-* Support fast forward seconds and rewind seconds customize.
-* Add Franch language support(beta).
-* Add translators in about page.
-
-### Bugs fixed
-
-* Icon issue on below android 8 devices.
-
-### Minor change
-
-* Download button ui improved.
-* Title changed to scrollable in episode detail page.
-* Real dark theme improved.
-* Add dot indicator in popup menu.
-* Tap logo in homepage to toggle theme.
-
-## v0.4.7
-
-Release date 2020/7/18
-
-### Bugs fixed
-
-* Ompl files form other platform import error.
-* Audio cache did't work.
-
-## v0.4.6
-
-Release date 2020/7/17
-
-### Bugs fixed
-
-* Mark listened not work.
-* Recover subscribe wrong group.
-
-## v0.4.5
-
-Release date 2020/7/16
-
-## New features
-
-* OPML backup file supports group.
-* Add settings backup and restore.
-* Enable R8 and dart obfuscate.
-
-## Bugs fixed
-
-* OPML import not shown in group.
-
-## Minor UI change
-
-* Tap logo in homepage to toggle theme mode.
-* Change subscribe button style.
-* Improve history chart style.
-
-## v0.4.0
-
-Release date 2020/7/9
-
-### New features
-
-* Localization, changed all UI strings in app to support locale, support languages include en & zh right now.
-* Changed episode popup menu UI, add a switch to tap to open popup men.
-
-### Minor UI change
-
-* Improve dropdown menu UI.
-* Change icons color in setting page.
-* Improve player panel animation.
-* Add scroll bar in libraries page.
-
-## v0.3.6
-
-Release date 2020/6/30
-
-### New feature
-
-* Add sleep timer settings. include default time, auto start sleep timer, etc.
-
-### Bug fixed
-
-* Crash on stop player.
-* Some download file didn't auto deleted.
-
-## v0.3.5
-
-Release date 2020/6/20
-This is a energency release.
-
-### Bugs fixed
-
-* Crashed in download page or button after remove a podcast. Add episode check when load tasks from flutterdownloader.
-
-### Minor UI change
-
-* Add buy me a coffee in about page.
-* Remove progress number in download list in failed task, change refresh icon color to red.
-
-## v0.3.4
-
-Release date 2020/6/16
-
-### New Feature
-
-* Support auto download new episodes, you can choose which podcast you want to auto download, you can also set if download using cellular data.
-* Support auto delete downloaded episode, you can set days before delete.
-* Support customize episode popup menu, you can add options you most want, **Like** | **Mark Listened** | **Download** newly added.
-* Improved downloaded file manager, you can now sort downloads by date or size, you can also only view listened downloads.
-
-### Minor UI Change
-
-* Removed the listened indicator, increased the color difference for listened episodes.
-* Add text in podcast manage page menu.
-* Change episode shownote font to Martel.
-
-### Bugs Fixed
-
-* Auto play when receive notification.
-* Lose podcast when import OMPL file.
-
-### Other
-
-* Add privacy policy.
+# Tsacdop Changelog
+
+## 0.5.0
+
+Release date 2020/10/13
+
+### New fewtures
+
+* Support multi select on recent and favorite tab.
+* Select all/ select before/ select after.
+* Option to delete episode download file when played.
+* OPtion to mark as listened after skipped.
+
+### Bug fixed
+
+* Feed pubdate parse error.
+* Episodes load with initial position failed.
+
+### Minor changes
+
+* Single colume layout update.
+* About page UI update.
+* More smooth animation when open podcast detail page.
+* Change sort by button style in podcast detail page.
+* Auto rewind 3 seconds when resuming from paused state.
+
+## 0.4.20
+
+Release date 2020/10/3
+
+### Bug fixed
+
+* Rss feed parse error.
+
+## 0.4.19
+
+Release date 2020/10/1
+
+### New features
+
+* Set podcastindex as default search engine.
+* Option to hide podcast discovery in search page.
+* Italian translation support, thanks Edoardo.
+
+### Bug fixed
+
+* Mark all listened error.
+
+## 0.4.18
+
+Release date 2020/9/27
+
+### New features
+
+* Support gpodder.net sync.
+* Portuguese translation, thanks Bruno.
+* Turn off auto update for podcast.
+* Pull to refresh in recent tab, supports group update.
+
+### Minor changes
+
+* Longpress 'see all' to open full podcast list.
+
+## 0.4.17
+
+Release date 2020/9/16
+
+### Bug fixed
+
+* Remove notification after app removed from recent.
+
+## 0.4.16
+
+Release date 2020/9/15
+
+### New features
+
+* Discovery feature in search page.
+* Multi select in podcast page.
+* Customize the speed options available.
+
+### Bugs fixed
+
+* Fix download error when podcast name includes /.
+* Make the group name editable directly.
+* Fixed shownote timestamp click error.
+
+### Minor changes
+
+* Update donate button UI.
+
+## 0.4.15
+
+Release date 2020/8/30
+
+### New features
+
+* Option to change notification panel layout.
+* Option to change show notes font style.
+* Option to hide listened default.
+* Change skip next/previous to fastForward/rewind on headset click.
+
+### Bugs fixed
+
+* Download error when filename too long.
+
+### Minor change
+
+* Update download button style and downloaded indicator style.
+* Add 1.1 to speed setting.
+* Add 5s to skip seconds setting.
+
+## 0.4.14
+
+Release date 2020/8/20
+Only for izzyonandroid.
+
+## 0.4.13
+
+Release date 2020/8/19
+
+### Bugs fixed
+
+* Downloaded episode play error, you might need to redownload the episode.
+
+## 0.4.12
+
+Release date 2020/8/15
+
+### Bugs fixed
+
+* Crash when reorder episodes or podcasts.
+* Popup menu setting import bug.
+* Default language failed to load.
+
+### Minor changes
+
+* Change language|feedback|podcast settings to button sheet.
+* Add history in home playlist button.
+* History page UI improved.
+
+## 0.4.11
+
+Release date 2020/8/12
+
+### New features
+
+* Boost volume. You can change boost level in settings.
+* You can tap time stamp to skip instantly in shownote when the episode is playing.
+* Add history list in playlist page.
+* You can also mark not listened now.
+
+### Minor change
+
+* Improved time picker UI.
+* Add episode setting page.
+
+### Bugs fix
+
+* Play record didn't saved after stop playing.
+* Network error message didn't disapear after skip to next.
+* Fireside avatar load error.
+
+## 0.4.10
+
+Release date 2020/8/6
+
+### Bugs fixed
+
+* Episdoe date parse error.
+* Play from start after interrupt.
+* Playlist in player unstable.
+* Language setting not saved after restart app.
+
+### Minor change
+
+* Fast forward and rewind buttons UI changed.
+
+## v0.4.9
+
+Release date 2020/8/1
+
+### New features
+
+* Player UI redesign.
+* Added player height setting.
+* Added skip silence feature.
+
+### Bugs fixed
+
+* Language fixs. (Thanks to Atrate)
+* Make app movable to SD card. (Thanks to Atrate)
+
+### Minor change
+
+* Episode page open animation improved.
+* Podcast page load faster than before.
+* Removed unnecessary scroll overlay effect.
+* Episode page bottom menu hide when scroll down.
+
+## v0.4.8
+
+Release date 2020/7/25
+
+### New features
+
+* Filter in podcast detail page, you can also hide listened episodes.
+* Search result ui improved, you can see more info for result.
+* Update audio service to latest version.
+* Support fast forward seconds and rewind seconds customize.
+* Add Franch language support(beta).
+* Add translators in about page.
+
+### Bugs fixed
+
+* Icon issue on below android 8 devices.
+
+### Minor change
+
+* Download button ui improved.
+* Title changed to scrollable in episode detail page.
+* Real dark theme improved.
+* Add dot indicator in popup menu.
+* Tap logo in homepage to toggle theme.
+
+## v0.4.7
+
+Release date 2020/7/18
+
+### Bugs fixed
+
+* Ompl files form other platform import error.
+* Audio cache did't work.
+
+## v0.4.6
+
+Release date 2020/7/17
+
+### Bugs fixed
+
+* Mark listened not work.
+* Recover subscribe wrong group.
+
+## v0.4.5
+
+Release date 2020/7/16
+
+## New features
+
+* OPML backup file supports group.
+* Add settings backup and restore.
+* Enable R8 and dart obfuscate.
+
+## Bugs fixed
+
+* OPML import not shown in group.
+
+## Minor UI change
+
+* Tap logo in homepage to toggle theme mode.
+* Change subscribe button style.
+* Improve history chart style.
+
+## v0.4.0
+
+Release date 2020/7/9
+
+### New features
+
+* Localization, changed all UI strings in app to support locale, support languages include en & zh right now.
+* Changed episode popup menu UI, add a switch to tap to open popup men.
+
+### Minor UI change
+
+* Improve dropdown menu UI.
+* Change icons color in setting page.
+* Improve player panel animation.
+* Add scroll bar in libraries page.
+
+## v0.3.6
+
+Release date 2020/6/30
+
+### New feature
+
+* Add sleep timer settings. include default time, auto start sleep timer, etc.
+
+### Bug fixed
+
+* Crash on stop player.
+* Some download file didn't auto deleted.
+
+## v0.3.5
+
+Release date 2020/6/20
+This is a energency release.
+
+### Bugs fixed
+
+* Crashed in download page or button after remove a podcast. Add episode check when load tasks from flutterdownloader.
+
+### Minor UI change
+
+* Add buy me a coffee in about page.
+* Remove progress number in download list in failed task, change refresh icon color to red.
+
+## v0.3.4
+
+Release date 2020/6/16
+
+### New Feature
+
+* Support auto download new episodes, you can choose which podcast you want to auto download, you can also set if download using cellular data.
+* Support auto delete downloaded episode, you can set days before delete.
+* Support customize episode popup menu, you can add options you most want, **Like** | **Mark Listened** | **Download** newly added.
+* Improved downloaded file manager, you can now sort downloads by date or size, you can also only view listened downloads.
+
+### Minor UI Change
+
+* Removed the listened indicator, increased the color difference for listened episodes.
+* Add text in podcast manage page menu.
+* Change episode shownote font to Martel.
+
+### Bugs Fixed
+
+* Auto play when receive notification.
+* Lose podcast when import OMPL file.
+
+### Other
+
+* Add privacy policy.
diff --git a/LICENSE b/LICENSE
index f288702..3877ae0 100644
--- a/LICENSE
+++ b/LICENSE
@@ -1,674 +1,674 @@
- GNU GENERAL PUBLIC LICENSE
- Version 3, 29 June 2007
-
- Copyright (C) 2007 Free Software Foundation, Inc.
- Everyone is permitted to copy and distribute verbatim copies
- of this license document, but changing it is not allowed.
-
- Preamble
-
- The GNU General Public License is a free, copyleft license for
-software and other kinds of works.
-
- The licenses for most software and other practical works are designed
-to take away your freedom to share and change the works. By contrast,
-the GNU General Public License is intended to guarantee your freedom to
-share and change all versions of a program--to make sure it remains free
-software for all its users. We, the Free Software Foundation, use the
-GNU General Public License for most of our software; it applies also to
-any other work released this way by its authors. You can apply it to
-your programs, too.
-
- When we speak of free software, we are referring to freedom, not
-price. Our General Public Licenses are designed to make sure that you
-have the freedom to distribute copies of free software (and charge for
-them if you wish), that you receive source code or can get it if you
-want it, that you can change the software or use pieces of it in new
-free programs, and that you know you can do these things.
-
- To protect your rights, we need to prevent others from denying you
-these rights or asking you to surrender the rights. Therefore, you have
-certain responsibilities if you distribute copies of the software, or if
-you modify it: responsibilities to respect the freedom of others.
-
- For example, if you distribute copies of such a program, whether
-gratis or for a fee, you must pass on to the recipients the same
-freedoms that you received. You must make sure that they, too, receive
-or can get the source code. And you must show them these terms so they
-know their rights.
-
- Developers that use the GNU GPL protect your rights with two steps:
-(1) assert copyright on the software, and (2) offer you this License
-giving you legal permission to copy, distribute and/or modify it.
-
- For the developers' and authors' protection, the GPL clearly explains
-that there is no warranty for this free software. For both users' and
-authors' sake, the GPL requires that modified versions be marked as
-changed, so that their problems will not be attributed erroneously to
-authors of previous versions.
-
- Some devices are designed to deny users access to install or run
-modified versions of the software inside them, although the manufacturer
-can do so. This is fundamentally incompatible with the aim of
-protecting users' freedom to change the software. The systematic
-pattern of such abuse occurs in the area of products for individuals to
-use, which is precisely where it is most unacceptable. Therefore, we
-have designed this version of the GPL to prohibit the practice for those
-products. If such problems arise substantially in other domains, we
-stand ready to extend this provision to those domains in future versions
-of the GPL, as needed to protect the freedom of users.
-
- Finally, every program is threatened constantly by software patents.
-States should not allow patents to restrict development and use of
-software on general-purpose computers, but in those that do, we wish to
-avoid the special danger that patents applied to a free program could
-make it effectively proprietary. To prevent this, the GPL assures that
-patents cannot be used to render the program non-free.
-
- The precise terms and conditions for copying, distribution and
-modification follow.
-
- TERMS AND CONDITIONS
-
- 0. Definitions.
-
- "This License" refers to version 3 of the GNU General Public License.
-
- "Copyright" also means copyright-like laws that apply to other kinds of
-works, such as semiconductor masks.
-
- "The Program" refers to any copyrightable work licensed under this
-License. Each licensee is addressed as "you". "Licensees" and
-"recipients" may be individuals or organizations.
-
- To "modify" a work means to copy from or adapt all or part of the work
-in a fashion requiring copyright permission, other than the making of an
-exact copy. The resulting work is called a "modified version" of the
-earlier work or a work "based on" the earlier work.
-
- A "covered work" means either the unmodified Program or a work based
-on the Program.
-
- To "propagate" a work means to do anything with it that, without
-permission, would make you directly or secondarily liable for
-infringement under applicable copyright law, except executing it on a
-computer or modifying a private copy. Propagation includes copying,
-distribution (with or without modification), making available to the
-public, and in some countries other activities as well.
-
- To "convey" a work means any kind of propagation that enables other
-parties to make or receive copies. Mere interaction with a user through
-a computer network, with no transfer of a copy, is not conveying.
-
- An interactive user interface displays "Appropriate Legal Notices"
-to the extent that it includes a convenient and prominently visible
-feature that (1) displays an appropriate copyright notice, and (2)
-tells the user that there is no warranty for the work (except to the
-extent that warranties are provided), that licensees may convey the
-work under this License, and how to view a copy of this License. If
-the interface presents a list of user commands or options, such as a
-menu, a prominent item in the list meets this criterion.
-
- 1. Source Code.
-
- The "source code" for a work means the preferred form of the work
-for making modifications to it. "Object code" means any non-source
-form of a work.
-
- A "Standard Interface" means an interface that either is an official
-standard defined by a recognized standards body, or, in the case of
-interfaces specified for a particular programming language, one that
-is widely used among developers working in that language.
-
- The "System Libraries" of an executable work include anything, other
-than the work as a whole, that (a) is included in the normal form of
-packaging a Major Component, but which is not part of that Major
-Component, and (b) serves only to enable use of the work with that
-Major Component, or to implement a Standard Interface for which an
-implementation is available to the public in source code form. A
-"Major Component", in this context, means a major essential component
-(kernel, window system, and so on) of the specific operating system
-(if any) on which the executable work runs, or a compiler used to
-produce the work, or an object code interpreter used to run it.
-
- The "Corresponding Source" for a work in object code form means all
-the source code needed to generate, install, and (for an executable
-work) run the object code and to modify the work, including scripts to
-control those activities. However, it does not include the work's
-System Libraries, or general-purpose tools or generally available free
-programs which are used unmodified in performing those activities but
-which are not part of the work. For example, Corresponding Source
-includes interface definition files associated with source files for
-the work, and the source code for shared libraries and dynamically
-linked subprograms that the work is specifically designed to require,
-such as by intimate data communication or control flow between those
-subprograms and other parts of the work.
-
- The Corresponding Source need not include anything that users
-can regenerate automatically from other parts of the Corresponding
-Source.
-
- The Corresponding Source for a work in source code form is that
-same work.
-
- 2. Basic Permissions.
-
- All rights granted under this License are granted for the term of
-copyright on the Program, and are irrevocable provided the stated
-conditions are met. This License explicitly affirms your unlimited
-permission to run the unmodified Program. The output from running a
-covered work is covered by this License only if the output, given its
-content, constitutes a covered work. This License acknowledges your
-rights of fair use or other equivalent, as provided by copyright law.
-
- You may make, run and propagate covered works that you do not
-convey, without conditions so long as your license otherwise remains
-in force. You may convey covered works to others for the sole purpose
-of having them make modifications exclusively for you, or provide you
-with facilities for running those works, provided that you comply with
-the terms of this License in conveying all material for which you do
-not control copyright. Those thus making or running the covered works
-for you must do so exclusively on your behalf, under your direction
-and control, on terms that prohibit them from making any copies of
-your copyrighted material outside their relationship with you.
-
- Conveying under any other circumstances is permitted solely under
-the conditions stated below. Sublicensing is not allowed; section 10
-makes it unnecessary.
-
- 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
-
- No covered work shall be deemed part of an effective technological
-measure under any applicable law fulfilling obligations under article
-11 of the WIPO copyright treaty adopted on 20 December 1996, or
-similar laws prohibiting or restricting circumvention of such
-measures.
-
- When you convey a covered work, you waive any legal power to forbid
-circumvention of technological measures to the extent such circumvention
-is effected by exercising rights under this License with respect to
-the covered work, and you disclaim any intention to limit operation or
-modification of the work as a means of enforcing, against the work's
-users, your or third parties' legal rights to forbid circumvention of
-technological measures.
-
- 4. Conveying Verbatim Copies.
-
- You may convey verbatim copies of the Program's source code as you
-receive it, in any medium, provided that you conspicuously and
-appropriately publish on each copy an appropriate copyright notice;
-keep intact all notices stating that this License and any
-non-permissive terms added in accord with section 7 apply to the code;
-keep intact all notices of the absence of any warranty; and give all
-recipients a copy of this License along with the Program.
-
- You may charge any price or no price for each copy that you convey,
-and you may offer support or warranty protection for a fee.
-
- 5. Conveying Modified Source Versions.
-
- You may convey a work based on the Program, or the modifications to
-produce it from the Program, in the form of source code under the
-terms of section 4, provided that you also meet all of these conditions:
-
- a) The work must carry prominent notices stating that you modified
- it, and giving a relevant date.
-
- b) The work must carry prominent notices stating that it is
- released under this License and any conditions added under section
- 7. This requirement modifies the requirement in section 4 to
- "keep intact all notices".
-
- c) You must license the entire work, as a whole, under this
- License to anyone who comes into possession of a copy. This
- License will therefore apply, along with any applicable section 7
- additional terms, to the whole of the work, and all its parts,
- regardless of how they are packaged. This License gives no
- permission to license the work in any other way, but it does not
- invalidate such permission if you have separately received it.
-
- d) If the work has interactive user interfaces, each must display
- Appropriate Legal Notices; however, if the Program has interactive
- interfaces that do not display Appropriate Legal Notices, your
- work need not make them do so.
-
- A compilation of a covered work with other separate and independent
-works, which are not by their nature extensions of the covered work,
-and which are not combined with it such as to form a larger program,
-in or on a volume of a storage or distribution medium, is called an
-"aggregate" if the compilation and its resulting copyright are not
-used to limit the access or legal rights of the compilation's users
-beyond what the individual works permit. Inclusion of a covered work
-in an aggregate does not cause this License to apply to the other
-parts of the aggregate.
-
- 6. Conveying Non-Source Forms.
-
- You may convey a covered work in object code form under the terms
-of sections 4 and 5, provided that you also convey the
-machine-readable Corresponding Source under the terms of this License,
-in one of these ways:
-
- a) Convey the object code in, or embodied in, a physical product
- (including a physical distribution medium), accompanied by the
- Corresponding Source fixed on a durable physical medium
- customarily used for software interchange.
-
- b) Convey the object code in, or embodied in, a physical product
- (including a physical distribution medium), accompanied by a
- written offer, valid for at least three years and valid for as
- long as you offer spare parts or customer support for that product
- model, to give anyone who possesses the object code either (1) a
- copy of the Corresponding Source for all the software in the
- product that is covered by this License, on a durable physical
- medium customarily used for software interchange, for a price no
- more than your reasonable cost of physically performing this
- conveying of source, or (2) access to copy the
- Corresponding Source from a network server at no charge.
-
- c) Convey individual copies of the object code with a copy of the
- written offer to provide the Corresponding Source. This
- alternative is allowed only occasionally and noncommercially, and
- only if you received the object code with such an offer, in accord
- with subsection 6b.
-
- d) Convey the object code by offering access from a designated
- place (gratis or for a charge), and offer equivalent access to the
- Corresponding Source in the same way through the same place at no
- further charge. You need not require recipients to copy the
- Corresponding Source along with the object code. If the place to
- copy the object code is a network server, the Corresponding Source
- may be on a different server (operated by you or a third party)
- that supports equivalent copying facilities, provided you maintain
- clear directions next to the object code saying where to find the
- Corresponding Source. Regardless of what server hosts the
- Corresponding Source, you remain obligated to ensure that it is
- available for as long as needed to satisfy these requirements.
-
- e) Convey the object code using peer-to-peer transmission, provided
- you inform other peers where the object code and Corresponding
- Source of the work are being offered to the general public at no
- charge under subsection 6d.
-
- A separable portion of the object code, whose source code is excluded
-from the Corresponding Source as a System Library, need not be
-included in conveying the object code work.
-
- A "User Product" is either (1) a "consumer product", which means any
-tangible personal property which is normally used for personal, family,
-or household purposes, or (2) anything designed or sold for incorporation
-into a dwelling. In determining whether a product is a consumer product,
-doubtful cases shall be resolved in favor of coverage. For a particular
-product received by a particular user, "normally used" refers to a
-typical or common use of that class of product, regardless of the status
-of the particular user or of the way in which the particular user
-actually uses, or expects or is expected to use, the product. A product
-is a consumer product regardless of whether the product has substantial
-commercial, industrial or non-consumer uses, unless such uses represent
-the only significant mode of use of the product.
-
- "Installation Information" for a User Product means any methods,
-procedures, authorization keys, or other information required to install
-and execute modified versions of a covered work in that User Product from
-a modified version of its Corresponding Source. The information must
-suffice to ensure that the continued functioning of the modified object
-code is in no case prevented or interfered with solely because
-modification has been made.
-
- If you convey an object code work under this section in, or with, or
-specifically for use in, a User Product, and the conveying occurs as
-part of a transaction in which the right of possession and use of the
-User Product is transferred to the recipient in perpetuity or for a
-fixed term (regardless of how the transaction is characterized), the
-Corresponding Source conveyed under this section must be accompanied
-by the Installation Information. But this requirement does not apply
-if neither you nor any third party retains the ability to install
-modified object code on the User Product (for example, the work has
-been installed in ROM).
-
- The requirement to provide Installation Information does not include a
-requirement to continue to provide support service, warranty, or updates
-for a work that has been modified or installed by the recipient, or for
-the User Product in which it has been modified or installed. Access to a
-network may be denied when the modification itself materially and
-adversely affects the operation of the network or violates the rules and
-protocols for communication across the network.
-
- Corresponding Source conveyed, and Installation Information provided,
-in accord with this section must be in a format that is publicly
-documented (and with an implementation available to the public in
-source code form), and must require no special password or key for
-unpacking, reading or copying.
-
- 7. Additional Terms.
-
- "Additional permissions" are terms that supplement the terms of this
-License by making exceptions from one or more of its conditions.
-Additional permissions that are applicable to the entire Program shall
-be treated as though they were included in this License, to the extent
-that they are valid under applicable law. If additional permissions
-apply only to part of the Program, that part may be used separately
-under those permissions, but the entire Program remains governed by
-this License without regard to the additional permissions.
-
- When you convey a copy of a covered work, you may at your option
-remove any additional permissions from that copy, or from any part of
-it. (Additional permissions may be written to require their own
-removal in certain cases when you modify the work.) You may place
-additional permissions on material, added by you to a covered work,
-for which you have or can give appropriate copyright permission.
-
- Notwithstanding any other provision of this License, for material you
-add to a covered work, you may (if authorized by the copyright holders of
-that material) supplement the terms of this License with terms:
-
- a) Disclaiming warranty or limiting liability differently from the
- terms of sections 15 and 16 of this License; or
-
- b) Requiring preservation of specified reasonable legal notices or
- author attributions in that material or in the Appropriate Legal
- Notices displayed by works containing it; or
-
- c) Prohibiting misrepresentation of the origin of that material, or
- requiring that modified versions of such material be marked in
- reasonable ways as different from the original version; or
-
- d) Limiting the use for publicity purposes of names of licensors or
- authors of the material; or
-
- e) Declining to grant rights under trademark law for use of some
- trade names, trademarks, or service marks; or
-
- f) Requiring indemnification of licensors and authors of that
- material by anyone who conveys the material (or modified versions of
- it) with contractual assumptions of liability to the recipient, for
- any liability that these contractual assumptions directly impose on
- those licensors and authors.
-
- All other non-permissive additional terms are considered "further
-restrictions" within the meaning of section 10. If the Program as you
-received it, or any part of it, contains a notice stating that it is
-governed by this License along with a term that is a further
-restriction, you may remove that term. If a license document contains
-a further restriction but permits relicensing or conveying under this
-License, you may add to a covered work material governed by the terms
-of that license document, provided that the further restriction does
-not survive such relicensing or conveying.
-
- If you add terms to a covered work in accord with this section, you
-must place, in the relevant source files, a statement of the
-additional terms that apply to those files, or a notice indicating
-where to find the applicable terms.
-
- Additional terms, permissive or non-permissive, may be stated in the
-form of a separately written license, or stated as exceptions;
-the above requirements apply either way.
-
- 8. Termination.
-
- You may not propagate or modify a covered work except as expressly
-provided under this License. Any attempt otherwise to propagate or
-modify it is void, and will automatically terminate your rights under
-this License (including any patent licenses granted under the third
-paragraph of section 11).
-
- However, if you cease all violation of this License, then your
-license from a particular copyright holder is reinstated (a)
-provisionally, unless and until the copyright holder explicitly and
-finally terminates your license, and (b) permanently, if the copyright
-holder fails to notify you of the violation by some reasonable means
-prior to 60 days after the cessation.
-
- Moreover, your license from a particular copyright holder is
-reinstated permanently if the copyright holder notifies you of the
-violation by some reasonable means, this is the first time you have
-received notice of violation of this License (for any work) from that
-copyright holder, and you cure the violation prior to 30 days after
-your receipt of the notice.
-
- Termination of your rights under this section does not terminate the
-licenses of parties who have received copies or rights from you under
-this License. If your rights have been terminated and not permanently
-reinstated, you do not qualify to receive new licenses for the same
-material under section 10.
-
- 9. Acceptance Not Required for Having Copies.
-
- You are not required to accept this License in order to receive or
-run a copy of the Program. Ancillary propagation of a covered work
-occurring solely as a consequence of using peer-to-peer transmission
-to receive a copy likewise does not require acceptance. However,
-nothing other than this License grants you permission to propagate or
-modify any covered work. These actions infringe copyright if you do
-not accept this License. Therefore, by modifying or propagating a
-covered work, you indicate your acceptance of this License to do so.
-
- 10. Automatic Licensing of Downstream Recipients.
-
- Each time you convey a covered work, the recipient automatically
-receives a license from the original licensors, to run, modify and
-propagate that work, subject to this License. You are not responsible
-for enforcing compliance by third parties with this License.
-
- An "entity transaction" is a transaction transferring control of an
-organization, or substantially all assets of one, or subdividing an
-organization, or merging organizations. If propagation of a covered
-work results from an entity transaction, each party to that
-transaction who receives a copy of the work also receives whatever
-licenses to the work the party's predecessor in interest had or could
-give under the previous paragraph, plus a right to possession of the
-Corresponding Source of the work from the predecessor in interest, if
-the predecessor has it or can get it with reasonable efforts.
-
- You may not impose any further restrictions on the exercise of the
-rights granted or affirmed under this License. For example, you may
-not impose a license fee, royalty, or other charge for exercise of
-rights granted under this License, and you may not initiate litigation
-(including a cross-claim or counterclaim in a lawsuit) alleging that
-any patent claim is infringed by making, using, selling, offering for
-sale, or importing the Program or any portion of it.
-
- 11. Patents.
-
- A "contributor" is a copyright holder who authorizes use under this
-License of the Program or a work on which the Program is based. The
-work thus licensed is called the contributor's "contributor version".
-
- A contributor's "essential patent claims" are all patent claims
-owned or controlled by the contributor, whether already acquired or
-hereafter acquired, that would be infringed by some manner, permitted
-by this License, of making, using, or selling its contributor version,
-but do not include claims that would be infringed only as a
-consequence of further modification of the contributor version. For
-purposes of this definition, "control" includes the right to grant
-patent sublicenses in a manner consistent with the requirements of
-this License.
-
- Each contributor grants you a non-exclusive, worldwide, royalty-free
-patent license under the contributor's essential patent claims, to
-make, use, sell, offer for sale, import and otherwise run, modify and
-propagate the contents of its contributor version.
-
- In the following three paragraphs, a "patent license" is any express
-agreement or commitment, however denominated, not to enforce a patent
-(such as an express permission to practice a patent or covenant not to
-sue for patent infringement). To "grant" such a patent license to a
-party means to make such an agreement or commitment not to enforce a
-patent against the party.
-
- If you convey a covered work, knowingly relying on a patent license,
-and the Corresponding Source of the work is not available for anyone
-to copy, free of charge and under the terms of this License, through a
-publicly available network server or other readily accessible means,
-then you must either (1) cause the Corresponding Source to be so
-available, or (2) arrange to deprive yourself of the benefit of the
-patent license for this particular work, or (3) arrange, in a manner
-consistent with the requirements of this License, to extend the patent
-license to downstream recipients. "Knowingly relying" means you have
-actual knowledge that, but for the patent license, your conveying the
-covered work in a country, or your recipient's use of the covered work
-in a country, would infringe one or more identifiable patents in that
-country that you have reason to believe are valid.
-
- If, pursuant to or in connection with a single transaction or
-arrangement, you convey, or propagate by procuring conveyance of, a
-covered work, and grant a patent license to some of the parties
-receiving the covered work authorizing them to use, propagate, modify
-or convey a specific copy of the covered work, then the patent license
-you grant is automatically extended to all recipients of the covered
-work and works based on it.
-
- A patent license is "discriminatory" if it does not include within
-the scope of its coverage, prohibits the exercise of, or is
-conditioned on the non-exercise of one or more of the rights that are
-specifically granted under this License. You may not convey a covered
-work if you are a party to an arrangement with a third party that is
-in the business of distributing software, under which you make payment
-to the third party based on the extent of your activity of conveying
-the work, and under which the third party grants, to any of the
-parties who would receive the covered work from you, a discriminatory
-patent license (a) in connection with copies of the covered work
-conveyed by you (or copies made from those copies), or (b) primarily
-for and in connection with specific products or compilations that
-contain the covered work, unless you entered into that arrangement,
-or that patent license was granted, prior to 28 March 2007.
-
- Nothing in this License shall be construed as excluding or limiting
-any implied license or other defenses to infringement that may
-otherwise be available to you under applicable patent law.
-
- 12. No Surrender of Others' Freedom.
-
- If conditions are imposed on you (whether by court order, agreement or
-otherwise) that contradict the conditions of this License, they do not
-excuse you from the conditions of this License. If you cannot convey a
-covered work so as to satisfy simultaneously your obligations under this
-License and any other pertinent obligations, then as a consequence you may
-not convey it at all. For example, if you agree to terms that obligate you
-to collect a royalty for further conveying from those to whom you convey
-the Program, the only way you could satisfy both those terms and this
-License would be to refrain entirely from conveying the Program.
-
- 13. Use with the GNU Affero General Public License.
-
- Notwithstanding any other provision of this License, you have
-permission to link or combine any covered work with a work licensed
-under version 3 of the GNU Affero General Public License into a single
-combined work, and to convey the resulting work. The terms of this
-License will continue to apply to the part which is the covered work,
-but the special requirements of the GNU Affero General Public License,
-section 13, concerning interaction through a network will apply to the
-combination as such.
-
- 14. Revised Versions of this License.
-
- The Free Software Foundation may publish revised and/or new versions of
-the GNU General Public License from time to time. Such new versions will
-be similar in spirit to the present version, but may differ in detail to
-address new problems or concerns.
-
- Each version is given a distinguishing version number. If the
-Program specifies that a certain numbered version of the GNU General
-Public License "or any later version" applies to it, you have the
-option of following the terms and conditions either of that numbered
-version or of any later version published by the Free Software
-Foundation. If the Program does not specify a version number of the
-GNU General Public License, you may choose any version ever published
-by the Free Software Foundation.
-
- If the Program specifies that a proxy can decide which future
-versions of the GNU General Public License can be used, that proxy's
-public statement of acceptance of a version permanently authorizes you
-to choose that version for the Program.
-
- Later license versions may give you additional or different
-permissions. However, no additional obligations are imposed on any
-author or copyright holder as a result of your choosing to follow a
-later version.
-
- 15. Disclaimer of Warranty.
-
- THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
-APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
-HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
-OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
-THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
-IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
-ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
-
- 16. Limitation of Liability.
-
- IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
-WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
-THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
-GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
-USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
-DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
-PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
-EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
-SUCH DAMAGES.
-
- 17. Interpretation of Sections 15 and 16.
-
- If the disclaimer of warranty and limitation of liability provided
-above cannot be given local legal effect according to their terms,
-reviewing courts shall apply local law that most closely approximates
-an absolute waiver of all civil liability in connection with the
-Program, unless a warranty or assumption of liability accompanies a
-copy of the Program in return for a fee.
-
- END OF TERMS AND CONDITIONS
-
- How to Apply These Terms to Your New Programs
-
- If you develop a new program, and you want it to be of the greatest
-possible use to the public, the best way to achieve this is to make it
-free software which everyone can redistribute and change under these terms.
-
- To do so, attach the following notices to the program. It is safest
-to attach them to the start of each source file to most effectively
-state the exclusion of warranty; and each file should have at least
-the "copyright" line and a pointer to where the full notice is found.
-
-
- Copyright (C)
-
- This program is free software: you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation, either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see .
-
-Also add information on how to contact you by electronic and paper mail.
-
- If the program does terminal interaction, make it output a short
-notice like this when it starts in an interactive mode:
-
- Copyright (C)
- This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
- This is free software, and you are welcome to redistribute it
- under certain conditions; type `show c' for details.
-
-The hypothetical commands `show w' and `show c' should show the appropriate
-parts of the General Public License. Of course, your program's commands
-might be different; for a GUI interface, you would use an "about box".
-
- You should also get your employer (if you work as a programmer) or school,
-if any, to sign a "copyright disclaimer" for the program, if necessary.
-For more information on this, and how to apply and follow the GNU GPL, see
-.
-
- The GNU General Public License does not permit incorporating your program
-into proprietary programs. If your program is a subroutine library, you
-may consider it more useful to permit linking proprietary applications with
-the library. If this is what you want to do, use the GNU Lesser General
-Public License instead of this License. But first, please read
-.
+ GNU GENERAL PUBLIC LICENSE
+ Version 3, 29 June 2007
+
+ Copyright (C) 2007 Free Software Foundation, Inc.
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+ Preamble
+
+ The GNU General Public License is a free, copyleft license for
+software and other kinds of works.
+
+ The licenses for most software and other practical works are designed
+to take away your freedom to share and change the works. By contrast,
+the GNU General Public License is intended to guarantee your freedom to
+share and change all versions of a program--to make sure it remains free
+software for all its users. We, the Free Software Foundation, use the
+GNU General Public License for most of our software; it applies also to
+any other work released this way by its authors. You can apply it to
+your programs, too.
+
+ When we speak of free software, we are referring to freedom, not
+price. Our General Public Licenses are designed to make sure that you
+have the freedom to distribute copies of free software (and charge for
+them if you wish), that you receive source code or can get it if you
+want it, that you can change the software or use pieces of it in new
+free programs, and that you know you can do these things.
+
+ To protect your rights, we need to prevent others from denying you
+these rights or asking you to surrender the rights. Therefore, you have
+certain responsibilities if you distribute copies of the software, or if
+you modify it: responsibilities to respect the freedom of others.
+
+ For example, if you distribute copies of such a program, whether
+gratis or for a fee, you must pass on to the recipients the same
+freedoms that you received. You must make sure that they, too, receive
+or can get the source code. And you must show them these terms so they
+know their rights.
+
+ Developers that use the GNU GPL protect your rights with two steps:
+(1) assert copyright on the software, and (2) offer you this License
+giving you legal permission to copy, distribute and/or modify it.
+
+ For the developers' and authors' protection, the GPL clearly explains
+that there is no warranty for this free software. For both users' and
+authors' sake, the GPL requires that modified versions be marked as
+changed, so that their problems will not be attributed erroneously to
+authors of previous versions.
+
+ Some devices are designed to deny users access to install or run
+modified versions of the software inside them, although the manufacturer
+can do so. This is fundamentally incompatible with the aim of
+protecting users' freedom to change the software. The systematic
+pattern of such abuse occurs in the area of products for individuals to
+use, which is precisely where it is most unacceptable. Therefore, we
+have designed this version of the GPL to prohibit the practice for those
+products. If such problems arise substantially in other domains, we
+stand ready to extend this provision to those domains in future versions
+of the GPL, as needed to protect the freedom of users.
+
+ Finally, every program is threatened constantly by software patents.
+States should not allow patents to restrict development and use of
+software on general-purpose computers, but in those that do, we wish to
+avoid the special danger that patents applied to a free program could
+make it effectively proprietary. To prevent this, the GPL assures that
+patents cannot be used to render the program non-free.
+
+ The precise terms and conditions for copying, distribution and
+modification follow.
+
+ TERMS AND CONDITIONS
+
+ 0. Definitions.
+
+ "This License" refers to version 3 of the GNU General Public License.
+
+ "Copyright" also means copyright-like laws that apply to other kinds of
+works, such as semiconductor masks.
+
+ "The Program" refers to any copyrightable work licensed under this
+License. Each licensee is addressed as "you". "Licensees" and
+"recipients" may be individuals or organizations.
+
+ To "modify" a work means to copy from or adapt all or part of the work
+in a fashion requiring copyright permission, other than the making of an
+exact copy. The resulting work is called a "modified version" of the
+earlier work or a work "based on" the earlier work.
+
+ A "covered work" means either the unmodified Program or a work based
+on the Program.
+
+ To "propagate" a work means to do anything with it that, without
+permission, would make you directly or secondarily liable for
+infringement under applicable copyright law, except executing it on a
+computer or modifying a private copy. Propagation includes copying,
+distribution (with or without modification), making available to the
+public, and in some countries other activities as well.
+
+ To "convey" a work means any kind of propagation that enables other
+parties to make or receive copies. Mere interaction with a user through
+a computer network, with no transfer of a copy, is not conveying.
+
+ An interactive user interface displays "Appropriate Legal Notices"
+to the extent that it includes a convenient and prominently visible
+feature that (1) displays an appropriate copyright notice, and (2)
+tells the user that there is no warranty for the work (except to the
+extent that warranties are provided), that licensees may convey the
+work under this License, and how to view a copy of this License. If
+the interface presents a list of user commands or options, such as a
+menu, a prominent item in the list meets this criterion.
+
+ 1. Source Code.
+
+ The "source code" for a work means the preferred form of the work
+for making modifications to it. "Object code" means any non-source
+form of a work.
+
+ A "Standard Interface" means an interface that either is an official
+standard defined by a recognized standards body, or, in the case of
+interfaces specified for a particular programming language, one that
+is widely used among developers working in that language.
+
+ The "System Libraries" of an executable work include anything, other
+than the work as a whole, that (a) is included in the normal form of
+packaging a Major Component, but which is not part of that Major
+Component, and (b) serves only to enable use of the work with that
+Major Component, or to implement a Standard Interface for which an
+implementation is available to the public in source code form. A
+"Major Component", in this context, means a major essential component
+(kernel, window system, and so on) of the specific operating system
+(if any) on which the executable work runs, or a compiler used to
+produce the work, or an object code interpreter used to run it.
+
+ The "Corresponding Source" for a work in object code form means all
+the source code needed to generate, install, and (for an executable
+work) run the object code and to modify the work, including scripts to
+control those activities. However, it does not include the work's
+System Libraries, or general-purpose tools or generally available free
+programs which are used unmodified in performing those activities but
+which are not part of the work. For example, Corresponding Source
+includes interface definition files associated with source files for
+the work, and the source code for shared libraries and dynamically
+linked subprograms that the work is specifically designed to require,
+such as by intimate data communication or control flow between those
+subprograms and other parts of the work.
+
+ The Corresponding Source need not include anything that users
+can regenerate automatically from other parts of the Corresponding
+Source.
+
+ The Corresponding Source for a work in source code form is that
+same work.
+
+ 2. Basic Permissions.
+
+ All rights granted under this License are granted for the term of
+copyright on the Program, and are irrevocable provided the stated
+conditions are met. This License explicitly affirms your unlimited
+permission to run the unmodified Program. The output from running a
+covered work is covered by this License only if the output, given its
+content, constitutes a covered work. This License acknowledges your
+rights of fair use or other equivalent, as provided by copyright law.
+
+ You may make, run and propagate covered works that you do not
+convey, without conditions so long as your license otherwise remains
+in force. You may convey covered works to others for the sole purpose
+of having them make modifications exclusively for you, or provide you
+with facilities for running those works, provided that you comply with
+the terms of this License in conveying all material for which you do
+not control copyright. Those thus making or running the covered works
+for you must do so exclusively on your behalf, under your direction
+and control, on terms that prohibit them from making any copies of
+your copyrighted material outside their relationship with you.
+
+ Conveying under any other circumstances is permitted solely under
+the conditions stated below. Sublicensing is not allowed; section 10
+makes it unnecessary.
+
+ 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
+
+ No covered work shall be deemed part of an effective technological
+measure under any applicable law fulfilling obligations under article
+11 of the WIPO copyright treaty adopted on 20 December 1996, or
+similar laws prohibiting or restricting circumvention of such
+measures.
+
+ When you convey a covered work, you waive any legal power to forbid
+circumvention of technological measures to the extent such circumvention
+is effected by exercising rights under this License with respect to
+the covered work, and you disclaim any intention to limit operation or
+modification of the work as a means of enforcing, against the work's
+users, your or third parties' legal rights to forbid circumvention of
+technological measures.
+
+ 4. Conveying Verbatim Copies.
+
+ You may convey verbatim copies of the Program's source code as you
+receive it, in any medium, provided that you conspicuously and
+appropriately publish on each copy an appropriate copyright notice;
+keep intact all notices stating that this License and any
+non-permissive terms added in accord with section 7 apply to the code;
+keep intact all notices of the absence of any warranty; and give all
+recipients a copy of this License along with the Program.
+
+ You may charge any price or no price for each copy that you convey,
+and you may offer support or warranty protection for a fee.
+
+ 5. Conveying Modified Source Versions.
+
+ You may convey a work based on the Program, or the modifications to
+produce it from the Program, in the form of source code under the
+terms of section 4, provided that you also meet all of these conditions:
+
+ a) The work must carry prominent notices stating that you modified
+ it, and giving a relevant date.
+
+ b) The work must carry prominent notices stating that it is
+ released under this License and any conditions added under section
+ 7. This requirement modifies the requirement in section 4 to
+ "keep intact all notices".
+
+ c) You must license the entire work, as a whole, under this
+ License to anyone who comes into possession of a copy. This
+ License will therefore apply, along with any applicable section 7
+ additional terms, to the whole of the work, and all its parts,
+ regardless of how they are packaged. This License gives no
+ permission to license the work in any other way, but it does not
+ invalidate such permission if you have separately received it.
+
+ d) If the work has interactive user interfaces, each must display
+ Appropriate Legal Notices; however, if the Program has interactive
+ interfaces that do not display Appropriate Legal Notices, your
+ work need not make them do so.
+
+ A compilation of a covered work with other separate and independent
+works, which are not by their nature extensions of the covered work,
+and which are not combined with it such as to form a larger program,
+in or on a volume of a storage or distribution medium, is called an
+"aggregate" if the compilation and its resulting copyright are not
+used to limit the access or legal rights of the compilation's users
+beyond what the individual works permit. Inclusion of a covered work
+in an aggregate does not cause this License to apply to the other
+parts of the aggregate.
+
+ 6. Conveying Non-Source Forms.
+
+ You may convey a covered work in object code form under the terms
+of sections 4 and 5, provided that you also convey the
+machine-readable Corresponding Source under the terms of this License,
+in one of these ways:
+
+ a) Convey the object code in, or embodied in, a physical product
+ (including a physical distribution medium), accompanied by the
+ Corresponding Source fixed on a durable physical medium
+ customarily used for software interchange.
+
+ b) Convey the object code in, or embodied in, a physical product
+ (including a physical distribution medium), accompanied by a
+ written offer, valid for at least three years and valid for as
+ long as you offer spare parts or customer support for that product
+ model, to give anyone who possesses the object code either (1) a
+ copy of the Corresponding Source for all the software in the
+ product that is covered by this License, on a durable physical
+ medium customarily used for software interchange, for a price no
+ more than your reasonable cost of physically performing this
+ conveying of source, or (2) access to copy the
+ Corresponding Source from a network server at no charge.
+
+ c) Convey individual copies of the object code with a copy of the
+ written offer to provide the Corresponding Source. This
+ alternative is allowed only occasionally and noncommercially, and
+ only if you received the object code with such an offer, in accord
+ with subsection 6b.
+
+ d) Convey the object code by offering access from a designated
+ place (gratis or for a charge), and offer equivalent access to the
+ Corresponding Source in the same way through the same place at no
+ further charge. You need not require recipients to copy the
+ Corresponding Source along with the object code. If the place to
+ copy the object code is a network server, the Corresponding Source
+ may be on a different server (operated by you or a third party)
+ that supports equivalent copying facilities, provided you maintain
+ clear directions next to the object code saying where to find the
+ Corresponding Source. Regardless of what server hosts the
+ Corresponding Source, you remain obligated to ensure that it is
+ available for as long as needed to satisfy these requirements.
+
+ e) Convey the object code using peer-to-peer transmission, provided
+ you inform other peers where the object code and Corresponding
+ Source of the work are being offered to the general public at no
+ charge under subsection 6d.
+
+ A separable portion of the object code, whose source code is excluded
+from the Corresponding Source as a System Library, need not be
+included in conveying the object code work.
+
+ A "User Product" is either (1) a "consumer product", which means any
+tangible personal property which is normally used for personal, family,
+or household purposes, or (2) anything designed or sold for incorporation
+into a dwelling. In determining whether a product is a consumer product,
+doubtful cases shall be resolved in favor of coverage. For a particular
+product received by a particular user, "normally used" refers to a
+typical or common use of that class of product, regardless of the status
+of the particular user or of the way in which the particular user
+actually uses, or expects or is expected to use, the product. A product
+is a consumer product regardless of whether the product has substantial
+commercial, industrial or non-consumer uses, unless such uses represent
+the only significant mode of use of the product.
+
+ "Installation Information" for a User Product means any methods,
+procedures, authorization keys, or other information required to install
+and execute modified versions of a covered work in that User Product from
+a modified version of its Corresponding Source. The information must
+suffice to ensure that the continued functioning of the modified object
+code is in no case prevented or interfered with solely because
+modification has been made.
+
+ If you convey an object code work under this section in, or with, or
+specifically for use in, a User Product, and the conveying occurs as
+part of a transaction in which the right of possession and use of the
+User Product is transferred to the recipient in perpetuity or for a
+fixed term (regardless of how the transaction is characterized), the
+Corresponding Source conveyed under this section must be accompanied
+by the Installation Information. But this requirement does not apply
+if neither you nor any third party retains the ability to install
+modified object code on the User Product (for example, the work has
+been installed in ROM).
+
+ The requirement to provide Installation Information does not include a
+requirement to continue to provide support service, warranty, or updates
+for a work that has been modified or installed by the recipient, or for
+the User Product in which it has been modified or installed. Access to a
+network may be denied when the modification itself materially and
+adversely affects the operation of the network or violates the rules and
+protocols for communication across the network.
+
+ Corresponding Source conveyed, and Installation Information provided,
+in accord with this section must be in a format that is publicly
+documented (and with an implementation available to the public in
+source code form), and must require no special password or key for
+unpacking, reading or copying.
+
+ 7. Additional Terms.
+
+ "Additional permissions" are terms that supplement the terms of this
+License by making exceptions from one or more of its conditions.
+Additional permissions that are applicable to the entire Program shall
+be treated as though they were included in this License, to the extent
+that they are valid under applicable law. If additional permissions
+apply only to part of the Program, that part may be used separately
+under those permissions, but the entire Program remains governed by
+this License without regard to the additional permissions.
+
+ When you convey a copy of a covered work, you may at your option
+remove any additional permissions from that copy, or from any part of
+it. (Additional permissions may be written to require their own
+removal in certain cases when you modify the work.) You may place
+additional permissions on material, added by you to a covered work,
+for which you have or can give appropriate copyright permission.
+
+ Notwithstanding any other provision of this License, for material you
+add to a covered work, you may (if authorized by the copyright holders of
+that material) supplement the terms of this License with terms:
+
+ a) Disclaiming warranty or limiting liability differently from the
+ terms of sections 15 and 16 of this License; or
+
+ b) Requiring preservation of specified reasonable legal notices or
+ author attributions in that material or in the Appropriate Legal
+ Notices displayed by works containing it; or
+
+ c) Prohibiting misrepresentation of the origin of that material, or
+ requiring that modified versions of such material be marked in
+ reasonable ways as different from the original version; or
+
+ d) Limiting the use for publicity purposes of names of licensors or
+ authors of the material; or
+
+ e) Declining to grant rights under trademark law for use of some
+ trade names, trademarks, or service marks; or
+
+ f) Requiring indemnification of licensors and authors of that
+ material by anyone who conveys the material (or modified versions of
+ it) with contractual assumptions of liability to the recipient, for
+ any liability that these contractual assumptions directly impose on
+ those licensors and authors.
+
+ All other non-permissive additional terms are considered "further
+restrictions" within the meaning of section 10. If the Program as you
+received it, or any part of it, contains a notice stating that it is
+governed by this License along with a term that is a further
+restriction, you may remove that term. If a license document contains
+a further restriction but permits relicensing or conveying under this
+License, you may add to a covered work material governed by the terms
+of that license document, provided that the further restriction does
+not survive such relicensing or conveying.
+
+ If you add terms to a covered work in accord with this section, you
+must place, in the relevant source files, a statement of the
+additional terms that apply to those files, or a notice indicating
+where to find the applicable terms.
+
+ Additional terms, permissive or non-permissive, may be stated in the
+form of a separately written license, or stated as exceptions;
+the above requirements apply either way.
+
+ 8. Termination.
+
+ You may not propagate or modify a covered work except as expressly
+provided under this License. Any attempt otherwise to propagate or
+modify it is void, and will automatically terminate your rights under
+this License (including any patent licenses granted under the third
+paragraph of section 11).
+
+ However, if you cease all violation of this License, then your
+license from a particular copyright holder is reinstated (a)
+provisionally, unless and until the copyright holder explicitly and
+finally terminates your license, and (b) permanently, if the copyright
+holder fails to notify you of the violation by some reasonable means
+prior to 60 days after the cessation.
+
+ Moreover, your license from a particular copyright holder is
+reinstated permanently if the copyright holder notifies you of the
+violation by some reasonable means, this is the first time you have
+received notice of violation of this License (for any work) from that
+copyright holder, and you cure the violation prior to 30 days after
+your receipt of the notice.
+
+ Termination of your rights under this section does not terminate the
+licenses of parties who have received copies or rights from you under
+this License. If your rights have been terminated and not permanently
+reinstated, you do not qualify to receive new licenses for the same
+material under section 10.
+
+ 9. Acceptance Not Required for Having Copies.
+
+ You are not required to accept this License in order to receive or
+run a copy of the Program. Ancillary propagation of a covered work
+occurring solely as a consequence of using peer-to-peer transmission
+to receive a copy likewise does not require acceptance. However,
+nothing other than this License grants you permission to propagate or
+modify any covered work. These actions infringe copyright if you do
+not accept this License. Therefore, by modifying or propagating a
+covered work, you indicate your acceptance of this License to do so.
+
+ 10. Automatic Licensing of Downstream Recipients.
+
+ Each time you convey a covered work, the recipient automatically
+receives a license from the original licensors, to run, modify and
+propagate that work, subject to this License. You are not responsible
+for enforcing compliance by third parties with this License.
+
+ An "entity transaction" is a transaction transferring control of an
+organization, or substantially all assets of one, or subdividing an
+organization, or merging organizations. If propagation of a covered
+work results from an entity transaction, each party to that
+transaction who receives a copy of the work also receives whatever
+licenses to the work the party's predecessor in interest had or could
+give under the previous paragraph, plus a right to possession of the
+Corresponding Source of the work from the predecessor in interest, if
+the predecessor has it or can get it with reasonable efforts.
+
+ You may not impose any further restrictions on the exercise of the
+rights granted or affirmed under this License. For example, you may
+not impose a license fee, royalty, or other charge for exercise of
+rights granted under this License, and you may not initiate litigation
+(including a cross-claim or counterclaim in a lawsuit) alleging that
+any patent claim is infringed by making, using, selling, offering for
+sale, or importing the Program or any portion of it.
+
+ 11. Patents.
+
+ A "contributor" is a copyright holder who authorizes use under this
+License of the Program or a work on which the Program is based. The
+work thus licensed is called the contributor's "contributor version".
+
+ A contributor's "essential patent claims" are all patent claims
+owned or controlled by the contributor, whether already acquired or
+hereafter acquired, that would be infringed by some manner, permitted
+by this License, of making, using, or selling its contributor version,
+but do not include claims that would be infringed only as a
+consequence of further modification of the contributor version. For
+purposes of this definition, "control" includes the right to grant
+patent sublicenses in a manner consistent with the requirements of
+this License.
+
+ Each contributor grants you a non-exclusive, worldwide, royalty-free
+patent license under the contributor's essential patent claims, to
+make, use, sell, offer for sale, import and otherwise run, modify and
+propagate the contents of its contributor version.
+
+ In the following three paragraphs, a "patent license" is any express
+agreement or commitment, however denominated, not to enforce a patent
+(such as an express permission to practice a patent or covenant not to
+sue for patent infringement). To "grant" such a patent license to a
+party means to make such an agreement or commitment not to enforce a
+patent against the party.
+
+ If you convey a covered work, knowingly relying on a patent license,
+and the Corresponding Source of the work is not available for anyone
+to copy, free of charge and under the terms of this License, through a
+publicly available network server or other readily accessible means,
+then you must either (1) cause the Corresponding Source to be so
+available, or (2) arrange to deprive yourself of the benefit of the
+patent license for this particular work, or (3) arrange, in a manner
+consistent with the requirements of this License, to extend the patent
+license to downstream recipients. "Knowingly relying" means you have
+actual knowledge that, but for the patent license, your conveying the
+covered work in a country, or your recipient's use of the covered work
+in a country, would infringe one or more identifiable patents in that
+country that you have reason to believe are valid.
+
+ If, pursuant to or in connection with a single transaction or
+arrangement, you convey, or propagate by procuring conveyance of, a
+covered work, and grant a patent license to some of the parties
+receiving the covered work authorizing them to use, propagate, modify
+or convey a specific copy of the covered work, then the patent license
+you grant is automatically extended to all recipients of the covered
+work and works based on it.
+
+ A patent license is "discriminatory" if it does not include within
+the scope of its coverage, prohibits the exercise of, or is
+conditioned on the non-exercise of one or more of the rights that are
+specifically granted under this License. You may not convey a covered
+work if you are a party to an arrangement with a third party that is
+in the business of distributing software, under which you make payment
+to the third party based on the extent of your activity of conveying
+the work, and under which the third party grants, to any of the
+parties who would receive the covered work from you, a discriminatory
+patent license (a) in connection with copies of the covered work
+conveyed by you (or copies made from those copies), or (b) primarily
+for and in connection with specific products or compilations that
+contain the covered work, unless you entered into that arrangement,
+or that patent license was granted, prior to 28 March 2007.
+
+ Nothing in this License shall be construed as excluding or limiting
+any implied license or other defenses to infringement that may
+otherwise be available to you under applicable patent law.
+
+ 12. No Surrender of Others' Freedom.
+
+ If conditions are imposed on you (whether by court order, agreement or
+otherwise) that contradict the conditions of this License, they do not
+excuse you from the conditions of this License. If you cannot convey a
+covered work so as to satisfy simultaneously your obligations under this
+License and any other pertinent obligations, then as a consequence you may
+not convey it at all. For example, if you agree to terms that obligate you
+to collect a royalty for further conveying from those to whom you convey
+the Program, the only way you could satisfy both those terms and this
+License would be to refrain entirely from conveying the Program.
+
+ 13. Use with the GNU Affero General Public License.
+
+ Notwithstanding any other provision of this License, you have
+permission to link or combine any covered work with a work licensed
+under version 3 of the GNU Affero General Public License into a single
+combined work, and to convey the resulting work. The terms of this
+License will continue to apply to the part which is the covered work,
+but the special requirements of the GNU Affero General Public License,
+section 13, concerning interaction through a network will apply to the
+combination as such.
+
+ 14. Revised Versions of this License.
+
+ The Free Software Foundation may publish revised and/or new versions of
+the GNU General Public License from time to time. Such new versions will
+be similar in spirit to the present version, but may differ in detail to
+address new problems or concerns.
+
+ Each version is given a distinguishing version number. If the
+Program specifies that a certain numbered version of the GNU General
+Public License "or any later version" applies to it, you have the
+option of following the terms and conditions either of that numbered
+version or of any later version published by the Free Software
+Foundation. If the Program does not specify a version number of the
+GNU General Public License, you may choose any version ever published
+by the Free Software Foundation.
+
+ If the Program specifies that a proxy can decide which future
+versions of the GNU General Public License can be used, that proxy's
+public statement of acceptance of a version permanently authorizes you
+to choose that version for the Program.
+
+ Later license versions may give you additional or different
+permissions. However, no additional obligations are imposed on any
+author or copyright holder as a result of your choosing to follow a
+later version.
+
+ 15. Disclaimer of Warranty.
+
+ THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
+APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
+HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
+OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
+THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
+IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
+ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
+
+ 16. Limitation of Liability.
+
+ IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
+THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
+GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
+USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
+DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
+PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
+EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
+SUCH DAMAGES.
+
+ 17. Interpretation of Sections 15 and 16.
+
+ If the disclaimer of warranty and limitation of liability provided
+above cannot be given local legal effect according to their terms,
+reviewing courts shall apply local law that most closely approximates
+an absolute waiver of all civil liability in connection with the
+Program, unless a warranty or assumption of liability accompanies a
+copy of the Program in return for a fee.
+
+ END OF TERMS AND CONDITIONS
+
+ How to Apply These Terms to Your New Programs
+
+ If you develop a new program, and you want it to be of the greatest
+possible use to the public, the best way to achieve this is to make it
+free software which everyone can redistribute and change under these terms.
+
+ To do so, attach the following notices to the program. It is safest
+to attach them to the start of each source file to most effectively
+state the exclusion of warranty; and each file should have at least
+the "copyright" line and a pointer to where the full notice is found.
+
+
+ Copyright (C)
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see .
+
+Also add information on how to contact you by electronic and paper mail.
+
+ If the program does terminal interaction, make it output a short
+notice like this when it starts in an interactive mode:
+
+ Copyright (C)
+ This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
+ This is free software, and you are welcome to redistribute it
+ under certain conditions; type `show c' for details.
+
+The hypothetical commands `show w' and `show c' should show the appropriate
+parts of the General Public License. Of course, your program's commands
+might be different; for a GUI interface, you would use an "about box".
+
+ You should also get your employer (if you work as a programmer) or school,
+if any, to sign a "copyright disclaimer" for the program, if necessary.
+For more information on this, and how to apply and follow the GNU GPL, see
+.
+
+ The GNU General Public License does not permit incorporating your program
+into proprietary programs. If your program is a subroutine library, you
+may consider it more useful to permit linking proprietary applications with
+the library. If this is what you want to do, use the GNU Lesser General
+Public License instead of this License. But first, please read
+.
diff --git a/README.md b/README.md
index 6a98d77..6e8c5cd 100644
--- a/README.md
+++ b/README.md
@@ -1,192 +1,192 @@
-[![Tsacdop Banner][]][google play]
-
-[![github action][]][github action link]
-[![Build Status - Cirrus][]][build status]
-[![GitHub Release][]][github release - recent]
-[![Github Downloads][]][github release - recent]
-[![Localizely][]][localizely - website]
-[![style: effective dart][]][effective dart pub]
-[![License badge][]][license]
-
-## About
-
-Enjoy podcasts with Tsacdop.
-
-Tsacdop is a podcast player developed with Flutter, a clean, simply beautiful and friendly app, which is also free and open source.
-
-Credit to Flutter team and all involved plugins, especially [webfeed](https://github.com/witochandra/webfeed) and [Just_Audio](https://pub.dev/packages/just_audio).
-
-The podcast search engine is powered by [ListenNotes](https://listennotes.com).
-
-## Features
-
-* Podcast group management
-* Playlist support
-* Sleep timer / speed setting
-* OPML file export and import
-* Auto syncing in background
-* Listening and subscription history record
-* Dark mode / accent color
-* Download for offline play
-* Auto download new episodes / auto delete outdated downloads
-* Settings backup
-* Skip silence
-* Boost volume
-
-More to come...
-
-## Preview
-
-| Home Page | Group | Podcast | Episode| Dark Mode |
-| ----- | ----- | ----- | ------ | ----- |
-|![][Homepage ScreenShot]|![][Group Screenshot] | ![][Podcast Screenshot] | ![][Episode Screenshot]| ![][Darkmode Screenshot] |
-
-## Localization
-
-Please [Email](mailto:) me you'd like to contribute to support more languages!
-
-Credit to [Localizely](https://localizely.com/) for kind support to open source projects.
-
-### ![English]
-
-### ![Chinese Simplified]
-
-### ![French]
-
-### ![Spanish]
-
-### ![Portuguese]
-
-## License
-
-Tsacdop is licensed under the [GPL v3.0](https://github.com/stonega/tsacdop/blob/master/LICENSE) license.
-
-## Build
-
-1. If you don't have Flutter SDK installed, please visit offcial [Flutter][Flutter Install] site.
-2. Fetch latest sorce code from master branch.
-
-```
-git clone https://github.com/stonega/tsacdop.git
-```
-
-3. Add api search api configure file.
-
-Tsacdop uses ListenNotes API 1.0 pro to search for podcasts, which is not free, so I can not expose the API key in the repo.
-If you want to build the app, you need to create a new file named `.env.dart` in lib folder. Add the following code to `.env.dart` .
-You can get your own API key on [ListenNotes](https://www.listennotes.com/api/), remember that you need to get pro plan API, because basic plan dosen't provide rss link for serach result. If no api key is added, the search function in the app won't work. But you can still add podcasts by using an RSS link or importing an OMPL file.
-
-``` dart
-final environment = {"apiKey":"APIKEY"};
-```
-
-4. Run the app with Android Studio or Visual Studio. Or the command line.
-
-```
-flutter pub get
-flutter run
-```
-
-## Contribute
-
-If you have an issue or found a bug, please raise a GitHub issue. Pull requests are also welcome.
-
-## Archetecture
-
-### Plugins
-
-* Local storage
- + sqflite
- + shared_preferences
-* Audio
- + just_audio
- + audio_service
-* State management
- + provider
-* Download
- + flutter_downloader
-* Background task
- + workmanager
-
-### Directory Structure
-
-```
-UI
-src
-├──home
- ├──home.dart [Homepage]
- ├──searc_podcast.dart [Search Page]
- └──playlist.dart [Playlist Page]
-├──podcasts
- ├──podcast_manage.dart [Group Page]
- └──podcast_detail.dart [Podcast Page]
-├──episodes
- └──episode_detail.dart [Episode Page]
-├──settings
- └──setting.dart [Setting Page]
-
-STATE
-src
-├──state
- ├──audio_state.dart [Audio State]
- ├──download_state.dart [Episode Download]
- ├──podcast_group.dart [Podcast Groups]
- ├──refresh_podcast.dart [Episode Refresh]
- └──setting_state.dart [Setting]
-
-Service
-src
-├──service
- ├──api_service.dart [Podcast Search]
- └──ompl_builde.dart [OMPL export]
-```
-
-## Known Issue
-
-* Playlist is unstable
-
-## Contact
-
-You can reach out to me directly at [tsacdop.app@gmail.com](mailto:).
-
-Or you can join our [Telegram Group](https://t.me/joinchat/Bk3LkRpTHy40QYC78PK7Qg).
-
-## Getting Started with Flutter
-
-This project is a starting point for a Flutter application.
-
-Here are a few resources to get you started if this is your first Flutter project:
-
-* [Lab: Write your first Flutter app](https://flutter.dev/docs/get-started/codelab)
-* [Cookbook: Useful Flutter samples](https://flutter.dev/docs/cookbook)
-
-For help getting started with Flutter, view our
-[online documentation](https://flutter.dev/docs), which offers tutorials, samples, guidance on mobile development, and a full API reference.
-
-[Flutter Install]: https://flutter.dev/docs/get-started/install
-[tsacdop banner]: https://raw.githubusercontent.com/stonega/tsacdop/master/preview/banner.png
-[build status - cirrus]: https://circleci.com/gh/stonega/tsacdop/tree/master.svg?style=shield
-[github action]: https://github.com/stonega/tsacdop/workflows/Flutter%20Build/badge.svg
-[github action link]: https://github.com/stonega/tsacdop/actions
-[build status ]: https://circleci.com/gh/stonega/tsacdop/tree/master
-[github release]: https://img.shields.io/github/v/release/stonega/tsacdop
-[github release - recent]: https://github.com/stonega/tsacdop/releases
-[github downloads]: https://img.shields.io/github/downloads/stonega/tsacdop/total?color=%230000d&label=downloads
-[localizely]: https://img.shields.io/badge/dynamic/json?color=%2326c6da&label=localizely&query=%24.languages.length&url=https%3A%2F%2Fapi.localizely.com%2Fv1%2Fprojects%2Fbde4e9bd-4cb2-449b-9de2-18f231ddb47d%2Fstatus
-[English]: https://img.shields.io/badge/dynamic/json?style=for-the-badge&color=%2323CCC6&label=English&query=%24.languages%5B3%5D.reviewedProgress&url=https%3A%2F%2Fapi.localizely.com%2Fv1%2Fprojects%2Fbde4e9bd-4cb2-449b-9de2-18f231ddb47d%2Fstatus&suffix=%
-[Chinese Simplified]: https://img.shields.io/badge/dynamic/json?style=for-the-badge&color=%2323CCC6&label=Chinese%20Simplified&query=%24.languages%5B2%5D.reviewedProgress&url=https%3A%2F%2Fapi.localizely.com%2Fv1%2Fprojects%2Fbde4e9bd-4cb2-449b-9de2-18f231ddb47d%2Fstatus&suffix=%
-[French]: https://img.shields.io/badge/dynamic/json?style=for-the-badge&color=%2323CCC6&label=French(ppp)&query=%24.languages%5B5%5D.reviewedProgress&url=https%3A%2F%2Fapi.localizely.com%2Fv1%2Fprojects%2Fbde4e9bd-4cb2-449b-9de2-18f231ddb47d%2Fstatus&suffix=%
-[Spanish]: https://img.shields.io/badge/dynamic/json?style=for-the-badge&color=%2323CCC6&label=Spanish(Joel)&query=%24.languages%5B7%5D.reviewedProgress&url=https%3A%2F%2Fapi.localizely.com%2Fv1%2Fprojects%2Fbde4e9bd-4cb2-449b-9de2-18f231ddb47d%2Fstatus&suffix=%
-[Portuguese]: https://img.shields.io/badge/dynamic/json?style=for-the-badge&color=%2323CCC6&label=portuguese(Bruno)&query=%24.languages%5B9%5D.reviewedProgress&url=https%3A%2F%2Fapi.localizely.com%2Fv1%2Fprojects%2Fbde4e9bd-4cb2-449b-9de2-18f231ddb47d%2Fstatus&suffix=%
-[localizely - website]: https://localizely.com/
-[google play - icon]: https://img.shields.io/badge/google-playStore-%2323CCC6
-[google play]: https://play.google.com/store/apps/details?id=com.stonegate.tsacdop
-[Homepage ScreenShot]: https://raw.githubusercontent.com/stonega/tsacdop/master/preview/1585893838840.png
-[Group Screenshot]: https://raw.githubusercontent.com/stonega/tsacdop/master/preview/1585894051734.png
-[Podcast Screenshot]: https://raw.githubusercontent.com/stonega/tsacdop/master/preview/1585893877702.png
-[Episode Screenshot]: https://raw.githubusercontent.com/stonega/tsacdop/master/preview/1585896237809.png
-[Darkmode Screenshot]: https://raw.githubusercontent.com/stonega/tsacdop/master/preview/1585893920721.png
-[style: effective dart]: https://img.shields.io/badge/style-effective_dart-40c4ff.svg
-[effective dart pub]: https://pub.dev/packages/effective_dart
-[license]: https://github.com/stonega/tsacdop/blob/master/LICENSE
-[License badge]: https://img.shields.io/badge/license-GPLv3-yellow.svg
+[![Tsacdop Banner][]][google play]
+
+[![github action][]][github action link]
+[![Build Status - Cirrus][]][build status]
+[![GitHub Release][]][github release - recent]
+[![Github Downloads][]][github release - recent]
+[![Localizely][]][localizely - website]
+[![style: effective dart][]][effective dart pub]
+[![License badge][]][license]
+
+## About
+
+Enjoy podcasts with Tsacdop.
+
+Tsacdop is a podcast player developed with Flutter, a clean, simply beautiful and friendly app, which is also free and open source.
+
+Credit to Flutter team and all involved plugins, especially [webfeed](https://github.com/witochandra/webfeed) and [Just_Audio](https://pub.dev/packages/just_audio).
+
+The podcast search engine is powered by [ListenNotes](https://listennotes.com).
+
+## Features
+
+* Podcast group management
+* Playlist support
+* Sleep timer / speed setting
+* OPML file export and import
+* Auto syncing in background
+* Listening and subscription history record
+* Dark mode / accent color
+* Download for offline play
+* Auto download new episodes / auto delete outdated downloads
+* Settings backup
+* Skip silence
+* Boost volume
+
+More to come...
+
+## Preview
+
+| Home Page | Group | Podcast | Episode| Dark Mode |
+| ----- | ----- | ----- | ------ | ----- |
+|![][Homepage ScreenShot]|![][Group Screenshot] | ![][Podcast Screenshot] | ![][Episode Screenshot]| ![][Darkmode Screenshot] |
+
+## Localization
+
+Please [Email](mailto:) me you'd like to contribute to support more languages!
+
+Credit to [Localizely](https://localizely.com/) for kind support to open source projects.
+
+### ![English]
+
+### ![Chinese Simplified]
+
+### ![French]
+
+### ![Spanish]
+
+### ![Portuguese]
+
+## License
+
+Tsacdop is licensed under the [GPL v3.0](https://github.com/stonega/tsacdop/blob/master/LICENSE) license.
+
+## Build
+
+1. If you don't have Flutter SDK installed, please visit offcial [Flutter][Flutter Install] site.
+2. Fetch latest sorce code from master branch.
+
+```
+git clone https://github.com/stonega/tsacdop.git
+```
+
+3. Add api search api configure file.
+
+Tsacdop uses ListenNotes API 1.0 pro to search for podcasts, which is not free, so I can not expose the API key in the repo.
+If you want to build the app, you need to create a new file named `.env.dart` in lib folder. Add the following code to `.env.dart` .
+You can get your own API key on [ListenNotes](https://www.listennotes.com/api/), remember that you need to get pro plan API, because basic plan dosen't provide rss link for serach result. If no api key is added, the search function in the app won't work. But you can still add podcasts by using an RSS link or importing an OMPL file.
+
+``` dart
+final environment = {"apiKey":"APIKEY"};
+```
+
+4. Run the app with Android Studio or Visual Studio. Or the command line.
+
+```
+flutter pub get
+flutter run
+```
+
+## Contribute
+
+If you have an issue or found a bug, please raise a GitHub issue. Pull requests are also welcome.
+
+## Archetecture
+
+### Plugins
+
+* Local storage
+ + sqflite
+ + shared_preferences
+* Audio
+ + just_audio
+ + audio_service
+* State management
+ + provider
+* Download
+ + flutter_downloader
+* Background task
+ + workmanager
+
+### Directory Structure
+
+```
+UI
+src
+├──home
+ ├──home.dart [Homepage]
+ ├──searc_podcast.dart [Search Page]
+ └──playlist.dart [Playlist Page]
+├──podcasts
+ ├──podcast_manage.dart [Group Page]
+ └──podcast_detail.dart [Podcast Page]
+├──episodes
+ └──episode_detail.dart [Episode Page]
+├──settings
+ └──setting.dart [Setting Page]
+
+STATE
+src
+├──state
+ ├──audio_state.dart [Audio State]
+ ├──download_state.dart [Episode Download]
+ ├──podcast_group.dart [Podcast Groups]
+ ├──refresh_podcast.dart [Episode Refresh]
+ └──setting_state.dart [Setting]
+
+Service
+src
+├──service
+ ├──api_service.dart [Podcast Search]
+ └──ompl_builde.dart [OMPL export]
+```
+
+## Known Issue
+
+* Playlist is unstable
+
+## Contact
+
+You can reach out to me directly at [tsacdop.app@gmail.com](mailto:).
+
+Or you can join our [Telegram Group](https://t.me/joinchat/Bk3LkRpTHy40QYC78PK7Qg).
+
+## Getting Started with Flutter
+
+This project is a starting point for a Flutter application.
+
+Here are a few resources to get you started if this is your first Flutter project:
+
+* [Lab: Write your first Flutter app](https://flutter.dev/docs/get-started/codelab)
+* [Cookbook: Useful Flutter samples](https://flutter.dev/docs/cookbook)
+
+For help getting started with Flutter, view our
+[online documentation](https://flutter.dev/docs), which offers tutorials, samples, guidance on mobile development, and a full API reference.
+
+[Flutter Install]: https://flutter.dev/docs/get-started/install
+[tsacdop banner]: https://raw.githubusercontent.com/stonega/tsacdop/master/preview/banner.png
+[build status - cirrus]: https://circleci.com/gh/stonega/tsacdop/tree/master.svg?style=shield
+[github action]: https://github.com/stonega/tsacdop/workflows/Flutter%20Build/badge.svg
+[github action link]: https://github.com/stonega/tsacdop/actions
+[build status ]: https://circleci.com/gh/stonega/tsacdop/tree/master
+[github release]: https://img.shields.io/github/v/release/stonega/tsacdop
+[github release - recent]: https://github.com/stonega/tsacdop/releases
+[github downloads]: https://img.shields.io/github/downloads/stonega/tsacdop/total?color=%230000d&label=downloads
+[localizely]: https://img.shields.io/badge/dynamic/json?color=%2326c6da&label=localizely&query=%24.languages.length&url=https%3A%2F%2Fapi.localizely.com%2Fv1%2Fprojects%2Fbde4e9bd-4cb2-449b-9de2-18f231ddb47d%2Fstatus
+[English]: https://img.shields.io/badge/dynamic/json?style=for-the-badge&color=%2323CCC6&label=English&query=%24.languages%5B3%5D.reviewedProgress&url=https%3A%2F%2Fapi.localizely.com%2Fv1%2Fprojects%2Fbde4e9bd-4cb2-449b-9de2-18f231ddb47d%2Fstatus&suffix=%
+[Chinese Simplified]: https://img.shields.io/badge/dynamic/json?style=for-the-badge&color=%2323CCC6&label=Chinese%20Simplified&query=%24.languages%5B2%5D.reviewedProgress&url=https%3A%2F%2Fapi.localizely.com%2Fv1%2Fprojects%2Fbde4e9bd-4cb2-449b-9de2-18f231ddb47d%2Fstatus&suffix=%
+[French]: https://img.shields.io/badge/dynamic/json?style=for-the-badge&color=%2323CCC6&label=French(ppp)&query=%24.languages%5B5%5D.reviewedProgress&url=https%3A%2F%2Fapi.localizely.com%2Fv1%2Fprojects%2Fbde4e9bd-4cb2-449b-9de2-18f231ddb47d%2Fstatus&suffix=%
+[Spanish]: https://img.shields.io/badge/dynamic/json?style=for-the-badge&color=%2323CCC6&label=Spanish(Joel)&query=%24.languages%5B7%5D.reviewedProgress&url=https%3A%2F%2Fapi.localizely.com%2Fv1%2Fprojects%2Fbde4e9bd-4cb2-449b-9de2-18f231ddb47d%2Fstatus&suffix=%
+[Portuguese]: https://img.shields.io/badge/dynamic/json?style=for-the-badge&color=%2323CCC6&label=portuguese(Bruno)&query=%24.languages%5B9%5D.reviewedProgress&url=https%3A%2F%2Fapi.localizely.com%2Fv1%2Fprojects%2Fbde4e9bd-4cb2-449b-9de2-18f231ddb47d%2Fstatus&suffix=%
+[localizely - website]: https://localizely.com/
+[google play - icon]: https://img.shields.io/badge/google-playStore-%2323CCC6
+[google play]: https://play.google.com/store/apps/details?id=com.stonegate.tsacdop
+[Homepage ScreenShot]: https://raw.githubusercontent.com/stonega/tsacdop/master/preview/1585893838840.png
+[Group Screenshot]: https://raw.githubusercontent.com/stonega/tsacdop/master/preview/1585894051734.png
+[Podcast Screenshot]: https://raw.githubusercontent.com/stonega/tsacdop/master/preview/1585893877702.png
+[Episode Screenshot]: https://raw.githubusercontent.com/stonega/tsacdop/master/preview/1585896237809.png
+[Darkmode Screenshot]: https://raw.githubusercontent.com/stonega/tsacdop/master/preview/1585893920721.png
+[style: effective dart]: https://img.shields.io/badge/style-effective_dart-40c4ff.svg
+[effective dart pub]: https://pub.dev/packages/effective_dart
+[license]: https://github.com/stonega/tsacdop/blob/master/LICENSE
+[License badge]: https://img.shields.io/badge/license-GPLv3-yellow.svg
diff --git a/android/.gitignore b/android/.gitignore
index bc2100d..0b9e049 100644
--- a/android/.gitignore
+++ b/android/.gitignore
@@ -1,7 +1,7 @@
-gradle-wrapper.jar
-/.gradle
-/captures/
-/gradlew
-/gradlew.bat
-/local.properties
-GeneratedPluginRegistrant.java
+gradle-wrapper.jar
+/.gradle
+/captures/
+/gradlew
+/gradlew.bat
+/local.properties
+GeneratedPluginRegistrant.java
diff --git a/android/.project b/android/.project
index 3964dd3..549de72 100644
--- a/android/.project
+++ b/android/.project
@@ -1,17 +1,17 @@
-
-
- android
- Project android created by Buildship.
-
-
-
-
- org.eclipse.buildship.core.gradleprojectbuilder
-
-
-
-
-
- org.eclipse.buildship.core.gradleprojectnature
-
-
+
+
+ android
+ Project android created by Buildship.
+
+
+
+
+ org.eclipse.buildship.core.gradleprojectbuilder
+
+
+
+
+
+ org.eclipse.buildship.core.gradleprojectnature
+
+
diff --git a/android/.settings/org.eclipse.buildship.core.prefs b/android/.settings/org.eclipse.buildship.core.prefs
index 0f7dc43..6f65e63 100644
--- a/android/.settings/org.eclipse.buildship.core.prefs
+++ b/android/.settings/org.eclipse.buildship.core.prefs
@@ -1,13 +1,13 @@
-arguments=
-auto.sync=false
-build.scans.enabled=false
-connection.gradle.distribution=GRADLE_DISTRIBUTION(WRAPPER)
-connection.project.dir=app
-eclipse.preferences.version=1
-gradle.user.home=
-java.home=C\:/Program Files/Java/jdk1.8.0_171
-jvm.arguments=
-offline.mode=false
-override.workspace.settings=true
-show.console.view=true
-show.executions.view=true
+arguments=
+auto.sync=false
+build.scans.enabled=false
+connection.gradle.distribution=GRADLE_DISTRIBUTION(WRAPPER)
+connection.project.dir=app
+eclipse.preferences.version=1
+gradle.user.home=
+java.home=C\:/Program Files/Java/jdk1.8.0_171
+jvm.arguments=
+offline.mode=false
+override.workspace.settings=true
+show.console.view=true
+show.executions.view=true
diff --git a/android/app/.classpath b/android/app/.classpath
index eb19361..4f3f504 100644
--- a/android/app/.classpath
+++ b/android/app/.classpath
@@ -1,6 +1,6 @@
-
-
-
-
-
-
+
+
+
+
+
+
diff --git a/android/app/.project b/android/app/.project
index ac485d7..d1eb8cb 100644
--- a/android/app/.project
+++ b/android/app/.project
@@ -1,23 +1,23 @@
-
-
- app
- Project app created by Buildship.
-
-
-
-
- org.eclipse.jdt.core.javabuilder
-
-
-
-
- org.eclipse.buildship.core.gradleprojectbuilder
-
-
-
-
-
- org.eclipse.jdt.core.javanature
- org.eclipse.buildship.core.gradleprojectnature
-
-
+
+
+ app
+ Project app created by Buildship.
+
+
+
+
+ org.eclipse.jdt.core.javabuilder
+
+
+
+
+ org.eclipse.buildship.core.gradleprojectbuilder
+
+
+
+
+
+ org.eclipse.jdt.core.javanature
+ org.eclipse.buildship.core.gradleprojectnature
+
+
diff --git a/android/app/.settings/org.eclipse.buildship.core.prefs b/android/app/.settings/org.eclipse.buildship.core.prefs
index d54f9e4..aa059e5 100644
--- a/android/app/.settings/org.eclipse.buildship.core.prefs
+++ b/android/app/.settings/org.eclipse.buildship.core.prefs
@@ -1,13 +1,13 @@
-arguments=
-auto.sync=false
-build.scans.enabled=false
-connection.gradle.distribution=GRADLE_DISTRIBUTION(VERSION(6.3))
-connection.project.dir=
-eclipse.preferences.version=1
-gradle.user.home=
-java.home=C\:/Program Files/Java/jdk1.8.0_171
-jvm.arguments=
-offline.mode=false
-override.workspace.settings=true
-show.console.view=true
-show.executions.view=true
+arguments=
+auto.sync=false
+build.scans.enabled=false
+connection.gradle.distribution=GRADLE_DISTRIBUTION(VERSION(6.3))
+connection.project.dir=
+eclipse.preferences.version=1
+gradle.user.home=
+java.home=C\:/Program Files/Java/jdk1.8.0_171
+jvm.arguments=
+offline.mode=false
+override.workspace.settings=true
+show.console.view=true
+show.executions.view=true
diff --git a/android/app/.settings/org.eclipse.jdt.core.prefs b/android/app/.settings/org.eclipse.jdt.core.prefs
index 35068d9..7eeabf5 100644
--- a/android/app/.settings/org.eclipse.jdt.core.prefs
+++ b/android/app/.settings/org.eclipse.jdt.core.prefs
@@ -1,4 +1,4 @@
-eclipse.preferences.version=1
-org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8
-org.eclipse.jdt.core.compiler.compliance=1.8
-org.eclipse.jdt.core.compiler.source=1.8
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8
+org.eclipse.jdt.core.compiler.compliance=1.8
+org.eclipse.jdt.core.compiler.source=1.8
diff --git a/android/app/build.gradle b/android/app/build.gradle
index 1e14732..9278c0d 100644
--- a/android/app/build.gradle
+++ b/android/app/build.gradle
@@ -1,90 +1,90 @@
-def localProperties = new Properties()
-def localPropertiesFile = rootProject.file('local.properties')
-if (localPropertiesFile.exists()) {
- localPropertiesFile.withReader('UTF-8') { reader ->
- localProperties.load(reader)
- }
-}
-
-def flutterRoot = localProperties.getProperty('flutter.sdk')
-if (flutterRoot == null) {
- throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
-}
-
-def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
-if (flutterVersionCode == null) {
- flutterVersionCode = '1'
-}
-
-def flutterVersionName = localProperties.getProperty('flutter.versionName')
-if (flutterVersionName == null) {
- flutterVersionName = '1.0'
-}
-
-apply plugin: 'com.android.application'
-apply plugin: 'kotlin-android'
-apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
-
- def keystoreProperties = new Properties()
- def keystorePropertiesFile = rootProject.file('key.properties')
- if (keystorePropertiesFile.exists()) {
- keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
- }
-
-android {
- compileSdkVersion 29
-
- ndkVersion "21.3.6528147"
-
- sourceSets {
- main.java.srcDirs += 'src/main/kotlin'
- }
-
- lintOptions {
- disable 'InvalidPackage'
- }
-
- defaultConfig {
- // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
- applicationId "com.stonegate.tsacdop"
- minSdkVersion 19
- targetSdkVersion 29
- versionCode flutterVersionCode.toInteger()
- versionName flutterVersionName
- testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
- }
-
- signingConfigs {
- release {
- storeFile file(System.getenv("KEYSTORE") ?:"keystore.jks")
- storePassword System.getenv("KEYSTORE_PASSWORD")
- keyAlias System.getenv("KEY_ALIAS")
- keyPassword System.getenv("KEY_PASSWORD")
- // keyAlias keystoreProperties['keyAlias']
- // keyPassword keystoreProperties['keyPassword']
- // storeFile keystoreProperties['storeFile'] ? file(keystoreProperties['storeFile']) : null
- // storePassword keystoreProperties['storePassword']
- }
- }
- buildTypes {
- release {
- signingConfig signingConfigs.release
- shrinkResources false
- }
- }
-
-}
-
-flutter {
- source '../..'
-}
-
-dependencies {
- implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
- testImplementation 'junit:junit:4.13'
- androidTestImplementation 'androidx.test:runner:1.2.0'
- androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
- def appcompat_version = "1.1.0"
- implementation "androidx.appcompat:appcompat:$appcompat_version"
- implementation "androidx.appcompat:appcompat-resources:$appcompat_version"
-}
+def localProperties = new Properties()
+def localPropertiesFile = rootProject.file('local.properties')
+if (localPropertiesFile.exists()) {
+ localPropertiesFile.withReader('UTF-8') { reader ->
+ localProperties.load(reader)
+ }
+}
+
+def flutterRoot = localProperties.getProperty('flutter.sdk')
+if (flutterRoot == null) {
+ throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
+}
+
+def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
+if (flutterVersionCode == null) {
+ flutterVersionCode = '1'
+}
+
+def flutterVersionName = localProperties.getProperty('flutter.versionName')
+if (flutterVersionName == null) {
+ flutterVersionName = '1.0'
+}
+
+apply plugin: 'com.android.application'
+apply plugin: 'kotlin-android'
+apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
+
+ def keystoreProperties = new Properties()
+ def keystorePropertiesFile = rootProject.file('key.properties')
+ if (keystorePropertiesFile.exists()) {
+ keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
+ }
+
+android {
+ compileSdkVersion 29
+
+ ndkVersion "21.3.6528147"
+
+ sourceSets {
+ main.java.srcDirs += 'src/main/kotlin'
+ }
+
+ lintOptions {
+ disable 'InvalidPackage'
+ }
+
+ defaultConfig {
+ // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
+ applicationId "com.stonegate.tsacdop"
+ minSdkVersion 19
+ targetSdkVersion 29
+ versionCode flutterVersionCode.toInteger()
+ versionName flutterVersionName
+ testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
+ }
+
+ signingConfigs {
+ release {
+ storeFile file(System.getenv("KEYSTORE") ?:"keystore.jks")
+ storePassword System.getenv("KEYSTORE_PASSWORD")
+ keyAlias System.getenv("KEY_ALIAS")
+ keyPassword System.getenv("KEY_PASSWORD")
+ // keyAlias keystoreProperties['keyAlias']
+ // keyPassword keystoreProperties['keyPassword']
+ // storeFile keystoreProperties['storeFile'] ? file(keystoreProperties['storeFile']) : null
+ // storePassword keystoreProperties['storePassword']
+ }
+ }
+ buildTypes {
+ release {
+ signingConfig signingConfigs.release
+ shrinkResources false
+ }
+ }
+
+}
+
+flutter {
+ source '../..'
+}
+
+dependencies {
+ implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
+ testImplementation 'junit:junit:4.13'
+ androidTestImplementation 'androidx.test:runner:1.2.0'
+ androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
+ def appcompat_version = "1.1.0"
+ implementation "androidx.appcompat:appcompat:$appcompat_version"
+ implementation "androidx.appcompat:appcompat-resources:$appcompat_version"
+}
diff --git a/android/app/src/debug/AndroidManifest.xml b/android/app/src/debug/AndroidManifest.xml
index 35c9116..64c8d13 100644
--- a/android/app/src/debug/AndroidManifest.xml
+++ b/android/app/src/debug/AndroidManifest.xml
@@ -1,7 +1,7 @@
-
-
-
-
+
+
+
+
diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml
index 49b308a..bfa7fe2 100644
--- a/android/app/src/main/AndroidManifest.xml
+++ b/android/app/src/main/AndroidManifest.xml
@@ -1,34 +1,34 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/android/app/src/main/java/io/flutter/plugins/IsolatePluginRegistrant.java b/android/app/src/main/java/io/flutter/plugins/IsolatePluginRegistrant.java
index 9a3be85..25a9b42 100644
--- a/android/app/src/main/java/io/flutter/plugins/IsolatePluginRegistrant.java
+++ b/android/app/src/main/java/io/flutter/plugins/IsolatePluginRegistrant.java
@@ -1,39 +1,39 @@
-package io.flutter.plugins;
-
-import androidx.annotation.Keep;
-import androidx.annotation.NonNull;
-
-import io.flutter.embedding.engine.FlutterEngine;
-import io.flutter.embedding.engine.plugins.shim.ShimPluginRegistry;
-import io.flutter.plugin.common.PluginRegistry;
-import io.flutter.plugins.pathprovider.PathProviderPlugin;
-import com.tekartik.sqflite.SqflitePlugin;
-import io.flutter.plugins.sharedpreferences.SharedPreferencesPlugin;
-import vn.hunghd.flutterdownloader.FlutterDownloaderPlugin;
-
-/**
- * Generated file. Do not edit. This file is generated by the Flutter tool based
- * on the plugins that support the Android platform.
- */
-
-@Keep
-public final class IsolatePluginRegistrant {
- public static void registerWith(PluginRegistry registry) {
- if (alreadyRegisteredWith(registry)) {
- return;
- }
- PathProviderPlugin.registerWith(registry.registrarFor("io.flutter.plugins.pathprovider.PathProviderPlugin"));
- SqflitePlugin.registerWith(registry.registrarFor("com.tekartik.sqflite.SqflitePlugin"));
- SharedPreferencesPlugin.registerWith(registry.registrarFor("io.flutter.plugins.sharedpreferences.SharedPreferencesPlugin"));
- FlutterDownloaderPlugin.registerWith(registry.registrarFor("vn.hunghd.flutterdownloader.FlutterDownloaderPlugin"));
- }
-
- private static boolean alreadyRegisteredWith(PluginRegistry registry) {
- final String key = IsolatePluginRegistrant.class.getCanonicalName();
- if (registry.hasPlugin(key)) {
- return true;
- }
- registry.registrarFor(key);
- return false;
- }
+package io.flutter.plugins;
+
+import androidx.annotation.Keep;
+import androidx.annotation.NonNull;
+
+import io.flutter.embedding.engine.FlutterEngine;
+import io.flutter.embedding.engine.plugins.shim.ShimPluginRegistry;
+import io.flutter.plugin.common.PluginRegistry;
+import io.flutter.plugins.pathprovider.PathProviderPlugin;
+import com.tekartik.sqflite.SqflitePlugin;
+import io.flutter.plugins.sharedpreferences.SharedPreferencesPlugin;
+import vn.hunghd.flutterdownloader.FlutterDownloaderPlugin;
+
+/**
+ * Generated file. Do not edit. This file is generated by the Flutter tool based
+ * on the plugins that support the Android platform.
+ */
+
+@Keep
+public final class IsolatePluginRegistrant {
+ public static void registerWith(PluginRegistry registry) {
+ if (alreadyRegisteredWith(registry)) {
+ return;
+ }
+ PathProviderPlugin.registerWith(registry.registrarFor("io.flutter.plugins.pathprovider.PathProviderPlugin"));
+ SqflitePlugin.registerWith(registry.registrarFor("com.tekartik.sqflite.SqflitePlugin"));
+ SharedPreferencesPlugin.registerWith(registry.registrarFor("io.flutter.plugins.sharedpreferences.SharedPreferencesPlugin"));
+ FlutterDownloaderPlugin.registerWith(registry.registrarFor("vn.hunghd.flutterdownloader.FlutterDownloaderPlugin"));
+ }
+
+ private static boolean alreadyRegisteredWith(PluginRegistry registry) {
+ final String key = IsolatePluginRegistrant.class.getCanonicalName();
+ if (registry.hasPlugin(key)) {
+ return true;
+ }
+ registry.registrarFor(key);
+ return false;
+ }
}
\ No newline at end of file
diff --git a/android/app/src/main/kotlin/com/stonegate/tsacdop/MainActivity.kt b/android/app/src/main/kotlin/com/stonegate/tsacdop/MainActivity.kt
index ff5a023..13faed9 100644
--- a/android/app/src/main/kotlin/com/stonegate/tsacdop/MainActivity.kt
+++ b/android/app/src/main/kotlin/com/stonegate/tsacdop/MainActivity.kt
@@ -1,28 +1,28 @@
-package com.stonegate.tsacdop
-
-import androidx.annotation.NonNull;
-import io.flutter.embedding.android.FlutterActivity
-import io.flutter.embedding.engine.FlutterEngine
-import io.flutter.view.FlutterNativeView
-import io.flutter.plugins.GeneratedPluginRegistrant
-import io.flutter.plugins.IsolatePluginRegistrant
-import io.flutter.plugin.common.MethodChannel
-import io.flutter.plugin.common.MethodChannel.MethodCallHandler
-import io.flutter.plugin.common.MethodChannel.Result
-import io.flutter.embedding.engine.dart.DartExecutor
-import io.flutter.embedding.engine.dart.DartExecutor.DartCallback
-import com.rmawatson.flutterisolate.FlutterIsolatePlugin
-
-class MainActivity: FlutterActivity() {
- override fun configureFlutterEngine(@NonNull flutterEngine: FlutterEngine) {
- GeneratedPluginRegistrant.registerWith(flutterEngine);
- FlutterIsolatePlugin.setCustomIsolateRegistrant(IsolatePluginRegistrant::class.java);
- MethodChannel(flutterEngine.dartExecutor, "android_app_retain").apply {
- setMethodCallHandler { method, result ->
- if (method.method == "sendToBackground") {
- moveTaskToBack(true)
- }
- }
- }
- }
-}
+package com.stonegate.tsacdop
+
+import androidx.annotation.NonNull;
+import io.flutter.embedding.android.FlutterActivity
+import io.flutter.embedding.engine.FlutterEngine
+import io.flutter.view.FlutterNativeView
+import io.flutter.plugins.GeneratedPluginRegistrant
+import io.flutter.plugins.IsolatePluginRegistrant
+import io.flutter.plugin.common.MethodChannel
+import io.flutter.plugin.common.MethodChannel.MethodCallHandler
+import io.flutter.plugin.common.MethodChannel.Result
+import io.flutter.embedding.engine.dart.DartExecutor
+import io.flutter.embedding.engine.dart.DartExecutor.DartCallback
+import com.rmawatson.flutterisolate.FlutterIsolatePlugin
+
+class MainActivity: FlutterActivity() {
+ override fun configureFlutterEngine(@NonNull flutterEngine: FlutterEngine) {
+ GeneratedPluginRegistrant.registerWith(flutterEngine);
+ FlutterIsolatePlugin.setCustomIsolateRegistrant(IsolatePluginRegistrant::class.java);
+ MethodChannel(flutterEngine.dartExecutor, "android_app_retain").apply {
+ setMethodCallHandler { method, result ->
+ if (method.method == "sendToBackground") {
+ moveTaskToBack(true)
+ }
+ }
+ }
+ }
+}
diff --git a/android/app/src/main/res/drawable-night/launch_background.xml b/android/app/src/main/res/drawable-night/launch_background.xml
index 0feabb0..fea418d 100644
--- a/android/app/src/main/res/drawable-night/launch_background.xml
+++ b/android/app/src/main/res/drawable-night/launch_background.xml
@@ -1,17 +1,17 @@
-
-
-
-
-
- -
-
-
- -
-
-
+
+
+
+
+
+ -
+
+
+ -
+
+
\ No newline at end of file
diff --git a/android/app/src/main/res/drawable-night/normal_background.xml b/android/app/src/main/res/drawable-night/normal_background.xml
index ce6ada7..345a739 100644
--- a/android/app/src/main/res/drawable-night/normal_background.xml
+++ b/android/app/src/main/res/drawable-night/normal_background.xml
@@ -1,9 +1,9 @@
-
-
-
-
-
- -
-
-
-->
+
+
+
+
+
+ -
+
+
-->
\ No newline at end of file
diff --git a/android/app/src/main/res/drawable/launch_background.xml b/android/app/src/main/res/drawable/launch_background.xml
index 38848ce..80b77b6 100644
--- a/android/app/src/main/res/drawable/launch_background.xml
+++ b/android/app/src/main/res/drawable/launch_background.xml
@@ -1,12 +1,12 @@
-
-
-
-
-
- -
-
-
- -
-
-
-
+
+
+
+
+
+ -
+
+
+ -
+
+
+
diff --git a/android/app/src/main/res/drawable/launch_background_night.xml b/android/app/src/main/res/drawable/launch_background_night.xml
index 72c4c7f..5a36c4d 100644
--- a/android/app/src/main/res/drawable/launch_background_night.xml
+++ b/android/app/src/main/res/drawable/launch_background_night.xml
@@ -1,12 +1,12 @@
-
-
-
-
-
- -
-
-
- -
-
-
+
+
+
+
+
+ -
+
+
+ -
+
+
\ No newline at end of file
diff --git a/android/app/src/main/res/drawable/normal_background.xml b/android/app/src/main/res/drawable/normal_background.xml
index 53e1c32..a398550 100644
--- a/android/app/src/main/res/drawable/normal_background.xml
+++ b/android/app/src/main/res/drawable/normal_background.xml
@@ -1,9 +1,9 @@
-
-
-
-
-
- -
-
-
+
+
+
+
+
+ -
+
+
\ No newline at end of file
diff --git a/android/app/src/main/res/drawable/normal_background_night.xml b/android/app/src/main/res/drawable/normal_background_night.xml
index 4efc20a..61e1101 100644
--- a/android/app/src/main/res/drawable/normal_background_night.xml
+++ b/android/app/src/main/res/drawable/normal_background_night.xml
@@ -1,9 +1,9 @@
-
-
-
-
-
- -
-
-
+
+
+
+
+
+ -
+
+
\ No newline at end of file
diff --git a/android/app/src/main/res/values-night/styles.xml b/android/app/src/main/res/values-night/styles.xml
index a38d0b9..d1339be 100644
--- a/android/app/src/main/res/values-night/styles.xml
+++ b/android/app/src/main/res/values-night/styles.xml
@@ -1,10 +1,10 @@
-
-
-
+
+
+
\ No newline at end of file
diff --git a/android/app/src/main/res/values/styles.xml b/android/app/src/main/res/values/styles.xml
index 4e30a4a..502d47e 100644
--- a/android/app/src/main/res/values/styles.xml
+++ b/android/app/src/main/res/values/styles.xml
@@ -1,12 +1,12 @@
-
-
-
-
+
+
+
+
diff --git a/android/app/src/main/res/xml/network_security_config.xml b/android/app/src/main/res/xml/network_security_config.xml
index f18e1f0..ab7ae8f 100644
--- a/android/app/src/main/res/xml/network_security_config.xml
+++ b/android/app/src/main/res/xml/network_security_config.xml
@@ -1,8 +1,8 @@
-
-
-
-
-
-
-
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/android/app/src/profile/AndroidManifest.xml b/android/app/src/profile/AndroidManifest.xml
index 35c9116..64c8d13 100644
--- a/android/app/src/profile/AndroidManifest.xml
+++ b/android/app/src/profile/AndroidManifest.xml
@@ -1,7 +1,7 @@
-
-
-
-
+
+
+
+
diff --git a/android/build.gradle b/android/build.gradle
index b3db53a..fdde64e 100644
--- a/android/build.gradle
+++ b/android/build.gradle
@@ -1,32 +1,32 @@
-buildscript {
- ext.kotlin_version = '1.3.70'
- repositories {
- google()
- jcenter()
- }
-
- dependencies {
- classpath 'com.android.tools.build:gradle:3.6.2'
- classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
- }
-}
-
-allprojects {
- repositories {
- google()
- jcenter()
- }
-}
-
-rootProject.buildDir = '../build'
-subprojects {
- project.buildDir = "${rootProject.buildDir}/${project.name}"
-}
-
-//subprojects {
-// project.evaluationDependsOn(':app')
-//}
-
-task clean(type: Delete) {
- delete rootProject.buildDir
-}
+buildscript {
+ ext.kotlin_version = '1.3.70'
+ repositories {
+ google()
+ jcenter()
+ }
+
+ dependencies {
+ classpath 'com.android.tools.build:gradle:3.6.2'
+ classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
+ }
+}
+
+allprojects {
+ repositories {
+ google()
+ jcenter()
+ }
+}
+
+rootProject.buildDir = '../build'
+subprojects {
+ project.buildDir = "${rootProject.buildDir}/${project.name}"
+}
+
+//subprojects {
+// project.evaluationDependsOn(':app')
+//}
+
+task clean(type: Delete) {
+ delete rootProject.buildDir
+}
diff --git a/android/gradle.properties b/android/gradle.properties
index 38c8d45..74c1d92 100644
--- a/android/gradle.properties
+++ b/android/gradle.properties
@@ -1,4 +1,4 @@
-org.gradle.jvmargs=-Xmx1536M
-android.enableR8=true
-android.useAndroidX=true
-android.enableJetifier=true
+org.gradle.jvmargs=-Xmx1536M
+android.enableR8=true
+android.useAndroidX=true
+android.enableJetifier=true
diff --git a/android/gradle/wrapper/gradle-wrapper.properties b/android/gradle/wrapper/gradle-wrapper.properties
index c79d946..5faff86 100644
--- a/android/gradle/wrapper/gradle-wrapper.properties
+++ b/android/gradle/wrapper/gradle-wrapper.properties
@@ -1,6 +1,6 @@
-#Fri Mar 20 23:46:20 CST 2020
-distributionBase=GRADLE_USER_HOME
-distributionPath=wrapper/dists
-zipStoreBase=GRADLE_USER_HOME
-zipStorePath=wrapper/dists
-distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.4-all.zip
+#Fri Mar 20 23:46:20 CST 2020
+distributionBase=GRADLE_USER_HOME
+distributionPath=wrapper/dists
+zipStoreBase=GRADLE_USER_HOME
+zipStorePath=wrapper/dists
+distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.4-all.zip
diff --git a/android/settings.gradle b/android/settings.gradle
index 5a2f14f..4f14f8e 100644
--- a/android/settings.gradle
+++ b/android/settings.gradle
@@ -1,15 +1,15 @@
-include ':app'
-
-def flutterProjectRoot = rootProject.projectDir.parentFile.toPath()
-
-def plugins = new Properties()
-def pluginsFile = new File(flutterProjectRoot.toFile(), '.flutter-plugins')
-if (pluginsFile.exists()) {
- pluginsFile.withReader('UTF-8') { reader -> plugins.load(reader) }
-}
-
-plugins.each { name, path ->
- def pluginDirectory = flutterProjectRoot.resolve(path).resolve('android').toFile()
- include ":$name"
- project(":$name").projectDir = pluginDirectory
-}
+include ':app'
+
+def flutterProjectRoot = rootProject.projectDir.parentFile.toPath()
+
+def plugins = new Properties()
+def pluginsFile = new File(flutterProjectRoot.toFile(), '.flutter-plugins')
+if (pluginsFile.exists()) {
+ pluginsFile.withReader('UTF-8') { reader -> plugins.load(reader) }
+}
+
+plugins.each { name, path ->
+ def pluginDirectory = flutterProjectRoot.resolve(path).resolve('android').toFile()
+ include ":$name"
+ project(":$name").projectDir = pluginDirectory
+}
diff --git a/android/settings_aar.gradle b/android/settings_aar.gradle
index e7b4def..d3db109 100644
--- a/android/settings_aar.gradle
+++ b/android/settings_aar.gradle
@@ -1 +1 @@
-include ':app'
+include ':app'
diff --git a/ios/.gitignore b/ios/.gitignore
index e96ef60..0f1df0f 100644
--- a/ios/.gitignore
+++ b/ios/.gitignore
@@ -1,32 +1,32 @@
-*.mode1v3
-*.mode2v3
-*.moved-aside
-*.pbxuser
-*.perspectivev3
-**/*sync/
-.sconsign.dblite
-.tags*
-**/.vagrant/
-**/DerivedData/
-Icon?
-**/Pods/
-**/.symlinks/
-profile
-xcuserdata
-**/.generated/
-Flutter/App.framework
-Flutter/Flutter.framework
-Flutter/Flutter.podspec
-Flutter/Generated.xcconfig
-Flutter/app.flx
-Flutter/app.zip
-Flutter/flutter_assets/
-Flutter/flutter_export_environment.sh
-ServiceDefinitions.json
-Runner/GeneratedPluginRegistrant.*
-
-# Exceptions to above rules.
-!default.mode1v3
-!default.mode2v3
-!default.pbxuser
-!default.perspectivev3
+*.mode1v3
+*.mode2v3
+*.moved-aside
+*.pbxuser
+*.perspectivev3
+**/*sync/
+.sconsign.dblite
+.tags*
+**/.vagrant/
+**/DerivedData/
+Icon?
+**/Pods/
+**/.symlinks/
+profile
+xcuserdata
+**/.generated/
+Flutter/App.framework
+Flutter/Flutter.framework
+Flutter/Flutter.podspec
+Flutter/Generated.xcconfig
+Flutter/app.flx
+Flutter/app.zip
+Flutter/flutter_assets/
+Flutter/flutter_export_environment.sh
+ServiceDefinitions.json
+Runner/GeneratedPluginRegistrant.*
+
+# Exceptions to above rules.
+!default.mode1v3
+!default.mode2v3
+!default.pbxuser
+!default.perspectivev3
diff --git a/ios/Flutter/AppFrameworkInfo.plist b/ios/Flutter/AppFrameworkInfo.plist
index 6b4c0f7..58e65f9 100644
--- a/ios/Flutter/AppFrameworkInfo.plist
+++ b/ios/Flutter/AppFrameworkInfo.plist
@@ -1,26 +1,26 @@
-
-
-
-
- CFBundleDevelopmentRegion
- $(DEVELOPMENT_LANGUAGE)
- CFBundleExecutable
- App
- CFBundleIdentifier
- io.flutter.flutter.app
- CFBundleInfoDictionaryVersion
- 6.0
- CFBundleName
- App
- CFBundlePackageType
- FMWK
- CFBundleShortVersionString
- 1.0
- CFBundleSignature
- ????
- CFBundleVersion
- 1.0
- MinimumOSVersion
- 8.0
-
-
+
+
+
+
+ CFBundleDevelopmentRegion
+ $(DEVELOPMENT_LANGUAGE)
+ CFBundleExecutable
+ App
+ CFBundleIdentifier
+ io.flutter.flutter.app
+ CFBundleInfoDictionaryVersion
+ 6.0
+ CFBundleName
+ App
+ CFBundlePackageType
+ FMWK
+ CFBundleShortVersionString
+ 1.0
+ CFBundleSignature
+ ????
+ CFBundleVersion
+ 1.0
+ MinimumOSVersion
+ 8.0
+
+
diff --git a/ios/Flutter/Debug.xcconfig b/ios/Flutter/Debug.xcconfig
index e8efba1..f0e2de1 100644
--- a/ios/Flutter/Debug.xcconfig
+++ b/ios/Flutter/Debug.xcconfig
@@ -1,2 +1,2 @@
-#include "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"
-#include "Generated.xcconfig"
+#include "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"
+#include "Generated.xcconfig"
diff --git a/ios/Flutter/Release.xcconfig b/ios/Flutter/Release.xcconfig
index 399e934..12b9798 100644
--- a/ios/Flutter/Release.xcconfig
+++ b/ios/Flutter/Release.xcconfig
@@ -1,2 +1,2 @@
-#include "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"
-#include "Generated.xcconfig"
+#include "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"
+#include "Generated.xcconfig"
diff --git a/ios/Podfile b/ios/Podfile
index d87b939..5c127f3 100644
--- a/ios/Podfile
+++ b/ios/Podfile
@@ -1,88 +1,88 @@
-# Uncomment this line to define a global platform for your project
-platform :ios, '11.0'
-
-# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
-ENV['COCOAPODS_DISABLE_STATS'] = 'true'
-source 'https://cdn.cocoapods.org/'
-
-project 'Runner', {
- 'Debug' => :debug,
- 'Profile' => :release,
- 'Release' => :release,
-}
-
-def parse_KV_file(file, separator='=')
- file_abs_path = File.expand_path(file)
- if !File.exists? file_abs_path
- return [];
- end
- generated_key_values = {}
- skip_line_start_symbols = ["#", "/"]
- File.foreach(file_abs_path) do |line|
- next if skip_line_start_symbols.any? { |symbol| line =~ /^\s*#{symbol}/ }
- plugin = line.split(pattern=separator)
- if plugin.length == 2
- podname = plugin[0].strip()
- path = plugin[1].strip()
- podpath = File.expand_path("#{path}", file_abs_path)
- generated_key_values[podname] = podpath
- else
- puts "Invalid plugin specification: #{line}"
- end
- end
- generated_key_values
-end
-
-target 'Runner' do
- use_frameworks!
- use_modular_headers!
-
- # Flutter Pod
-
- copied_flutter_dir = File.join(__dir__, 'Flutter')
- copied_framework_path = File.join(copied_flutter_dir, 'Flutter.framework')
- copied_podspec_path = File.join(copied_flutter_dir, 'Flutter.podspec')
- unless File.exist?(copied_framework_path) && File.exist?(copied_podspec_path)
- # Copy Flutter.framework and Flutter.podspec to Flutter/ to have something to link against if the xcode backend script has not run yet.
- # That script will copy the correct debug/profile/release version of the framework based on the currently selected Xcode configuration.
- # CocoaPods will not embed the framework on pod install (before any build phases can generate) if the dylib does not exist.
-
- generated_xcode_build_settings_path = File.join(copied_flutter_dir, 'Generated.xcconfig')
- unless File.exist?(generated_xcode_build_settings_path)
- raise "Generated.xcconfig must exist. If you're running pod install manually, make sure flutter pub get is executed first"
- end
- generated_xcode_build_settings = parse_KV_file(generated_xcode_build_settings_path)
- cached_framework_dir = generated_xcode_build_settings['FLUTTER_FRAMEWORK_DIR'];
-
- unless File.exist?(copied_framework_path)
- FileUtils.cp_r(File.join(cached_framework_dir, 'Flutter.framework'), copied_flutter_dir)
- end
- unless File.exist?(copied_podspec_path)
- FileUtils.cp(File.join(cached_framework_dir, 'Flutter.podspec'), copied_flutter_dir)
- end
- end
-
- # Keep pod path relative so it can be checked into Podfile.lock.
- pod 'Flutter', :path => 'Flutter'
-
- # Plugin Pods
-
- # Prepare symlinks folder. We use symlinks to avoid having Podfile.lock
- # referring to absolute paths on developers' machines.
- system('rm -rf .symlinks')
- system('mkdir -p .symlinks/plugins')
- plugin_pods = parse_KV_file('../.flutter-plugins')
- plugin_pods.each do |name, path|
- symlink = File.join('.symlinks', 'plugins', name)
- File.symlink(path, symlink)
- pod name, :path => File.join(symlink, 'ios')
- end
-end
-
-post_install do |installer|
- installer.pods_project.targets.each do |target|
- target.build_configurations.each do |config|
- config.build_settings['ENABLE_BITCODE'] = 'NO'
- end
- end
-end
+# Uncomment this line to define a global platform for your project
+platform :ios, '11.0'
+
+# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
+ENV['COCOAPODS_DISABLE_STATS'] = 'true'
+source 'https://cdn.cocoapods.org/'
+
+project 'Runner', {
+ 'Debug' => :debug,
+ 'Profile' => :release,
+ 'Release' => :release,
+}
+
+def parse_KV_file(file, separator='=')
+ file_abs_path = File.expand_path(file)
+ if !File.exists? file_abs_path
+ return [];
+ end
+ generated_key_values = {}
+ skip_line_start_symbols = ["#", "/"]
+ File.foreach(file_abs_path) do |line|
+ next if skip_line_start_symbols.any? { |symbol| line =~ /^\s*#{symbol}/ }
+ plugin = line.split(pattern=separator)
+ if plugin.length == 2
+ podname = plugin[0].strip()
+ path = plugin[1].strip()
+ podpath = File.expand_path("#{path}", file_abs_path)
+ generated_key_values[podname] = podpath
+ else
+ puts "Invalid plugin specification: #{line}"
+ end
+ end
+ generated_key_values
+end
+
+target 'Runner' do
+ use_frameworks!
+ use_modular_headers!
+
+ # Flutter Pod
+
+ copied_flutter_dir = File.join(__dir__, 'Flutter')
+ copied_framework_path = File.join(copied_flutter_dir, 'Flutter.framework')
+ copied_podspec_path = File.join(copied_flutter_dir, 'Flutter.podspec')
+ unless File.exist?(copied_framework_path) && File.exist?(copied_podspec_path)
+ # Copy Flutter.framework and Flutter.podspec to Flutter/ to have something to link against if the xcode backend script has not run yet.
+ # That script will copy the correct debug/profile/release version of the framework based on the currently selected Xcode configuration.
+ # CocoaPods will not embed the framework on pod install (before any build phases can generate) if the dylib does not exist.
+
+ generated_xcode_build_settings_path = File.join(copied_flutter_dir, 'Generated.xcconfig')
+ unless File.exist?(generated_xcode_build_settings_path)
+ raise "Generated.xcconfig must exist. If you're running pod install manually, make sure flutter pub get is executed first"
+ end
+ generated_xcode_build_settings = parse_KV_file(generated_xcode_build_settings_path)
+ cached_framework_dir = generated_xcode_build_settings['FLUTTER_FRAMEWORK_DIR'];
+
+ unless File.exist?(copied_framework_path)
+ FileUtils.cp_r(File.join(cached_framework_dir, 'Flutter.framework'), copied_flutter_dir)
+ end
+ unless File.exist?(copied_podspec_path)
+ FileUtils.cp(File.join(cached_framework_dir, 'Flutter.podspec'), copied_flutter_dir)
+ end
+ end
+
+ # Keep pod path relative so it can be checked into Podfile.lock.
+ pod 'Flutter', :path => 'Flutter'
+
+ # Plugin Pods
+
+ # Prepare symlinks folder. We use symlinks to avoid having Podfile.lock
+ # referring to absolute paths on developers' machines.
+ system('rm -rf .symlinks')
+ system('mkdir -p .symlinks/plugins')
+ plugin_pods = parse_KV_file('../.flutter-plugins')
+ plugin_pods.each do |name, path|
+ symlink = File.join('.symlinks', 'plugins', name)
+ File.symlink(path, symlink)
+ pod name, :path => File.join(symlink, 'ios')
+ end
+end
+
+post_install do |installer|
+ installer.pods_project.targets.each do |target|
+ target.build_configurations.each do |config|
+ config.build_settings['ENABLE_BITCODE'] = 'NO'
+ end
+ end
+end
diff --git a/ios/Podfile.lock b/ios/Podfile.lock
index a193253..08ca3e1 100644
--- a/ios/Podfile.lock
+++ b/ios/Podfile.lock
@@ -1,204 +1,204 @@
-PODS:
- - audio_service (0.0.1):
- - Flutter
- - connectivity (0.0.1):
- - Flutter
- - Reachability
- - connectivity_macos (0.0.1):
- - Flutter
- - DKImagePickerController/Core (4.2.2):
- - DKImagePickerController/ImageDataManager
- - DKImagePickerController/Resource
- - DKImagePickerController/ImageDataManager (4.2.2)
- - DKImagePickerController/PhotoGallery (4.2.2):
- - DKImagePickerController/Core
- - DKPhotoGallery
- - DKImagePickerController/Resource (4.2.2)
- - DKPhotoGallery (0.0.14):
- - DKPhotoGallery/Core (= 0.0.14)
- - DKPhotoGallery/Model (= 0.0.14)
- - DKPhotoGallery/Preview (= 0.0.14)
- - DKPhotoGallery/Resource (= 0.0.14)
- - SDWebImage
- - SDWebImageFLPlugin
- - DKPhotoGallery/Core (0.0.14):
- - DKPhotoGallery/Model
- - DKPhotoGallery/Preview
- - SDWebImage
- - SDWebImageFLPlugin
- - DKPhotoGallery/Model (0.0.14):
- - SDWebImage
- - SDWebImageFLPlugin
- - DKPhotoGallery/Preview (0.0.14):
- - DKPhotoGallery/Model
- - DKPhotoGallery/Resource
- - SDWebImage
- - SDWebImageFLPlugin
- - DKPhotoGallery/Resource (0.0.14):
- - SDWebImage
- - SDWebImageFLPlugin
- - file_picker (0.0.1):
- - DKImagePickerController/PhotoGallery
- - Flutter
- - FLAnimatedImage (1.0.12)
- - Flutter (1.0.0)
- - flutter_downloader (0.0.1):
- - Flutter
- - flutter_file_dialog (0.0.1):
- - Flutter
- - flutter_isolate (0.0.1):
- - Flutter
- - flutter_plugin_android_lifecycle (0.0.1):
- - Flutter
- - fluttertoast (0.0.2):
- - Flutter
- - FMDB (2.7.5):
- - FMDB/standard (= 2.7.5)
- - FMDB/standard (2.7.5)
- - just_audio (0.0.1):
- - Flutter
- - path_provider (0.0.1):
- - Flutter
- - path_provider_macos (0.0.1):
- - Flutter
- - "permission_handler (5.0.0+hotfix.5)":
- - Flutter
- - Reachability (3.2)
- - SDWebImage (5.7.4):
- - SDWebImage/Core (= 5.7.4)
- - SDWebImage/Core (5.7.4)
- - SDWebImageFLPlugin (0.4.0):
- - FLAnimatedImage (>= 1.0.11)
- - SDWebImage/Core (~> 5.6)
- - shared_preferences (0.0.1):
- - Flutter
- - shared_preferences_macos (0.0.1):
- - Flutter
- - shared_preferences_web (0.0.1):
- - Flutter
- - sqflite (0.0.1):
- - Flutter
- - FMDB (~> 2.7.2)
- - url_launcher (0.0.1):
- - Flutter
- - url_launcher_macos (0.0.1):
- - Flutter
- - url_launcher_web (0.0.1):
- - Flutter
- - workmanager (0.0.1):
- - Flutter
-
-DEPENDENCIES:
- - audio_service (from `.symlinks/plugins/audio_service/ios`)
- - connectivity (from `.symlinks/plugins/connectivity/ios`)
- - connectivity_macos (from `.symlinks/plugins/connectivity_macos/ios`)
- - file_picker (from `.symlinks/plugins/file_picker/ios`)
- - Flutter (from `Flutter`)
- - flutter_downloader (from `.symlinks/plugins/flutter_downloader/ios`)
- - flutter_file_dialog (from `.symlinks/plugins/flutter_file_dialog/ios`)
- - flutter_isolate (from `.symlinks/plugins/flutter_isolate/ios`)
- - flutter_plugin_android_lifecycle (from `.symlinks/plugins/flutter_plugin_android_lifecycle/ios`)
- - fluttertoast (from `.symlinks/plugins/fluttertoast/ios`)
- - just_audio (from `.symlinks/plugins/just_audio/ios`)
- - path_provider (from `.symlinks/plugins/path_provider/ios`)
- - path_provider_macos (from `.symlinks/plugins/path_provider_macos/ios`)
- - permission_handler (from `.symlinks/plugins/permission_handler/ios`)
- - shared_preferences (from `.symlinks/plugins/shared_preferences/ios`)
- - shared_preferences_macos (from `.symlinks/plugins/shared_preferences_macos/ios`)
- - shared_preferences_web (from `.symlinks/plugins/shared_preferences_web/ios`)
- - sqflite (from `.symlinks/plugins/sqflite/ios`)
- - url_launcher (from `.symlinks/plugins/url_launcher/ios`)
- - url_launcher_macos (from `.symlinks/plugins/url_launcher_macos/ios`)
- - url_launcher_web (from `.symlinks/plugins/url_launcher_web/ios`)
- - workmanager (from `.symlinks/plugins/workmanager/ios`)
-
-SPEC REPOS:
- trunk:
- - DKImagePickerController
- - DKPhotoGallery
- - FLAnimatedImage
- - FMDB
- - Reachability
- - SDWebImage
- - SDWebImageFLPlugin
-
-EXTERNAL SOURCES:
- audio_service:
- :path: ".symlinks/plugins/audio_service/ios"
- connectivity:
- :path: ".symlinks/plugins/connectivity/ios"
- connectivity_macos:
- :path: ".symlinks/plugins/connectivity_macos/ios"
- file_picker:
- :path: ".symlinks/plugins/file_picker/ios"
- Flutter:
- :path: Flutter
- flutter_downloader:
- :path: ".symlinks/plugins/flutter_downloader/ios"
- flutter_file_dialog:
- :path: ".symlinks/plugins/flutter_file_dialog/ios"
- flutter_isolate:
- :path: ".symlinks/plugins/flutter_isolate/ios"
- flutter_plugin_android_lifecycle:
- :path: ".symlinks/plugins/flutter_plugin_android_lifecycle/ios"
- fluttertoast:
- :path: ".symlinks/plugins/fluttertoast/ios"
- just_audio:
- :path: ".symlinks/plugins/just_audio/ios"
- path_provider:
- :path: ".symlinks/plugins/path_provider/ios"
- path_provider_macos:
- :path: ".symlinks/plugins/path_provider_macos/ios"
- permission_handler:
- :path: ".symlinks/plugins/permission_handler/ios"
- shared_preferences:
- :path: ".symlinks/plugins/shared_preferences/ios"
- shared_preferences_macos:
- :path: ".symlinks/plugins/shared_preferences_macos/ios"
- shared_preferences_web:
- :path: ".symlinks/plugins/shared_preferences_web/ios"
- sqflite:
- :path: ".symlinks/plugins/sqflite/ios"
- url_launcher:
- :path: ".symlinks/plugins/url_launcher/ios"
- url_launcher_macos:
- :path: ".symlinks/plugins/url_launcher_macos/ios"
- url_launcher_web:
- :path: ".symlinks/plugins/url_launcher_web/ios"
- workmanager:
- :path: ".symlinks/plugins/workmanager/ios"
-
-SPEC CHECKSUMS:
- audio_service: f509d65da41b9521a61f1c404dd58651f265a567
- connectivity: c4130b2985d4ef6fd26f9702e886bd5260681467
- connectivity_macos: e2e9731b6b22dda39eb1b128f6969d574460e191
- DKImagePickerController: 4a3e7948a848c4348e600b3fe5ce41478835fa10
- DKPhotoGallery: 0290d32343574f06eaa4c26f8f2f8a1035e916be
- file_picker: 3e6c3790de664ccf9b882732d9db5eaf6b8d4eb1
- FLAnimatedImage: 4a0b56255d9b05f18b6dd7ee06871be5d3b89e31
- Flutter: 0e3d915762c693b495b44d77113d4970485de6ec
- flutter_downloader: 058b9c41564a90500f67f3e432e3524613a7fd83
- flutter_file_dialog: 34ab8c55c460c69cb70e75a8d74bfe8b5c852824
- flutter_isolate: 0edf5081826d071adf21759d1eb10ff5c24503b5
- flutter_plugin_android_lifecycle: dc0b544e129eebb77a6bfb1239d4d1c673a60a35
- fluttertoast: b644586ef3b16f67fae9a1f8754cef6b2d6b634b
- FMDB: 2ce00b547f966261cd18927a3ddb07cb6f3db82a
- just_audio: c695d6e7e37f9e96672dd84039d7530e7fd5c205
- path_provider: abfe2b5c733d04e238b0d8691db0cfd63a27a93c
- path_provider_macos: f760a3c5b04357c380e2fddb6f9db6f3015897e0
- permission_handler: 6226fcb78b97c7c7458a95c7346a11d5184fec12
- Reachability: 33e18b67625424e47b6cde6d202dce689ad7af96
- SDWebImage: 48b88379b798fd1e4298f95bb25d2cdabbf4deb3
- SDWebImageFLPlugin: 6c2295fb1242d44467c6c87dc5db6b0a13228fd8
- shared_preferences: af6bfa751691cdc24be3045c43ec037377ada40d
- shared_preferences_macos: f3f29b71ccbb56bf40c9dd6396c9acf15e214087
- shared_preferences_web: 141cce0c3ed1a1c5bf2a0e44f52d31eeb66e5ea9
- sqflite: 4001a31ff81d210346b500c55b17f4d6c7589dd0
- url_launcher: 6fef411d543ceb26efce54b05a0a40bfd74cbbef
- url_launcher_macos: fd7894421cd39320dce5f292fc99ea9270b2a313
- url_launcher_web: e5527357f037c87560776e36436bf2b0288b965c
- workmanager: ffff78bf18495e2bc5b8c955ead94a81db340681
-
-PODFILE CHECKSUM: 7a493bdf8e8fed20acf4793e6605bdc446895cf3
-
-COCOAPODS: 1.9.1
+PODS:
+ - audio_service (0.0.1):
+ - Flutter
+ - connectivity (0.0.1):
+ - Flutter
+ - Reachability
+ - connectivity_macos (0.0.1):
+ - Flutter
+ - DKImagePickerController/Core (4.2.2):
+ - DKImagePickerController/ImageDataManager
+ - DKImagePickerController/Resource
+ - DKImagePickerController/ImageDataManager (4.2.2)
+ - DKImagePickerController/PhotoGallery (4.2.2):
+ - DKImagePickerController/Core
+ - DKPhotoGallery
+ - DKImagePickerController/Resource (4.2.2)
+ - DKPhotoGallery (0.0.14):
+ - DKPhotoGallery/Core (= 0.0.14)
+ - DKPhotoGallery/Model (= 0.0.14)
+ - DKPhotoGallery/Preview (= 0.0.14)
+ - DKPhotoGallery/Resource (= 0.0.14)
+ - SDWebImage
+ - SDWebImageFLPlugin
+ - DKPhotoGallery/Core (0.0.14):
+ - DKPhotoGallery/Model
+ - DKPhotoGallery/Preview
+ - SDWebImage
+ - SDWebImageFLPlugin
+ - DKPhotoGallery/Model (0.0.14):
+ - SDWebImage
+ - SDWebImageFLPlugin
+ - DKPhotoGallery/Preview (0.0.14):
+ - DKPhotoGallery/Model
+ - DKPhotoGallery/Resource
+ - SDWebImage
+ - SDWebImageFLPlugin
+ - DKPhotoGallery/Resource (0.0.14):
+ - SDWebImage
+ - SDWebImageFLPlugin
+ - file_picker (0.0.1):
+ - DKImagePickerController/PhotoGallery
+ - Flutter
+ - FLAnimatedImage (1.0.12)
+ - Flutter (1.0.0)
+ - flutter_downloader (0.0.1):
+ - Flutter
+ - flutter_file_dialog (0.0.1):
+ - Flutter
+ - flutter_isolate (0.0.1):
+ - Flutter
+ - flutter_plugin_android_lifecycle (0.0.1):
+ - Flutter
+ - fluttertoast (0.0.2):
+ - Flutter
+ - FMDB (2.7.5):
+ - FMDB/standard (= 2.7.5)
+ - FMDB/standard (2.7.5)
+ - just_audio (0.0.1):
+ - Flutter
+ - path_provider (0.0.1):
+ - Flutter
+ - path_provider_macos (0.0.1):
+ - Flutter
+ - "permission_handler (5.0.0+hotfix.5)":
+ - Flutter
+ - Reachability (3.2)
+ - SDWebImage (5.7.4):
+ - SDWebImage/Core (= 5.7.4)
+ - SDWebImage/Core (5.7.4)
+ - SDWebImageFLPlugin (0.4.0):
+ - FLAnimatedImage (>= 1.0.11)
+ - SDWebImage/Core (~> 5.6)
+ - shared_preferences (0.0.1):
+ - Flutter
+ - shared_preferences_macos (0.0.1):
+ - Flutter
+ - shared_preferences_web (0.0.1):
+ - Flutter
+ - sqflite (0.0.1):
+ - Flutter
+ - FMDB (~> 2.7.2)
+ - url_launcher (0.0.1):
+ - Flutter
+ - url_launcher_macos (0.0.1):
+ - Flutter
+ - url_launcher_web (0.0.1):
+ - Flutter
+ - workmanager (0.0.1):
+ - Flutter
+
+DEPENDENCIES:
+ - audio_service (from `.symlinks/plugins/audio_service/ios`)
+ - connectivity (from `.symlinks/plugins/connectivity/ios`)
+ - connectivity_macos (from `.symlinks/plugins/connectivity_macos/ios`)
+ - file_picker (from `.symlinks/plugins/file_picker/ios`)
+ - Flutter (from `Flutter`)
+ - flutter_downloader (from `.symlinks/plugins/flutter_downloader/ios`)
+ - flutter_file_dialog (from `.symlinks/plugins/flutter_file_dialog/ios`)
+ - flutter_isolate (from `.symlinks/plugins/flutter_isolate/ios`)
+ - flutter_plugin_android_lifecycle (from `.symlinks/plugins/flutter_plugin_android_lifecycle/ios`)
+ - fluttertoast (from `.symlinks/plugins/fluttertoast/ios`)
+ - just_audio (from `.symlinks/plugins/just_audio/ios`)
+ - path_provider (from `.symlinks/plugins/path_provider/ios`)
+ - path_provider_macos (from `.symlinks/plugins/path_provider_macos/ios`)
+ - permission_handler (from `.symlinks/plugins/permission_handler/ios`)
+ - shared_preferences (from `.symlinks/plugins/shared_preferences/ios`)
+ - shared_preferences_macos (from `.symlinks/plugins/shared_preferences_macos/ios`)
+ - shared_preferences_web (from `.symlinks/plugins/shared_preferences_web/ios`)
+ - sqflite (from `.symlinks/plugins/sqflite/ios`)
+ - url_launcher (from `.symlinks/plugins/url_launcher/ios`)
+ - url_launcher_macos (from `.symlinks/plugins/url_launcher_macos/ios`)
+ - url_launcher_web (from `.symlinks/plugins/url_launcher_web/ios`)
+ - workmanager (from `.symlinks/plugins/workmanager/ios`)
+
+SPEC REPOS:
+ trunk:
+ - DKImagePickerController
+ - DKPhotoGallery
+ - FLAnimatedImage
+ - FMDB
+ - Reachability
+ - SDWebImage
+ - SDWebImageFLPlugin
+
+EXTERNAL SOURCES:
+ audio_service:
+ :path: ".symlinks/plugins/audio_service/ios"
+ connectivity:
+ :path: ".symlinks/plugins/connectivity/ios"
+ connectivity_macos:
+ :path: ".symlinks/plugins/connectivity_macos/ios"
+ file_picker:
+ :path: ".symlinks/plugins/file_picker/ios"
+ Flutter:
+ :path: Flutter
+ flutter_downloader:
+ :path: ".symlinks/plugins/flutter_downloader/ios"
+ flutter_file_dialog:
+ :path: ".symlinks/plugins/flutter_file_dialog/ios"
+ flutter_isolate:
+ :path: ".symlinks/plugins/flutter_isolate/ios"
+ flutter_plugin_android_lifecycle:
+ :path: ".symlinks/plugins/flutter_plugin_android_lifecycle/ios"
+ fluttertoast:
+ :path: ".symlinks/plugins/fluttertoast/ios"
+ just_audio:
+ :path: ".symlinks/plugins/just_audio/ios"
+ path_provider:
+ :path: ".symlinks/plugins/path_provider/ios"
+ path_provider_macos:
+ :path: ".symlinks/plugins/path_provider_macos/ios"
+ permission_handler:
+ :path: ".symlinks/plugins/permission_handler/ios"
+ shared_preferences:
+ :path: ".symlinks/plugins/shared_preferences/ios"
+ shared_preferences_macos:
+ :path: ".symlinks/plugins/shared_preferences_macos/ios"
+ shared_preferences_web:
+ :path: ".symlinks/plugins/shared_preferences_web/ios"
+ sqflite:
+ :path: ".symlinks/plugins/sqflite/ios"
+ url_launcher:
+ :path: ".symlinks/plugins/url_launcher/ios"
+ url_launcher_macos:
+ :path: ".symlinks/plugins/url_launcher_macos/ios"
+ url_launcher_web:
+ :path: ".symlinks/plugins/url_launcher_web/ios"
+ workmanager:
+ :path: ".symlinks/plugins/workmanager/ios"
+
+SPEC CHECKSUMS:
+ audio_service: f509d65da41b9521a61f1c404dd58651f265a567
+ connectivity: c4130b2985d4ef6fd26f9702e886bd5260681467
+ connectivity_macos: e2e9731b6b22dda39eb1b128f6969d574460e191
+ DKImagePickerController: 4a3e7948a848c4348e600b3fe5ce41478835fa10
+ DKPhotoGallery: 0290d32343574f06eaa4c26f8f2f8a1035e916be
+ file_picker: 3e6c3790de664ccf9b882732d9db5eaf6b8d4eb1
+ FLAnimatedImage: 4a0b56255d9b05f18b6dd7ee06871be5d3b89e31
+ Flutter: 0e3d915762c693b495b44d77113d4970485de6ec
+ flutter_downloader: 058b9c41564a90500f67f3e432e3524613a7fd83
+ flutter_file_dialog: 34ab8c55c460c69cb70e75a8d74bfe8b5c852824
+ flutter_isolate: 0edf5081826d071adf21759d1eb10ff5c24503b5
+ flutter_plugin_android_lifecycle: dc0b544e129eebb77a6bfb1239d4d1c673a60a35
+ fluttertoast: b644586ef3b16f67fae9a1f8754cef6b2d6b634b
+ FMDB: 2ce00b547f966261cd18927a3ddb07cb6f3db82a
+ just_audio: c695d6e7e37f9e96672dd84039d7530e7fd5c205
+ path_provider: abfe2b5c733d04e238b0d8691db0cfd63a27a93c
+ path_provider_macos: f760a3c5b04357c380e2fddb6f9db6f3015897e0
+ permission_handler: 6226fcb78b97c7c7458a95c7346a11d5184fec12
+ Reachability: 33e18b67625424e47b6cde6d202dce689ad7af96
+ SDWebImage: 48b88379b798fd1e4298f95bb25d2cdabbf4deb3
+ SDWebImageFLPlugin: 6c2295fb1242d44467c6c87dc5db6b0a13228fd8
+ shared_preferences: af6bfa751691cdc24be3045c43ec037377ada40d
+ shared_preferences_macos: f3f29b71ccbb56bf40c9dd6396c9acf15e214087
+ shared_preferences_web: 141cce0c3ed1a1c5bf2a0e44f52d31eeb66e5ea9
+ sqflite: 4001a31ff81d210346b500c55b17f4d6c7589dd0
+ url_launcher: 6fef411d543ceb26efce54b05a0a40bfd74cbbef
+ url_launcher_macos: fd7894421cd39320dce5f292fc99ea9270b2a313
+ url_launcher_web: e5527357f037c87560776e36436bf2b0288b965c
+ workmanager: ffff78bf18495e2bc5b8c955ead94a81db340681
+
+PODFILE CHECKSUM: 7a493bdf8e8fed20acf4793e6605bdc446895cf3
+
+COCOAPODS: 1.9.1
diff --git a/ios/Runner.xcodeproj/project.pbxproj b/ios/Runner.xcodeproj/project.pbxproj
index 1188270..e1233cc 100644
--- a/ios/Runner.xcodeproj/project.pbxproj
+++ b/ios/Runner.xcodeproj/project.pbxproj
@@ -1,631 +1,631 @@
-// !$*UTF8*$!
-{
- archiveVersion = 1;
- classes = {
- };
- objectVersion = 46;
- objects = {
-
-/* Begin PBXBuildFile section */
- 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; };
- 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; };
- 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; };
- 8CF9779B9A79168FBFA6066E /* Pods_Runner.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 06AA1B089A6D985A4089F4BD /* Pods_Runner.framework */; };
- 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; };
- 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; };
- 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; };
-/* End PBXBuildFile section */
-
-/* Begin PBXCopyFilesBuildPhase section */
- 9705A1C41CF9048500538489 /* Embed Frameworks */ = {
- isa = PBXCopyFilesBuildPhase;
- buildActionMask = 2147483647;
- dstPath = "";
- dstSubfolderSpec = 10;
- files = (
- );
- name = "Embed Frameworks";
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXCopyFilesBuildPhase section */
-
-/* Begin PBXFileReference section */
- 06AA1B089A6D985A4089F4BD /* Pods_Runner.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Runner.framework; sourceTree = BUILT_PRODUCTS_DIR; };
- 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; };
- 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; };
- 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; };
- 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = ""; };
- 74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; };
- 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; };
- 8E4DBAFB2467BE8D00105DDB /* libsqlite3.tbd */ = {isa = PBXFileReference; lastKnownFileType = "sourcecode.text-based-dylib-definition"; name = libsqlite3.tbd; path = usr/lib/libsqlite3.tbd; sourceTree = SDKROOT; };
- 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; };
- 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; };
- 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; };
- 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; };
- 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; };
- 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; };
- 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
- B827BA8675C74CB4AFD456BC /* Pods-Runner.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.debug.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"; sourceTree = ""; };
- D6D257E2FEE682CAC1D1B896 /* Pods-Runner.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.profile.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig"; sourceTree = ""; };
- E41B1437959B0B40C6234702 /* Pods-Runner.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.release.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"; sourceTree = ""; };
-/* End PBXFileReference section */
-
-/* Begin PBXFrameworksBuildPhase section */
- 97C146EB1CF9000F007C117D /* Frameworks */ = {
- isa = PBXFrameworksBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 8CF9779B9A79168FBFA6066E /* Pods_Runner.framework in Frameworks */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXFrameworksBuildPhase section */
-
-/* Begin PBXGroup section */
- 3D584C694C8C44F5D212B449 /* Frameworks */ = {
- isa = PBXGroup;
- children = (
- 8E4DBAFB2467BE8D00105DDB /* libsqlite3.tbd */,
- 06AA1B089A6D985A4089F4BD /* Pods_Runner.framework */,
- );
- name = Frameworks;
- sourceTree = "";
- };
- 9740EEB11CF90186004384FC /* Flutter */ = {
- isa = PBXGroup;
- children = (
- 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */,
- 9740EEB21CF90195004384FC /* Debug.xcconfig */,
- 7AFA3C8E1D35360C0083082E /* Release.xcconfig */,
- 9740EEB31CF90195004384FC /* Generated.xcconfig */,
- );
- name = Flutter;
- sourceTree = "";
- };
- 97C146E51CF9000F007C117D = {
- isa = PBXGroup;
- children = (
- 9740EEB11CF90186004384FC /* Flutter */,
- 97C146F01CF9000F007C117D /* Runner */,
- 97C146EF1CF9000F007C117D /* Products */,
- D2BCEC9BD06387351E0A72A7 /* Pods */,
- 3D584C694C8C44F5D212B449 /* Frameworks */,
- );
- sourceTree = "";
- };
- 97C146EF1CF9000F007C117D /* Products */ = {
- isa = PBXGroup;
- children = (
- 97C146EE1CF9000F007C117D /* Runner.app */,
- );
- name = Products;
- sourceTree = "";
- };
- 97C146F01CF9000F007C117D /* Runner */ = {
- isa = PBXGroup;
- children = (
- 97C146FA1CF9000F007C117D /* Main.storyboard */,
- 97C146FD1CF9000F007C117D /* Assets.xcassets */,
- 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */,
- 97C147021CF9000F007C117D /* Info.plist */,
- 97C146F11CF9000F007C117D /* Supporting Files */,
- 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */,
- 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */,
- 74858FAE1ED2DC5600515810 /* AppDelegate.swift */,
- 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */,
- );
- path = Runner;
- sourceTree = "";
- };
- 97C146F11CF9000F007C117D /* Supporting Files */ = {
- isa = PBXGroup;
- children = (
- );
- name = "Supporting Files";
- sourceTree = "";
- };
- D2BCEC9BD06387351E0A72A7 /* Pods */ = {
- isa = PBXGroup;
- children = (
- B827BA8675C74CB4AFD456BC /* Pods-Runner.debug.xcconfig */,
- E41B1437959B0B40C6234702 /* Pods-Runner.release.xcconfig */,
- D6D257E2FEE682CAC1D1B896 /* Pods-Runner.profile.xcconfig */,
- );
- path = Pods;
- sourceTree = "";
- };
-/* End PBXGroup section */
-
-/* Begin PBXNativeTarget section */
- 97C146ED1CF9000F007C117D /* Runner */ = {
- isa = PBXNativeTarget;
- buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */;
- buildPhases = (
- 4BBE9E1028F71ACA14B5C484 /* [CP] Check Pods Manifest.lock */,
- 9740EEB61CF901F6004384FC /* Run Script */,
- 97C146EA1CF9000F007C117D /* Sources */,
- 97C146EB1CF9000F007C117D /* Frameworks */,
- 97C146EC1CF9000F007C117D /* Resources */,
- 9705A1C41CF9048500538489 /* Embed Frameworks */,
- 3B06AD1E1E4923F5004D2608 /* Thin Binary */,
- 677388F870C1161C00B6B196 /* [CP] Embed Pods Frameworks */,
- );
- buildRules = (
- );
- dependencies = (
- );
- name = Runner;
- productName = Runner;
- productReference = 97C146EE1CF9000F007C117D /* Runner.app */;
- productType = "com.apple.product-type.application";
- };
-/* End PBXNativeTarget section */
-
-/* Begin PBXProject section */
- 97C146E61CF9000F007C117D /* Project object */ = {
- isa = PBXProject;
- attributes = {
- LastUpgradeCheck = 1020;
- ORGANIZATIONNAME = "";
- TargetAttributes = {
- 97C146ED1CF9000F007C117D = {
- CreatedOnToolsVersion = 7.3.1;
- LastSwiftMigration = 1100;
- ProvisioningStyle = Automatic;
- };
- };
- };
- buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */;
- compatibilityVersion = "Xcode 3.2";
- developmentRegion = en;
- hasScannedForEncodings = 0;
- knownRegions = (
- en,
- Base,
- );
- mainGroup = 97C146E51CF9000F007C117D;
- productRefGroup = 97C146EF1CF9000F007C117D /* Products */;
- projectDirPath = "";
- projectRoot = "";
- targets = (
- 97C146ED1CF9000F007C117D /* Runner */,
- );
- };
-/* End PBXProject section */
-
-/* Begin PBXResourcesBuildPhase section */
- 97C146EC1CF9000F007C117D /* Resources */ = {
- isa = PBXResourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */,
- 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */,
- 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */,
- 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXResourcesBuildPhase section */
-
-/* Begin PBXShellScriptBuildPhase section */
- 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = {
- isa = PBXShellScriptBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- inputPaths = (
- );
- name = "Thin Binary";
- outputPaths = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- shellPath = /bin/sh;
- shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin\n";
- };
- 4BBE9E1028F71ACA14B5C484 /* [CP] Check Pods Manifest.lock */ = {
- isa = PBXShellScriptBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- inputFileListPaths = (
- );
- inputPaths = (
- "${PODS_PODFILE_DIR_PATH}/Podfile.lock",
- "${PODS_ROOT}/Manifest.lock",
- );
- name = "[CP] Check Pods Manifest.lock";
- outputFileListPaths = (
- );
- outputPaths = (
- "$(DERIVED_FILE_DIR)/Pods-Runner-checkManifestLockResult.txt",
- );
- runOnlyForDeploymentPostprocessing = 0;
- shellPath = /bin/sh;
- shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
- showEnvVarsInLog = 0;
- };
- 677388F870C1161C00B6B196 /* [CP] Embed Pods Frameworks */ = {
- isa = PBXShellScriptBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- inputPaths = (
- "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh",
- "${BUILT_PRODUCTS_DIR}/DKImagePickerController/DKImagePickerController.framework",
- "${BUILT_PRODUCTS_DIR}/DKPhotoGallery/DKPhotoGallery.framework",
- "${BUILT_PRODUCTS_DIR}/FLAnimatedImage/FLAnimatedImage.framework",
- "${BUILT_PRODUCTS_DIR}/FMDB/FMDB.framework",
- "${PODS_ROOT}/../Flutter/Flutter.framework",
- "${BUILT_PRODUCTS_DIR}/Reachability/Reachability.framework",
- "${BUILT_PRODUCTS_DIR}/SDWebImage/SDWebImage.framework",
- "${BUILT_PRODUCTS_DIR}/SDWebImageFLPlugin/SDWebImageFLPlugin.framework",
- "${BUILT_PRODUCTS_DIR}/audio_service/audio_service.framework",
- "${BUILT_PRODUCTS_DIR}/connectivity/connectivity.framework",
- "${BUILT_PRODUCTS_DIR}/file_picker/file_picker.framework",
- "${BUILT_PRODUCTS_DIR}/flutter_downloader/flutter_downloader.framework",
- "${BUILT_PRODUCTS_DIR}/flutter_file_dialog/flutter_file_dialog.framework",
- "${BUILT_PRODUCTS_DIR}/flutter_isolate/flutter_isolate.framework",
- "${BUILT_PRODUCTS_DIR}/flutter_plugin_android_lifecycle/flutter_plugin_android_lifecycle.framework",
- "${BUILT_PRODUCTS_DIR}/fluttertoast/fluttertoast.framework",
- "${BUILT_PRODUCTS_DIR}/just_audio/just_audio.framework",
- "${BUILT_PRODUCTS_DIR}/path_provider/path_provider.framework",
- "${BUILT_PRODUCTS_DIR}/shared_preferences/shared_preferences.framework",
- "${BUILT_PRODUCTS_DIR}/sqflite/sqflite.framework",
- "${BUILT_PRODUCTS_DIR}/url_launcher/url_launcher.framework",
- "${BUILT_PRODUCTS_DIR}/workmanager/workmanager.framework",
- );
- name = "[CP] Embed Pods Frameworks";
- outputPaths = (
- "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/DKImagePickerController.framework",
- "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/DKPhotoGallery.framework",
- "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/FLAnimatedImage.framework",
- "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/FMDB.framework",
- "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Flutter.framework",
- "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Reachability.framework",
- "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/SDWebImage.framework",
- "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/SDWebImageFLPlugin.framework",
- "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/audio_service.framework",
- "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/connectivity.framework",
- "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/file_picker.framework",
- "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/flutter_downloader.framework",
- "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/flutter_file_dialog.framework",
- "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/flutter_isolate.framework",
- "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/flutter_plugin_android_lifecycle.framework",
- "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/fluttertoast.framework",
- "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/just_audio.framework",
- "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/path_provider.framework",
- "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/shared_preferences.framework",
- "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/sqflite.framework",
- "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/url_launcher.framework",
- "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/workmanager.framework",
- );
- runOnlyForDeploymentPostprocessing = 0;
- shellPath = /bin/sh;
- shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n";
- showEnvVarsInLog = 0;
- };
- 9740EEB61CF901F6004384FC /* Run Script */ = {
- isa = PBXShellScriptBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- inputPaths = (
- );
- name = "Run Script";
- outputPaths = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- shellPath = /bin/sh;
- shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build";
- };
-/* End PBXShellScriptBuildPhase section */
-
-/* Begin PBXSourcesBuildPhase section */
- 97C146EA1CF9000F007C117D /* Sources */ = {
- isa = PBXSourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */,
- 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXSourcesBuildPhase section */
-
-/* Begin PBXVariantGroup section */
- 97C146FA1CF9000F007C117D /* Main.storyboard */ = {
- isa = PBXVariantGroup;
- children = (
- 97C146FB1CF9000F007C117D /* Base */,
- );
- name = Main.storyboard;
- sourceTree = "";
- };
- 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = {
- isa = PBXVariantGroup;
- children = (
- 97C147001CF9000F007C117D /* Base */,
- );
- name = LaunchScreen.storyboard;
- sourceTree = "";
- };
-/* End PBXVariantGroup section */
-
-/* Begin XCBuildConfiguration section */
- 249021D3217E4FDB00AE95B9 /* Profile */ = {
- isa = XCBuildConfiguration;
- baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CLANG_ANALYZER_NONNULL = YES;
- CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
- CLANG_CXX_LIBRARY = "libc++";
- CLANG_ENABLE_MODULES = YES;
- CLANG_ENABLE_OBJC_ARC = YES;
- CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
- CLANG_WARN_BOOL_CONVERSION = YES;
- CLANG_WARN_COMMA = YES;
- CLANG_WARN_CONSTANT_CONVERSION = YES;
- CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
- CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
- CLANG_WARN_EMPTY_BODY = YES;
- CLANG_WARN_ENUM_CONVERSION = YES;
- CLANG_WARN_INFINITE_RECURSION = YES;
- CLANG_WARN_INT_CONVERSION = YES;
- CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
- CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
- CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
- CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
- CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
- CLANG_WARN_STRICT_PROTOTYPES = YES;
- CLANG_WARN_SUSPICIOUS_MOVE = YES;
- CLANG_WARN_UNREACHABLE_CODE = YES;
- CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
- "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
- COPY_PHASE_STRIP = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- ENABLE_NS_ASSERTIONS = NO;
- ENABLE_STRICT_OBJC_MSGSEND = YES;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_NO_COMMON_BLOCKS = YES;
- GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
- GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
- GCC_WARN_UNDECLARED_SELECTOR = YES;
- GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
- GCC_WARN_UNUSED_FUNCTION = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- IPHONEOS_DEPLOYMENT_TARGET = 8.0;
- MTL_ENABLE_DEBUG_INFO = NO;
- SDKROOT = iphoneos;
- SUPPORTED_PLATFORMS = iphoneos;
- TARGETED_DEVICE_FAMILY = "1,2";
- VALIDATE_PRODUCT = YES;
- };
- name = Profile;
- };
- 249021D4217E4FDB00AE95B9 /* Profile */ = {
- isa = XCBuildConfiguration;
- baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
- buildSettings = {
- ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
- CLANG_ENABLE_MODULES = YES;
- CODE_SIGN_IDENTITY = "Apple Development";
- CODE_SIGN_STYLE = Automatic;
- CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
- DEVELOPMENT_TEAM = "";
- ENABLE_BITCODE = NO;
- FRAMEWORK_SEARCH_PATHS = (
- "$(inherited)",
- "$(PROJECT_DIR)/Flutter",
- );
- INFOPLIST_FILE = Runner/Info.plist;
- LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
- LIBRARY_SEARCH_PATHS = (
- "$(inherited)",
- "$(PROJECT_DIR)/Flutter",
- );
- PRODUCT_BUNDLE_IDENTIFIER = com.stonegate.tsacdop;
- PRODUCT_NAME = "$(TARGET_NAME)";
- PROVISIONING_PROFILE_SPECIFIER = "";
- SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
- SWIFT_VERSION = 5.0;
- VERSIONING_SYSTEM = "apple-generic";
- };
- name = Profile;
- };
- 97C147031CF9000F007C117D /* Debug */ = {
- isa = XCBuildConfiguration;
- baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CLANG_ANALYZER_NONNULL = YES;
- CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
- CLANG_CXX_LIBRARY = "libc++";
- CLANG_ENABLE_MODULES = YES;
- CLANG_ENABLE_OBJC_ARC = YES;
- CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
- CLANG_WARN_BOOL_CONVERSION = YES;
- CLANG_WARN_COMMA = YES;
- CLANG_WARN_CONSTANT_CONVERSION = YES;
- CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
- CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
- CLANG_WARN_EMPTY_BODY = YES;
- CLANG_WARN_ENUM_CONVERSION = YES;
- CLANG_WARN_INFINITE_RECURSION = YES;
- CLANG_WARN_INT_CONVERSION = YES;
- CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
- CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
- CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
- CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
- CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
- CLANG_WARN_STRICT_PROTOTYPES = YES;
- CLANG_WARN_SUSPICIOUS_MOVE = YES;
- CLANG_WARN_UNREACHABLE_CODE = YES;
- CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
- "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
- COPY_PHASE_STRIP = NO;
- DEBUG_INFORMATION_FORMAT = dwarf;
- ENABLE_STRICT_OBJC_MSGSEND = YES;
- ENABLE_TESTABILITY = YES;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_NO_COMMON_BLOCKS = YES;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "DEBUG=1",
- "$(inherited)",
- );
- GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
- GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
- GCC_WARN_UNDECLARED_SELECTOR = YES;
- GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
- GCC_WARN_UNUSED_FUNCTION = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- IPHONEOS_DEPLOYMENT_TARGET = 8.0;
- MTL_ENABLE_DEBUG_INFO = YES;
- ONLY_ACTIVE_ARCH = YES;
- SDKROOT = iphoneos;
- TARGETED_DEVICE_FAMILY = "1,2";
- };
- name = Debug;
- };
- 97C147041CF9000F007C117D /* Release */ = {
- isa = XCBuildConfiguration;
- baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CLANG_ANALYZER_NONNULL = YES;
- CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
- CLANG_CXX_LIBRARY = "libc++";
- CLANG_ENABLE_MODULES = YES;
- CLANG_ENABLE_OBJC_ARC = YES;
- CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
- CLANG_WARN_BOOL_CONVERSION = YES;
- CLANG_WARN_COMMA = YES;
- CLANG_WARN_CONSTANT_CONVERSION = YES;
- CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
- CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
- CLANG_WARN_EMPTY_BODY = YES;
- CLANG_WARN_ENUM_CONVERSION = YES;
- CLANG_WARN_INFINITE_RECURSION = YES;
- CLANG_WARN_INT_CONVERSION = YES;
- CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
- CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
- CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
- CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
- CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
- CLANG_WARN_STRICT_PROTOTYPES = YES;
- CLANG_WARN_SUSPICIOUS_MOVE = YES;
- CLANG_WARN_UNREACHABLE_CODE = YES;
- CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
- "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
- COPY_PHASE_STRIP = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- ENABLE_NS_ASSERTIONS = NO;
- ENABLE_STRICT_OBJC_MSGSEND = YES;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_NO_COMMON_BLOCKS = YES;
- GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
- GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
- GCC_WARN_UNDECLARED_SELECTOR = YES;
- GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
- GCC_WARN_UNUSED_FUNCTION = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- IPHONEOS_DEPLOYMENT_TARGET = 8.0;
- MTL_ENABLE_DEBUG_INFO = NO;
- SDKROOT = iphoneos;
- SUPPORTED_PLATFORMS = iphoneos;
- SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
- TARGETED_DEVICE_FAMILY = "1,2";
- VALIDATE_PRODUCT = YES;
- };
- name = Release;
- };
- 97C147061CF9000F007C117D /* Debug */ = {
- isa = XCBuildConfiguration;
- baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;
- buildSettings = {
- ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
- CLANG_ENABLE_MODULES = YES;
- CODE_SIGN_IDENTITY = "Apple Development";
- CODE_SIGN_STYLE = Automatic;
- CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
- DEVELOPMENT_TEAM = "";
- ENABLE_BITCODE = NO;
- FRAMEWORK_SEARCH_PATHS = (
- "$(inherited)",
- "$(PROJECT_DIR)/Flutter",
- );
- INFOPLIST_FILE = Runner/Info.plist;
- LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
- LIBRARY_SEARCH_PATHS = (
- "$(inherited)",
- "$(PROJECT_DIR)/Flutter",
- );
- PRODUCT_BUNDLE_IDENTIFIER = com.stonegate.tsacdop;
- PRODUCT_NAME = "$(TARGET_NAME)";
- PROVISIONING_PROFILE_SPECIFIER = "";
- SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
- SWIFT_OPTIMIZATION_LEVEL = "-Onone";
- SWIFT_VERSION = 5.0;
- VERSIONING_SYSTEM = "apple-generic";
- };
- name = Debug;
- };
- 97C147071CF9000F007C117D /* Release */ = {
- isa = XCBuildConfiguration;
- baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
- buildSettings = {
- ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
- CLANG_ENABLE_MODULES = YES;
- CODE_SIGN_IDENTITY = "Apple Development";
- CODE_SIGN_STYLE = Automatic;
- CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
- DEVELOPMENT_TEAM = "";
- ENABLE_BITCODE = NO;
- FRAMEWORK_SEARCH_PATHS = (
- "$(inherited)",
- "$(PROJECT_DIR)/Flutter",
- );
- INFOPLIST_FILE = Runner/Info.plist;
- LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
- LIBRARY_SEARCH_PATHS = (
- "$(inherited)",
- "$(PROJECT_DIR)/Flutter",
- );
- PRODUCT_BUNDLE_IDENTIFIER = com.stonegate.tsacdop;
- PRODUCT_NAME = "$(TARGET_NAME)";
- PROVISIONING_PROFILE_SPECIFIER = "";
- SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
- SWIFT_VERSION = 5.0;
- VERSIONING_SYSTEM = "apple-generic";
- };
- name = Release;
- };
-/* End XCBuildConfiguration section */
-
-/* Begin XCConfigurationList section */
- 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 97C147031CF9000F007C117D /* Debug */,
- 97C147041CF9000F007C117D /* Release */,
- 249021D3217E4FDB00AE95B9 /* Profile */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = Release;
- };
- 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 97C147061CF9000F007C117D /* Debug */,
- 97C147071CF9000F007C117D /* Release */,
- 249021D4217E4FDB00AE95B9 /* Profile */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = Release;
- };
-/* End XCConfigurationList section */
- };
- rootObject = 97C146E61CF9000F007C117D /* Project object */;
-}
+// !$*UTF8*$!
+{
+ archiveVersion = 1;
+ classes = {
+ };
+ objectVersion = 46;
+ objects = {
+
+/* Begin PBXBuildFile section */
+ 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; };
+ 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; };
+ 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; };
+ 8CF9779B9A79168FBFA6066E /* Pods_Runner.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 06AA1B089A6D985A4089F4BD /* Pods_Runner.framework */; };
+ 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; };
+ 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; };
+ 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; };
+/* End PBXBuildFile section */
+
+/* Begin PBXCopyFilesBuildPhase section */
+ 9705A1C41CF9048500538489 /* Embed Frameworks */ = {
+ isa = PBXCopyFilesBuildPhase;
+ buildActionMask = 2147483647;
+ dstPath = "";
+ dstSubfolderSpec = 10;
+ files = (
+ );
+ name = "Embed Frameworks";
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXCopyFilesBuildPhase section */
+
+/* Begin PBXFileReference section */
+ 06AA1B089A6D985A4089F4BD /* Pods_Runner.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Runner.framework; sourceTree = BUILT_PRODUCTS_DIR; };
+ 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; };
+ 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; };
+ 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; };
+ 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = ""; };
+ 74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; };
+ 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; };
+ 8E4DBAFB2467BE8D00105DDB /* libsqlite3.tbd */ = {isa = PBXFileReference; lastKnownFileType = "sourcecode.text-based-dylib-definition"; name = libsqlite3.tbd; path = usr/lib/libsqlite3.tbd; sourceTree = SDKROOT; };
+ 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; };
+ 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; };
+ 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; };
+ 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; };
+ 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; };
+ 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; };
+ 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
+ B827BA8675C74CB4AFD456BC /* Pods-Runner.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.debug.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"; sourceTree = ""; };
+ D6D257E2FEE682CAC1D1B896 /* Pods-Runner.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.profile.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig"; sourceTree = ""; };
+ E41B1437959B0B40C6234702 /* Pods-Runner.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.release.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"; sourceTree = ""; };
+/* End PBXFileReference section */
+
+/* Begin PBXFrameworksBuildPhase section */
+ 97C146EB1CF9000F007C117D /* Frameworks */ = {
+ isa = PBXFrameworksBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 8CF9779B9A79168FBFA6066E /* Pods_Runner.framework in Frameworks */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXFrameworksBuildPhase section */
+
+/* Begin PBXGroup section */
+ 3D584C694C8C44F5D212B449 /* Frameworks */ = {
+ isa = PBXGroup;
+ children = (
+ 8E4DBAFB2467BE8D00105DDB /* libsqlite3.tbd */,
+ 06AA1B089A6D985A4089F4BD /* Pods_Runner.framework */,
+ );
+ name = Frameworks;
+ sourceTree = "";
+ };
+ 9740EEB11CF90186004384FC /* Flutter */ = {
+ isa = PBXGroup;
+ children = (
+ 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */,
+ 9740EEB21CF90195004384FC /* Debug.xcconfig */,
+ 7AFA3C8E1D35360C0083082E /* Release.xcconfig */,
+ 9740EEB31CF90195004384FC /* Generated.xcconfig */,
+ );
+ name = Flutter;
+ sourceTree = "";
+ };
+ 97C146E51CF9000F007C117D = {
+ isa = PBXGroup;
+ children = (
+ 9740EEB11CF90186004384FC /* Flutter */,
+ 97C146F01CF9000F007C117D /* Runner */,
+ 97C146EF1CF9000F007C117D /* Products */,
+ D2BCEC9BD06387351E0A72A7 /* Pods */,
+ 3D584C694C8C44F5D212B449 /* Frameworks */,
+ );
+ sourceTree = "";
+ };
+ 97C146EF1CF9000F007C117D /* Products */ = {
+ isa = PBXGroup;
+ children = (
+ 97C146EE1CF9000F007C117D /* Runner.app */,
+ );
+ name = Products;
+ sourceTree = "";
+ };
+ 97C146F01CF9000F007C117D /* Runner */ = {
+ isa = PBXGroup;
+ children = (
+ 97C146FA1CF9000F007C117D /* Main.storyboard */,
+ 97C146FD1CF9000F007C117D /* Assets.xcassets */,
+ 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */,
+ 97C147021CF9000F007C117D /* Info.plist */,
+ 97C146F11CF9000F007C117D /* Supporting Files */,
+ 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */,
+ 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */,
+ 74858FAE1ED2DC5600515810 /* AppDelegate.swift */,
+ 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */,
+ );
+ path = Runner;
+ sourceTree = "";
+ };
+ 97C146F11CF9000F007C117D /* Supporting Files */ = {
+ isa = PBXGroup;
+ children = (
+ );
+ name = "Supporting Files";
+ sourceTree = "";
+ };
+ D2BCEC9BD06387351E0A72A7 /* Pods */ = {
+ isa = PBXGroup;
+ children = (
+ B827BA8675C74CB4AFD456BC /* Pods-Runner.debug.xcconfig */,
+ E41B1437959B0B40C6234702 /* Pods-Runner.release.xcconfig */,
+ D6D257E2FEE682CAC1D1B896 /* Pods-Runner.profile.xcconfig */,
+ );
+ path = Pods;
+ sourceTree = "";
+ };
+/* End PBXGroup section */
+
+/* Begin PBXNativeTarget section */
+ 97C146ED1CF9000F007C117D /* Runner */ = {
+ isa = PBXNativeTarget;
+ buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */;
+ buildPhases = (
+ 4BBE9E1028F71ACA14B5C484 /* [CP] Check Pods Manifest.lock */,
+ 9740EEB61CF901F6004384FC /* Run Script */,
+ 97C146EA1CF9000F007C117D /* Sources */,
+ 97C146EB1CF9000F007C117D /* Frameworks */,
+ 97C146EC1CF9000F007C117D /* Resources */,
+ 9705A1C41CF9048500538489 /* Embed Frameworks */,
+ 3B06AD1E1E4923F5004D2608 /* Thin Binary */,
+ 677388F870C1161C00B6B196 /* [CP] Embed Pods Frameworks */,
+ );
+ buildRules = (
+ );
+ dependencies = (
+ );
+ name = Runner;
+ productName = Runner;
+ productReference = 97C146EE1CF9000F007C117D /* Runner.app */;
+ productType = "com.apple.product-type.application";
+ };
+/* End PBXNativeTarget section */
+
+/* Begin PBXProject section */
+ 97C146E61CF9000F007C117D /* Project object */ = {
+ isa = PBXProject;
+ attributes = {
+ LastUpgradeCheck = 1020;
+ ORGANIZATIONNAME = "";
+ TargetAttributes = {
+ 97C146ED1CF9000F007C117D = {
+ CreatedOnToolsVersion = 7.3.1;
+ LastSwiftMigration = 1100;
+ ProvisioningStyle = Automatic;
+ };
+ };
+ };
+ buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */;
+ compatibilityVersion = "Xcode 3.2";
+ developmentRegion = en;
+ hasScannedForEncodings = 0;
+ knownRegions = (
+ en,
+ Base,
+ );
+ mainGroup = 97C146E51CF9000F007C117D;
+ productRefGroup = 97C146EF1CF9000F007C117D /* Products */;
+ projectDirPath = "";
+ projectRoot = "";
+ targets = (
+ 97C146ED1CF9000F007C117D /* Runner */,
+ );
+ };
+/* End PBXProject section */
+
+/* Begin PBXResourcesBuildPhase section */
+ 97C146EC1CF9000F007C117D /* Resources */ = {
+ isa = PBXResourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */,
+ 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */,
+ 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */,
+ 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXResourcesBuildPhase section */
+
+/* Begin PBXShellScriptBuildPhase section */
+ 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = {
+ isa = PBXShellScriptBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ inputPaths = (
+ );
+ name = "Thin Binary";
+ outputPaths = (
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ shellPath = /bin/sh;
+ shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin\n";
+ };
+ 4BBE9E1028F71ACA14B5C484 /* [CP] Check Pods Manifest.lock */ = {
+ isa = PBXShellScriptBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ inputFileListPaths = (
+ );
+ inputPaths = (
+ "${PODS_PODFILE_DIR_PATH}/Podfile.lock",
+ "${PODS_ROOT}/Manifest.lock",
+ );
+ name = "[CP] Check Pods Manifest.lock";
+ outputFileListPaths = (
+ );
+ outputPaths = (
+ "$(DERIVED_FILE_DIR)/Pods-Runner-checkManifestLockResult.txt",
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ shellPath = /bin/sh;
+ shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
+ showEnvVarsInLog = 0;
+ };
+ 677388F870C1161C00B6B196 /* [CP] Embed Pods Frameworks */ = {
+ isa = PBXShellScriptBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ inputPaths = (
+ "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh",
+ "${BUILT_PRODUCTS_DIR}/DKImagePickerController/DKImagePickerController.framework",
+ "${BUILT_PRODUCTS_DIR}/DKPhotoGallery/DKPhotoGallery.framework",
+ "${BUILT_PRODUCTS_DIR}/FLAnimatedImage/FLAnimatedImage.framework",
+ "${BUILT_PRODUCTS_DIR}/FMDB/FMDB.framework",
+ "${PODS_ROOT}/../Flutter/Flutter.framework",
+ "${BUILT_PRODUCTS_DIR}/Reachability/Reachability.framework",
+ "${BUILT_PRODUCTS_DIR}/SDWebImage/SDWebImage.framework",
+ "${BUILT_PRODUCTS_DIR}/SDWebImageFLPlugin/SDWebImageFLPlugin.framework",
+ "${BUILT_PRODUCTS_DIR}/audio_service/audio_service.framework",
+ "${BUILT_PRODUCTS_DIR}/connectivity/connectivity.framework",
+ "${BUILT_PRODUCTS_DIR}/file_picker/file_picker.framework",
+ "${BUILT_PRODUCTS_DIR}/flutter_downloader/flutter_downloader.framework",
+ "${BUILT_PRODUCTS_DIR}/flutter_file_dialog/flutter_file_dialog.framework",
+ "${BUILT_PRODUCTS_DIR}/flutter_isolate/flutter_isolate.framework",
+ "${BUILT_PRODUCTS_DIR}/flutter_plugin_android_lifecycle/flutter_plugin_android_lifecycle.framework",
+ "${BUILT_PRODUCTS_DIR}/fluttertoast/fluttertoast.framework",
+ "${BUILT_PRODUCTS_DIR}/just_audio/just_audio.framework",
+ "${BUILT_PRODUCTS_DIR}/path_provider/path_provider.framework",
+ "${BUILT_PRODUCTS_DIR}/shared_preferences/shared_preferences.framework",
+ "${BUILT_PRODUCTS_DIR}/sqflite/sqflite.framework",
+ "${BUILT_PRODUCTS_DIR}/url_launcher/url_launcher.framework",
+ "${BUILT_PRODUCTS_DIR}/workmanager/workmanager.framework",
+ );
+ name = "[CP] Embed Pods Frameworks";
+ outputPaths = (
+ "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/DKImagePickerController.framework",
+ "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/DKPhotoGallery.framework",
+ "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/FLAnimatedImage.framework",
+ "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/FMDB.framework",
+ "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Flutter.framework",
+ "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Reachability.framework",
+ "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/SDWebImage.framework",
+ "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/SDWebImageFLPlugin.framework",
+ "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/audio_service.framework",
+ "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/connectivity.framework",
+ "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/file_picker.framework",
+ "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/flutter_downloader.framework",
+ "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/flutter_file_dialog.framework",
+ "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/flutter_isolate.framework",
+ "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/flutter_plugin_android_lifecycle.framework",
+ "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/fluttertoast.framework",
+ "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/just_audio.framework",
+ "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/path_provider.framework",
+ "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/shared_preferences.framework",
+ "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/sqflite.framework",
+ "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/url_launcher.framework",
+ "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/workmanager.framework",
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ shellPath = /bin/sh;
+ shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n";
+ showEnvVarsInLog = 0;
+ };
+ 9740EEB61CF901F6004384FC /* Run Script */ = {
+ isa = PBXShellScriptBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ inputPaths = (
+ );
+ name = "Run Script";
+ outputPaths = (
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ shellPath = /bin/sh;
+ shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build";
+ };
+/* End PBXShellScriptBuildPhase section */
+
+/* Begin PBXSourcesBuildPhase section */
+ 97C146EA1CF9000F007C117D /* Sources */ = {
+ isa = PBXSourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */,
+ 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXSourcesBuildPhase section */
+
+/* Begin PBXVariantGroup section */
+ 97C146FA1CF9000F007C117D /* Main.storyboard */ = {
+ isa = PBXVariantGroup;
+ children = (
+ 97C146FB1CF9000F007C117D /* Base */,
+ );
+ name = Main.storyboard;
+ sourceTree = "";
+ };
+ 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = {
+ isa = PBXVariantGroup;
+ children = (
+ 97C147001CF9000F007C117D /* Base */,
+ );
+ name = LaunchScreen.storyboard;
+ sourceTree = "";
+ };
+/* End PBXVariantGroup section */
+
+/* Begin XCBuildConfiguration section */
+ 249021D3217E4FDB00AE95B9 /* Profile */ = {
+ isa = XCBuildConfiguration;
+ baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
+ buildSettings = {
+ ALWAYS_SEARCH_USER_PATHS = NO;
+ CLANG_ANALYZER_NONNULL = YES;
+ CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
+ CLANG_CXX_LIBRARY = "libc++";
+ CLANG_ENABLE_MODULES = YES;
+ CLANG_ENABLE_OBJC_ARC = YES;
+ CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
+ CLANG_WARN_BOOL_CONVERSION = YES;
+ CLANG_WARN_COMMA = YES;
+ CLANG_WARN_CONSTANT_CONVERSION = YES;
+ CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
+ CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
+ CLANG_WARN_EMPTY_BODY = YES;
+ CLANG_WARN_ENUM_CONVERSION = YES;
+ CLANG_WARN_INFINITE_RECURSION = YES;
+ CLANG_WARN_INT_CONVERSION = YES;
+ CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
+ CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
+ CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
+ CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
+ CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
+ CLANG_WARN_STRICT_PROTOTYPES = YES;
+ CLANG_WARN_SUSPICIOUS_MOVE = YES;
+ CLANG_WARN_UNREACHABLE_CODE = YES;
+ CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
+ "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
+ COPY_PHASE_STRIP = NO;
+ DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
+ ENABLE_NS_ASSERTIONS = NO;
+ ENABLE_STRICT_OBJC_MSGSEND = YES;
+ GCC_C_LANGUAGE_STANDARD = gnu99;
+ GCC_NO_COMMON_BLOCKS = YES;
+ GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
+ GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
+ GCC_WARN_UNDECLARED_SELECTOR = YES;
+ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
+ GCC_WARN_UNUSED_FUNCTION = YES;
+ GCC_WARN_UNUSED_VARIABLE = YES;
+ IPHONEOS_DEPLOYMENT_TARGET = 8.0;
+ MTL_ENABLE_DEBUG_INFO = NO;
+ SDKROOT = iphoneos;
+ SUPPORTED_PLATFORMS = iphoneos;
+ TARGETED_DEVICE_FAMILY = "1,2";
+ VALIDATE_PRODUCT = YES;
+ };
+ name = Profile;
+ };
+ 249021D4217E4FDB00AE95B9 /* Profile */ = {
+ isa = XCBuildConfiguration;
+ baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
+ buildSettings = {
+ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
+ CLANG_ENABLE_MODULES = YES;
+ CODE_SIGN_IDENTITY = "Apple Development";
+ CODE_SIGN_STYLE = Automatic;
+ CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
+ DEVELOPMENT_TEAM = "";
+ ENABLE_BITCODE = NO;
+ FRAMEWORK_SEARCH_PATHS = (
+ "$(inherited)",
+ "$(PROJECT_DIR)/Flutter",
+ );
+ INFOPLIST_FILE = Runner/Info.plist;
+ LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
+ LIBRARY_SEARCH_PATHS = (
+ "$(inherited)",
+ "$(PROJECT_DIR)/Flutter",
+ );
+ PRODUCT_BUNDLE_IDENTIFIER = com.stonegate.tsacdop;
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ PROVISIONING_PROFILE_SPECIFIER = "";
+ SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
+ SWIFT_VERSION = 5.0;
+ VERSIONING_SYSTEM = "apple-generic";
+ };
+ name = Profile;
+ };
+ 97C147031CF9000F007C117D /* Debug */ = {
+ isa = XCBuildConfiguration;
+ baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;
+ buildSettings = {
+ ALWAYS_SEARCH_USER_PATHS = NO;
+ CLANG_ANALYZER_NONNULL = YES;
+ CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
+ CLANG_CXX_LIBRARY = "libc++";
+ CLANG_ENABLE_MODULES = YES;
+ CLANG_ENABLE_OBJC_ARC = YES;
+ CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
+ CLANG_WARN_BOOL_CONVERSION = YES;
+ CLANG_WARN_COMMA = YES;
+ CLANG_WARN_CONSTANT_CONVERSION = YES;
+ CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
+ CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
+ CLANG_WARN_EMPTY_BODY = YES;
+ CLANG_WARN_ENUM_CONVERSION = YES;
+ CLANG_WARN_INFINITE_RECURSION = YES;
+ CLANG_WARN_INT_CONVERSION = YES;
+ CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
+ CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
+ CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
+ CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
+ CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
+ CLANG_WARN_STRICT_PROTOTYPES = YES;
+ CLANG_WARN_SUSPICIOUS_MOVE = YES;
+ CLANG_WARN_UNREACHABLE_CODE = YES;
+ CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
+ "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
+ COPY_PHASE_STRIP = NO;
+ DEBUG_INFORMATION_FORMAT = dwarf;
+ ENABLE_STRICT_OBJC_MSGSEND = YES;
+ ENABLE_TESTABILITY = YES;
+ GCC_C_LANGUAGE_STANDARD = gnu99;
+ GCC_DYNAMIC_NO_PIC = NO;
+ GCC_NO_COMMON_BLOCKS = YES;
+ GCC_OPTIMIZATION_LEVEL = 0;
+ GCC_PREPROCESSOR_DEFINITIONS = (
+ "DEBUG=1",
+ "$(inherited)",
+ );
+ GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
+ GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
+ GCC_WARN_UNDECLARED_SELECTOR = YES;
+ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
+ GCC_WARN_UNUSED_FUNCTION = YES;
+ GCC_WARN_UNUSED_VARIABLE = YES;
+ IPHONEOS_DEPLOYMENT_TARGET = 8.0;
+ MTL_ENABLE_DEBUG_INFO = YES;
+ ONLY_ACTIVE_ARCH = YES;
+ SDKROOT = iphoneos;
+ TARGETED_DEVICE_FAMILY = "1,2";
+ };
+ name = Debug;
+ };
+ 97C147041CF9000F007C117D /* Release */ = {
+ isa = XCBuildConfiguration;
+ baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
+ buildSettings = {
+ ALWAYS_SEARCH_USER_PATHS = NO;
+ CLANG_ANALYZER_NONNULL = YES;
+ CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
+ CLANG_CXX_LIBRARY = "libc++";
+ CLANG_ENABLE_MODULES = YES;
+ CLANG_ENABLE_OBJC_ARC = YES;
+ CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
+ CLANG_WARN_BOOL_CONVERSION = YES;
+ CLANG_WARN_COMMA = YES;
+ CLANG_WARN_CONSTANT_CONVERSION = YES;
+ CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
+ CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
+ CLANG_WARN_EMPTY_BODY = YES;
+ CLANG_WARN_ENUM_CONVERSION = YES;
+ CLANG_WARN_INFINITE_RECURSION = YES;
+ CLANG_WARN_INT_CONVERSION = YES;
+ CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
+ CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
+ CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
+ CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
+ CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
+ CLANG_WARN_STRICT_PROTOTYPES = YES;
+ CLANG_WARN_SUSPICIOUS_MOVE = YES;
+ CLANG_WARN_UNREACHABLE_CODE = YES;
+ CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
+ "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
+ COPY_PHASE_STRIP = NO;
+ DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
+ ENABLE_NS_ASSERTIONS = NO;
+ ENABLE_STRICT_OBJC_MSGSEND = YES;
+ GCC_C_LANGUAGE_STANDARD = gnu99;
+ GCC_NO_COMMON_BLOCKS = YES;
+ GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
+ GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
+ GCC_WARN_UNDECLARED_SELECTOR = YES;
+ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
+ GCC_WARN_UNUSED_FUNCTION = YES;
+ GCC_WARN_UNUSED_VARIABLE = YES;
+ IPHONEOS_DEPLOYMENT_TARGET = 8.0;
+ MTL_ENABLE_DEBUG_INFO = NO;
+ SDKROOT = iphoneos;
+ SUPPORTED_PLATFORMS = iphoneos;
+ SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
+ TARGETED_DEVICE_FAMILY = "1,2";
+ VALIDATE_PRODUCT = YES;
+ };
+ name = Release;
+ };
+ 97C147061CF9000F007C117D /* Debug */ = {
+ isa = XCBuildConfiguration;
+ baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;
+ buildSettings = {
+ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
+ CLANG_ENABLE_MODULES = YES;
+ CODE_SIGN_IDENTITY = "Apple Development";
+ CODE_SIGN_STYLE = Automatic;
+ CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
+ DEVELOPMENT_TEAM = "";
+ ENABLE_BITCODE = NO;
+ FRAMEWORK_SEARCH_PATHS = (
+ "$(inherited)",
+ "$(PROJECT_DIR)/Flutter",
+ );
+ INFOPLIST_FILE = Runner/Info.plist;
+ LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
+ LIBRARY_SEARCH_PATHS = (
+ "$(inherited)",
+ "$(PROJECT_DIR)/Flutter",
+ );
+ PRODUCT_BUNDLE_IDENTIFIER = com.stonegate.tsacdop;
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ PROVISIONING_PROFILE_SPECIFIER = "";
+ SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
+ SWIFT_OPTIMIZATION_LEVEL = "-Onone";
+ SWIFT_VERSION = 5.0;
+ VERSIONING_SYSTEM = "apple-generic";
+ };
+ name = Debug;
+ };
+ 97C147071CF9000F007C117D /* Release */ = {
+ isa = XCBuildConfiguration;
+ baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
+ buildSettings = {
+ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
+ CLANG_ENABLE_MODULES = YES;
+ CODE_SIGN_IDENTITY = "Apple Development";
+ CODE_SIGN_STYLE = Automatic;
+ CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
+ DEVELOPMENT_TEAM = "";
+ ENABLE_BITCODE = NO;
+ FRAMEWORK_SEARCH_PATHS = (
+ "$(inherited)",
+ "$(PROJECT_DIR)/Flutter",
+ );
+ INFOPLIST_FILE = Runner/Info.plist;
+ LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
+ LIBRARY_SEARCH_PATHS = (
+ "$(inherited)",
+ "$(PROJECT_DIR)/Flutter",
+ );
+ PRODUCT_BUNDLE_IDENTIFIER = com.stonegate.tsacdop;
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ PROVISIONING_PROFILE_SPECIFIER = "";
+ SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
+ SWIFT_VERSION = 5.0;
+ VERSIONING_SYSTEM = "apple-generic";
+ };
+ name = Release;
+ };
+/* End XCBuildConfiguration section */
+
+/* Begin XCConfigurationList section */
+ 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = {
+ isa = XCConfigurationList;
+ buildConfigurations = (
+ 97C147031CF9000F007C117D /* Debug */,
+ 97C147041CF9000F007C117D /* Release */,
+ 249021D3217E4FDB00AE95B9 /* Profile */,
+ );
+ defaultConfigurationIsVisible = 0;
+ defaultConfigurationName = Release;
+ };
+ 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = {
+ isa = XCConfigurationList;
+ buildConfigurations = (
+ 97C147061CF9000F007C117D /* Debug */,
+ 97C147071CF9000F007C117D /* Release */,
+ 249021D4217E4FDB00AE95B9 /* Profile */,
+ );
+ defaultConfigurationIsVisible = 0;
+ defaultConfigurationName = Release;
+ };
+/* End XCConfigurationList section */
+ };
+ rootObject = 97C146E61CF9000F007C117D /* Project object */;
+}
diff --git a/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata
index 1d526a1..59c6d39 100644
--- a/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata
+++ b/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata
@@ -1,7 +1,7 @@
-
-
-
-
-
+
+
+
+
+
diff --git a/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
index 18d9810..fc6bf80 100644
--- a/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
+++ b/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
@@ -1,8 +1,8 @@
-
-
-
-
- IDEDidComputeMac32BitWarning
-
-
-
+
+
+
+
+ IDEDidComputeMac32BitWarning
+
+
+
diff --git a/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings b/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings
index f9b0d7c..af0309c 100644
--- a/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings
+++ b/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings
@@ -1,8 +1,8 @@
-
-
-
-
- PreviewsEnabled
-
-
-
+
+
+
+
+ PreviewsEnabled
+
+
+
diff --git a/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme b/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
index a28140c..be0b92e 100644
--- a/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
+++ b/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
@@ -1,91 +1,91 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/ios/Runner.xcworkspace/contents.xcworkspacedata b/ios/Runner.xcworkspace/contents.xcworkspacedata
index 21a3cc1..17ccc03 100644
--- a/ios/Runner.xcworkspace/contents.xcworkspacedata
+++ b/ios/Runner.xcworkspace/contents.xcworkspacedata
@@ -1,10 +1,10 @@
-
-
-
-
-
-
-
+
+
+
+
+
+
+
diff --git a/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
index 18d9810..fc6bf80 100644
--- a/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
+++ b/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
@@ -1,8 +1,8 @@
-
-
-
-
- IDEDidComputeMac32BitWarning
-
-
-
+
+
+
+
+ IDEDidComputeMac32BitWarning
+
+
+
diff --git a/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings b/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings
index f9b0d7c..af0309c 100644
--- a/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings
+++ b/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings
@@ -1,8 +1,8 @@
-
-
-
-
- PreviewsEnabled
-
-
-
+
+
+
+
+ PreviewsEnabled
+
+
+
diff --git a/ios/Runner/AppDelegate.swift b/ios/Runner/AppDelegate.swift
index 42f43db..08dbf08 100644
--- a/ios/Runner/AppDelegate.swift
+++ b/ios/Runner/AppDelegate.swift
@@ -1,23 +1,23 @@
-import UIKit
-import Flutter
-import flutter_downloader
-
-@UIApplicationMain
-@objc class AppDelegate: FlutterAppDelegate {
- override func application(
- _ application: UIApplication,
- didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
- ) -> Bool {
- GeneratedPluginRegistrant.register(with: self)
- FlutterDownloaderPlugin.setPluginRegistrantCallback(registerPlugins)
- UIApplication.shared.setMinimumBackgroundFetchInterval(TimeInterval(60*60*4))
- return super.application(application, didFinishLaunchingWithOptions: launchOptions)
- }
-}
-
-private func registerPlugins(registry: FlutterPluginRegistry) {
- if (!registry.hasPlugin("FlutterDownloaderPlugin")) {
- FlutterDownloaderPlugin.register(with: registry.registrar(forPlugin: "FlutterDownloaderPlugin"))
- }
-}
-
+import UIKit
+import Flutter
+import flutter_downloader
+
+@UIApplicationMain
+@objc class AppDelegate: FlutterAppDelegate {
+ override func application(
+ _ application: UIApplication,
+ didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
+ ) -> Bool {
+ GeneratedPluginRegistrant.register(with: self)
+ FlutterDownloaderPlugin.setPluginRegistrantCallback(registerPlugins)
+ UIApplication.shared.setMinimumBackgroundFetchInterval(TimeInterval(60*60*4))
+ return super.application(application, didFinishLaunchingWithOptions: launchOptions)
+ }
+}
+
+private func registerPlugins(registry: FlutterPluginRegistry) {
+ if (!registry.hasPlugin("FlutterDownloaderPlugin")) {
+ FlutterDownloaderPlugin.register(with: registry.registrar(forPlugin: "FlutterDownloaderPlugin"))
+ }
+}
+
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json
index d36b1fa..1950fd8 100644
--- a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json
+++ b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json
@@ -1,122 +1,122 @@
-{
- "images" : [
- {
- "size" : "20x20",
- "idiom" : "iphone",
- "filename" : "Icon-App-20x20@2x.png",
- "scale" : "2x"
- },
- {
- "size" : "20x20",
- "idiom" : "iphone",
- "filename" : "Icon-App-20x20@3x.png",
- "scale" : "3x"
- },
- {
- "size" : "29x29",
- "idiom" : "iphone",
- "filename" : "Icon-App-29x29@1x.png",
- "scale" : "1x"
- },
- {
- "size" : "29x29",
- "idiom" : "iphone",
- "filename" : "Icon-App-29x29@2x.png",
- "scale" : "2x"
- },
- {
- "size" : "29x29",
- "idiom" : "iphone",
- "filename" : "Icon-App-29x29@3x.png",
- "scale" : "3x"
- },
- {
- "size" : "40x40",
- "idiom" : "iphone",
- "filename" : "Icon-App-40x40@2x.png",
- "scale" : "2x"
- },
- {
- "size" : "40x40",
- "idiom" : "iphone",
- "filename" : "Icon-App-40x40@3x.png",
- "scale" : "3x"
- },
- {
- "size" : "60x60",
- "idiom" : "iphone",
- "filename" : "Icon-App-60x60@2x.png",
- "scale" : "2x"
- },
- {
- "size" : "60x60",
- "idiom" : "iphone",
- "filename" : "Icon-App-60x60@3x.png",
- "scale" : "3x"
- },
- {
- "size" : "20x20",
- "idiom" : "ipad",
- "filename" : "Icon-App-20x20@1x.png",
- "scale" : "1x"
- },
- {
- "size" : "20x20",
- "idiom" : "ipad",
- "filename" : "Icon-App-20x20@2x.png",
- "scale" : "2x"
- },
- {
- "size" : "29x29",
- "idiom" : "ipad",
- "filename" : "Icon-App-29x29@1x.png",
- "scale" : "1x"
- },
- {
- "size" : "29x29",
- "idiom" : "ipad",
- "filename" : "Icon-App-29x29@2x.png",
- "scale" : "2x"
- },
- {
- "size" : "40x40",
- "idiom" : "ipad",
- "filename" : "Icon-App-40x40@1x.png",
- "scale" : "1x"
- },
- {
- "size" : "40x40",
- "idiom" : "ipad",
- "filename" : "Icon-App-40x40@2x.png",
- "scale" : "2x"
- },
- {
- "size" : "76x76",
- "idiom" : "ipad",
- "filename" : "Icon-App-76x76@1x.png",
- "scale" : "1x"
- },
- {
- "size" : "76x76",
- "idiom" : "ipad",
- "filename" : "Icon-App-76x76@2x.png",
- "scale" : "2x"
- },
- {
- "size" : "83.5x83.5",
- "idiom" : "ipad",
- "filename" : "Icon-App-83.5x83.5@2x.png",
- "scale" : "2x"
- },
- {
- "size" : "1024x1024",
- "idiom" : "ios-marketing",
- "filename" : "Icon-App-1024x1024@1x.png",
- "scale" : "1x"
- }
- ],
- "info" : {
- "version" : 1,
- "author" : "xcode"
- }
-}
+{
+ "images" : [
+ {
+ "size" : "20x20",
+ "idiom" : "iphone",
+ "filename" : "Icon-App-20x20@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "20x20",
+ "idiom" : "iphone",
+ "filename" : "Icon-App-20x20@3x.png",
+ "scale" : "3x"
+ },
+ {
+ "size" : "29x29",
+ "idiom" : "iphone",
+ "filename" : "Icon-App-29x29@1x.png",
+ "scale" : "1x"
+ },
+ {
+ "size" : "29x29",
+ "idiom" : "iphone",
+ "filename" : "Icon-App-29x29@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "29x29",
+ "idiom" : "iphone",
+ "filename" : "Icon-App-29x29@3x.png",
+ "scale" : "3x"
+ },
+ {
+ "size" : "40x40",
+ "idiom" : "iphone",
+ "filename" : "Icon-App-40x40@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "40x40",
+ "idiom" : "iphone",
+ "filename" : "Icon-App-40x40@3x.png",
+ "scale" : "3x"
+ },
+ {
+ "size" : "60x60",
+ "idiom" : "iphone",
+ "filename" : "Icon-App-60x60@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "60x60",
+ "idiom" : "iphone",
+ "filename" : "Icon-App-60x60@3x.png",
+ "scale" : "3x"
+ },
+ {
+ "size" : "20x20",
+ "idiom" : "ipad",
+ "filename" : "Icon-App-20x20@1x.png",
+ "scale" : "1x"
+ },
+ {
+ "size" : "20x20",
+ "idiom" : "ipad",
+ "filename" : "Icon-App-20x20@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "29x29",
+ "idiom" : "ipad",
+ "filename" : "Icon-App-29x29@1x.png",
+ "scale" : "1x"
+ },
+ {
+ "size" : "29x29",
+ "idiom" : "ipad",
+ "filename" : "Icon-App-29x29@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "40x40",
+ "idiom" : "ipad",
+ "filename" : "Icon-App-40x40@1x.png",
+ "scale" : "1x"
+ },
+ {
+ "size" : "40x40",
+ "idiom" : "ipad",
+ "filename" : "Icon-App-40x40@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "76x76",
+ "idiom" : "ipad",
+ "filename" : "Icon-App-76x76@1x.png",
+ "scale" : "1x"
+ },
+ {
+ "size" : "76x76",
+ "idiom" : "ipad",
+ "filename" : "Icon-App-76x76@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "83.5x83.5",
+ "idiom" : "ipad",
+ "filename" : "Icon-App-83.5x83.5@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "1024x1024",
+ "idiom" : "ios-marketing",
+ "filename" : "Icon-App-1024x1024@1x.png",
+ "scale" : "1x"
+ }
+ ],
+ "info" : {
+ "version" : 1,
+ "author" : "xcode"
+ }
+}
diff --git a/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json b/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json
index 0bedcf2..d08a4de 100644
--- a/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json
+++ b/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json
@@ -1,23 +1,23 @@
-{
- "images" : [
- {
- "idiom" : "universal",
- "filename" : "LaunchImage.png",
- "scale" : "1x"
- },
- {
- "idiom" : "universal",
- "filename" : "LaunchImage@2x.png",
- "scale" : "2x"
- },
- {
- "idiom" : "universal",
- "filename" : "LaunchImage@3x.png",
- "scale" : "3x"
- }
- ],
- "info" : {
- "version" : 1,
- "author" : "xcode"
- }
-}
+{
+ "images" : [
+ {
+ "idiom" : "universal",
+ "filename" : "LaunchImage.png",
+ "scale" : "1x"
+ },
+ {
+ "idiom" : "universal",
+ "filename" : "LaunchImage@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "idiom" : "universal",
+ "filename" : "LaunchImage@3x.png",
+ "scale" : "3x"
+ }
+ ],
+ "info" : {
+ "version" : 1,
+ "author" : "xcode"
+ }
+}
diff --git a/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md b/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md
index 89c2725..65a94b5 100644
--- a/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md
+++ b/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md
@@ -1,5 +1,5 @@
-# Launch Screen Assets
-
-You can customize the launch screen with your own desired assets by replacing the image files in this directory.
-
+# Launch Screen Assets
+
+You can customize the launch screen with your own desired assets by replacing the image files in this directory.
+
You can also do it by opening your Flutter project's Xcode project with `open ios/Runner.xcworkspace`, selecting `Runner/Assets.xcassets` in the Project Navigator and dropping in the desired images.
\ No newline at end of file
diff --git a/ios/Runner/Base.lproj/LaunchScreen.storyboard b/ios/Runner/Base.lproj/LaunchScreen.storyboard
index f2e259c..497371e 100644
--- a/ios/Runner/Base.lproj/LaunchScreen.storyboard
+++ b/ios/Runner/Base.lproj/LaunchScreen.storyboard
@@ -1,37 +1,37 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/ios/Runner/Base.lproj/Main.storyboard b/ios/Runner/Base.lproj/Main.storyboard
index f3c2851..bbb83ca 100644
--- a/ios/Runner/Base.lproj/Main.storyboard
+++ b/ios/Runner/Base.lproj/Main.storyboard
@@ -1,26 +1,26 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/ios/Runner/Info.plist b/ios/Runner/Info.plist
index 8cc6a5c..3b4fdbb 100644
--- a/ios/Runner/Info.plist
+++ b/ios/Runner/Info.plist
@@ -1,58 +1,58 @@
-
-
-
-
- CFBundleDevelopmentRegion
- $(DEVELOPMENT_LANGUAGE)
- CFBundleExecutable
- $(EXECUTABLE_NAME)
- CFBundleIdentifier
- $(PRODUCT_BUNDLE_IDENTIFIER)
- CFBundleInfoDictionaryVersion
- 6.0
- CFBundleName
- tsacdop_player
- CFBundlePackageType
- APPL
- CFBundleShortVersionString
- $(FLUTTER_BUILD_NAME)
- CFBundleSignature
- ????
- CFBundleVersion
- $(FLUTTER_BUILD_NUMBER)
- LSRequiresIPhoneOS
-
- NSAppTransportSecurity
-
- NSAllowsArbitraryLoads
-
- NSAllowsArbitraryLoadsForMedia
-
-
- UIBackgroundModes
-
- audio
- fetch
- remote-notification
-
- UILaunchStoryboardName
- LaunchScreen
- UIMainStoryboardFile
- Main
- UISupportedInterfaceOrientations
-
- UIInterfaceOrientationPortrait
- UIInterfaceOrientationLandscapeLeft
- UIInterfaceOrientationLandscapeRight
-
- UISupportedInterfaceOrientations~ipad
-
- UIInterfaceOrientationPortrait
- UIInterfaceOrientationPortraitUpsideDown
- UIInterfaceOrientationLandscapeLeft
- UIInterfaceOrientationLandscapeRight
-
- UIViewControllerBasedStatusBarAppearance
-
-
+
+
+
+
+ CFBundleDevelopmentRegion
+ $(DEVELOPMENT_LANGUAGE)
+ CFBundleExecutable
+ $(EXECUTABLE_NAME)
+ CFBundleIdentifier
+ $(PRODUCT_BUNDLE_IDENTIFIER)
+ CFBundleInfoDictionaryVersion
+ 6.0
+ CFBundleName
+ tsacdop_player
+ CFBundlePackageType
+ APPL
+ CFBundleShortVersionString
+ $(FLUTTER_BUILD_NAME)
+ CFBundleSignature
+ ????
+ CFBundleVersion
+ $(FLUTTER_BUILD_NUMBER)
+ LSRequiresIPhoneOS
+
+ NSAppTransportSecurity
+
+ NSAllowsArbitraryLoads
+
+ NSAllowsArbitraryLoadsForMedia
+
+
+ UIBackgroundModes
+
+ audio
+ fetch
+ remote-notification
+
+ UILaunchStoryboardName
+ LaunchScreen
+ UIMainStoryboardFile
+ Main
+ UISupportedInterfaceOrientations
+
+ UIInterfaceOrientationPortrait
+ UIInterfaceOrientationLandscapeLeft
+ UIInterfaceOrientationLandscapeRight
+
+ UISupportedInterfaceOrientations~ipad
+
+ UIInterfaceOrientationPortrait
+ UIInterfaceOrientationPortraitUpsideDown
+ UIInterfaceOrientationLandscapeLeft
+ UIInterfaceOrientationLandscapeRight
+
+ UIViewControllerBasedStatusBarAppearance
+
+
\ No newline at end of file
diff --git a/ios/Runner/Runner-Bridging-Header.h b/ios/Runner/Runner-Bridging-Header.h
index 308a2a5..fae207f 100644
--- a/ios/Runner/Runner-Bridging-Header.h
+++ b/ios/Runner/Runner-Bridging-Header.h
@@ -1 +1 @@
-#import "GeneratedPluginRegistrant.h"
+#import "GeneratedPluginRegistrant.h"
diff --git a/lib/class/settingstate.dart b/lib/class/settingstate.dart
index 7e22d4c..c482214 100644
--- a/lib/class/settingstate.dart
+++ b/lib/class/settingstate.dart
@@ -1 +1 @@
-export '../state/setting_state.dart';
+export '../state/setting_state.dart';
diff --git a/lib/episodes/episode_detail.dart b/lib/episodes/episode_detail.dart
index 4891b85..4c661fe 100644
--- a/lib/episodes/episode_detail.dart
+++ b/lib/episodes/episode_detail.dart
@@ -1,724 +1,724 @@
-import 'dart:developer' as developer;
-
-import 'package:flutter/material.dart';
-import 'package:flutter/rendering.dart';
-import 'package:flutter/services.dart';
-import 'package:flutter_html/flutter_html.dart';
-import 'package:fluttertoast/fluttertoast.dart';
-import 'package:intl/intl.dart';
-import 'package:linkify/linkify.dart';
-import 'package:provider/provider.dart';
-import 'package:tuple/tuple.dart';
-
-import '../home/audioplayer.dart';
-import '../local_storage/sqflite_localpodcast.dart';
-import '../state/audio_state.dart';
-import '../state/setting_state.dart';
-import '../type/episodebrief.dart';
-import '../type/play_histroy.dart';
-import '../util/audiopanel.dart';
-import '../util/custom_widget.dart';
-import '../util/extension_helper.dart';
-import 'episode_download.dart';
-
-class EpisodeDetail extends StatefulWidget {
- final EpisodeBrief episodeItem;
- final String heroTag;
- final bool hide;
- EpisodeDetail(
- {this.episodeItem, this.heroTag = '', this.hide = false, Key key})
- : super(key: key);
-
- @override
- _EpisodeDetailState createState() => _EpisodeDetailState();
-}
-
-class _EpisodeDetailState extends State {
- final textstyle = TextStyle(fontSize: 15.0, color: Colors.black);
- final GlobalKey _playerKey = GlobalKey();
- double downloadProgress;
-
- /// Show page title.
- bool _showTitle;
- bool _showMenu;
- String path;
-
- Future _getPosition(EpisodeBrief episode) async {
- var dbHelper = DBHelper();
- return await dbHelper.getPosition(episode);
- }
-
- ScrollController _controller;
- _scrollListener() {
- if (_controller.position.userScrollDirection == ScrollDirection.reverse) {
- if (_showMenu && mounted) {
- setState(() {
- _showMenu = false;
- });
- }
- }
- if (_controller.position.userScrollDirection == ScrollDirection.forward) {
- if (!_showMenu && mounted) {
- setState(() {
- _showMenu = true;
- });
- }
- }
- if (_controller.offset > context.textTheme.headline5.fontSize) {
- if (!_showTitle) setState(() => _showTitle = true);
- } else if (_showTitle) setState(() => _showTitle = false);
- }
-
- @override
- void initState() {
- super.initState();
- _showMenu = true;
- _showTitle = false;
- _controller = ScrollController();
- _controller.addListener(_scrollListener);
- }
-
- @override
- void dispose() {
- _controller.dispose();
- super.dispose();
- }
-
- @override
- Widget build(BuildContext context) {
- final s = context.s;
- final audio = context.watch();
- return AnnotatedRegion(
- value: SystemUiOverlayStyle(
- statusBarIconBrightness: Theme.of(context).accentColorBrightness,
- systemNavigationBarColor: Theme.of(context).primaryColor,
- systemNavigationBarIconBrightness:
- Theme.of(context).accentColorBrightness,
- ),
- child: WillPopScope(
- onWillPop: () async {
- if (_playerKey.currentState != null &&
- _playerKey.currentState.initSize > 100) {
- _playerKey.currentState.backToMini();
- return false;
- } else {
- return true;
- }
- },
- child: Scaffold(
- backgroundColor: Theme.of(context).primaryColor,
- appBar: AppBar(
- title: _showTitle
- ? Text(
- widget.episodeItem.title,
- maxLines: 1,
- overflow: TextOverflow.ellipsis,
- )
- : Center(),
- leading: CustomBackButton(),
- elevation: _showTitle ? 1 : 0,
- //actions: [
- // PopupMenuButton(
- // shape: RoundedRectangleBorder(
- // borderRadius: BorderRadius.all(Radius.circular(10))),
- // elevation: 1,
- // tooltip: s.menu,
- // itemBuilder: (context) => [
- // PopupMenuItem(
- // value: 0,
- // child: Container(
- // padding: EdgeInsets.only(left: 10),
- // child: Row(
- // crossAxisAlignment: CrossAxisAlignment.center,
- // children: [
- // SizedBox(
- // width: 25,
- // height: 25,
- // child: CustomPaint(
- // painter: ListenedAllPainter(
- // context.textTheme.bodyText1.color,
- // stroke: 2)),
- // ),
- // Padding(
- // padding: EdgeInsets.symmetric(horizontal: 5.0),
- // ),
- // Text(
- // s.markListened,
- // ),
- // ],
- // ),
- // ),
- // ),
- // ],
- // onSelected: (value) async {
- // switch (value) {
- // case 0:
- // await _markListened(widget.episodeItem);
- // if (mounted) setState(() {});
- // Fluttertoast.showToast(
- // msg: s.markListened,
- // gravity: ToastGravity.BOTTOM,
- // );
- // break;
- // default:
- // break;
- // }
- // },
- // ),
- //],
- ),
- body: Stack(
- children: [
- Container(
- color: context.primaryColor,
- child: SingleChildScrollView(
- scrollDirection: Axis.vertical,
- controller: _controller,
- child: Column(
- children: [
- Padding(
- padding: EdgeInsets.symmetric(horizontal: 20.0),
- child: Align(
- alignment: Alignment.centerLeft,
- child: Text(
- widget.episodeItem.title,
- textAlign: TextAlign.left,
- style: Theme.of(context).textTheme.headline5,
- ),
- ),
- ),
- Container(
- alignment: Alignment.centerLeft,
- padding: EdgeInsets.only(
- left: 20.0, right: 20, top: 10, bottom: 10),
- child: Row(
- children: [
- Text(
- s.published(DateFormat.yMMMd().format(
- DateTime.fromMillisecondsSinceEpoch(
- widget.episodeItem.pubDate))),
- style: TextStyle(
- color: Theme.of(context).accentColor)),
- SizedBox(width: 10),
- if (widget.episodeItem.explicit == 1)
- Text('E',
- style: TextStyle(
- fontWeight: FontWeight.bold,
- color: Colors.red))
- ],
- ),
- ),
- Padding(
- padding: EdgeInsets.only(
- left: 20.0, right: 20, top: 5, bottom: 5),
- child: Row(
- children: [
- if (widget.episodeItem.duration != 0)
- Container(
- decoration: BoxDecoration(
- color: Colors.cyan[300],
- borderRadius: BorderRadius.all(
- Radius.circular(16.0))),
- height: 28.0,
- margin: EdgeInsets.only(right: 10.0),
- padding:
- EdgeInsets.symmetric(horizontal: 10.0),
- alignment: Alignment.center,
- child: Text(
- s.minsCount(
- widget.episodeItem.duration ~/ 60),
- style: context.textTheme.button)),
- if (widget.episodeItem.enclosureLength != null &&
- widget.episodeItem.enclosureLength != 0)
- Container(
- decoration: BoxDecoration(
- color: Colors.lightBlue[300],
- borderRadius: BorderRadius.all(
- Radius.circular(16.0))),
- height: 28.0,
- margin: EdgeInsets.only(right: 10.0),
- padding: EdgeInsets.symmetric(horizontal: 10.0),
- alignment: Alignment.center,
- child: Text(
- '${(widget.episodeItem.enclosureLength) ~/ 1000000}MB',
- style: context.textTheme.button),
- ),
- FutureBuilder(
- future: _getPosition(widget.episodeItem),
- builder: (context, snapshot) {
- if (snapshot.hasError) {
- developer.log(snapshot.error);
- }
- if (snapshot.hasData &&
- snapshot.data.seekValue < 0.9 &&
- snapshot.data.seconds > 10) {
- return ButtonTheme(
- height: 28,
- padding:
- EdgeInsets.symmetric(horizontal: 0),
- child: OutlineButton(
- shape: RoundedRectangleBorder(
- borderRadius:
- BorderRadius.circular(100.0),
- side: BorderSide(
- color: context.accentColor)),
- highlightedBorderColor:
- Colors.green[700],
- onPressed: () => audio.episodeLoad(
- widget.episodeItem,
- startPosition:
- (snapshot.data.seconds * 1000)
- .toInt()),
- child: Row(
- children: [
- SizedBox(
- width: 20,
- height: 20,
- child: CustomPaint(
- painter: ListenedPainter(
- context.textColor,
- stroke: 2.0),
- ),
- ),
- SizedBox(width: 5),
- Text(snapshot.data.seconds.toTime),
- ],
- ),
- ),
- );
- } else {
- return Center();
- }
- }),
- ],
- ),
- ),
- _ShowNote(episode: widget.episodeItem),
- Selector>(
- selector: (_, audio) =>
- Tuple2(audio.playerRunning, audio.playerHeight),
- builder: (_, data, __) {
- var height = kMinPlayerHeight[data.item2.index];
- return SizedBox(
- height: data.item1 ? height : 0,
- );
- }),
- ],
- ),
- ),
- ),
- Selector>(
- selector: (_, audio) =>
- Tuple2(audio.playerRunning, audio.playerHeight),
- builder: (_, data, __) {
- var height = kMinPlayerHeight[data.item2.index];
- return Container(
- alignment: Alignment.bottomCenter,
- padding: EdgeInsets.only(bottom: data.item1 ? height : 0),
- child: AnimatedContainer(
- duration: Duration(milliseconds: 400),
- height: _showMenu ? 50 : 0,
- child: SingleChildScrollView(
- scrollDirection: Axis.vertical,
- child: _MenuBar(
- episodeItem: widget.episodeItem,
- heroTag: widget.heroTag,
- hide: widget.hide),
- ),
- ),
- );
- }),
- Selector(
- selector: (_, audio) => audio.episode,
- builder: (_, data, __) => Container(
- child: PlayerWidget(
- playerKey: _playerKey,
- isPlayingPage: data == widget.episodeItem))),
- ],
- ),
- ),
- ),
- );
- }
-}
-
-class _MenuBar extends StatefulWidget {
- final EpisodeBrief episodeItem;
- final String heroTag;
- final bool hide;
- _MenuBar({this.episodeItem, this.heroTag, this.hide, Key key})
- : super(key: key);
- @override
- __MenuBarState createState() => __MenuBarState();
-}
-
-class __MenuBarState extends State<_MenuBar> {
- Future _isListened(EpisodeBrief episode) async {
- var dbHelper = DBHelper();
- return await dbHelper.isListened(episode.enclosureUrl);
- }
-
- Future _saveLiked(String url) async {
- var dbHelper = DBHelper();
- await dbHelper.setLiked(url);
- if (mounted) setState(() {});
- }
-
- Future _setUnliked(String url) async {
- var dbHelper = DBHelper();
- await dbHelper.setUniked(url);
- if (mounted) setState(() {});
- }
-
- Future _markListened(EpisodeBrief episode) async {
- var dbHelper = DBHelper();
- final history = PlayHistory(episode.title, episode.enclosureUrl, 0, 1);
- await dbHelper.saveHistory(history);
- if (mounted) setState(() {});
- }
-
- Future _markNotListened(String url) async {
- var dbHelper = DBHelper();
- await dbHelper.markNotListened(url);
- if (mounted) setState(() {});
- }
-
- Future _isLiked(EpisodeBrief episode) async {
- var dbHelper = DBHelper();
- return await dbHelper.isLiked(episode.enclosureUrl);
- }
-
- Widget _buttonOnMenu({Widget child, VoidCallback onTap}) => Material(
- color: Colors.transparent,
- child: InkWell(
- onTap: onTap,
- child: SizedBox(
- height: 50,
- child: Padding(
- padding: EdgeInsets.symmetric(horizontal: 15.0), child: child),
- ),
- ),
- );
-
- OverlayEntry _createOverlayEntry() {
- RenderBox renderBox = context.findRenderObject();
- var offset = renderBox.localToGlobal(Offset.zero);
- return OverlayEntry(
- builder: (constext) => Positioned(
- left: offset.dx + 50,
- top: offset.dy - 60,
- child: Container(
- width: 70,
- height: 100,
- //color: Colors.grey[200],
- child: HeartOpen(width: 50, height: 80)),
- ),
- );
- }
-
- @override
- Widget build(BuildContext context) {
- var audio = Provider.of(context, listen: false);
- final s = context.s;
- return Container(
- height: 50.0,
- decoration: BoxDecoration(
- color: context.scaffoldBackgroundColor,
- ),
- child: Row(
- mainAxisAlignment: MainAxisAlignment.start,
- mainAxisSize: MainAxisSize.min,
- children: [
- Expanded(
- child: SingleChildScrollView(
- scrollDirection: Axis.horizontal,
- child: Row(
- mainAxisAlignment: MainAxisAlignment.start,
- mainAxisSize: MainAxisSize.min,
- children: [
- Hero(
- tag: widget.episodeItem.enclosureUrl + widget.heroTag,
- child: Container(
- padding: EdgeInsets.symmetric(horizontal: 10.0),
- child: Container(
- height: 30.0,
- width: 30.0,
- color: context.scaffoldBackgroundColor,
- child: widget.hide
- ? Center()
- : CircleAvatar(
- radius: 15,
- backgroundImage:
- widget.episodeItem.avatarImage),
- ),
- ),
- ),
- FutureBuilder(
- future: _isLiked(widget.episodeItem),
- initialData: false,
- builder: (context, snapshot) {
- return (!snapshot.data)
- ? _buttonOnMenu(
- child: Icon(
- Icons.favorite_border,
- color: Colors.grey[700],
- ),
- onTap: () async {
- await _saveLiked(
- widget.episodeItem.enclosureUrl);
- OverlayEntry _overlayEntry;
- _overlayEntry = _createOverlayEntry();
- Overlay.of(context).insert(_overlayEntry);
- await Future.delayed(Duration(seconds: 2));
- _overlayEntry?.remove();
- })
- : _buttonOnMenu(
- child: Icon(
- Icons.favorite,
- color: Colors.red,
- ),
- onTap: () =>
- _setUnliked(widget.episodeItem.enclosureUrl));
- },
- ),
- DownloadButton(episode: widget.episodeItem),
- Selector, bool>>(
- selector: (_, audio) =>
- Tuple2(audio.queue.playlist, audio.queueUpdate),
- builder: (_, data, __) {
- final inPlaylist =
- data.item1.contains(widget.episodeItem);
- return inPlaylist
- ? _buttonOnMenu(
- child: Icon(Icons.playlist_add_check,
- color: context.accentColor),
- onTap: () {
- audio.delFromPlaylist(widget.episodeItem);
- Fluttertoast.showToast(
- msg: s.toastRemovePlaylist,
- gravity: ToastGravity.BOTTOM,
- );
- })
- : _buttonOnMenu(
- child: Icon(Icons.playlist_add,
- color: Colors.grey[700]),
- onTap: () {
- audio.addToPlaylist(widget.episodeItem);
- Fluttertoast.showToast(
- msg: s.toastAddPlaylist,
- gravity: ToastGravity.BOTTOM,
- );
- });
- },
- ),
- FutureBuilder(
- future: _isListened(widget.episodeItem),
- initialData: 0,
- builder: (context, snapshot) {
- return snapshot.data == 0
- ? _buttonOnMenu(
- child: Padding(
- padding: EdgeInsets.symmetric(vertical: 12),
- child: CustomPaint(
- size: Size(25, 20),
- painter: ListenedAllPainter(Colors.grey[700],
- stroke: 2.0),
- ),
- ),
- onTap: () {
- _markListened(widget.episodeItem);
- Fluttertoast.showToast(
- msg: s.markListened,
- gravity: ToastGravity.BOTTOM,
- );
- })
- : _buttonOnMenu(
- child: Padding(
- padding: EdgeInsets.symmetric(vertical: 12),
- child: CustomPaint(
- size: Size(25, 20),
- painter: ListenedAllPainter(
- context.accentColor,
- stroke: 2.0),
- ),
- ),
- onTap: () {
- _markNotListened(
- widget.episodeItem.enclosureUrl);
- Fluttertoast.showToast(
- msg: s.markNotListened,
- gravity: ToastGravity.BOTTOM,
- );
- });
- },
- ),
- ],
- ),
- ),
- ),
- Selector>(
- selector: (_, audio) => Tuple2(audio.episode, audio.playerRunning),
- builder: (_, data, __) {
- return (widget.episodeItem == data.item1 && data.item2)
- ? Container(
- padding: EdgeInsets.only(right: 30),
- child: SizedBox(
- width: 20,
- height: 15,
- child: WaveLoader(color: context.accentColor)))
- : Material(
- color: Colors.transparent,
- child: InkWell(
- onTap: () {
- audio.episodeLoad(widget.episodeItem);
- },
- child: Container(
- alignment: Alignment.center,
- height: 50.0,
- padding: EdgeInsets.symmetric(horizontal: 20.0),
- child: Row(
- children: [
- Text(s.play,
- style: TextStyle(
- color: Theme.of(context).accentColor,
- fontSize: 15,
- fontWeight: FontWeight.bold,
- )),
- Icon(
- Icons.play_arrow,
- color: Theme.of(context).accentColor,
- ),
- ],
- ),
- ),
- ),
- );
- },
- ),
- ],
- ),
- );
- }
-}
-
-class _ShowNote extends StatelessWidget {
- final EpisodeBrief episode;
- const _ShowNote({this.episode, Key key}) : super(key: key);
-
- int _getTimeStamp(String url) {
- final time = url.substring(3).trim();
- final data = time.split(':');
- var seconds;
- if (data.length == 3) {
- seconds = int.tryParse(data[0]) * 3600 +
- int.tryParse(data[1]) * 60 +
- int.tryParse(data[2]);
- } else if (data.length == 2) {
- seconds = int.tryParse(data[0]) * 60 + int.tryParse(data[1]);
- }
- return seconds;
- }
-
- Future _getSDescription(String url) async {
- var description;
- var dbHelper = DBHelper();
- description = (await dbHelper.getDescription(url))
- .replaceAll(RegExp(r'\s?(
)?
\s?'), '')
- .replaceAll('\r', '')
- .trim();
- if (!description.contains('<')) {
- final linkList = linkify(description,
- options: LinkifyOptions(humanize: false),
- linkifiers: [UrlLinkifier(), EmailLinkifier()]);
- for (var element in linkList) {
- if (element is UrlElement) {
- description = description.replaceAll(element.url,
- '${element.text}');
- }
- if (element is EmailElement) {
- final address = element.emailAddress;
- description = description.replaceAll(address,
- '$address');
- }
- }
- await dbHelper.saveEpisodeDes(url, description: description);
- }
- return description;
- }
-
- @override
- Widget build(BuildContext context) {
- var audio = context.watch();
- final s = context.s;
- return FutureBuilder(
- future: _getSDescription(episode.enclosureUrl),
- builder: (context, snapshot) {
- if (snapshot.hasData) {
- var description = snapshot.data;
- return description.length > 0
- ? Selector(
- selector: (_, audio) => audio.episode,
- builder: (_, playEpisode, __) {
- if (playEpisode == episode &&
- !description.contains('#t=')) {
- final linkList = linkify(description,
- options: LinkifyOptions(humanize: false),
- linkifiers: [TimeStampLinkifier()]);
- for (var element in linkList) {
- if (element is TimeStampElement) {
- final time = element.timeStamp;
- description = description.replaceFirst(time,
- '$time');
- }
- }
- }
- return Selector(
- selector: (_, settings) => settings.showNoteFontStyle,
- builder: (_, data, __) => Html(
- padding:
- EdgeInsets.only(left: 20.0, right: 20, bottom: 50),
- defaultTextStyle: data,
- data: description,
- linkStyle: TextStyle(
- color: context.accentColor,
- textBaseline: TextBaseline.ideographic),
- onLinkTap: (url) {
- if (url.substring(0, 3) == '#t=') {
- final seconds = _getTimeStamp(url);
- if (playEpisode == episode) {
- audio.seekTo(seconds * 1000);
- }
- } else {
- url.launchUrl;
- }
- },
- useRichText: true,
- ),
- );
- })
- : Container(
- height: context.width,
- alignment: Alignment.center,
- child: Column(
- mainAxisAlignment: MainAxisAlignment.center,
- children: [
- Image(
- image: AssetImage('assets/shownote.png'),
- height: 100.0,
- ),
- Padding(padding: EdgeInsets.all(5.0)),
- Text(s.noShownote,
- textAlign: TextAlign.center,
- style: TextStyle(
- color: context.textColor.withOpacity(0.5))),
- ],
- ),
- );
- } else {
- return Center();
- }
- },
- );
- }
-}
+import 'dart:developer' as developer;
+
+import 'package:flutter/material.dart';
+import 'package:flutter/rendering.dart';
+import 'package:flutter/services.dart';
+import 'package:flutter_html/flutter_html.dart';
+import 'package:fluttertoast/fluttertoast.dart';
+import 'package:intl/intl.dart';
+import 'package:linkify/linkify.dart';
+import 'package:provider/provider.dart';
+import 'package:tuple/tuple.dart';
+
+import '../home/audioplayer.dart';
+import '../local_storage/sqflite_localpodcast.dart';
+import '../state/audio_state.dart';
+import '../state/setting_state.dart';
+import '../type/episodebrief.dart';
+import '../type/play_histroy.dart';
+import '../util/audiopanel.dart';
+import '../util/custom_widget.dart';
+import '../util/extension_helper.dart';
+import 'episode_download.dart';
+
+class EpisodeDetail extends StatefulWidget {
+ final EpisodeBrief episodeItem;
+ final String heroTag;
+ final bool hide;
+ EpisodeDetail(
+ {this.episodeItem, this.heroTag = '', this.hide = false, Key key})
+ : super(key: key);
+
+ @override
+ _EpisodeDetailState createState() => _EpisodeDetailState();
+}
+
+class _EpisodeDetailState extends State {
+ final textstyle = TextStyle(fontSize: 15.0, color: Colors.black);
+ final GlobalKey _playerKey = GlobalKey();
+ double downloadProgress;
+
+ /// Show page title.
+ bool _showTitle;
+ bool _showMenu;
+ String path;
+
+ Future _getPosition(EpisodeBrief episode) async {
+ var dbHelper = DBHelper();
+ return await dbHelper.getPosition(episode);
+ }
+
+ ScrollController _controller;
+ _scrollListener() {
+ if (_controller.position.userScrollDirection == ScrollDirection.reverse) {
+ if (_showMenu && mounted) {
+ setState(() {
+ _showMenu = false;
+ });
+ }
+ }
+ if (_controller.position.userScrollDirection == ScrollDirection.forward) {
+ if (!_showMenu && mounted) {
+ setState(() {
+ _showMenu = true;
+ });
+ }
+ }
+ if (_controller.offset > context.textTheme.headline5.fontSize) {
+ if (!_showTitle) setState(() => _showTitle = true);
+ } else if (_showTitle) setState(() => _showTitle = false);
+ }
+
+ @override
+ void initState() {
+ super.initState();
+ _showMenu = true;
+ _showTitle = false;
+ _controller = ScrollController();
+ _controller.addListener(_scrollListener);
+ }
+
+ @override
+ void dispose() {
+ _controller.dispose();
+ super.dispose();
+ }
+
+ @override
+ Widget build(BuildContext context) {
+ final s = context.s;
+ final audio = context.watch();
+ return AnnotatedRegion(
+ value: SystemUiOverlayStyle(
+ statusBarIconBrightness: Theme.of(context).accentColorBrightness,
+ systemNavigationBarColor: Theme.of(context).primaryColor,
+ systemNavigationBarIconBrightness:
+ Theme.of(context).accentColorBrightness,
+ ),
+ child: WillPopScope(
+ onWillPop: () async {
+ if (_playerKey.currentState != null &&
+ _playerKey.currentState.initSize > 100) {
+ _playerKey.currentState.backToMini();
+ return false;
+ } else {
+ return true;
+ }
+ },
+ child: Scaffold(
+ backgroundColor: Theme.of(context).primaryColor,
+ appBar: AppBar(
+ title: _showTitle
+ ? Text(
+ widget.episodeItem.title,
+ maxLines: 1,
+ overflow: TextOverflow.ellipsis,
+ )
+ : Center(),
+ leading: CustomBackButton(),
+ elevation: _showTitle ? 1 : 0,
+ //actions: [
+ // PopupMenuButton(
+ // shape: RoundedRectangleBorder(
+ // borderRadius: BorderRadius.all(Radius.circular(10))),
+ // elevation: 1,
+ // tooltip: s.menu,
+ // itemBuilder: (context) => [
+ // PopupMenuItem(
+ // value: 0,
+ // child: Container(
+ // padding: EdgeInsets.only(left: 10),
+ // child: Row(
+ // crossAxisAlignment: CrossAxisAlignment.center,
+ // children: [
+ // SizedBox(
+ // width: 25,
+ // height: 25,
+ // child: CustomPaint(
+ // painter: ListenedAllPainter(
+ // context.textTheme.bodyText1.color,
+ // stroke: 2)),
+ // ),
+ // Padding(
+ // padding: EdgeInsets.symmetric(horizontal: 5.0),
+ // ),
+ // Text(
+ // s.markListened,
+ // ),
+ // ],
+ // ),
+ // ),
+ // ),
+ // ],
+ // onSelected: (value) async {
+ // switch (value) {
+ // case 0:
+ // await _markListened(widget.episodeItem);
+ // if (mounted) setState(() {});
+ // Fluttertoast.showToast(
+ // msg: s.markListened,
+ // gravity: ToastGravity.BOTTOM,
+ // );
+ // break;
+ // default:
+ // break;
+ // }
+ // },
+ // ),
+ //],
+ ),
+ body: Stack(
+ children: [
+ Container(
+ color: context.primaryColor,
+ child: SingleChildScrollView(
+ scrollDirection: Axis.vertical,
+ controller: _controller,
+ child: Column(
+ children: [
+ Padding(
+ padding: EdgeInsets.symmetric(horizontal: 20.0),
+ child: Align(
+ alignment: Alignment.centerLeft,
+ child: Text(
+ widget.episodeItem.title,
+ textAlign: TextAlign.left,
+ style: Theme.of(context).textTheme.headline5,
+ ),
+ ),
+ ),
+ Container(
+ alignment: Alignment.centerLeft,
+ padding: EdgeInsets.only(
+ left: 20.0, right: 20, top: 10, bottom: 10),
+ child: Row(
+ children: [
+ Text(
+ s.published(DateFormat.yMMMd().format(
+ DateTime.fromMillisecondsSinceEpoch(
+ widget.episodeItem.pubDate))),
+ style: TextStyle(
+ color: Theme.of(context).accentColor)),
+ SizedBox(width: 10),
+ if (widget.episodeItem.explicit == 1)
+ Text('E',
+ style: TextStyle(
+ fontWeight: FontWeight.bold,
+ color: Colors.red))
+ ],
+ ),
+ ),
+ Padding(
+ padding: EdgeInsets.only(
+ left: 20.0, right: 20, top: 5, bottom: 5),
+ child: Row(
+ children: [
+ if (widget.episodeItem.duration != 0)
+ Container(
+ decoration: BoxDecoration(
+ color: Colors.cyan[300],
+ borderRadius: BorderRadius.all(
+ Radius.circular(16.0))),
+ height: 28.0,
+ margin: EdgeInsets.only(right: 10.0),
+ padding:
+ EdgeInsets.symmetric(horizontal: 10.0),
+ alignment: Alignment.center,
+ child: Text(
+ s.minsCount(
+ widget.episodeItem.duration ~/ 60),
+ style: context.textTheme.button)),
+ if (widget.episodeItem.enclosureLength != null &&
+ widget.episodeItem.enclosureLength != 0)
+ Container(
+ decoration: BoxDecoration(
+ color: Colors.lightBlue[300],
+ borderRadius: BorderRadius.all(
+ Radius.circular(16.0))),
+ height: 28.0,
+ margin: EdgeInsets.only(right: 10.0),
+ padding: EdgeInsets.symmetric(horizontal: 10.0),
+ alignment: Alignment.center,
+ child: Text(
+ '${(widget.episodeItem.enclosureLength) ~/ 1000000}MB',
+ style: context.textTheme.button),
+ ),
+ FutureBuilder(
+ future: _getPosition(widget.episodeItem),
+ builder: (context, snapshot) {
+ if (snapshot.hasError) {
+ developer.log(snapshot.error);
+ }
+ if (snapshot.hasData &&
+ snapshot.data.seekValue < 0.9 &&
+ snapshot.data.seconds > 10) {
+ return ButtonTheme(
+ height: 28,
+ padding:
+ EdgeInsets.symmetric(horizontal: 0),
+ child: OutlineButton(
+ shape: RoundedRectangleBorder(
+ borderRadius:
+ BorderRadius.circular(100.0),
+ side: BorderSide(
+ color: context.accentColor)),
+ highlightedBorderColor:
+ Colors.green[700],
+ onPressed: () => audio.episodeLoad(
+ widget.episodeItem,
+ startPosition:
+ (snapshot.data.seconds * 1000)
+ .toInt()),
+ child: Row(
+ children: [
+ SizedBox(
+ width: 20,
+ height: 20,
+ child: CustomPaint(
+ painter: ListenedPainter(
+ context.textColor,
+ stroke: 2.0),
+ ),
+ ),
+ SizedBox(width: 5),
+ Text(snapshot.data.seconds.toTime),
+ ],
+ ),
+ ),
+ );
+ } else {
+ return Center();
+ }
+ }),
+ ],
+ ),
+ ),
+ _ShowNote(episode: widget.episodeItem),
+ Selector>(
+ selector: (_, audio) =>
+ Tuple2(audio.playerRunning, audio.playerHeight),
+ builder: (_, data, __) {
+ var height = kMinPlayerHeight[data.item2.index];
+ return SizedBox(
+ height: data.item1 ? height : 0,
+ );
+ }),
+ ],
+ ),
+ ),
+ ),
+ Selector>(
+ selector: (_, audio) =>
+ Tuple2(audio.playerRunning, audio.playerHeight),
+ builder: (_, data, __) {
+ var height = kMinPlayerHeight[data.item2.index];
+ return Container(
+ alignment: Alignment.bottomCenter,
+ padding: EdgeInsets.only(bottom: data.item1 ? height : 0),
+ child: AnimatedContainer(
+ duration: Duration(milliseconds: 400),
+ height: _showMenu ? 50 : 0,
+ child: SingleChildScrollView(
+ scrollDirection: Axis.vertical,
+ child: _MenuBar(
+ episodeItem: widget.episodeItem,
+ heroTag: widget.heroTag,
+ hide: widget.hide),
+ ),
+ ),
+ );
+ }),
+ Selector(
+ selector: (_, audio) => audio.episode,
+ builder: (_, data, __) => Container(
+ child: PlayerWidget(
+ playerKey: _playerKey,
+ isPlayingPage: data == widget.episodeItem))),
+ ],
+ ),
+ ),
+ ),
+ );
+ }
+}
+
+class _MenuBar extends StatefulWidget {
+ final EpisodeBrief episodeItem;
+ final String heroTag;
+ final bool hide;
+ _MenuBar({this.episodeItem, this.heroTag, this.hide, Key key})
+ : super(key: key);
+ @override
+ __MenuBarState createState() => __MenuBarState();
+}
+
+class __MenuBarState extends State<_MenuBar> {
+ Future _isListened(EpisodeBrief episode) async {
+ var dbHelper = DBHelper();
+ return await dbHelper.isListened(episode.enclosureUrl);
+ }
+
+ Future _saveLiked(String url) async {
+ var dbHelper = DBHelper();
+ await dbHelper.setLiked(url);
+ if (mounted) setState(() {});
+ }
+
+ Future _setUnliked(String url) async {
+ var dbHelper = DBHelper();
+ await dbHelper.setUniked(url);
+ if (mounted) setState(() {});
+ }
+
+ Future _markListened(EpisodeBrief episode) async {
+ var dbHelper = DBHelper();
+ final history = PlayHistory(episode.title, episode.enclosureUrl, 0, 1);
+ await dbHelper.saveHistory(history);
+ if (mounted) setState(() {});
+ }
+
+ Future _markNotListened(String url) async {
+ var dbHelper = DBHelper();
+ await dbHelper.markNotListened(url);
+ if (mounted) setState(() {});
+ }
+
+ Future _isLiked(EpisodeBrief episode) async {
+ var dbHelper = DBHelper();
+ return await dbHelper.isLiked(episode.enclosureUrl);
+ }
+
+ Widget _buttonOnMenu({Widget child, VoidCallback onTap}) => Material(
+ color: Colors.transparent,
+ child: InkWell(
+ onTap: onTap,
+ child: SizedBox(
+ height: 50,
+ child: Padding(
+ padding: EdgeInsets.symmetric(horizontal: 15.0), child: child),
+ ),
+ ),
+ );
+
+ OverlayEntry _createOverlayEntry() {
+ RenderBox renderBox = context.findRenderObject();
+ var offset = renderBox.localToGlobal(Offset.zero);
+ return OverlayEntry(
+ builder: (constext) => Positioned(
+ left: offset.dx + 50,
+ top: offset.dy - 60,
+ child: Container(
+ width: 70,
+ height: 100,
+ //color: Colors.grey[200],
+ child: HeartOpen(width: 50, height: 80)),
+ ),
+ );
+ }
+
+ @override
+ Widget build(BuildContext context) {
+ var audio = Provider.of(context, listen: false);
+ final s = context.s;
+ return Container(
+ height: 50.0,
+ decoration: BoxDecoration(
+ color: context.scaffoldBackgroundColor,
+ ),
+ child: Row(
+ mainAxisAlignment: MainAxisAlignment.start,
+ mainAxisSize: MainAxisSize.min,
+ children: [
+ Expanded(
+ child: SingleChildScrollView(
+ scrollDirection: Axis.horizontal,
+ child: Row(
+ mainAxisAlignment: MainAxisAlignment.start,
+ mainAxisSize: MainAxisSize.min,
+ children: [
+ Hero(
+ tag: widget.episodeItem.enclosureUrl + widget.heroTag,
+ child: Container(
+ padding: EdgeInsets.symmetric(horizontal: 10.0),
+ child: Container(
+ height: 30.0,
+ width: 30.0,
+ color: context.scaffoldBackgroundColor,
+ child: widget.hide
+ ? Center()
+ : CircleAvatar(
+ radius: 15,
+ backgroundImage:
+ widget.episodeItem.avatarImage),
+ ),
+ ),
+ ),
+ FutureBuilder(
+ future: _isLiked(widget.episodeItem),
+ initialData: false,
+ builder: (context, snapshot) {
+ return (!snapshot.data)
+ ? _buttonOnMenu(
+ child: Icon(
+ Icons.favorite_border,
+ color: Colors.grey[700],
+ ),
+ onTap: () async {
+ await _saveLiked(
+ widget.episodeItem.enclosureUrl);
+ OverlayEntry _overlayEntry;
+ _overlayEntry = _createOverlayEntry();
+ Overlay.of(context).insert(_overlayEntry);
+ await Future.delayed(Duration(seconds: 2));
+ _overlayEntry?.remove();
+ })
+ : _buttonOnMenu(
+ child: Icon(
+ Icons.favorite,
+ color: Colors.red,
+ ),
+ onTap: () =>
+ _setUnliked(widget.episodeItem.enclosureUrl));
+ },
+ ),
+ DownloadButton(episode: widget.episodeItem),
+ Selector, bool>>(
+ selector: (_, audio) =>
+ Tuple2(audio.queue.playlist, audio.queueUpdate),
+ builder: (_, data, __) {
+ final inPlaylist =
+ data.item1.contains(widget.episodeItem);
+ return inPlaylist
+ ? _buttonOnMenu(
+ child: Icon(Icons.playlist_add_check,
+ color: context.accentColor),
+ onTap: () {
+ audio.delFromPlaylist(widget.episodeItem);
+ Fluttertoast.showToast(
+ msg: s.toastRemovePlaylist,
+ gravity: ToastGravity.BOTTOM,
+ );
+ })
+ : _buttonOnMenu(
+ child: Icon(Icons.playlist_add,
+ color: Colors.grey[700]),
+ onTap: () {
+ audio.addToPlaylist(widget.episodeItem);
+ Fluttertoast.showToast(
+ msg: s.toastAddPlaylist,
+ gravity: ToastGravity.BOTTOM,
+ );
+ });
+ },
+ ),
+ FutureBuilder(
+ future: _isListened(widget.episodeItem),
+ initialData: 0,
+ builder: (context, snapshot) {
+ return snapshot.data == 0
+ ? _buttonOnMenu(
+ child: Padding(
+ padding: EdgeInsets.symmetric(vertical: 12),
+ child: CustomPaint(
+ size: Size(25, 20),
+ painter: ListenedAllPainter(Colors.grey[700],
+ stroke: 2.0),
+ ),
+ ),
+ onTap: () {
+ _markListened(widget.episodeItem);
+ Fluttertoast.showToast(
+ msg: s.markListened,
+ gravity: ToastGravity.BOTTOM,
+ );
+ })
+ : _buttonOnMenu(
+ child: Padding(
+ padding: EdgeInsets.symmetric(vertical: 12),
+ child: CustomPaint(
+ size: Size(25, 20),
+ painter: ListenedAllPainter(
+ context.accentColor,
+ stroke: 2.0),
+ ),
+ ),
+ onTap: () {
+ _markNotListened(
+ widget.episodeItem.enclosureUrl);
+ Fluttertoast.showToast(
+ msg: s.markNotListened,
+ gravity: ToastGravity.BOTTOM,
+ );
+ });
+ },
+ ),
+ ],
+ ),
+ ),
+ ),
+ Selector>(
+ selector: (_, audio) => Tuple2(audio.episode, audio.playerRunning),
+ builder: (_, data, __) {
+ return (widget.episodeItem == data.item1 && data.item2)
+ ? Container(
+ padding: EdgeInsets.only(right: 30),
+ child: SizedBox(
+ width: 20,
+ height: 15,
+ child: WaveLoader(color: context.accentColor)))
+ : Material(
+ color: Colors.transparent,
+ child: InkWell(
+ onTap: () {
+ audio.episodeLoad(widget.episodeItem);
+ },
+ child: Container(
+ alignment: Alignment.center,
+ height: 50.0,
+ padding: EdgeInsets.symmetric(horizontal: 20.0),
+ child: Row(
+ children: [
+ Text(s.play,
+ style: TextStyle(
+ color: Theme.of(context).accentColor,
+ fontSize: 15,
+ fontWeight: FontWeight.bold,
+ )),
+ Icon(
+ Icons.play_arrow,
+ color: Theme.of(context).accentColor,
+ ),
+ ],
+ ),
+ ),
+ ),
+ );
+ },
+ ),
+ ],
+ ),
+ );
+ }
+}
+
+class _ShowNote extends StatelessWidget {
+ final EpisodeBrief episode;
+ const _ShowNote({this.episode, Key key}) : super(key: key);
+
+ int _getTimeStamp(String url) {
+ final time = url.substring(3).trim();
+ final data = time.split(':');
+ var seconds;
+ if (data.length == 3) {
+ seconds = int.tryParse(data[0]) * 3600 +
+ int.tryParse(data[1]) * 60 +
+ int.tryParse(data[2]);
+ } else if (data.length == 2) {
+ seconds = int.tryParse(data[0]) * 60 + int.tryParse(data[1]);
+ }
+ return seconds;
+ }
+
+ Future _getSDescription(String url) async {
+ var description;
+ var dbHelper = DBHelper();
+ description = (await dbHelper.getDescription(url))
+ .replaceAll(RegExp(r'\s?(
)?
\s?'), '')
+ .replaceAll('\r', '')
+ .trim();
+ if (!description.contains('<')) {
+ final linkList = linkify(description,
+ options: LinkifyOptions(humanize: false),
+ linkifiers: [UrlLinkifier(), EmailLinkifier()]);
+ for (var element in linkList) {
+ if (element is UrlElement) {
+ description = description.replaceAll(element.url,
+ '${element.text}');
+ }
+ if (element is EmailElement) {
+ final address = element.emailAddress;
+ description = description.replaceAll(address,
+ '$address');
+ }
+ }
+ await dbHelper.saveEpisodeDes(url, description: description);
+ }
+ return description;
+ }
+
+ @override
+ Widget build(BuildContext context) {
+ var audio = context.watch();
+ final s = context.s;
+ return FutureBuilder(
+ future: _getSDescription(episode.enclosureUrl),
+ builder: (context, snapshot) {
+ if (snapshot.hasData) {
+ var description = snapshot.data;
+ return description.length > 0
+ ? Selector(
+ selector: (_, audio) => audio.episode,
+ builder: (_, playEpisode, __) {
+ if (playEpisode == episode &&
+ !description.contains('#t=')) {
+ final linkList = linkify(description,
+ options: LinkifyOptions(humanize: false),
+ linkifiers: [TimeStampLinkifier()]);
+ for (var element in linkList) {
+ if (element is TimeStampElement) {
+ final time = element.timeStamp;
+ description = description.replaceFirst(time,
+ '$time');
+ }
+ }
+ }
+ return Selector(
+ selector: (_, settings) => settings.showNoteFontStyle,
+ builder: (_, data, __) => Html(
+ padding:
+ EdgeInsets.only(left: 20.0, right: 20, bottom: 50),
+ defaultTextStyle: data,
+ data: description,
+ linkStyle: TextStyle(
+ color: context.accentColor,
+ textBaseline: TextBaseline.ideographic),
+ onLinkTap: (url) {
+ if (url.substring(0, 3) == '#t=') {
+ final seconds = _getTimeStamp(url);
+ if (playEpisode == episode) {
+ audio.seekTo(seconds * 1000);
+ }
+ } else {
+ url.launchUrl;
+ }
+ },
+ useRichText: true,
+ ),
+ );
+ })
+ : Container(
+ height: context.width,
+ alignment: Alignment.center,
+ child: Column(
+ mainAxisAlignment: MainAxisAlignment.center,
+ children: [
+ Image(
+ image: AssetImage('assets/shownote.png'),
+ height: 100.0,
+ ),
+ Padding(padding: EdgeInsets.all(5.0)),
+ Text(s.noShownote,
+ textAlign: TextAlign.center,
+ style: TextStyle(
+ color: context.textColor.withOpacity(0.5))),
+ ],
+ ),
+ );
+ } else {
+ return Center();
+ }
+ },
+ );
+ }
+}
diff --git a/lib/episodes/episode_download.dart b/lib/episodes/episode_download.dart
index 5675a07..2ce371b 100644
--- a/lib/episodes/episode_download.dart
+++ b/lib/episodes/episode_download.dart
@@ -1,266 +1,266 @@
-import 'dart:async';
-import 'dart:math' as math;
-import 'dart:ui';
-
-import 'package:connectivity/connectivity.dart';
-import 'package:flutter/material.dart';
-import 'package:flutter_downloader/flutter_downloader.dart';
-import 'package:fluttertoast/fluttertoast.dart';
-import 'package:permission_handler/permission_handler.dart';
-import 'package:provider/provider.dart';
-import '../local_storage/key_value_storage.dart';
-
-import '../state/audio_state.dart';
-import '../state/download_state.dart';
-import '../type/episode_task.dart';
-import '../type/episodebrief.dart';
-import '../util/custom_widget.dart';
-import '../util/extension_helper.dart';
-import '../util/general_dialog.dart';
-
-class DownloadButton extends StatefulWidget {
- final EpisodeBrief episode;
- DownloadButton({this.episode, Key key}) : super(key: key);
- @override
- _DownloadButtonState createState() => _DownloadButtonState();
-}
-
-class _DownloadButtonState extends State {
- Future _requestDownload(EpisodeBrief episode) async {
- final downloadUsingData = await KeyValueStorage(downloadUsingDataKey)
- .getBool(defaultValue: true, reverse: true);
- final permissionReady = await _checkPermmison();
- final result = await Connectivity().checkConnectivity();
- final usingData = result == ConnectivityResult.mobile;
- var dataConfirm = true;
- if (permissionReady) {
- if (downloadUsingData && usingData) {
- dataConfirm = await _useDataConfirm();
- }
- if (dataConfirm) {
- Provider.of(context, listen: false).startTask(episode);
- }
- }
- }
-
- void _deleteDownload(EpisodeBrief episode) async {
- Provider.of(context, listen: false).delTask(episode);
- Fluttertoast.showToast(
- msg: context.s.downloadRemovedToast,
- gravity: ToastGravity.BOTTOM,
- );
- }
-
- Future _pauseDownload(EpisodeBrief episode) async {
- Provider.of(context, listen: false).pauseTask(episode);
- }
-
- Future _resumeDownload(EpisodeBrief episode) async {
- Provider.of(context, listen: false).resumeTask(episode);
- }
-
- Future _retryDownload(EpisodeBrief episode) async {
- Provider.of(context, listen: false).retryTask(episode);
- }
-
- Future _checkPermmison() async {
- var permission = await Permission.storage.status;
- if (permission != PermissionStatus.granted) {
- var permissions = await [Permission.storage].request();
- if (permissions[Permission.storage] == PermissionStatus.granted) {
- return true;
- } else {
- return false;
- }
- } else {
- return true;
- }
- }
-
- Future _useDataConfirm() async {
- var ifUseData = false;
- final s = context.s;
- await generalDialog(
- context,
- title: Text(s.cellularConfirm),
- content: Text(s.cellularConfirmDes),
- actions: [
- FlatButton(
- onPressed: () {
- Navigator.of(context).pop();
- },
- child: Text(
- s.cancel,
- style: TextStyle(color: Colors.grey[600]),
- ),
- ),
- FlatButton(
- onPressed: () {
- ifUseData = true;
- Navigator.of(context).pop();
- },
- child: Text(
- s.confirm,
- style: TextStyle(color: Colors.red),
- ),
- )
- ],
- );
- return ifUseData;
- }
-
- Widget _buttonOnMenu(Widget widget, Function() onTap) => Material(
- color: Colors.transparent,
- child: InkWell(
- onTap: onTap,
- child: Container(
- height: 50.0,
- padding: EdgeInsets.symmetric(horizontal: 15.0),
- child: widget),
- ),
- );
-
- @override
- Widget build(BuildContext context) {
- return Consumer(builder: (_, downloader, __) {
- var _task = Provider.of(context, listen: false)
- .episodeToTask(widget.episode);
- return Row(
- children: [
- _downloadButton(_task, context),
- AnimatedContainer(
- duration: Duration(seconds: 1),
- decoration: BoxDecoration(
- color: Theme.of(context).accentColor,
- borderRadius: BorderRadius.all(Radius.circular(15.0))),
- height: 20.0,
- width: (_task.status == DownloadTaskStatus.running) ? 50.0 : 0,
- alignment: Alignment.center,
- child: SingleChildScrollView(
- scrollDirection: Axis.horizontal,
- child: Text('${math.max(_task.progress, 0)}%',
- style: TextStyle(color: Colors.white)),
- )),
- ],
- );
- });
- }
-
- Widget _downloadButton(EpisodeTask task, BuildContext context) {
- switch (task.status.value) {
- case 0:
- return _buttonOnMenu(
- Center(
- child: SizedBox(
- height: 20,
- width: 20,
- child: CustomPaint(
- painter: DownloadPainter(
- color: Colors.grey[700],
- fraction: 0,
- progressColor: context.accentColor,
- ),
- ),
- ),
- ),
- () => _requestDownload(task.episode));
- break;
- case 2:
- return Material(
- color: Colors.transparent,
- child: InkWell(
- onTap: () {
- if (task.progress > 0) _pauseDownload(task.episode);
- },
- child: Container(
- height: 50.0,
- alignment: Alignment.center,
- padding: EdgeInsets.symmetric(horizontal: 15.0),
- child: TweenAnimationBuilder(
- duration: Duration(milliseconds: 1000),
- tween: Tween(begin: 0.0, end: 1.0),
- builder: (context, fraction, child) => SizedBox(
- height: 20,
- width: 20,
- child: CustomPaint(
- painter: DownloadPainter(
- color: context.accentColor,
- fraction: fraction,
- progressColor: context.accentColor,
- progress: task.progress / 100),
- ),
- ),
- ),
- ),
- ),
- );
- break;
- case 6:
- return Material(
- color: Colors.transparent,
- child: InkWell(
- onTap: () {
- _resumeDownload(task.episode);
- },
- child: Container(
- height: 50.0,
- alignment: Alignment.center,
- padding: EdgeInsets.symmetric(horizontal: 15),
- child: TweenAnimationBuilder(
- duration: Duration(milliseconds: 500),
- tween: Tween(begin: 0.0, end: 1.0),
- builder: (context, fraction, child) => SizedBox(
- height: 20,
- width: 20,
- child: CustomPaint(
- painter: DownloadPainter(
- color: context.accentColor,
- fraction: 1,
- progressColor: context.accentColor,
- progress: task.progress / 100,
- pauseProgress: fraction),
- ),
- ),
- ),
- ),
- ),
- );
- break;
- case 3:
- Provider.of(context, listen: false)
- .updateMediaItem(task.episode);
- return Material(
- color: Colors.transparent,
- child: InkWell(
- onTap: () {
- _deleteDownload(task.episode);
- },
- child: Container(
- height: 50.0,
- alignment: Alignment.center,
- padding: EdgeInsets.symmetric(horizontal: 15),
- child: SizedBox(
- height: 20,
- width: 20,
- child: CustomPaint(
- painter: DownloadPainter(
- color: context.accentColor,
- fraction: 1,
- progressColor: context.accentColor,
- progress: 1,
- ),
- ),
- ),
- ),
- ),
- );
- break;
- case 4:
- return _buttonOnMenu(Icon(Icons.refresh, color: Colors.red),
- () => _retryDownload(task.episode));
- break;
- default:
- return Center();
- }
- }
-}
+import 'dart:async';
+import 'dart:math' as math;
+import 'dart:ui';
+
+import 'package:connectivity/connectivity.dart';
+import 'package:flutter/material.dart';
+import 'package:flutter_downloader/flutter_downloader.dart';
+import 'package:fluttertoast/fluttertoast.dart';
+import 'package:permission_handler/permission_handler.dart';
+import 'package:provider/provider.dart';
+import '../local_storage/key_value_storage.dart';
+
+import '../state/audio_state.dart';
+import '../state/download_state.dart';
+import '../type/episode_task.dart';
+import '../type/episodebrief.dart';
+import '../util/custom_widget.dart';
+import '../util/extension_helper.dart';
+import '../util/general_dialog.dart';
+
+class DownloadButton extends StatefulWidget {
+ final EpisodeBrief episode;
+ DownloadButton({this.episode, Key key}) : super(key: key);
+ @override
+ _DownloadButtonState createState() => _DownloadButtonState();
+}
+
+class _DownloadButtonState extends State {
+ Future _requestDownload(EpisodeBrief episode) async {
+ final downloadUsingData = await KeyValueStorage(downloadUsingDataKey)
+ .getBool(defaultValue: true, reverse: true);
+ final permissionReady = await _checkPermmison();
+ final result = await Connectivity().checkConnectivity();
+ final usingData = result == ConnectivityResult.mobile;
+ var dataConfirm = true;
+ if (permissionReady) {
+ if (downloadUsingData && usingData) {
+ dataConfirm = await _useDataConfirm();
+ }
+ if (dataConfirm) {
+ Provider.of(context, listen: false).startTask(episode);
+ }
+ }
+ }
+
+ void _deleteDownload(EpisodeBrief episode) async {
+ Provider.of(context, listen: false).delTask(episode);
+ Fluttertoast.showToast(
+ msg: context.s.downloadRemovedToast,
+ gravity: ToastGravity.BOTTOM,
+ );
+ }
+
+ Future _pauseDownload(EpisodeBrief episode) async {
+ Provider.of(context, listen: false).pauseTask(episode);
+ }
+
+ Future _resumeDownload(EpisodeBrief episode) async {
+ Provider.of(context, listen: false).resumeTask(episode);
+ }
+
+ Future _retryDownload(EpisodeBrief episode) async {
+ Provider.of(context, listen: false).retryTask(episode);
+ }
+
+ Future _checkPermmison() async {
+ var permission = await Permission.storage.status;
+ if (permission != PermissionStatus.granted) {
+ var permissions = await [Permission.storage].request();
+ if (permissions[Permission.storage] == PermissionStatus.granted) {
+ return true;
+ } else {
+ return false;
+ }
+ } else {
+ return true;
+ }
+ }
+
+ Future _useDataConfirm() async {
+ var ifUseData = false;
+ final s = context.s;
+ await generalDialog(
+ context,
+ title: Text(s.cellularConfirm),
+ content: Text(s.cellularConfirmDes),
+ actions: [
+ FlatButton(
+ onPressed: () {
+ Navigator.of(context).pop();
+ },
+ child: Text(
+ s.cancel,
+ style: TextStyle(color: Colors.grey[600]),
+ ),
+ ),
+ FlatButton(
+ onPressed: () {
+ ifUseData = true;
+ Navigator.of(context).pop();
+ },
+ child: Text(
+ s.confirm,
+ style: TextStyle(color: Colors.red),
+ ),
+ )
+ ],
+ );
+ return ifUseData;
+ }
+
+ Widget _buttonOnMenu(Widget widget, Function() onTap) => Material(
+ color: Colors.transparent,
+ child: InkWell(
+ onTap: onTap,
+ child: Container(
+ height: 50.0,
+ padding: EdgeInsets.symmetric(horizontal: 15.0),
+ child: widget),
+ ),
+ );
+
+ @override
+ Widget build(BuildContext context) {
+ return Consumer(builder: (_, downloader, __) {
+ var _task = Provider.of(context, listen: false)
+ .episodeToTask(widget.episode);
+ return Row(
+ children: [
+ _downloadButton(_task, context),
+ AnimatedContainer(
+ duration: Duration(seconds: 1),
+ decoration: BoxDecoration(
+ color: Theme.of(context).accentColor,
+ borderRadius: BorderRadius.all(Radius.circular(15.0))),
+ height: 20.0,
+ width: (_task.status == DownloadTaskStatus.running) ? 50.0 : 0,
+ alignment: Alignment.center,
+ child: SingleChildScrollView(
+ scrollDirection: Axis.horizontal,
+ child: Text('${math.max(_task.progress, 0)}%',
+ style: TextStyle(color: Colors.white)),
+ )),
+ ],
+ );
+ });
+ }
+
+ Widget _downloadButton(EpisodeTask task, BuildContext context) {
+ switch (task.status.value) {
+ case 0:
+ return _buttonOnMenu(
+ Center(
+ child: SizedBox(
+ height: 20,
+ width: 20,
+ child: CustomPaint(
+ painter: DownloadPainter(
+ color: Colors.grey[700],
+ fraction: 0,
+ progressColor: context.accentColor,
+ ),
+ ),
+ ),
+ ),
+ () => _requestDownload(task.episode));
+ break;
+ case 2:
+ return Material(
+ color: Colors.transparent,
+ child: InkWell(
+ onTap: () {
+ if (task.progress > 0) _pauseDownload(task.episode);
+ },
+ child: Container(
+ height: 50.0,
+ alignment: Alignment.center,
+ padding: EdgeInsets.symmetric(horizontal: 15.0),
+ child: TweenAnimationBuilder(
+ duration: Duration(milliseconds: 1000),
+ tween: Tween(begin: 0.0, end: 1.0),
+ builder: (context, fraction, child) => SizedBox(
+ height: 20,
+ width: 20,
+ child: CustomPaint(
+ painter: DownloadPainter(
+ color: context.accentColor,
+ fraction: fraction,
+ progressColor: context.accentColor,
+ progress: task.progress / 100),
+ ),
+ ),
+ ),
+ ),
+ ),
+ );
+ break;
+ case 6:
+ return Material(
+ color: Colors.transparent,
+ child: InkWell(
+ onTap: () {
+ _resumeDownload(task.episode);
+ },
+ child: Container(
+ height: 50.0,
+ alignment: Alignment.center,
+ padding: EdgeInsets.symmetric(horizontal: 15),
+ child: TweenAnimationBuilder(
+ duration: Duration(milliseconds: 500),
+ tween: Tween(begin: 0.0, end: 1.0),
+ builder: (context, fraction, child) => SizedBox(
+ height: 20,
+ width: 20,
+ child: CustomPaint(
+ painter: DownloadPainter(
+ color: context.accentColor,
+ fraction: 1,
+ progressColor: context.accentColor,
+ progress: task.progress / 100,
+ pauseProgress: fraction),
+ ),
+ ),
+ ),
+ ),
+ ),
+ );
+ break;
+ case 3:
+ Provider.of(context, listen: false)
+ .updateMediaItem(task.episode);
+ return Material(
+ color: Colors.transparent,
+ child: InkWell(
+ onTap: () {
+ _deleteDownload(task.episode);
+ },
+ child: Container(
+ height: 50.0,
+ alignment: Alignment.center,
+ padding: EdgeInsets.symmetric(horizontal: 15),
+ child: SizedBox(
+ height: 20,
+ width: 20,
+ child: CustomPaint(
+ painter: DownloadPainter(
+ color: context.accentColor,
+ fraction: 1,
+ progressColor: context.accentColor,
+ progress: 1,
+ ),
+ ),
+ ),
+ ),
+ ),
+ );
+ break;
+ case 4:
+ return _buttonOnMenu(Icon(Icons.refresh, color: Colors.red),
+ () => _retryDownload(task.episode));
+ break;
+ default:
+ return Center();
+ }
+ }
+}
diff --git a/lib/generated/l10n.dart b/lib/generated/l10n.dart
index f87adea..7345b36 100644
--- a/lib/generated/l10n.dart
+++ b/lib/generated/l10n.dart
@@ -9,6 +9,8 @@ import 'intl/messages_all.dart';
// **************************************************************************
// ignore_for_file: non_constant_identifier_names, lines_longer_than_80_chars
+// ignore_for_file: join_return_with_assignment, prefer_final_in_for_each
+// ignore_for_file: avoid_redundant_argument_values
class S {
S();
diff --git a/lib/home/about.dart b/lib/home/about.dart
index ddd3de7..9a2d0bc 100644
--- a/lib/home/about.dart
+++ b/lib/home/about.dart
@@ -1,334 +1,334 @@
-import 'package:flutter/material.dart';
-import 'package:flutter/services.dart';
-import 'package:line_icons/line_icons.dart';
-
-import '../util/custom_widget.dart';
-import '../util/extension_helper.dart';
-
-const String version = '0.5.0';
-
-class AboutApp extends StatefulWidget {
- @override
- _AboutAppState createState() => _AboutAppState();
-}
-
-class _AboutAppState extends State {
- ScrollController _scrollController;
- bool _scroll;
- @override
- void initState() {
- super.initState();
- _scroll = false;
- _scrollController = ScrollController()
- ..addListener(() {
- if (_scrollController.offset > 0 && !_scroll && mounted) {
- setState(() => _scroll = true);
- }
- if (_scrollController.offset <= 0 && _scroll && mounted) {
- setState(() => _scroll = false);
- }
- });
- }
-
- Widget _listItem(
- BuildContext context, String text, IconData icons, String url) =>
- InkWell(
- onTap: () => url.launchUrl,
- child: Container(
- height: 50.0,
- padding: EdgeInsets.symmetric(horizontal: 20.0),
- alignment: Alignment.centerLeft,
- decoration: BoxDecoration(
- border: Border(
- bottom: Divider.createBorderSide(context),
- ),
- ),
- child: Row(
- mainAxisAlignment: MainAxisAlignment.center,
- mainAxisSize: MainAxisSize.min,
- children: [
- Icon(icons, color: Theme.of(context).accentColor),
- Padding(
- padding: EdgeInsets.symmetric(horizontal: 10),
- ),
- Text(text),
- ],
- ),
- ),
- );
-
- Widget _translatorInfo(BuildContext context, {String name, String flag}) =>
- Container(
- height: 50.0,
- padding: EdgeInsets.symmetric(horizontal: 20.0),
- alignment: Alignment.centerLeft,
- decoration: BoxDecoration(
- border: Border(
- bottom: Divider.createBorderSide(context),
- ),
- ),
- child: Row(
- mainAxisAlignment: MainAxisAlignment.center,
- mainAxisSize: MainAxisSize.min,
- children: [
- Icon(LineIcons.user, color: Theme.of(context).accentColor),
- Padding(
- padding: EdgeInsets.symmetric(horizontal: 10),
- ),
- Expanded(
- child: Text(
- name,
- maxLines: 1,
- overflow: TextOverflow.fade,
- )),
- if (flag != null)
- ClipRRect(
- borderRadius: BorderRadius.circular(4),
- child: Image(
- image: AssetImage('assets/$flag.png'),
- height: 20,
- width: 30,
- fit: BoxFit.cover,
- ),
- ),
- ],
- ),
- );
-
- @override
- Widget build(BuildContext context) {
- OverlayEntry _createOverlayEntry(TapDownDetails detail) {
- // RenderBox renderBox = context.findRenderObject();
- var offset = detail.globalPosition;
- return OverlayEntry(
- builder: (constext) => Positioned(
- left: offset.dx - 5,
- top: offset.dy - 120,
- child: Container(
- width: 20,
- height: 120,
- color: Colors.transparent,
- alignment: Alignment.topCenter,
- child: HeartSet(height: 120, width: 20)),
- ),
- );
- }
-
- final s = context.s;
- return AnnotatedRegion(
- value: SystemUiOverlayStyle(
- statusBarIconBrightness: Theme.of(context).accentColorBrightness,
- systemNavigationBarColor: Theme.of(context).primaryColor,
- systemNavigationBarIconBrightness:
- Theme.of(context).accentColorBrightness,
- ),
- child: Scaffold(
- backgroundColor: Theme.of(context).primaryColor,
- appBar: AppBar(
- title: Text(s.homeToprightMenuAbout),
- leading: CustomBackButton(),
- elevation: _scroll ? 1 : 0,
- ),
- body: SafeArea(
- child: ScrollConfiguration(
- behavior: NoGrowBehavior(),
- child: SingleChildScrollView(
- controller: _scrollController,
- scrollDirection: Axis.vertical,
- child: Padding(
- padding: const EdgeInsets.all(20.0),
- child: Column(
- mainAxisAlignment: MainAxisAlignment.start,
- mainAxisSize: MainAxisSize.min,
- children: [
- Container(
- height: 110.0,
- alignment: Alignment.center,
- child: Column(
- mainAxisAlignment: MainAxisAlignment.center,
- mainAxisSize: MainAxisSize.min,
- children: [
- Image(
- image: AssetImage('assets/logo.png'),
- height: 80,
- ),
- Text(s.version(version)),
- ],
- ),
- ),
- Padding(
- padding: const EdgeInsets.all(20),
- child: Text(
- 'Tsacdop is a podcast player built with flutter, a clean, simply beautiful and friendly app.',
- textAlign: TextAlign.center,
- ),
- ),
- Row(
- mainAxisAlignment: MainAxisAlignment.center,
- crossAxisAlignment: CrossAxisAlignment.center,
- children: [
- TextButton(
- onPressed: () =>
- 'https://tsacdop.stonegate.me/#/privacy'
- .launchUrl,
- style: TextButton.styleFrom(
- primary: context.accentColor,
- textStyle:
- TextStyle(fontWeight: FontWeight.bold)),
- child: Text(
- s.privacyPolicy,
- ),
- ),
- Container(
- margin: const EdgeInsets.symmetric(horizontal: 5),
- height: 4,
- width: 4,
- decoration: BoxDecoration(
- color: context.accentColor,
- shape: BoxShape.circle),
- ),
- TextButton(
- onPressed: () =>
- 'https://tsacdop.stonegate.me/#/changelog'
- .launchUrl,
- style: TextButton.styleFrom(
- primary: context.accentColor,
- textStyle:
- TextStyle(fontWeight: FontWeight.bold)),
- child: Text(s.changelog,
- style: TextStyle(color: context.accentColor)),
- ),
- ],
- ),
- Padding(
- padding: EdgeInsets.only(top: 20.0, bottom: 10.0),
- child: Column(
- mainAxisAlignment: MainAxisAlignment.start,
- mainAxisSize: MainAxisSize.min,
- children: [
- _listItem(context, 'Twitter @tsacdop',
- LineIcons.twitter, 'https://twitter.com/tsacdop'),
- _listItem(context, 'GitHub', LineIcons.github_alt,
- 'https://github.com/stonega/tsacdop'),
- _listItem(context, 'Telegram', LineIcons.telegram,
- 'https://t.me/joinchat/Bk3LkRpTHy40QYC78PK7Qg'),
- Center(
- child: SizedBox(
- width: 200,
- child: ElevatedButton(
- onPressed: () =>
- 'https://www.buymeacoffee.com/stonegate'
- .launchUrl,
- style: ElevatedButton.styleFrom(
- primary: context.accentColor),
- child: Container(
- height: 30.0,
- padding:
- EdgeInsets.symmetric(horizontal: 4.0),
- alignment: Alignment.center,
- child: Row(
- mainAxisAlignment: MainAxisAlignment.center,
- mainAxisSize: MainAxisSize.min,
- children: [
- Text('Buy Me A Coffee',
- style: TextStyle(
- fontWeight: FontWeight.bold)),
- SizedBox(width: 10),
- Image(
- image: AssetImage(
- 'assets/buymeacoffee.png'),
- height: 20,
- fit: BoxFit.fitHeight,
- ),
- ],
- ),
- ),
- ),
- ),
- ),
- ],
- ),
- ),
- Padding(
- padding: EdgeInsets.all(10.0),
- ),
- Padding(
- padding: EdgeInsets.only(top: 20.0, bottom: 10.0),
- child: Column(
- mainAxisAlignment: MainAxisAlignment.start,
- mainAxisSize: MainAxisSize.min,
- children: [
- Row(
- children: [
- SizedBox(width: 25),
- Text(
- s.translators,
- style: TextStyle(
- color: Theme.of(context).accentColor,
- fontWeight: FontWeight.bold),
- ),
- SizedBox(width: 2),
- Icon(Icons.favorite, color: Colors.red, size: 20),
- ],
- ),
- _translatorInfo(context, name: 'Atrate'),
- _translatorInfo(context, name: 'ppp', flag: 'fr'),
- _translatorInfo(context,
- name: 'Joel Israel', flag: 'mx'),
- _translatorInfo(context,
- name: 'Bruno Pinheiro', flag: 'pt'),
- _translatorInfo(context,
- name: 'Edoardo Maria Elidoro', flag: 'it'),
- ],
- ),
- ),
- //Spacer(),
- Padding(
- padding: EdgeInsets.symmetric(vertical: 10),
- ),
- Container(
- height: 50,
- alignment: Alignment.center,
- child: GestureDetector(
- onTapDown: (detail) async {
- OverlayEntry _overlayEntry;
- _overlayEntry = _createOverlayEntry(detail);
- Overlay.of(context).insert(_overlayEntry);
- await Future.delayed(Duration(seconds: 2));
- _overlayEntry?.remove();
- },
- child: Row(
- crossAxisAlignment: CrossAxisAlignment.center,
- mainAxisAlignment: MainAxisAlignment.center,
- children: [
- Image.asset(
- 'assets/text.png',
- height: 25,
- ),
- Padding(
- padding: EdgeInsets.symmetric(horizontal: 5),
- ),
- Icon(
- Icons.favorite,
- color: Colors.blue,
- ),
- Padding(
- padding: EdgeInsets.symmetric(horizontal: 5),
- ),
- FlutterLogo(
- size: 18,
- ),
- ],
- ),
- ),
- ),
- ],
- ),
- ),
- ),
- ),
- ),
- ),
- );
- }
-}
+import 'package:flutter/material.dart';
+import 'package:flutter/services.dart';
+import 'package:line_icons/line_icons.dart';
+
+import '../util/custom_widget.dart';
+import '../util/extension_helper.dart';
+
+const String version = '0.5.0';
+
+class AboutApp extends StatefulWidget {
+ @override
+ _AboutAppState createState() => _AboutAppState();
+}
+
+class _AboutAppState extends State {
+ ScrollController _scrollController;
+ bool _scroll;
+ @override
+ void initState() {
+ super.initState();
+ _scroll = false;
+ _scrollController = ScrollController()
+ ..addListener(() {
+ if (_scrollController.offset > 0 && !_scroll && mounted) {
+ setState(() => _scroll = true);
+ }
+ if (_scrollController.offset <= 0 && _scroll && mounted) {
+ setState(() => _scroll = false);
+ }
+ });
+ }
+
+ Widget _listItem(
+ BuildContext context, String text, IconData icons, String url) =>
+ InkWell(
+ onTap: () => url.launchUrl,
+ child: Container(
+ height: 50.0,
+ padding: EdgeInsets.symmetric(horizontal: 20.0),
+ alignment: Alignment.centerLeft,
+ decoration: BoxDecoration(
+ border: Border(
+ bottom: Divider.createBorderSide(context),
+ ),
+ ),
+ child: Row(
+ mainAxisAlignment: MainAxisAlignment.center,
+ mainAxisSize: MainAxisSize.min,
+ children: [
+ Icon(icons, color: Theme.of(context).accentColor),
+ Padding(
+ padding: EdgeInsets.symmetric(horizontal: 10),
+ ),
+ Text(text),
+ ],
+ ),
+ ),
+ );
+
+ Widget _translatorInfo(BuildContext context, {String name, String flag}) =>
+ Container(
+ height: 50.0,
+ padding: EdgeInsets.symmetric(horizontal: 20.0),
+ alignment: Alignment.centerLeft,
+ decoration: BoxDecoration(
+ border: Border(
+ bottom: Divider.createBorderSide(context),
+ ),
+ ),
+ child: Row(
+ mainAxisAlignment: MainAxisAlignment.center,
+ mainAxisSize: MainAxisSize.min,
+ children: [
+ Icon(LineIcons.user, color: Theme.of(context).accentColor),
+ Padding(
+ padding: EdgeInsets.symmetric(horizontal: 10),
+ ),
+ Expanded(
+ child: Text(
+ name,
+ maxLines: 1,
+ overflow: TextOverflow.fade,
+ )),
+ if (flag != null)
+ ClipRRect(
+ borderRadius: BorderRadius.circular(4),
+ child: Image(
+ image: AssetImage('assets/$flag.png'),
+ height: 20,
+ width: 30,
+ fit: BoxFit.cover,
+ ),
+ ),
+ ],
+ ),
+ );
+
+ @override
+ Widget build(BuildContext context) {
+ OverlayEntry _createOverlayEntry(TapDownDetails detail) {
+ // RenderBox renderBox = context.findRenderObject();
+ var offset = detail.globalPosition;
+ return OverlayEntry(
+ builder: (constext) => Positioned(
+ left: offset.dx - 5,
+ top: offset.dy - 120,
+ child: Container(
+ width: 20,
+ height: 120,
+ color: Colors.transparent,
+ alignment: Alignment.topCenter,
+ child: HeartSet(height: 120, width: 20)),
+ ),
+ );
+ }
+
+ final s = context.s;
+ return AnnotatedRegion(
+ value: SystemUiOverlayStyle(
+ statusBarIconBrightness: Theme.of(context).accentColorBrightness,
+ systemNavigationBarColor: Theme.of(context).primaryColor,
+ systemNavigationBarIconBrightness:
+ Theme.of(context).accentColorBrightness,
+ ),
+ child: Scaffold(
+ backgroundColor: Theme.of(context).primaryColor,
+ appBar: AppBar(
+ title: Text(s.homeToprightMenuAbout),
+ leading: CustomBackButton(),
+ elevation: _scroll ? 1 : 0,
+ ),
+ body: SafeArea(
+ child: ScrollConfiguration(
+ behavior: NoGrowBehavior(),
+ child: SingleChildScrollView(
+ controller: _scrollController,
+ scrollDirection: Axis.vertical,
+ child: Padding(
+ padding: const EdgeInsets.all(20.0),
+ child: Column(
+ mainAxisAlignment: MainAxisAlignment.start,
+ mainAxisSize: MainAxisSize.min,
+ children: [
+ Container(
+ height: 110.0,
+ alignment: Alignment.center,
+ child: Column(
+ mainAxisAlignment: MainAxisAlignment.center,
+ mainAxisSize: MainAxisSize.min,
+ children: [
+ Image(
+ image: AssetImage('assets/logo.png'),
+ height: 80,
+ ),
+ Text(s.version(version)),
+ ],
+ ),
+ ),
+ Padding(
+ padding: const EdgeInsets.all(20),
+ child: Text(
+ 'Tsacdop is a podcast player built with flutter, a clean, simply beautiful and friendly app.',
+ textAlign: TextAlign.center,
+ ),
+ ),
+ Row(
+ mainAxisAlignment: MainAxisAlignment.center,
+ crossAxisAlignment: CrossAxisAlignment.center,
+ children: [
+ TextButton(
+ onPressed: () =>
+ 'https://tsacdop.stonegate.me/#/privacy'
+ .launchUrl,
+ style: TextButton.styleFrom(
+ primary: context.accentColor,
+ textStyle:
+ TextStyle(fontWeight: FontWeight.bold)),
+ child: Text(
+ s.privacyPolicy,
+ ),
+ ),
+ Container(
+ margin: const EdgeInsets.symmetric(horizontal: 5),
+ height: 4,
+ width: 4,
+ decoration: BoxDecoration(
+ color: context.accentColor,
+ shape: BoxShape.circle),
+ ),
+ TextButton(
+ onPressed: () =>
+ 'https://tsacdop.stonegate.me/#/changelog'
+ .launchUrl,
+ style: TextButton.styleFrom(
+ primary: context.accentColor,
+ textStyle:
+ TextStyle(fontWeight: FontWeight.bold)),
+ child: Text(s.changelog,
+ style: TextStyle(color: context.accentColor)),
+ ),
+ ],
+ ),
+ Padding(
+ padding: EdgeInsets.only(top: 20.0, bottom: 10.0),
+ child: Column(
+ mainAxisAlignment: MainAxisAlignment.start,
+ mainAxisSize: MainAxisSize.min,
+ children: [
+ _listItem(context, 'Twitter @tsacdop',
+ LineIcons.twitter, 'https://twitter.com/tsacdop'),
+ _listItem(context, 'GitHub', LineIcons.github_alt,
+ 'https://github.com/stonega/tsacdop'),
+ _listItem(context, 'Telegram', LineIcons.telegram,
+ 'https://t.me/joinchat/Bk3LkRpTHy40QYC78PK7Qg'),
+ Center(
+ child: SizedBox(
+ width: 200,
+ child: ElevatedButton(
+ onPressed: () =>
+ 'https://www.buymeacoffee.com/stonegate'
+ .launchUrl,
+ style: ElevatedButton.styleFrom(
+ primary: context.accentColor),
+ child: Container(
+ height: 30.0,
+ padding:
+ EdgeInsets.symmetric(horizontal: 4.0),
+ alignment: Alignment.center,
+ child: Row(
+ mainAxisAlignment: MainAxisAlignment.center,
+ mainAxisSize: MainAxisSize.min,
+ children: [
+ Text('Buy Me A Coffee',
+ style: TextStyle(
+ fontWeight: FontWeight.bold)),
+ SizedBox(width: 10),
+ Image(
+ image: AssetImage(
+ 'assets/buymeacoffee.png'),
+ height: 20,
+ fit: BoxFit.fitHeight,
+ ),
+ ],
+ ),
+ ),
+ ),
+ ),
+ ),
+ ],
+ ),
+ ),
+ Padding(
+ padding: EdgeInsets.all(10.0),
+ ),
+ Padding(
+ padding: EdgeInsets.only(top: 20.0, bottom: 10.0),
+ child: Column(
+ mainAxisAlignment: MainAxisAlignment.start,
+ mainAxisSize: MainAxisSize.min,
+ children: [
+ Row(
+ children: [
+ SizedBox(width: 25),
+ Text(
+ s.translators,
+ style: TextStyle(
+ color: Theme.of(context).accentColor,
+ fontWeight: FontWeight.bold),
+ ),
+ SizedBox(width: 2),
+ Icon(Icons.favorite, color: Colors.red, size: 20),
+ ],
+ ),
+ _translatorInfo(context, name: 'Atrate'),
+ _translatorInfo(context, name: 'ppp', flag: 'fr'),
+ _translatorInfo(context,
+ name: 'Joel Israel', flag: 'mx'),
+ _translatorInfo(context,
+ name: 'Bruno Pinheiro', flag: 'pt'),
+ _translatorInfo(context,
+ name: 'Edoardo Maria Elidoro', flag: 'it'),
+ ],
+ ),
+ ),
+ //Spacer(),
+ Padding(
+ padding: EdgeInsets.symmetric(vertical: 10),
+ ),
+ Container(
+ height: 50,
+ alignment: Alignment.center,
+ child: GestureDetector(
+ onTapDown: (detail) async {
+ OverlayEntry _overlayEntry;
+ _overlayEntry = _createOverlayEntry(detail);
+ Overlay.of(context).insert(_overlayEntry);
+ await Future.delayed(Duration(seconds: 2));
+ _overlayEntry?.remove();
+ },
+ child: Row(
+ crossAxisAlignment: CrossAxisAlignment.center,
+ mainAxisAlignment: MainAxisAlignment.center,
+ children: [
+ Image.asset(
+ 'assets/text.png',
+ height: 25,
+ ),
+ Padding(
+ padding: EdgeInsets.symmetric(horizontal: 5),
+ ),
+ Icon(
+ Icons.favorite,
+ color: Colors.blue,
+ ),
+ Padding(
+ padding: EdgeInsets.symmetric(horizontal: 5),
+ ),
+ FlutterLogo(
+ size: 18,
+ ),
+ ],
+ ),
+ ),
+ ),
+ ],
+ ),
+ ),
+ ),
+ ),
+ ),
+ ),
+ );
+ }
+}
diff --git a/lib/home/audioplayer.dart b/lib/home/audioplayer.dart
index 59434ea..d5e3714 100644
--- a/lib/home/audioplayer.dart
+++ b/lib/home/audioplayer.dart
@@ -1,1512 +1,1512 @@
-import 'dart:io';
-import 'dart:math' as math;
-
-import 'package:audio_service/audio_service.dart';
-import 'package:flutter/material.dart';
-import 'package:google_fonts/google_fonts.dart';
-import 'package:line_icons/line_icons.dart';
-import 'package:marquee/marquee.dart';
-import 'package:provider/provider.dart';
-import 'package:tuple/tuple.dart';
-
-import '../episodes/episode_detail.dart';
-import '../local_storage/key_value_storage.dart';
-import '../local_storage/sqflite_localpodcast.dart';
-import '../state/audio_state.dart';
-import '../type/episodebrief.dart';
-import '../type/play_histroy.dart';
-import '../util/audiopanel.dart';
-import '../util/custom_slider.dart';
-import '../util/custom_widget.dart';
-import '../util/extension_helper.dart';
-import '../util/pageroute.dart';
-import 'playlist.dart';
-
-final List _customShadow = [
- BoxShadow(blurRadius: 26, offset: Offset(-6, -6), color: Colors.white),
- BoxShadow(
- blurRadius: 8,
- offset: Offset(2, 2),
- color: Colors.grey[600].withOpacity(0.4))
-];
-
-final List _customShadowNight = [
- BoxShadow(
- blurRadius: 6,
- offset: Offset(-1, -1),
- color: Colors.grey[100].withOpacity(0.3)),
- BoxShadow(blurRadius: 8, offset: Offset(2, 2), color: Colors.black)
-];
-
-const List kMinsToSelect = [10, 15, 20, 25, 30, 45, 60, 70, 80, 90, 99];
-const List kMinPlayerHeight = [70.0, 75.0, 80.0];
-const List kMaxPlayerHeight = [300.0, 325.0, 350.0];
-
-class PlayerWidget extends StatelessWidget {
- PlayerWidget({this.playerKey, this.isPlayingPage = false});
- final GlobalKey playerKey;
- final bool isPlayingPage;
- Widget _miniPanel(BuildContext context) {
- var audio = Provider.of(context, listen: false);
- final s = context.s;
- return Container(
- color: context.primaryColor,
- height: 60,
- child:
- Column(mainAxisAlignment: MainAxisAlignment.start, children: [
- Selector>(
- selector: (_, audio) =>
- Tuple2(audio.episode?.primaryColor, audio.seekSliderValue),
- builder: (_, data, __) {
- final c = context.brightness == Brightness.light
- ? data.item1.colorizedark()
- : data.item1.colorizeLight();
- return SizedBox(
- height: 2,
- child: LinearProgressIndicator(
- value: data.item2,
- backgroundColor: context.primaryColor,
- valueColor: AlwaysStoppedAnimation(c),
- ),
- );
- },
- ),
- Expanded(
- child: Padding(
- padding: const EdgeInsets.symmetric(horizontal: 15),
- child: Row(
- mainAxisAlignment: MainAxisAlignment.center,
- crossAxisAlignment: CrossAxisAlignment.center,
- children: [
- Expanded(
- flex: 4,
- child: Selector(
- selector: (_, audio) => audio.episode?.title,
- builder: (_, title, __) {
- return Text(
- title,
- style: TextStyle(fontWeight: FontWeight.bold),
- maxLines: 2,
- overflow: TextOverflow.clip,
- );
- },
- ),
- ),
- Expanded(
- flex: 2,
- child: Selector>(
- selector: (_, audio) => Tuple3(
- audio.buffering,
- (audio.backgroundAudioDuration -
- audio.backgroundAudioPosition) /
- 1000,
- audio.remoteErrorMessage),
- builder: (_, data, __) {
- return Padding(
- padding: const EdgeInsets.symmetric(horizontal: 10),
- child: data.item3 != null
- ? Text(data.item3,
- style:
- const TextStyle(color: Color(0xFFFF0000)))
- : data.item1
- ? Text(
- s.buffering,
- style:
- TextStyle(color: context.accentColor),
- )
- : Text(
- s.timeLeft(
- (data.item2).toInt().toTime ?? ''),
- maxLines: 2,
- ),
- );
- },
- ),
- ),
- Expanded(
- flex: 2,
- child: Selector>(
- selector: (_, audio) =>
- Tuple3(audio.buffering, audio.playing, audio.episode),
- builder: (_, data, __) {
- return Row(
- mainAxisAlignment: MainAxisAlignment.center,
- children: [
- data.item1
- ? Stack(
- alignment: Alignment.center,
- children: [
- Padding(
- padding: const EdgeInsets.symmetric(
- vertical: 10.0),
- child: SizedBox(
- height: 30.0,
- width: 30.0,
- child: CircleAvatar(
- backgroundColor: data.item3
- .backgroudColor(context),
- backgroundImage:
- data.item3.avatarImage,
- ),
- ),
- ),
- Container(
- height: 40.0,
- decoration: BoxDecoration(
- shape: BoxShape.circle,
- color: Colors.black),
- ),
- ])
- : data.item2
- ? InkWell(
- onTap: data.item2
- ? () => audio.pauseAduio()
- : null,
- child:
- ImageRotate(episodeItem: data.item3),
- )
- : InkWell(
- onTap: data.item2
- ? null
- : () => audio.resumeAudio(),
- child: Stack(
- alignment: Alignment.center,
- children: [
- Padding(
- padding: EdgeInsets.symmetric(
- vertical: 10.0),
- child: SizedBox(
- height: 30.0,
- width: 30.0,
- child: CircleAvatar(
- backgroundColor: data.item3
- .backgroudColor(context),
- backgroundImage:
- data.item3.avatarImage,
- ),
- ),
- ),
- Container(
- height: 40.0,
- decoration: BoxDecoration(
- shape: BoxShape.circle,
- color: Colors.black),
- ),
- if (!data.item1)
- Icon(
- Icons.play_arrow,
- color: Colors.white,
- )
- ],
- ),
- ),
- IconButton(
- onPressed: () => audio.playNext(),
- iconSize: 20.0,
- icon: Icon(Icons.skip_next),
- color: context.textColor)
- ],
- );
- },
- ),
- ),
- ],
- ),
- ),
- ),
- ]),
- );
- }
-
- @override
- Widget build(BuildContext context) {
- return Selector>(
- selector: (_, audio) => Tuple2(audio.playerRunning, audio?.playerHeight),
- builder: (_, data, __) {
- if (!data.item1) {
- return Center();
- } else {
- var minHeight = kMinPlayerHeight[data.item2.index];
- var maxHeight = kMaxPlayerHeight[data.item2.index];
- return AudioPanel(
- minHeight: minHeight,
- maxHeight: maxHeight,
- key: playerKey,
- miniPanel: _miniPanel(context),
- expandedPanel: ControlPanel(
- maxHeight: maxHeight,
- isPlayingPage: isPlayingPage,
- onExpand: () {
- playerKey.currentState.scrollToTop();
- },
- onClose: () {
- playerKey.currentState.backToMini();
- },
- ));
- }
- },
- );
- }
-}
-
-class LastPosition extends StatelessWidget {
- LastPosition({Key key}) : super(key: key);
-
- Future getPosition(EpisodeBrief episode) async {
- var dbHelper = DBHelper();
- return await dbHelper.getPosition(episode);
- }
-
- @override
- Widget build(BuildContext context) {
- final s = context.s;
- var audio = Provider.of(context, listen: false);
- return Selector(
- selector: (_, audio) => audio.episode,
- builder: (context, episode, child) {
- return SingleChildScrollView(
- scrollDirection: Axis.horizontal,
- child: Row(
- mainAxisAlignment: MainAxisAlignment.center,
- mainAxisSize: MainAxisSize.min,
- children: [
- Selector(
- selector: (_, audio) => audio.skipSilence,
- builder: (_, data, __) => FlatButton(
- child: Row(
- children: [
- Icon(Icons.flash_on, size: 18),
- SizedBox(width: 5),
- Text(s.skipSilence),
- ],
- ),
- color: data ? context.accentColor : Colors.transparent,
- padding: EdgeInsets.symmetric(horizontal: 10),
- shape: RoundedRectangleBorder(
- borderRadius: BorderRadius.circular(100.0),
- side: BorderSide(
- color: data
- ? context.accentColor
- : Theme.of(context)
- .colorScheme
- .onSurface
- .withOpacity(0.12))),
- textColor: data ? Colors.white : null,
- onPressed: () =>
- audio.setSkipSilence(skipSilence: !data))),
- SizedBox(width: 10),
- Selector(
- selector: (_, audio) => audio.boostVolume,
- builder: (_, data, __) => FlatButton(
- child: Row(
- children: [
- Icon(Icons.volume_up, size: 18),
- SizedBox(width: 5),
- Text(s.boostVolume),
- ],
- ),
- color: data ? context.accentColor : Colors.transparent,
- padding: EdgeInsets.symmetric(horizontal: 10),
- shape: RoundedRectangleBorder(
- borderRadius: BorderRadius.circular(100.0),
- side: BorderSide(
- color: data
- ? context.accentColor
- : Theme.of(context)
- .colorScheme
- .onSurface
- .withOpacity(0.12))),
- textColor: data ? Colors.white : null,
- onPressed: () =>
- audio.setBoostVolume(boostVolume: !data))),
- SizedBox(width: 10),
- FutureBuilder(
- future: getPosition(episode),
- builder: (context, snapshot) {
- return snapshot.hasData
- ? snapshot.data.seekValue > 0.90
- ? Container(
- height: 20,
- padding: EdgeInsets.symmetric(horizontal: 10),
- child: SizedBox(
- width: 20,
- height: 20,
- child: CustomPaint(
- painter: ListenedAllPainter(
- context.accentColor,
- stroke: 2.0),
- ),
- ),
- )
- : snapshot.data.seconds < 10
- ? Center()
- : OutlineButton(
- shape: RoundedRectangleBorder(
- borderRadius:
- BorderRadius.circular(100.0),
- side: BorderSide(
- color: context.accentColor)),
- highlightedBorderColor: Colors.green[700],
- onPressed: () => audio.seekTo(
- (snapshot.data.seconds * 1000).toInt()),
- child: Row(
- children: [
- SizedBox(
- width: 20,
- height: 20,
- child: CustomPaint(
- painter: ListenedPainter(
- context.textColor,
- stroke: 2.0),
- ),
- ),
- SizedBox(width: 5),
- Text(snapshot.data.seconds.toTime),
- ],
- ),
- )
- : Center();
- }),
- Selector(
- selector: (_, audio) => audio.switchValue,
- builder: (_, data, __) => data == 1
- ? Container(
- height: 20,
- width: 40,
- child: Transform.rotate(
- angle: math.pi * 0.7,
- child: Icon(Icons.brightness_2,
- size: 18, color: context.accentColor)))
- : Center(),
- )
- ],
- ),
- );
- },
- );
- }
-}
-
-class PlaylistWidget extends StatefulWidget {
- const PlaylistWidget({Key key}) : super(key: key);
-
- @override
- _PlaylistWidgetState createState() => _PlaylistWidgetState();
-}
-
-class _PlaylistWidgetState extends State {
- final GlobalKey miniPlaylistKey = GlobalKey();
-
- @override
- Widget build(BuildContext context) {
- var audio = Provider.of(context, listen: false);
- return Container(
- alignment: Alignment.topLeft,
- height: 300,
- width: double.infinity,
- decoration: BoxDecoration(
- color: context.accentColor.withAlpha(70),
- borderRadius: BorderRadius.circular(10),
- ),
- child: Column(
- children: [
- Expanded(
- child:
- Selector, bool>>(
- selector: (_, audio) =>
- Tuple2(audio.queue.playlist, audio.queueUpdate),
- builder: (_, data, __) {
- var episodesToPlay = data.item1.sublist(1);
- return AnimatedList(
- key: miniPlaylistKey,
- shrinkWrap: true,
- scrollDirection: Axis.vertical,
- initialItemCount: episodesToPlay.length,
- itemBuilder: (context, index, animation) => ScaleTransition(
- alignment: Alignment.center,
- scale: animation,
- child: Column(
- children: [
- Row(
- children: [
- Expanded(
- child: Material(
- color: Colors.transparent,
- child: InkWell(
- onTap: () {
- audio.episodeLoad(data.item1[index]);
- miniPlaylistKey.currentState.removeItem(
- index,
- (context, animation) => Center());
- },
- child: Container(
- height: 60,
- padding:
- EdgeInsets.symmetric(horizontal: 20),
- alignment: Alignment.centerLeft,
- child: Row(
- mainAxisAlignment:
- MainAxisAlignment.center,
- crossAxisAlignment:
- CrossAxisAlignment.center,
- mainAxisSize: MainAxisSize.min,
- children: [
- Container(
- padding: EdgeInsets.all(10.0),
- child: ClipRRect(
- borderRadius: BorderRadius.all(
- Radius.circular(15.0)),
- child: Container(
- height: 30.0,
- width: 30.0,
- child: Image.file(File(
- "${episodesToPlay[index].imagePath}"))),
- ),
- ),
- Expanded(
- child: Align(
- alignment: Alignment.centerLeft,
- child: Text(
- episodesToPlay[index].title,
- maxLines: 1,
- overflow: TextOverflow.ellipsis,
- ),
- ),
- ),
- ],
- ),
- ),
- ),
- ),
- ),
- Padding(
- padding:
- const EdgeInsets.symmetric(horizontal: 20.0),
- child: Material(
- borderRadius: BorderRadius.circular(100),
- clipBehavior: Clip.hardEdge,
- color: context.primaryColor,
- child: InkWell(
- borderRadius:
- BorderRadius.all(Radius.circular(15.0)),
- onTap: () async {
- var episdoe =
- episodesToPlay.removeAt(index);
- episodesToPlay.insert(0, episdoe);
- miniPlaylistKey.currentState.removeItem(
- index,
- (context, animation) {
- return Center();
- },
- duration: Duration.zero,
- );
- miniPlaylistKey.currentState.insertItem(0,
- duration: Duration(milliseconds: 100));
- await Future.delayed(
- Duration(milliseconds: 100));
- await audio
- .moveToTop(data.item1[index + 1]);
- },
- child: SizedBox(
- height: 30.0,
- width: 30.0,
- child: Transform.rotate(
- angle: math.pi,
- child: Icon(
- LineIcons.download_solid,
- size: 20.0,
- ),
- ),
- ),
- ),
- ),
- ),
- ],
- ),
- Divider(height: 1),
- ],
- ),
- ),
- );
- },
- ),
- ),
- SizedBox(
- height: 60.0,
- child: Padding(
- padding: const EdgeInsets.symmetric(horizontal: 20),
- child: Row(
- children: [
- Text(
- context.s.homeMenuPlaylist,
- style: TextStyle(
- color: context.accentColor,
- fontWeight: FontWeight.bold,
- fontSize: 16),
- ),
- Spacer(),
- Material(
- borderRadius: BorderRadius.circular(100),
- color: context.primaryColor,
- child: InkWell(
- borderRadius: BorderRadius.all(Radius.circular(15)),
- onTap: () {
- audio.playNext();
- miniPlaylistKey.currentState
- .removeItem(0, (context, animation) => Container());
- miniPlaylistKey.currentState.insertItem(0);
- },
- child: SizedBox(
- height: 30,
- width: 60,
- child: Icon(
- Icons.skip_next,
- size: 30,
- ),
- ),
- ),
- ),
- SizedBox(width: 20),
- Material(
- borderRadius: BorderRadius.circular(100),
- color: context.primaryColor,
- child: InkWell(
- borderRadius: BorderRadius.circular(15.0),
- onTap: () {
- Navigator.push(
- context,
- SlideLeftRoute(
- page: PlaylistPage(
- initPage: InitPage.playlist,
- )),
- );
- },
- child: SizedBox(
- height: 30.0,
- width: 30.0,
- child: Transform.rotate(
- angle: math.pi,
- child: Icon(
- LineIcons.database_solid,
- size: 20.0,
- ),
- ),
- ),
- ),
- ),
- ],
- ),
- ),
- ),
- ],
- ),
- );
- }
-}
-
-class SleepMode extends StatefulWidget {
- SleepMode({Key key}) : super(key: key);
-
- @override
- SleepModeState createState() => SleepModeState();
-}
-
-class SleepModeState extends State
- with SingleTickerProviderStateMixin {
- int _minSelected;
- AnimationController _controller;
- Animation _animation;
- Future _getDefaultTime() async {
- var defaultSleepTimerStorage = KeyValueStorage(defaultSleepTimerKey);
- var defaultTime = await defaultSleepTimerStorage.getInt(defaultValue: 30);
- setState(() => _minSelected = defaultTime);
- }
-
- @override
- void initState() {
- super.initState();
- _minSelected = 30;
- _getDefaultTime();
-
- _controller =
- AnimationController(vsync: this, duration: Duration(milliseconds: 400));
- _animation = Tween(begin: 0.0, end: 1.0).animate(_controller)
- ..addListener(() {
- if (mounted) {
- setState(() {});
- }
- });
-
- _controller.addStatusListener((status) {
- if (status == AnimationStatus.completed) {
- Provider.of(context, listen: false)
- ..sleepTimer(_minSelected)
- ..setSwitchValue = 1;
- }
- });
- }
-
- @override
- void dispose() {
- _controller.dispose();
- super.dispose();
- }
-
- List customShadow(double scale) => [
- BoxShadow(
- blurRadius: 26 * (1 - scale),
- offset: Offset(-6, -6) * (1 - scale),
- color: Colors.white),
- BoxShadow(
- blurRadius: 8 * (1 - scale),
- offset: Offset(2, 2) * (1 - scale),
- color: Colors.grey[600].withOpacity(0.4))
- ];
- List customShadowNight(double scale) => [
- BoxShadow(
- blurRadius: 6 * (1 - scale),
- offset: Offset(-1, -1) * (1 - scale),
- color: Colors.grey[100].withOpacity(0.3)),
- BoxShadow(
- blurRadius: 8 * (1 - scale),
- offset: Offset(2, 2) * (1 - scale),
- color: Colors.black)
- ];
-
- @override
- Widget build(BuildContext context) {
- final s = context.s;
- final _colorTween =
- ColorTween(begin: context.accentColor.withAlpha(60), end: Colors.black);
- var audio = Provider.of(context, listen: false);
- return Selector>(
- selector: (_, audio) =>
- Tuple3(audio?.timeLeft, audio?.switchValue, audio.sleepTimerMode),
- builder: (_, data, __) {
- var fraction =
- data.item2 == 1 ? 1.0 : math.min(_animation.value * 2, 1.0);
- var move =
- data.item2 == 1 ? 1.0 : math.max(_animation.value * 2 - 1, 0.0);
- return LayoutBuilder(builder: (context, constraints) {
- var width = constraints.maxWidth;
- return Container(
- height: 300,
- decoration: BoxDecoration(
- color: _colorTween.transform(move),
- borderRadius: BorderRadius.circular(10)),
- child: Stack(
- children: [
- Column(
- mainAxisAlignment: MainAxisAlignment.start,
- mainAxisSize: MainAxisSize.min,
- children: [
- SizedBox(
- height: 10,
- ),
- Expanded(
- child: Padding(
- padding: EdgeInsets.symmetric(vertical: 20),
- child: move == 1
- ? Center()
- : Wrap(
- direction: Axis.horizontal,
- children: kMinsToSelect
- .map((e) => InkWell(
- onTap: () =>
- setState(() => _minSelected = e),
- child: Container(
- margin: EdgeInsets.all(10.0),
- decoration: BoxDecoration(
- color: (e == _minSelected)
- ? context.accentColor
- : context.primaryColor,
- shape: BoxShape.circle,
- ),
- alignment: Alignment.center,
- height: 30,
- width: 30,
- child: Text(e.toString(),
- style: TextStyle(
- fontWeight: FontWeight.bold,
- color: (e == _minSelected)
- ? Colors.white
- : null)),
- ),
- ))
- .toList(),
- ),
- ),
- ),
- Stack(
- children: [
- SizedBox(
- height: 100,
- width: width,
- ),
- Positioned(
- left: data.item3 == SleepTimerMode.timer
- ? -width * (move) / 4
- : width * (move) / 4,
- child: SizedBox(
- height: 100,
- width: width,
- child: Row(
- mainAxisAlignment: MainAxisAlignment.spaceEvenly,
- children: [
- Container(
- alignment: Alignment.center,
- height: 40,
- width: 120,
- decoration: BoxDecoration(
- border:
- Border.all(color: context.primaryColor),
- color: _colorTween.transform(move),
- borderRadius: BorderRadius.circular(20),
- ),
- child: Material(
- color: Colors.transparent,
- child: InkWell(
- onTap: () {
- audio.setSleepTimerMode =
- SleepTimerMode.endOfEpisode;
- if (fraction == 0) {
- _controller.forward();
- } else if (fraction == 1) {
- _controller.reverse();
- audio.cancelTimer();
- }
- },
- borderRadius: BorderRadius.circular(20),
- child: SizedBox(
- height: 40,
- width: 120,
- child: Center(
- child: Text(
- s.endOfEpisode,
- style: TextStyle(
- color: (move > 0
- ? Colors.white
- : null)),
- ),
- ),
- ),
- ),
- ),
- ),
- Container(
- height: 100 * (1 - fraction),
- width: 1,
- color: context.primaryColorDark,
- ),
- Container(
- height: 40,
- width: 120,
- alignment: Alignment.center,
- decoration: BoxDecoration(
- border:
- Border.all(color: context.primaryColor),
- color: _colorTween.transform(move),
- borderRadius: BorderRadius.circular(20),
- ),
- child: Material(
- color: Colors.transparent,
- child: InkWell(
- onTap: () {
- audio.setSleepTimerMode =
- SleepTimerMode.timer;
- if (fraction == 0) {
- _controller.forward();
- } else if (fraction == 1) {
- _controller.reverse();
- audio.cancelTimer();
- }
- },
- borderRadius: BorderRadius.circular(20),
- child: SizedBox(
- height: 40,
- width: 120,
- child: Center(
- child: Text(
- data.item2 == 1
- ? data.item1.toTime
- : (_minSelected * 60).toTime,
- style: TextStyle(
- color: (move > 0
- ? Colors.white
- : null)),
- ),
- ),
- ),
- ),
- ),
- )
- ],
- ),
- ),
- ),
- ],
- ),
- SizedBox(
- height: 60.0,
- child: Padding(
- padding: EdgeInsets.symmetric(horizontal: 20.0),
- child: Align(
- alignment: Alignment.centerLeft,
- child: Text(
- context.s.sleepTimer,
- style: TextStyle(
- color: context.accentColor,
- fontWeight: FontWeight.bold,
- fontSize: 16),
- ),
- ),
- ),
- )
- ],
- ),
- if (move > 0)
- Positioned(
- bottom: 120,
- left: width / 2 - 100,
- width: 200,
- child: Center(
- child: Transform.translate(
- offset: Offset(0, -50 * move),
- child: Text(s.goodNight,
- style: TextStyle(
- fontWeight: FontWeight.bold,
- fontSize: 20,
- color: Colors.white.withOpacity(move))),
- ),
- ),
- ),
- if (data.item2 == 1) CustomPaint(painter: StarSky()),
- if (data.item2 == 1) MeteorLoader()
- ],
- ),
- );
- });
- },
- );
- }
-}
-
-class ControlPanel extends StatefulWidget {
- ControlPanel(
- {this.onExpand,
- this.onClose,
- this.maxHeight,
- this.isPlayingPage = false,
- Key key})
- : super(key: key);
- final VoidCallback onExpand;
- final VoidCallback onClose;
- final double maxHeight;
- final bool isPlayingPage;
- @override
- _ControlPanelState createState() => _ControlPanelState();
-}
-
-class _ControlPanelState extends State
- with TickerProviderStateMixin {
- double _setSpeed;
- AnimationController _controller;
- Animation _animation;
- TabController _tabController;
- int _tabIndex = 0;
- List customShadow(double scale) => [
- BoxShadow(
- blurRadius: 26 * (1 - scale),
- offset: Offset(-6, -6) * (1 - scale),
- color: Colors.white),
- BoxShadow(
- blurRadius: 8 * (1 - scale),
- offset: Offset(2, 2) * (1 - scale),
- color: Colors.grey[600].withOpacity(0.4))
- ];
- List customShadowNight(double scale) => [
- BoxShadow(
- blurRadius: 6 * (1 - scale),
- offset: Offset(-1, -1) * (1 - scale),
- color: Colors.grey[100].withOpacity(0.3)),
- BoxShadow(
- blurRadius: 8 * (1 - scale),
- offset: Offset(2, 2) * (1 - scale),
- color: Colors.black)
- ];
-
- Future> _getSpeedList() async {
- var storage = KeyValueStorage('speedListKey');
- return await storage.getSpeedList();
- }
-
- @override
- void initState() {
- _setSpeed = 0;
- _tabController = TabController(vsync: this, length: 2)
- ..addListener(() {
- setState(() => _tabIndex = _tabController.index);
- });
- _controller =
- AnimationController(vsync: this, duration: Duration(milliseconds: 400));
- _animation = Tween(begin: 0.0, end: 1.0).animate(_controller)
- ..addListener(() {
- setState(() => _setSpeed = _animation.value);
- });
- super.initState();
- }
-
- @override
- void dispose() {
- _controller.dispose();
- _tabController.dispose();
- super.dispose();
- }
-
- @override
- Widget build(BuildContext context) {
- var audio = Provider.of(context, listen: false);
- return LayoutBuilder(
- builder: (context, constraints) {
- var height = constraints.maxHeight;
- return Container(
- color: context.primaryColor,
- height: 300,
- child: Column(
- mainAxisAlignment: MainAxisAlignment.start,
- mainAxisSize: MainAxisSize.min,
- children: [
- Consumer(
- builder: (_, data, __) {
- return Column(
- mainAxisAlignment: MainAxisAlignment.start,
- mainAxisSize: MainAxisSize.min,
- children: [
- Container(
- padding:
- EdgeInsets.only(top: 20, left: 30, right: 30),
- child: SliderTheme(
- data: SliderTheme.of(context).copyWith(
- activeTrackColor: height <= widget.maxHeight
- ? context.accentColor.withAlpha(70)
- : Colors.transparent,
- inactiveTrackColor: height > widget.maxHeight
- ? Colors.transparent
- : context.primaryColorDark,
- trackHeight: 8.0,
- trackShape: MyRectangularTrackShape(),
- thumbColor: context.accentColor,
- thumbShape: RoundSliderThumbShape(
- enabledThumbRadius: 6.0,
- disabledThumbRadius: 6.0,
- ),
- overlayColor: context.accentColor.withAlpha(32),
- overlayShape:
- RoundSliderOverlayShape(overlayRadius: 4.0),
- ),
- child: Slider(
- value: data.seekSliderValue,
- onChanged: (val) {
- audio.sliderSeek(val);
- }),
- ),
- ),
- Container(
- height: 20.0,
- padding: EdgeInsets.symmetric(horizontal: 30.0),
- child: height > widget.maxHeight
- ? Center()
- : Row(
- children: [
- Text(
- (data.backgroundAudioPosition ~/ 1000)
- .toTime ??
- '',
- style: TextStyle(fontSize: 10),
- ),
- Expanded(
- child: Container(
- alignment: Alignment.center,
- child: data.remoteErrorMessage != null
- ? Text(data.remoteErrorMessage,
- style: const TextStyle(
- color: Color(0xFFFF0000)))
- : Text(
- data.audioState ==
- AudioProcessingState
- .buffering ||
- data.audioState ==
- AudioProcessingState
- .connecting ||
- data.audioState ==
- AudioProcessingState
- .none ||
- data.audioState ==
- AudioProcessingState
- .skippingToNext
- ? context.s.buffering
- : '',
- style: TextStyle(
- color: context.accentColor),
- ),
- ),
- ),
- Text(
- (data.backgroundAudioDuration ~/ 1000)
- .toTime ??
- '',
- style: TextStyle(fontSize: 10),
- ),
- ],
- ),
- ),
- ],
- );
- },
- ),
- SizedBox(
- height: 100,
- child: Selector(
- selector: (_, audio) => audio.playing,
- builder: (_, playing, __) {
- return Material(
- color: Colors.transparent,
- child: Row(
- mainAxisSize: MainAxisSize.min,
- mainAxisAlignment: MainAxisAlignment.center,
- crossAxisAlignment: CrossAxisAlignment.center,
- children: [
- FlatButton(
- color: Colors.transparent,
- padding: EdgeInsets.only(right: 10, left: 10),
- shape: RoundedRectangleBorder(
- borderRadius: BorderRadius.circular(100.0),
- side: BorderSide(color: Colors.transparent)),
- onPressed: playing ? () => audio.rewind() : null,
- child: Row(
- children: [
- Icon(Icons.fast_rewind,
- size: 32, color: Colors.grey[500]),
- SizedBox(width: 5),
- Selector(
- selector: (_, audio) =>
- audio.rewindSeconds,
- builder: (_, seconds, __) => Padding(
- padding:
- const EdgeInsets.only(top: 5.0),
- child: Text('$seconds s',
- style: GoogleFonts.teko(
- textBaseline:
- TextBaseline.ideographic,
- textStyle: TextStyle(
- color: Colors.grey[500],
- fontSize: 25),
- )),
- )),
- ],
- ),
- ),
- Container(
- margin: EdgeInsets.symmetric(horizontal: 30),
- height: 60,
- width: 60,
- decoration: BoxDecoration(
- color: context.primaryColor,
- shape: BoxShape.circle,
- border: Border.all(
- color:
- context.brightness == Brightness.dark
- ? Colors.black12
- : Colors.white10,
- width: 1),
- boxShadow:
- context.brightness == Brightness.dark
- ? _customShadowNight
- : _customShadow),
- child: playing
- ? Material(
- color: Colors.transparent,
- child: InkWell(
- borderRadius: BorderRadius.all(
- Radius.circular(30)),
- onTap: playing
- ? () {
- audio.pauseAduio();
- }
- : null,
- child: SizedBox(
- height: 60,
- width: 60,
- child: Icon(
- Icons.pause,
- size: 40,
- ),
- ),
- ),
- )
- : Material(
- color: Colors.transparent,
- child: InkWell(
- borderRadius: BorderRadius.all(
- Radius.circular(30)),
- onTap: playing
- ? null
- : () {
- audio.resumeAudio();
- },
- child: SizedBox(
- height: 60,
- width: 60,
- child: Icon(
- Icons.play_arrow,
- size: 40,
- color: context.accentColor,
- ),
- ),
- ),
- ),
- ),
- FlatButton(
- padding: EdgeInsets.only(left: 10.0, right: 10),
- onPressed:
- playing ? () => audio.fastForward() : null,
- color: Colors.transparent,
- shape: RoundedRectangleBorder(
- borderRadius: BorderRadius.circular(100.0),
- side: BorderSide(color: Colors.transparent)),
- child: Row(
- children: [
- Selector(
- selector: (_, audio) =>
- audio.fastForwardSeconds,
- builder: (_, seconds, __) => Padding(
- padding:
- const EdgeInsets.only(top: 5.0),
- child: Text('$seconds s',
- style: GoogleFonts.teko(
- textStyle: TextStyle(
- color: Colors.grey[500],
- fontSize: 25),
- )),
- )),
- SizedBox(width: 10),
- Icon(Icons.fast_forward,
- size: 32.0, color: Colors.grey[500]),
- ],
- ),
- )
- ],
- ),
- );
- },
- ),
- ),
- SizedBox(
- height: 80.0,
- child: Column(
- crossAxisAlignment: CrossAxisAlignment.center,
- mainAxisSize: MainAxisSize.min,
- children: [
- Expanded(
- child: Selector(
- selector: (_, audio) => audio.episode.title,
- builder: (_, title, __) {
- return Container(
- padding: EdgeInsets.only(left: 60, right: 60),
- child: LayoutBuilder(
- builder: (context, size) {
- var span = TextSpan(
- text: title,
- style: TextStyle(
- fontWeight: FontWeight.bold,
- fontSize: 20));
- var tp = TextPainter(
- text: span,
- maxLines: 1,
- textDirection: TextDirection.ltr);
- tp.layout(maxWidth: size.maxWidth);
- if (tp.didExceedMaxLines) {
- return Marquee(
- text: title,
- style: TextStyle(
- fontWeight: FontWeight.bold,
- fontSize: 18),
- scrollAxis: Axis.horizontal,
- crossAxisAlignment:
- CrossAxisAlignment.start,
- blankSpace: 30.0,
- velocity: 50.0,
- pauseAfterRound: Duration.zero,
- startPadding: 30.0,
- accelerationDuration:
- Duration(milliseconds: 100),
- accelerationCurve: Curves.linear,
- decelerationDuration:
- Duration(milliseconds: 100),
- decelerationCurve: Curves.linear,
- );
- } else {
- return Text(
- title,
- style: TextStyle(
- fontWeight: FontWeight.bold,
- fontSize: 20),
- );
- }
- },
- ),
- );
- },
- ),
- ),
- if (height <= widget.maxHeight) LastPosition()
- ],
- ),
- ),
- if (height > widget.maxHeight)
- SizedBox(
- height: height - widget.maxHeight,
- child: SingleChildScrollView(
- physics: NeverScrollableScrollPhysics(),
- child: SizedBox(
- height: 300,
- child: ScrollConfiguration(
- behavior: NoGrowBehavior(),
- child: TabBarView(
- controller: _tabController,
- children: [
- Padding(
- padding: const EdgeInsets.symmetric(
- horizontal: 20.0),
- child: PlaylistWidget(),
- ),
- Padding(
- padding: const EdgeInsets.symmetric(
- horizontal: 20.0),
- child: SleepMode(),
- )
- ]),
- ))),
- ),
- Expanded(
- child: Stack(
- alignment: Alignment.center,
- children: [
- if (height <= widget.maxHeight)
- Selector>(
- selector: (_, audio) => Tuple4(
- audio.episode,
- audio.stopOnComplete,
- audio.startSleepTimer,
- audio.currentSpeed),
- builder: (_, data, __) {
- final currentSpeed = data.item4 ?? 1.0;
- return Container(
- padding:
- const EdgeInsets.symmetric(horizontal: 20.0),
- child: Row(
- mainAxisAlignment: MainAxisAlignment.start,
- mainAxisSize: MainAxisSize.min,
- children: [
- if (_setSpeed == 0)
- Expanded(
- child: InkWell(
- onTap: () async {
- widget.onClose();
- if (!widget.isPlayingPage) {
- Navigator.push(
- context,
- FadeRoute(
- page: EpisodeDetail(
- episodeItem: data.item1,
- heroTag: 'playpanel')));
- }
- },
- child: Row(
- children: [
- SizedBox(
- height: 30.0,
- width: 30.0,
- child: CircleAvatar(
- backgroundImage:
- data.item1.avatarImage,
- ),
- ),
- SizedBox(width: 5),
- SizedBox(
- width: 100,
- child: Text(
- data.item1.feedTitle,
- maxLines: 1,
- overflow: TextOverflow.fade,
- ),
- ),
- ],
- ),
- ),
- ),
- if (_setSpeed > 0)
- Expanded(
- child: SingleChildScrollView(
- padding: EdgeInsets.all(10.0),
- scrollDirection: Axis.horizontal,
- child: FutureBuilder>(
- future: _getSpeedList(),
- initialData: [],
- builder: (context, snapshot) => Row(
- children: snapshot.data
- .map((e) => InkWell(
- onTap: () {
- if (_setSpeed == 1) {
- audio.setSpeed(e);
- }
- },
- child: Container(
- height: 30,
- width: 30,
- margin: EdgeInsets
- .symmetric(
- horizontal: 5),
- decoration: e ==
- currentSpeed &&
- _setSpeed > 0
- ? BoxDecoration(
- color: context
- .accentColor,
- shape: BoxShape
- .circle,
- boxShadow: context
- .brightness ==
- Brightness
- .light
- ? customShadow(
- 1.0)
- : customShadowNight(
- 1.0),
- )
- : BoxDecoration(
- color: context
- .primaryColor,
- shape: BoxShape
- .circle,
- boxShadow: context
- .brightness ==
- Brightness
- .light
- ? customShadow(1 -
- _setSpeed)
- : customShadowNight(1 -
- _setSpeed)),
- alignment:
- Alignment.center,
- child: _setSpeed > 0
- ? Text(e.toString(),
- style: TextStyle(
- fontWeight:
- FontWeight
- .bold,
- color: e ==
- currentSpeed
- ? Colors
- .white
- : null))
- : Center(),
- ),
- ))
- .toList(),
- ),
- ),
- ),
- ),
- IconButton(
- padding: EdgeInsets.zero,
- onPressed: () {
- if (_setSpeed == 0) {
- _controller.forward();
- } else {
- _controller.reverse();
- }
- },
- icon: Row(
- mainAxisAlignment:
- MainAxisAlignment.spaceEvenly,
- children: [
- Transform.rotate(
- angle: math.pi * _setSpeed,
- child: Text('X')),
- Text(currentSpeed.toStringAsFixed(1)),
- ],
- ),
- ),
- ],
- ),
- );
- },
- ),
- if (_setSpeed == 0)
- Positioned(
- bottom: widget.maxHeight == kMaxPlayerHeight[2]
- ? 35.0
- : widget.maxHeight == kMaxPlayerHeight[1]
- ? 25.0
- : 15.0,
- child: InkWell(
- child: SizedBox(
- height: 50,
- width: 100,
- child: Align(
- alignment: Alignment.bottomCenter,
- child: CustomPaint(
- size: Size(100, 5),
- painter: TabIndicator(
- index: _tabIndex,
- indicatorSize: 20,
- fraction:
- (height - widget.maxHeight) / 300,
- accentColor: context.accentColor,
- color: context.textColor)),
- ),
- ),
- onTap: widget.onExpand),
- ),
- if (_setSpeed == 0 && height > widget.maxHeight)
- Transform.translate(
- offset:
- Offset(0, 5) * (height - widget.maxHeight) / 300,
- child: Padding(
- padding: EdgeInsets.symmetric(
- horizontal: context.width / 2 - 80),
- child: TabBar(
- controller: _tabController,
- indicatorSize: TabBarIndicatorSize.label,
- labelColor: context.accentColor,
- unselectedLabelColor: context.textColor,
- indicator: BoxDecoration(),
- tabs: [
- Container(
- height: 20,
- width: 20,
- child: Icon(Icons.playlist_play)),
- Container(
- height: 20,
- width: 20,
- child: Transform.rotate(
- angle: math.pi * 0.7,
- child: Icon(Icons.brightness_2,
- size: 18))),
- ],
- ),
- ),
- ),
- ],
- ),
- ),
- ]),
- );
- },
- );
- }
-}
+import 'dart:io';
+import 'dart:math' as math;
+
+import 'package:audio_service/audio_service.dart';
+import 'package:flutter/material.dart';
+import 'package:google_fonts/google_fonts.dart';
+import 'package:line_icons/line_icons.dart';
+import 'package:marquee/marquee.dart';
+import 'package:provider/provider.dart';
+import 'package:tuple/tuple.dart';
+
+import '../episodes/episode_detail.dart';
+import '../local_storage/key_value_storage.dart';
+import '../local_storage/sqflite_localpodcast.dart';
+import '../state/audio_state.dart';
+import '../type/episodebrief.dart';
+import '../type/play_histroy.dart';
+import '../util/audiopanel.dart';
+import '../util/custom_slider.dart';
+import '../util/custom_widget.dart';
+import '../util/extension_helper.dart';
+import '../util/pageroute.dart';
+import 'playlist.dart';
+
+final List