A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
add new share extension for ios
ammarahm-ed0a5b1303d5da
diff --git a/apps/mobile/ios/Add to Notes/Add to Notes-Bridging-Header.h b/apps/mobile/ios/Add to Notes/Add to Notes-Bridging-Header.hnew file mode 100644index 000000000..1b2cb5d6d--- /dev/null+++ b/apps/mobile/ios/Add to Notes/Add to Notes-Bridging-Header.h@@ -0,0 +1,4 @@+//+// Use this file to import your target's public headers that you would like to expose to Swift.+//+diff --git a/apps/mobile/ios/Make Note/Base.lproj/MainInterface.storyboard b/apps/mobile/ios/Make Note/Base.lproj/MainInterface.storyboardnew file mode 100644index 000000000..589bdd9e7--- /dev/null+++ b/apps/mobile/ios/Make Note/Base.lproj/MainInterface.storyboard@@ -0,0 +1,24 @@+<?xml version="1.0" encoding="UTF-8"?>+<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="13122.16" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="j1y-V4-xli">+ <dependencies>+ <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="13104.12"/>+ <capability name="Safe area layout guides" minToolsVersion="9.0"/>+ <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>+ </dependencies>+ <scenes>+ <!--Share View Controller-->+ <scene sceneID="ceB-am-kn3">+ <objects>+ <viewController id="j1y-V4-xli" customClass="ShareViewController" customModuleProvider="" sceneMemberID="viewController">+ <view key="view" opaque="NO" contentMode="scaleToFill" id="wbc-yd-nQP">+ <rect key="frame" x="0.0" y="0.0" width="375" height="667"/>+ <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>+ <color key="backgroundColor" red="0.0" green="0.0" blue="0.0" alpha="0.0" colorSpace="custom" customColorSpace="sRGB"/>+ <viewLayoutGuide key="safeArea" id="1Xd-am-t49"/>+ </view>+ </viewController>+ <placeholder placeholderIdentifier="IBFirstResponder" id="CEy-Cv-SGf" userLabel="First Responder" sceneMemberID="firstResponder"/>+ </objects>+ </scene>+ </scenes>+</document>diff --git a/apps/mobile/ios/Make Note/File.swift b/apps/mobile/ios/Make Note/File.swiftnew file mode 100644index 000000000..62b5a38f9--- /dev/null+++ b/apps/mobile/ios/Make Note/File.swift@@ -0,0 +1,8 @@+//+// File.swift+// Make Note+//+// Created by Ammar Ahmed on 07/01/2021.+//++import Foundationdiff --git a/apps/mobile/ios/Make Note/Info.plist b/apps/mobile/ios/Make Note/Info.plistnew file mode 100644index 000000000..d5860de4b--- /dev/null+++ b/apps/mobile/ios/Make Note/Info.plist@@ -0,0 +1,36 @@+<?xml version="1.0" encoding="UTF-8"?>+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">+<plist version="1.0">+<dict>+ <key>CFBundleDevelopmentRegion</key>+ <string>$(DEVELOPMENT_LANGUAGE)</string>+ <key>CFBundleDisplayName</key>+ <string>Make Note</string>+ <key>CFBundleExecutable</key>+ <string>$(EXECUTABLE_NAME)</string>+ <key>CFBundleIdentifier</key>+ <string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>+ <key>CFBundleInfoDictionaryVersion</key>+ <string>6.0</string>+ <key>CFBundleName</key>+ <string>$(PRODUCT_NAME)</string>+ <key>CFBundlePackageType</key>+ <string>$(PRODUCT_BUNDLE_PACKAGE_TYPE)</string>+ <key>CFBundleShortVersionString</key>+ <string>1.0</string>+ <key>CFBundleVersion</key>+ <string>1</string>+ <key>NSExtension</key>+ <dict>+ <key>NSExtensionAttributes</key>+ <dict>+ <key>NSExtensionActivationRule</key>+ <string>TRUEPREDICATE</string>+ </dict>+ <key>NSExtensionMainStoryboard</key>+ <string>MainInterface</string>+ <key>NSExtensionPointIdentifier</key>+ <string>com.apple.share-services</string>+ </dict>+</dict>+</plist>diff --git a/apps/mobile/ios/Make Note/Make Note-Bridging-Header.h b/apps/mobile/ios/Make Note/Make Note-Bridging-Header.hnew file mode 100644index 000000000..1b2cb5d6d--- /dev/null+++ b/apps/mobile/ios/Make Note/Make Note-Bridging-Header.h@@ -0,0 +1,4 @@+//+// Use this file to import your target's public headers that you would like to expose to Swift.+//+diff --git a/apps/mobile/ios/Make Note/Make Note.entitlements b/apps/mobile/ios/Make Note/Make Note.entitlementsnew file mode 100644index 000000000..2eb7e333a--- /dev/null+++ b/apps/mobile/ios/Make Note/Make Note.entitlements@@ -0,0 +1,8 @@+<?xml version="1.0" encoding="UTF-8"?>+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">+<plist version="1.0">+<dict>+ <key>com.apple.security.application-groups</key>+ <array/>+</dict>+</plist>diff --git a/apps/mobile/ios/Make Note/ShareViewController.h b/apps/mobile/ios/Make Note/ShareViewController.hnew file mode 100644index 000000000..b09c1c83a--- /dev/null+++ b/apps/mobile/ios/Make Note/ShareViewController.h@@ -0,0 +1,13 @@+//+// ShareViewController.h+// Make Note+//+// Created by Ammar Ahmed on 07/01/2021.+//++#import <UIKit/UIKit.h>+#import <Social/Social.h>++@interface ShareViewController : SLComposeServiceViewController++@enddiff --git a/apps/mobile/ios/Make Note/ShareViewController.m b/apps/mobile/ios/Make Note/ShareViewController.mnew file mode 100644index 000000000..cba043c80--- /dev/null+++ b/apps/mobile/ios/Make Note/ShareViewController.m@@ -0,0 +1,33 @@+//+// ShareViewController.m+// Make Note+//+// Created by Ammar Ahmed on 07/01/2021.+//++#import "ShareViewController.h"++@interface ShareViewController ()++@end++@implementation ShareViewController++- (BOOL)isContentValid {+ // Do validation of contentText and/or NSExtensionContext attachments here+ return YES;+}++- (void)didSelectPost {+ // This is called after the user selects Post. Do the upload of contentText and/or NSExtensionContext attachments.++ // Inform the host that we're done, so it un-blocks its UI. Note: Alternatively you could call super's -didSelectPost, which will similarly complete the extension context.+ [self.extensionContext completeRequestReturningItems:@[] completionHandler:nil];+}++- (NSArray *)configurationItems {+ // To add configuration options via table cells at the bottom of the sheet, return an array of SLComposeSheetConfigurationItem here.+ return @[];+}++@end