Commit 2cdc0d51 authored by jehan's avatar jehan

fix PodFile to use 4.4.0-beta

improve logging
parent b041f702
......@@ -5,7 +5,7 @@ source "https://github.com/CocoaPods/Specs.git"
def basic_pods
if ENV['PODFILE_PATH'].nil?
pod 'linphone-sdk', '4.3'
pod 'linphone-sdk', '~> 4.4.0-beta'
else
pod 'linphone-sdk', :path => ENV['PODFILE_PATH'] # local sdk
end
......@@ -22,45 +22,3 @@ target 'Wtest' do
end
post_install do |installer|
# Get the version of linphone-sdk
installer.pod_targets.each do |target|
if target.pod_name == 'linphone-sdk'
target.specs.each do |spec|
$linphone_sdk_version = spec.version
end
end
end
app_project = Xcodeproj::Project.open(Dir.glob("*.xcodeproj")[0])
app_project.native_targets.each do |target|
if target.name == 'linphone'
target.build_configurations.each do |config|
if ENV['USE_CRASHLYTHICS'].nil?
if config.name == "Debug" then
config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] = '$(inherited) DEBUG=1'
else
config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] = '$(inherited)'
end
else
# activate crashlythics
if config.name == "Debug" then
config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] = '$(inherited) DEBUG=1 USE_CRASHLYTHICSS=1'
else
config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] = '$(inherited) USE_CRASHLYTHICSS=1'
end
end
config.build_settings['OTHER_CFLAGS'] = '-DBCTBX_LOG_DOMAIN=\"ios\"',
'-DCHECK_VERSION_UPDATE=FALSE',
'-DENABLE_QRCODE=TRUE',
'-DENABLE_SMS_INVITE=TRUE',
'$(inherited)',
"-DLINPHONE_SDK_VERSION=\\\"#{$linphone_sdk_version}\\\""
app_project.save
end
end
end
end
......@@ -122,6 +122,8 @@ class ViewController: UIViewController {
let log = LoggingService.Instance /*enable liblinphone logs.*/
let logManager = LinphoneLoggingServiceManager()
log.addDelegate(delegate: logManager)
log.logLevel = LogLevel.Debug
Factory.Instance.enableLogCollection(state: LogCollectionState.Enabled)
#endif
lc!.addDelegate(delegate: coreManager2)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment