From bbfe62e108092ed8c0c08511020fe48685b5012a Mon Sep 17 00:00:00 2001 From: Danmei Chen Date: Thu, 12 Mar 2020 16:14:22 +0100 Subject: [PATCH] initiate CI --- .gitlab-ci.yml | 25 ++++++++++++++++++++++ Classes/AssistantView.h | 1 - Classes/DialerView.m | 1 - Classes/ImagePickerView.m | 2 -- Classes/LinphoneManager.m | 3 --- Classes/LinphoneUI/UIBluetoothButton.m | 1 - Classes/LinphoneUI/UIChatBubblePhotoCell.m | 1 - Classes/LinphoneUI/UISpeakerButton.m | 1 - Classes/Utils/AudioHelper.h | 3 ++- linphone-adhoc.plist | 13 +++++++++++ linphone.xcodeproj/project.pbxproj | 4 ++++ 11 files changed, 44 insertions(+), 11 deletions(-) create mode 100644 .gitlab-ci.yml create mode 100644 linphone-adhoc.plist diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 000000000..fd0f9ab28 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,25 @@ +variables: + archive_scheme: linphone + archive_path: linphone.xcarchive + export_path: linphone-adhoc-ipa + export_options_plist: linphone-adhoc.plist + +job-ios: + + stage: build + tags: [ "macosx-xcode11" ] + + script: + - pod install --repo-update + - pwd + - xcodebuild archive -scheme $archive_scheme -archivePath ./$archive_path -configuration Release -workspace ./linphone.xcworkspace -UseModernBuildSystem=NO + - xcodebuild -exportArchive -archivePath ./$archive_path -exportPath ./$export_path -exportOptionsPlist ./$export_options_plist -allowProvisioningUpdates -UseModernBuildSystem=NO + + + artifacts: + paths: + - $archive_path + - $export_path + when: always + expire_in: 1 week + diff --git a/Classes/AssistantView.h b/Classes/AssistantView.h index 4a013b394..56e26c61c 100644 --- a/Classes/AssistantView.h +++ b/Classes/AssistantView.h @@ -21,7 +21,6 @@ #import "UICompositeView.h" #import "TPKeyboardAvoidingScrollView.h" #import "PhoneMainView.h" -#import @interface AssistantView : UIViewController { diff --git a/Classes/DialerView.m b/Classes/DialerView.m index eed816644..4b45c8759 100644 --- a/Classes/DialerView.m +++ b/Classes/DialerView.m @@ -17,7 +17,6 @@ * along with this program. If not, see . */ -#import #import #import "LinphoneManager.h" diff --git a/Classes/ImagePickerView.m b/Classes/ImagePickerView.m index a69ae4dde..da164b120 100644 --- a/Classes/ImagePickerView.m +++ b/Classes/ImagePickerView.m @@ -18,8 +18,6 @@ */ #import -#import -#import #import "ImagePickerView.h" #import "PhoneMainView.h" #import "SVProgressHUD.h" diff --git a/Classes/LinphoneManager.m b/Classes/LinphoneManager.m index 9966f70af..acb17702c 100644 --- a/Classes/LinphoneManager.m +++ b/Classes/LinphoneManager.m @@ -22,8 +22,6 @@ #include #include -#import -#import #import #import #import @@ -43,7 +41,6 @@ #import "LinphoneIOSVersion.h" -#import #import "Utils.h" #import "PhoneMainView.h" #import "ChatsListView.h" diff --git a/Classes/LinphoneUI/UIBluetoothButton.m b/Classes/LinphoneUI/UIBluetoothButton.m index 17f567d15..78661fb03 100644 --- a/Classes/LinphoneUI/UIBluetoothButton.m +++ b/Classes/LinphoneUI/UIBluetoothButton.m @@ -20,7 +20,6 @@ #import "UIBluetoothButton.h" #import "../Utils/AudioHelper.h" #import "Utils.h" -#import #import #include "linphone/linphonecore.h" diff --git a/Classes/LinphoneUI/UIChatBubblePhotoCell.m b/Classes/LinphoneUI/UIChatBubblePhotoCell.m index becd3fcd4..4d2bcc013 100644 --- a/Classes/LinphoneUI/UIChatBubblePhotoCell.m +++ b/Classes/LinphoneUI/UIChatBubblePhotoCell.m @@ -23,7 +23,6 @@ #import #import -#import #import #import diff --git a/Classes/LinphoneUI/UISpeakerButton.m b/Classes/LinphoneUI/UISpeakerButton.m index 3bdd5b70d..d8d6ded6d 100644 --- a/Classes/LinphoneUI/UISpeakerButton.m +++ b/Classes/LinphoneUI/UISpeakerButton.m @@ -17,7 +17,6 @@ * along with this program. If not, see . */ -#import #import #import "UISpeakerButton.h" #import "Utils.h" diff --git a/Classes/Utils/AudioHelper.h b/Classes/Utils/AudioHelper.h index 2de6d6477..f12b72470 100644 --- a/Classes/Utils/AudioHelper.h +++ b/Classes/Utils/AudioHelper.h @@ -20,9 +20,10 @@ #ifndef AudioHelper_h #define AudioHelper_h -#import #import +@import AVFoundation; + @interface AudioHelper : NSObject + (NSArray *)bluetoothRoutes; diff --git a/linphone-adhoc.plist b/linphone-adhoc.plist new file mode 100644 index 000000000..c2c9b185f --- /dev/null +++ b/linphone-adhoc.plist @@ -0,0 +1,13 @@ + + + + + method + ad-hoc + iCloudContainerEnvironment + Production +compileBitcode + + + + diff --git a/linphone.xcodeproj/project.pbxproj b/linphone.xcodeproj/project.pbxproj index a849283c7..357fa36b5 100644 --- a/linphone.xcodeproj/project.pbxproj +++ b/linphone.xcodeproj/project.pbxproj @@ -4923,6 +4923,7 @@ CURRENT_PROJECT_VERSION = 2; DEBUG_INFORMATION_FORMAT = dwarf; DEVELOPMENT_TEAM = Z2V957B3D6; + ENABLE_BITCODE = NO; GCC_C_LANGUAGE_STANDARD = gnu11; GCC_DYNAMIC_NO_PIC = NO; GCC_OPTIMIZATION_LEVEL = 0; @@ -4965,6 +4966,7 @@ CURRENT_PROJECT_VERSION = 2; DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; DEVELOPMENT_TEAM = Z2V957B3D6; + ENABLE_BITCODE = NO; ENABLE_NS_ASSERTIONS = NO; GCC_C_LANGUAGE_STANDARD = gnu11; GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; @@ -5006,6 +5008,7 @@ CURRENT_PROJECT_VERSION = 2; DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; DEVELOPMENT_TEAM = Z2V957B3D6; + ENABLE_BITCODE = NO; ENABLE_NS_ASSERTIONS = NO; GCC_C_LANGUAGE_STANDARD = gnu11; GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; @@ -5048,6 +5051,7 @@ CURRENT_PROJECT_VERSION = 2; DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; DEVELOPMENT_TEAM = Z2V957B3D6; + ENABLE_BITCODE = NO; ENABLE_NS_ASSERTIONS = NO; GCC_C_LANGUAGE_STANDARD = gnu11; GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;