Podfile 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. source 'https://cdn.cocoapods.org/'
  2. platform :ios, '15.0'
  3. def common_dependencies
  4. pod 'AFNetworking', '3.2.0'
  5. pod 'UICKeyChainStore'
  6. end
  7. def common_dependencies_ext
  8. common_dependencies
  9. pod 'MBProgressHUD', '~> 1.2.0'
  10. end
  11. def main_dependencies
  12. common_dependencies_ext
  13. pod 'DateTools'
  14. pod 'JDStatusBarNotification', '~> 2.0.0'
  15. pod 'MaterialComponents/ActivityIndicator'
  16. pod 'Toast', '~> 4.0.0'
  17. pod 'libPhoneNumber-iOS', '~> 0.9.15'
  18. pod 'MZTimerLabel'
  19. pod 'MobileVLCKit', '~> 3.5.0'
  20. end
  21. target "NextcloudTalk" do
  22. main_dependencies
  23. target 'NextcloudTalkTests' do
  24. inherit! :search_paths
  25. end
  26. end
  27. target "NotificationServiceExtension" do
  28. common_dependencies
  29. end
  30. target "ShareExtension" do
  31. common_dependencies_ext
  32. end
  33. target "BroadcastUploadExtension" do
  34. common_dependencies
  35. end
  36. pre_install do |installer|
  37. puts 'pre_install begin....'
  38. puts 'Update submodules...'
  39. system('git submodule update --init')
  40. dir_af = File.join(installer.sandbox.pod_dir('AFNetworking'), 'UIKit+AFNetworking')
  41. Dir.foreach(dir_af) {|x|
  42. real_path = File.join(dir_af, x)
  43. if (!File.directory?(real_path) && File.exist?(real_path))
  44. if((x.start_with?('UIWebView') || x == 'UIKit+AFNetworking.h'))
  45. File.delete(real_path)
  46. puts 'delete:'+ x
  47. end
  48. end
  49. }
  50. puts 'end pre_install.'
  51. end
  52. post_install do |installer|
  53. installer.pods_project.targets.each do |target|
  54. if target.respond_to?(:product_type) and target.product_type == "com.apple.product-type.bundle"
  55. target.build_configurations.each do |config|
  56. config.build_settings['CODE_SIGNING_ALLOWED'] = 'NO'
  57. end
  58. end
  59. end
  60. end