-
-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #31 from daoxve/dev
Implement scheduled notifications
- Loading branch information
Showing
23 changed files
with
638 additions
and
171 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig" | ||
#include "Generated.xcconfig" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig" | ||
#include "Generated.xcconfig" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
# 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' | ||
|
||
project 'Runner', { | ||
'Debug' => :debug, | ||
'Profile' => :release, | ||
'Release' => :release, | ||
} | ||
|
||
def flutter_root | ||
generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'Generated.xcconfig'), __FILE__) | ||
unless File.exist?(generated_xcode_build_settings_path) | ||
raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first" | ||
end | ||
|
||
File.foreach(generated_xcode_build_settings_path) do |line| | ||
matches = line.match(/FLUTTER_ROOT\=(.*)/) | ||
return matches[1].strip if matches | ||
end | ||
raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get" | ||
end | ||
|
||
require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root) | ||
|
||
flutter_ios_podfile_setup | ||
|
||
def flutter_install_plugin_pods(application_path = nil, relative_symlink_dir, platform) | ||
# defined_in_file is set by CocoaPods and is a Pathname to the Podfile. | ||
application_path ||= File.dirname(defined_in_file.realpath) if self.respond_to?(:defined_in_file) | ||
raise 'Could not find application path' unless application_path | ||
|
||
# Prepare symlinks folder. We use symlinks to avoid having Podfile.lock | ||
# referring to absolute paths on developers' machines. | ||
|
||
symlink_dir = File.expand_path(relative_symlink_dir, application_path) | ||
system('rm', '-rf', symlink_dir) # Avoid the complication of dependencies like FileUtils. | ||
|
||
symlink_plugins_dir = File.expand_path('plugins', symlink_dir) | ||
system('mkdir', '-p', symlink_plugins_dir) | ||
|
||
plugins_file = File.join(application_path, '..', '.flutter-plugins-dependencies') | ||
plugin_pods = flutter_parse_plugins_file(plugins_file, platform) | ||
plugin_pods.each do |plugin_hash| | ||
plugin_name = plugin_hash['name'] | ||
plugin_path = plugin_hash['path'] | ||
if (plugin_name && plugin_path) | ||
symlink = File.join(symlink_plugins_dir, plugin_name) | ||
File.symlink(plugin_path, symlink) | ||
|
||
if plugin_name == 'flutter_ffmpeg' | ||
pod 'flutter_ffmpeg/min-lts', :path => File.join(relative_symlink_dir, 'plugins', plugin_name, platform) | ||
else | ||
pod plugin_name, :path => File.join(relative_symlink_dir, 'plugins', plugin_name, platform) | ||
end | ||
end | ||
end | ||
end | ||
|
||
|
||
target 'Runner' do | ||
use_frameworks! | ||
use_modular_headers! | ||
|
||
flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__)) | ||
end | ||
|
||
post_install do |installer| | ||
installer.pods_project.targets.each do |target| | ||
flutter_additional_ios_build_settings(target) | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,95 @@ | ||
PODS: | ||
- camera (0.0.1): | ||
- Flutter | ||
- Flutter (1.0.0) | ||
- flutter_ffmpeg/min-lts (0.4.2): | ||
- Flutter | ||
- mobile-ffmpeg-min (= 4.4.LTS) | ||
- flutter_local_notifications (0.0.1): | ||
- Flutter | ||
- mobile-ffmpeg-min (4.4.LTS) | ||
- native_device_orientation (0.0.1): | ||
- Flutter | ||
- open_file (0.0.1): | ||
- Flutter | ||
- path_provider_ios (0.0.1): | ||
- Flutter | ||
- permission_handler_apple (9.0.4): | ||
- Flutter | ||
- share (0.0.1): | ||
- Flutter | ||
- shared_preferences_ios (0.0.1): | ||
- Flutter | ||
- tapioca (0.0.1): | ||
- Flutter | ||
- url_launcher_ios (0.0.1): | ||
- Flutter | ||
- video_player_avfoundation (0.0.1): | ||
- Flutter | ||
|
||
DEPENDENCIES: | ||
- camera (from `.symlinks/plugins/camera/ios`) | ||
- Flutter (from `Flutter`) | ||
- flutter_ffmpeg/min-lts (from `.symlinks/plugins/flutter_ffmpeg/ios`) | ||
- flutter_local_notifications (from `.symlinks/plugins/flutter_local_notifications/ios`) | ||
- native_device_orientation (from `.symlinks/plugins/native_device_orientation/ios`) | ||
- open_file (from `.symlinks/plugins/open_file/ios`) | ||
- path_provider_ios (from `.symlinks/plugins/path_provider_ios/ios`) | ||
- permission_handler_apple (from `.symlinks/plugins/permission_handler_apple/ios`) | ||
- share (from `.symlinks/plugins/share/ios`) | ||
- shared_preferences_ios (from `.symlinks/plugins/shared_preferences_ios/ios`) | ||
- tapioca (from `.symlinks/plugins/tapioca/ios`) | ||
- url_launcher_ios (from `.symlinks/plugins/url_launcher_ios/ios`) | ||
- video_player_avfoundation (from `.symlinks/plugins/video_player_avfoundation/ios`) | ||
|
||
SPEC REPOS: | ||
trunk: | ||
- mobile-ffmpeg-min | ||
|
||
EXTERNAL SOURCES: | ||
camera: | ||
:path: ".symlinks/plugins/camera/ios" | ||
Flutter: | ||
:path: Flutter | ||
flutter_ffmpeg: | ||
:path: ".symlinks/plugins/flutter_ffmpeg/ios" | ||
flutter_local_notifications: | ||
:path: ".symlinks/plugins/flutter_local_notifications/ios" | ||
native_device_orientation: | ||
:path: ".symlinks/plugins/native_device_orientation/ios" | ||
open_file: | ||
:path: ".symlinks/plugins/open_file/ios" | ||
path_provider_ios: | ||
:path: ".symlinks/plugins/path_provider_ios/ios" | ||
permission_handler_apple: | ||
:path: ".symlinks/plugins/permission_handler_apple/ios" | ||
share: | ||
:path: ".symlinks/plugins/share/ios" | ||
shared_preferences_ios: | ||
:path: ".symlinks/plugins/shared_preferences_ios/ios" | ||
tapioca: | ||
:path: ".symlinks/plugins/tapioca/ios" | ||
url_launcher_ios: | ||
:path: ".symlinks/plugins/url_launcher_ios/ios" | ||
video_player_avfoundation: | ||
:path: ".symlinks/plugins/video_player_avfoundation/ios" | ||
|
||
SPEC CHECKSUMS: | ||
camera: a0ca5080336f7af47b88436e5e26da3dee5568f0 | ||
Flutter: f04841e97a9d0b0a8025694d0796dd46242b2854 | ||
flutter_ffmpeg: 3ec3912c74649851e6c3b1885511eef78142ac4f | ||
flutter_local_notifications: 0c0b1ae97e741e1521e4c1629a459d04b9aec743 | ||
mobile-ffmpeg-min: dd2fd38da2788ccb7be5720fc308cb69160820e7 | ||
native_device_orientation: 3b4cfc9565a7b879cc4fde282b3e27745e852d0d | ||
open_file: 02eb5cb6b21264bd3a696876f5afbfb7ca4f4b7d | ||
path_provider_ios: 14f3d2fd28c4fdb42f44e0f751d12861c43cee02 | ||
permission_handler_apple: 44366e37eaf29454a1e7b1b7d736c2cceaeb17ce | ||
share: 0b2c3e82132f5888bccca3351c504d0003b3b410 | ||
shared_preferences_ios: 548a61f8053b9b8a49ac19c1ffbc8b92c50d68ad | ||
tapioca: 59e9fc89671d49e2cefe6cd59c3efe678e589e89 | ||
url_launcher_ios: 839c58cdb4279282219f5e248c3321761ff3c4de | ||
video_player_avfoundation: e489aac24ef5cf7af82702979ed16f2a5ef84cff | ||
|
||
PODFILE CHECKSUM: 3460e53762ceea3c3b40d0e687654910ee3996d4 | ||
|
||
COCOAPODS: 1.11.3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.