diff --git a/latestCallsWidget/Base.lproj/MainInterface.storyboard b/latestCallsWidget/Base.lproj/MainInterface.storyboard new file mode 100644 index 000000000..bee1f453a --- /dev/null +++ b/latestCallsWidget/Base.lproj/MainInterface.storyboard @@ -0,0 +1,44 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/latestCallsWidget/Info.plist b/latestCallsWidget/Info.plist new file mode 100644 index 000000000..df0a597bf --- /dev/null +++ b/latestCallsWidget/Info.plist @@ -0,0 +1,31 @@ + + + + + CFBundleDevelopmentRegion + $(DEVELOPMENT_LANGUAGE) + CFBundleDisplayName + Linphone + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + XPC! + CFBundleShortVersionString + 1.0 + CFBundleVersion + 1 + NSExtension + + NSExtensionMainStoryboard + MainInterface + NSExtensionPointIdentifier + com.apple.widget-extension + + + diff --git a/latestCallsWidget/TodayViewController.h b/latestCallsWidget/TodayViewController.h new file mode 100644 index 000000000..938d339d7 --- /dev/null +++ b/latestCallsWidget/TodayViewController.h @@ -0,0 +1,12 @@ +// +// TodayViewController.h +// latestCallsWidget +// +// Created by David Idmansour on 06/06/2018. +// + +#import + +@interface TodayViewController : UIViewController + +@end diff --git a/latestCallsWidget/TodayViewController.m b/latestCallsWidget/TodayViewController.m new file mode 100644 index 000000000..156b001c3 --- /dev/null +++ b/latestCallsWidget/TodayViewController.m @@ -0,0 +1,37 @@ +// +// TodayViewController.m +// latestCallsWidget +// +// Created by David Idmansour on 06/06/2018. +// + +#import "TodayViewController.h" +#import + +@interface TodayViewController () + +@end + +@implementation TodayViewController + +- (void)viewDidLoad { + [super viewDidLoad]; + // Do any additional setup after loading the view from its nib. +} + +- (void)didReceiveMemoryWarning { + [super didReceiveMemoryWarning]; + // Dispose of any resources that can be recreated. +} + +- (void)widgetPerformUpdateWithCompletionHandler:(void (^)(NCUpdateResult))completionHandler { + // Perform any setup necessary in order to update the view. + + // If an error is encountered, use NCUpdateResultFailed + // If there's no update required, use NCUpdateResultNoData + // If there's an update, use NCUpdateResultNewData + + completionHandler(NCUpdateResultNewData); +} + +@end diff --git a/latestCallsWidget/latestCallsWidget.entitlements b/latestCallsWidget/latestCallsWidget.entitlements new file mode 100644 index 000000000..0c67376eb --- /dev/null +++ b/latestCallsWidget/latestCallsWidget.entitlements @@ -0,0 +1,5 @@ + + + + +