fluffychat/ios/Podfile
Brord van Wierst 609eff1100
Gh action android (#1081)
* android n ios

* set this branch gh actions

* set this branch gh actions2

* set this branch gh actions3

* set this branch gh actions4

* set this branch gh actions4.1

* set this branch gh actions5

* made executable

* ...

* ...2

* ...3

* ...4

* ...5

* ...6

* ...7

* ...88

* ios test keys

* ios test keys2

* changed some fluufychat stuff

* reset activation

* pic update

* reverted integrate to run again

* ios-build1

* ios-build2

* android space clearing

* another attempt

* another attempt

* another attempt2

* another attempt3

* android downgrade

* undo cleanup

* remove cache

* sdk version force?

* sdk version force remove

* r8 fix

* material

* material remove agian

* reset gradle, up flutter

* downgfrade to 21

* android ndk up agian

* android ndk up agian2

* with disk spcae r4emove agian...

* allow ios modules

* allow ios modules2

* updated version to compile on ios

* how baout this

* ios generated files

* removed exclude group

---------

Co-authored-by: ggurdin <ggurdin@gmail.com>
Co-authored-by: ggurdin <46800240+ggurdin@users.noreply.github.com>
2024-12-13 12:02:58 -05:00

66 lines
2.4 KiB
Ruby

# Uncomment this line to define a global platform for your project
platform :ios, '16.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
target 'Runner' do
use_frameworks!
use_modular_headers!
flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
# From package https://pub.dev/packages/receive_sharing_intent
target 'FluffyChat Share' do
inherit! :search_paths
end
end
post_install do |installer|
installer.pods_project.targets.each do |target|
flutter_additional_ios_build_settings(target)
target.build_configurations.each do |config|
# ensure all dependencies are using SQLCipher instead of SQLite
xcconfig_path = config.base_configuration_reference.real_path
xcconfig = File.read(xcconfig_path)
new_xcconfig = xcconfig.sub(' -l"sqlite3"', '')
File.open(xcconfig_path, "w") { |file| file << new_xcconfig }
config.build_settings['ENABLE_BITCODE'] = 'NO'
# see https://github.com/flutter-webrtc/flutter-webrtc/issues/1054
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '11.0'
config.build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"] = 'arm64 i386'
config.build_settings["CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES"] = 'YES'
config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] ||= [
'$(inherited)',
# dart: PermissionGroup.microphone
'PERMISSION_MICROPHONE=1',
]
end
end
flutter_post_install(installer) if defined?(flutter_post_install)
end