From 0eaccadef8ede65f26a50a61c92d86980399e5f9 Mon Sep 17 00:00:00 2001 From: David Idmansour Date: Fri, 22 Jun 2018 10:22:12 +0200 Subject: [PATCH] hello world rich notification --- linphone.xcodeproj/project.pbxproj | 278 ++++++++++++++++++ .../Base.lproj/MainInterface.storyboard | 43 +++ richNotifications/Info.plist | 38 +++ .../NotificationViewController.h | 12 + .../NotificationViewController.m | 29 ++ 5 files changed, 400 insertions(+) create mode 100644 richNotifications/Base.lproj/MainInterface.storyboard create mode 100644 richNotifications/Info.plist create mode 100644 richNotifications/NotificationViewController.h create mode 100644 richNotifications/NotificationViewController.m diff --git a/linphone.xcodeproj/project.pbxproj b/linphone.xcodeproj/project.pbxproj index 5c654eff9..af13eb8f6 100755 --- a/linphone.xcodeproj/project.pbxproj +++ b/linphone.xcodeproj/project.pbxproj @@ -70,6 +70,11 @@ 5E31290C20D7A37E00CF3AAE /* latestChatroomsWidget.appex in Embed App Extensions */ = {isa = PBXBuildFile; fileRef = 5E31290020D7A37E00CF3AAE /* latestChatroomsWidget.appex */; settings = {ATTRIBUTES = (RemoveHeadersOnCopy, ); }; }; 5E31291320D7AAA100CF3AAE /* avatar.png in Resources */ = {isa = PBXBuildFile; fileRef = 633FEBE61D3CD5570014B822 /* avatar.png */; }; 5E31291A20D7AAAD00CF3AAE /* chat_group_avatar.png in Resources */ = {isa = PBXBuildFile; fileRef = 8C2A81941F87B8000012A66B /* chat_group_avatar.png */; }; + 5E58962420DCE5700030868C /* UserNotifications.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 8C73477B1D9BA3A00022EE8C /* UserNotifications.framework */; }; + 5E58962620DCE5700030868C /* UserNotificationsUI.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5E58962520DCE5700030868C /* UserNotificationsUI.framework */; }; + 5E58962A20DCE5700030868C /* NotificationViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 5E58962920DCE5700030868C /* NotificationViewController.m */; }; + 5E58962D20DCE5700030868C /* MainInterface.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 5E58962B20DCE5700030868C /* MainInterface.storyboard */; }; + 5E58963120DCE5710030868C /* richNotifications.appex in Embed App Extensions */ = {isa = PBXBuildFile; fileRef = 5E58962320DCE5700030868C /* richNotifications.appex */; settings = {ATTRIBUTES = (RemoveHeadersOnCopy, ); }; }; 5EEE8F9B20C80C23006E4176 /* NotificationCenter.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5EF0C33820C806A5005081B0 /* NotificationCenter.framework */; }; 5EEE8F9F20C80C23006E4176 /* TodayViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 5EEE8F9E20C80C23006E4176 /* TodayViewController.m */; }; 5EEE8FA220C80C23006E4176 /* MainInterface.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 5EEE8FA020C80C23006E4176 /* MainInterface.storyboard */; }; @@ -834,6 +839,13 @@ remoteGlobalIDString = 5E3128FF20D7A37E00CF3AAE; remoteInfo = latestChatroomsWidget; }; + 5E58962F20DCE5710030868C /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 29B97313FDCFA39411CA2CEA /* Project object */; + proxyType = 1; + remoteGlobalIDString = 5E58962220DCE5700030868C; + remoteInfo = richNotifications; + }; 5EEE8FA420C80C23006E4176 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 29B97313FDCFA39411CA2CEA /* Project object */; @@ -923,6 +935,7 @@ 61AE365620C00B370089D9D3 /* linphoneExtension.appex in Embed App Extensions */, 5E31290C20D7A37E00CF3AAE /* latestChatroomsWidget.appex in Embed App Extensions */, 5EEE8FA620C80C23006E4176 /* latestCallsWidget.appex in Embed App Extensions */, + 5E58963120DCE5710030868C /* richNotifications.appex in Embed App Extensions */, ); name = "Embed App Extensions"; runOnlyForDeploymentPostprocessing = 0; @@ -1070,6 +1083,12 @@ 5E31290420D7A37E00CF3AAE /* TodayViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = TodayViewController.m; sourceTree = ""; }; 5E31290720D7A37E00CF3AAE /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/MainInterface.storyboard; sourceTree = ""; }; 5E31290920D7A37E00CF3AAE /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + 5E58962320DCE5700030868C /* richNotifications.appex */ = {isa = PBXFileReference; explicitFileType = "wrapper.app-extension"; includeInIndex = 0; path = richNotifications.appex; sourceTree = BUILT_PRODUCTS_DIR; }; + 5E58962520DCE5700030868C /* UserNotificationsUI.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UserNotificationsUI.framework; path = System/Library/Frameworks/UserNotificationsUI.framework; sourceTree = SDKROOT; }; + 5E58962820DCE5700030868C /* NotificationViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = NotificationViewController.h; sourceTree = ""; }; + 5E58962920DCE5700030868C /* NotificationViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = NotificationViewController.m; sourceTree = ""; }; + 5E58962C20DCE5700030868C /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/MainInterface.storyboard; sourceTree = ""; }; + 5E58962E20DCE5710030868C /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 5EEE8F9A20C80C23006E4176 /* latestCallsWidget.appex */ = {isa = PBXFileReference; explicitFileType = "wrapper.app-extension"; includeInIndex = 0; path = latestCallsWidget.appex; sourceTree = BUILT_PRODUCTS_DIR; }; 5EEE8F9D20C80C23006E4176 /* TodayViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = TodayViewController.h; sourceTree = ""; }; 5EEE8F9E20C80C23006E4176 /* TodayViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = TodayViewController.m; sourceTree = ""; }; @@ -2058,6 +2077,15 @@ ); runOnlyForDeploymentPostprocessing = 0; }; + 5E58962020DCE5700030868C /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + 5E58962620DCE5700030868C /* UserNotificationsUI.framework in Frameworks */, + 5E58962420DCE5700030868C /* UserNotifications.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; 5EEE8F9720C80C23006E4176 /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; @@ -2273,6 +2301,7 @@ 61AE364B20C00B370089D9D3 /* linphoneExtension.appex */, 5EEE8F9A20C80C23006E4176 /* latestCallsWidget.appex */, 5E31290020D7A37E00CF3AAE /* latestChatroomsWidget.appex */, + 5E58962320DCE5700030868C /* richNotifications.appex */, ); name = Products; sourceTree = ""; @@ -2390,6 +2419,7 @@ 61AE364C20C00B370089D9D3 /* linphoneExtension */, 5EEE8F9C20C80C23006E4176 /* latestCallsWidget */, 5E31290220D7A37E00CF3AAE /* latestChatroomsWidget */, + 5E58962720DCE5700030868C /* richNotifications */, 29B97323FDCFA39411CA2CEA /* Frameworks */, F0938158188E629800A55DFA /* iTunesArtwork */, 63058A0C1B4E821E00EFAE36 /* LiblinphoneTester */, @@ -2481,6 +2511,7 @@ 2264B6D111200342002C2C53 /* SystemConfiguration.framework */, 1DF5F4DF0D08C38300B7A737 /* UIKit.framework */, 5EF0C33820C806A5005081B0 /* NotificationCenter.framework */, + 5E58962520DCE5700030868C /* UserNotificationsUI.framework */, ); name = Frameworks; sourceTree = ""; @@ -2497,6 +2528,17 @@ path = latestChatroomsWidget; sourceTree = ""; }; + 5E58962720DCE5700030868C /* richNotifications */ = { + isa = PBXGroup; + children = ( + 5E58962820DCE5700030868C /* NotificationViewController.h */, + 5E58962920DCE5700030868C /* NotificationViewController.m */, + 5E58962B20DCE5700030868C /* MainInterface.storyboard */, + 5E58962E20DCE5710030868C /* Info.plist */, + ); + path = richNotifications; + sourceTree = ""; + }; 5EEE8F9C20C80C23006E4176 /* latestCallsWidget */ = { isa = PBXGroup; children = ( @@ -3314,6 +3356,7 @@ 61AE365520C00B370089D9D3 /* PBXTargetDependency */, 5EEE8FA520C80C23006E4176 /* PBXTargetDependency */, 5E31290B20D7A37E00CF3AAE /* PBXTargetDependency */, + 5E58963020DCE5710030868C /* PBXTargetDependency */, ); name = linphone; productName = linphone; @@ -3337,6 +3380,23 @@ productReference = 5E31290020D7A37E00CF3AAE /* latestChatroomsWidget.appex */; productType = "com.apple.product-type.app-extension"; }; + 5E58962220DCE5700030868C /* richNotifications */ = { + isa = PBXNativeTarget; + buildConfigurationList = 5E58963C20DCE5710030868C /* Build configuration list for PBXNativeTarget "richNotifications" */; + buildPhases = ( + 5E58961F20DCE5700030868C /* Sources */, + 5E58962020DCE5700030868C /* Frameworks */, + 5E58962120DCE5700030868C /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = richNotifications; + productName = richNotifications; + productReference = 5E58962320DCE5700030868C /* richNotifications.appex */; + productType = "com.apple.product-type.app-extension"; + }; 5EEE8F9920C80C23006E4176 /* latestCallsWidget */ = { isa = PBXNativeTarget; buildConfigurationList = 5EEE8FA720C80C24006E4176 /* Build configuration list for PBXNativeTarget "latestCallsWidget" */; @@ -3462,6 +3522,11 @@ }; }; }; + 5E58962220DCE5700030868C = { + CreatedOnToolsVersion = 9.4; + DevelopmentTeam = Z2V957B3D6; + ProvisioningStyle = Automatic; + }; 5EEE8F9920C80C23006E4176 = { CreatedOnToolsVersion = 9.4; DevelopmentTeam = Z2V957B3D6; @@ -3536,6 +3601,7 @@ 61AE364A20C00B370089D9D3 /* linphoneExtension */, 5EEE8F9920C80C23006E4176 /* latestCallsWidget */, 5E3128FF20D7A37E00CF3AAE /* latestChatroomsWidget */, + 5E58962220DCE5700030868C /* richNotifications */, ); }; /* End PBXProject section */ @@ -4134,6 +4200,14 @@ ); runOnlyForDeploymentPostprocessing = 0; }; + 5E58962120DCE5700030868C /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 5E58962D20DCE5700030868C /* MainInterface.storyboard in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; 5EEE8F9820C80C23006E4176 /* Resources */ = { isa = PBXResourcesBuildPhase; buildActionMask = 2147483647; @@ -4382,6 +4456,14 @@ ); runOnlyForDeploymentPostprocessing = 0; }; + 5E58961F20DCE5700030868C /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 5E58962A20DCE5700030868C /* NotificationViewController.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; 5EEE8F9620C80C23006E4176 /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; @@ -4441,6 +4523,11 @@ target = 5E3128FF20D7A37E00CF3AAE /* latestChatroomsWidget */; targetProxy = 5E31290A20D7A37E00CF3AAE /* PBXContainerItemProxy */; }; + 5E58963020DCE5710030868C /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 5E58962220DCE5700030868C /* richNotifications */; + targetProxy = 5E58962F20DCE5710030868C /* PBXContainerItemProxy */; + }; 5EEE8FA520C80C23006E4176 /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 5EEE8F9920C80C23006E4176 /* latestCallsWidget */; @@ -4487,6 +4574,14 @@ name = MainInterface.storyboard; sourceTree = ""; }; + 5E58962B20DCE5700030868C /* MainInterface.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 5E58962C20DCE5700030868C /* Base */, + ); + name = MainInterface.storyboard; + sourceTree = ""; + }; 5EEE8FA020C80C23006E4176 /* MainInterface.storyboard */ = { isa = PBXVariantGroup; children = ( @@ -5554,6 +5649,178 @@ }; name = DistributionAdhoc; }; + 5E58963220DCE5710030868C /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_ENABLE_OBJC_WEAK = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CODE_SIGN_IDENTITY = "iPhone Developer"; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + CODE_SIGN_STYLE = Automatic; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = dwarf; + DEVELOPMENT_TEAM = Z2V957B3D6; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_DYNAMIC_NO_PIC = NO; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + INFOPLIST_FILE = richNotifications/Info.plist; + IPHONEOS_DEPLOYMENT_TARGET = 10.0; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @executable_path/../../Frameworks"; + MTL_ENABLE_DEBUG_INFO = YES; + PRODUCT_BUNDLE_IDENTIFIER = org.linphone.phone.richNotifications; + PRODUCT_NAME = "$(TARGET_NAME)"; + PROVISIONING_PROFILE = ""; + PROVISIONING_PROFILE_SPECIFIER = ""; + SKIP_INSTALL = YES; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Debug; + }; + 5E58963320DCE5710030868C /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_ENABLE_OBJC_WEAK = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CODE_SIGN_IDENTITY = "iPhone Developer"; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + CODE_SIGN_STYLE = Automatic; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + DEVELOPMENT_TEAM = Z2V957B3D6; + ENABLE_NS_ASSERTIONS = NO; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + INFOPLIST_FILE = richNotifications/Info.plist; + IPHONEOS_DEPLOYMENT_TARGET = 10.0; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @executable_path/../../Frameworks"; + MTL_ENABLE_DEBUG_INFO = NO; + PRODUCT_BUNDLE_IDENTIFIER = org.linphone.phone.richNotifications; + PRODUCT_NAME = "$(TARGET_NAME)"; + PROVISIONING_PROFILE = ""; + PROVISIONING_PROFILE_SPECIFIER = ""; + SKIP_INSTALL = YES; + TARGETED_DEVICE_FAMILY = "1,2"; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + 5E58963420DCE5710030868C /* Distribution */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_ENABLE_OBJC_WEAK = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CODE_SIGN_IDENTITY = "iPhone Developer"; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + CODE_SIGN_STYLE = Automatic; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + DEVELOPMENT_TEAM = Z2V957B3D6; + ENABLE_NS_ASSERTIONS = NO; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + INFOPLIST_FILE = richNotifications/Info.plist; + IPHONEOS_DEPLOYMENT_TARGET = 10.0; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @executable_path/../../Frameworks"; + MTL_ENABLE_DEBUG_INFO = NO; + PRODUCT_BUNDLE_IDENTIFIER = org.linphone.phone.richNotifications; + PRODUCT_NAME = "$(TARGET_NAME)"; + PROVISIONING_PROFILE = ""; + PROVISIONING_PROFILE_SPECIFIER = ""; + SKIP_INSTALL = YES; + TARGETED_DEVICE_FAMILY = "1,2"; + VALIDATE_PRODUCT = YES; + }; + name = Distribution; + }; + 5E58963520DCE5710030868C /* DistributionAdhoc */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_ENABLE_OBJC_WEAK = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CODE_SIGN_IDENTITY = "iPhone Developer"; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + CODE_SIGN_STYLE = Automatic; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + DEVELOPMENT_TEAM = Z2V957B3D6; + ENABLE_NS_ASSERTIONS = NO; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + INFOPLIST_FILE = richNotifications/Info.plist; + IPHONEOS_DEPLOYMENT_TARGET = 10.0; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @executable_path/../../Frameworks"; + MTL_ENABLE_DEBUG_INFO = NO; + PRODUCT_BUNDLE_IDENTIFIER = org.linphone.phone.richNotifications; + PRODUCT_NAME = "$(TARGET_NAME)"; + PROVISIONING_PROFILE = ""; + PROVISIONING_PROFILE_SPECIFIER = ""; + SKIP_INSTALL = YES; + TARGETED_DEVICE_FAMILY = "1,2"; + VALIDATE_PRODUCT = YES; + }; + name = DistributionAdhoc; + }; 5EEE8FA820C80C24006E4176 /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { @@ -6558,6 +6825,17 @@ defaultConfigurationIsVisible = 0; defaultConfigurationName = Debug; }; + 5E58963C20DCE5710030868C /* Build configuration list for PBXNativeTarget "richNotifications" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 5E58963220DCE5710030868C /* Debug */, + 5E58963320DCE5710030868C /* Release */, + 5E58963420DCE5710030868C /* Distribution */, + 5E58963520DCE5710030868C /* DistributionAdhoc */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Debug; + }; 5EEE8FA720C80C24006E4176 /* Build configuration list for PBXNativeTarget "latestCallsWidget" */ = { isa = XCConfigurationList; buildConfigurations = ( diff --git a/richNotifications/Base.lproj/MainInterface.storyboard b/richNotifications/Base.lproj/MainInterface.storyboard new file mode 100644 index 000000000..b596d3278 --- /dev/null +++ b/richNotifications/Base.lproj/MainInterface.storyboard @@ -0,0 +1,43 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/richNotifications/Info.plist b/richNotifications/Info.plist new file mode 100644 index 000000000..8c44b9e62 --- /dev/null +++ b/richNotifications/Info.plist @@ -0,0 +1,38 @@ + + + + + CFBundleDevelopmentRegion + $(DEVELOPMENT_LANGUAGE) + CFBundleDisplayName + richNotifications + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + XPC! + CFBundleShortVersionString + 1.0 + CFBundleVersion + 1 + NSExtension + + NSExtensionAttributes + + UNNotificationExtensionCategory + msg_cat + UNNotificationExtensionInitialContentSizeRatio + 1 + + NSExtensionMainStoryboard + MainInterface + NSExtensionPointIdentifier + com.apple.usernotifications.content-extension + + + diff --git a/richNotifications/NotificationViewController.h b/richNotifications/NotificationViewController.h new file mode 100644 index 000000000..6bc345f56 --- /dev/null +++ b/richNotifications/NotificationViewController.h @@ -0,0 +1,12 @@ +// +// NotificationViewController.h +// richNotifications +// +// Created by David Idmansour on 22/06/2018. +// + +#import + +@interface NotificationViewController : UIViewController + +@end diff --git a/richNotifications/NotificationViewController.m b/richNotifications/NotificationViewController.m new file mode 100644 index 000000000..8a738e4b1 --- /dev/null +++ b/richNotifications/NotificationViewController.m @@ -0,0 +1,29 @@ +// +// NotificationViewController.m +// richNotifications +// +// Created by David Idmansour on 22/06/2018. +// + +#import "NotificationViewController.h" +#import +#import + +@interface NotificationViewController () + +@property IBOutlet UILabel *label; + +@end + +@implementation NotificationViewController + +- (void)viewDidLoad { + [super viewDidLoad]; + // Do any required interface initialization here. +} + +- (void)didReceiveNotification:(UNNotification *)notification { + self.label.text = notification.request.content.body; +} + +@end