Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

mobile: cut iOS app size (shared JS bundle, fonts, Swift stdlib)

Ammar Ahmedc87c93d4cf13
diff --git a/apps/mobile/index.ext.js b/apps/mobile/index.ext.js
deleted file mode 100644
index a9399fdac..000000000
--- a/apps/mobile/index.ext.js
+++ /dev/null
@@ -1,18 +0,0 @@
-/* eslint-disable @typescript-eslint/no-var-requires */
-import React from "react";
-import { AppRegistry } from "react-native";
-import "react-native-get-random-values";
-import { SafeAreaProvider } from "react-native-safe-area-context";
-import "./globals";
-import "./app/common/logger/index";
-
-const ShareProvider = () => {
- NotesnookShare = require("./app/share/index").default;
- return (
- <SafeAreaProvider>
- <NotesnookShare />
- </SafeAreaProvider>
- );
-};
-
-AppRegistry.registerComponent("NotesnookShare", () => ShareProvider);
diff --git a/apps/mobile/index.js b/apps/mobile/index.js
index 9aa46d0e4..7b1c6e56e 100644
--- a/apps/mobile/index.js
+++ b/apps/mobile/index.js
@@ -1,8 +1,25 @@
-/* eslint-disable @typescript-eslint/no-var-requires */
+/*
+This file is part of the Notesnook project (https://notesnook.com/)
+
+Copyright (C) 2023 Streetwriters (Private) Limited
+
+This program is free software: you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation, either version 3 of the License, or
+(at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with this program. If not, see <http://www.gnu.org/licenses/>.
+*/
import "./globals.js";
import NetInfo from "@react-native-community/netinfo";
import React from "react";
-import { AppRegistry, LogBox } from "react-native";
+import { AppRegistry, LogBox, NativeModules } from "react-native";
import Config from "react-native-config";
import "react-native-get-random-values";
import { SafeAreaProvider } from "react-native-safe-area-context";
@@ -11,9 +28,29 @@ import { BackgroundSync } from "./app/services/background-sync";
import Notifications from "./app/services/notifications";
import appJson from "./app.json";
-BackgroundSync.registerHeadlessTask();
-BackgroundSync.start();
-Notifications.init();
+// This bundle is shared between the app and the iOS share extension (the
+// extension loads the app's main.jsbundle instead of building its own, which
+// saves ~10MB). Everything below module scope therefore runs in BOTH, so
+// app-only side effects have to be gated.
+//
+// `ShareViewController` is an RCT_EXPORT_MODULE declared in
+// ios/Make Note/ShareViewController.m, which is compiled only into the
+// extension target — so its presence is a reliable discriminator.
+const IS_SHARE_EXTENSION = (() => {
+ try {
+ return !!NativeModules.ShareViewController;
+ } catch (e) {
+ return false;
+ }
+})();
+
+if (!IS_SHARE_EXTENSION) {
+ // Must stay at module scope: headless launches never render a component, and
+ // notifee requires its background handler registered before the event fires.
+ BackgroundSync.registerHeadlessTask();
+ BackgroundSync.start();
+ Notifications.init();
+}
enableFreeze(true);
NetInfo.configure({
diff --git a/apps/mobile/ios/Make Note/Info.plist b/apps/mobile/ios/Make Note/Info.plist
index afda4f71e..8ed263fd2 100644
--- a/apps/mobile/ios/Make Note/Info.plist
+++ b/apps/mobile/ios/Make Note/Info.plist
@@ -60,10 +60,6 @@
<string>group.org.streetwriters.notesnook</string>
<key>UIAppFonts</key>
<array>
- <string>Inter-Bold.ttf</string>
- <string>Inter-SemiBold.ttf</string>
- <string>Inter-Regular.ttf</string>
- <string>Inter-Italic.ttf</string>
<string>MaterialCommunityIcons.ttf</string>
</array>
<key>UISupportedInterfaceOrientations</key>
diff --git a/apps/mobile/ios/Make Note/ShareViewController.m b/apps/mobile/ios/Make Note/ShareViewController.m
index 8326096e7..24f0e9967 100644
--- a/apps/mobile/ios/Make Note/ShareViewController.m
+++ b/apps/mobile/ios/Make Note/ShareViewController.m
@@ -1,4 +1,5 @@
#import <Foundation/Foundation.h>
+#import <CoreText/CoreText.h>
#import <ReactNativeShareExtension.h>
#import <React/RCTBundleURLProvider.h>
#import <React/RCTRootView.h>
@@ -7,6 +8,44 @@
#import <ReactAppDependencyProvider/RCTAppDependencyProvider.h>
#import <RCTAppDelegate.h>
+/// The containing app bundle (.../Notesnook.app), reached from this extension
+/// at .../Notesnook.app/PlugIns/Make Note.appex.
+static NSURL *NNContainingAppBundleURL(void)
+{
+ return [[[NSBundle mainBundle].bundleURL
+ URLByDeletingLastPathComponent] // -> PlugIns
+ URLByDeletingLastPathComponent]; // -> Notesnook.app
+}
+
+/// Register the Inter family from the containing app's bundle rather than
+/// shipping a second copy inside the .appex (~1.6MB). Registered into the
+/// process scope, so the fonts resolve by family name exactly as they would
+/// via UIAppFonts.
+static void NNRegisterSharedFonts(void)
+{
+ static dispatch_once_t onceToken;
+ dispatch_once(&onceToken, ^{
+ NSURL *appBundleURL = NNContainingAppBundleURL();
+ NSArray<NSString *> *fonts = @[ @"Inter-Regular", @"Inter-Italic",
+ @"Inter-Bold", @"Inter-SemiBold" ];
+ for (NSString *font in fonts) {
+ NSURL *url = [appBundleURL
+ URLByAppendingPathComponent:
+ [font stringByAppendingPathExtension:@"ttf"]];
+ if (![[NSFileManager defaultManager] fileExistsAtPath:url.path]) continue;
+
+ CFErrorRef error = NULL;
+ if (!CTFontManagerRegisterFontsForURL((__bridge CFURLRef)url,
+ kCTFontManagerScopeProcess,
+ &error)) {
+ // Non-fatal: text falls back to the system font.
+ RCTLogWarn(@"Could not register %@: %@", font, error);
+ if (error) CFRelease(error);
+ }
+ }
+ });
+}
+
@interface ReactNativeShareDelegate : RCTDefaultReactNativeFactoryDelegate
@end
@@ -19,7 +58,29 @@
- (NSURL *)bundleURL
{
+#if DEBUG
return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index"];
+#else
+ // Load the containing app's JS bundle instead of shipping our own copy.
+ //
+ // The app's main.jsbundle already contains every module this extension needs
+ // (index.js registers "NotesnookShare" and requires ./app/share/index), so a
+ // second bundle inside the .appex was ~10MB of pure duplication.
+ //
+ // NSBundle.mainBundle here is .../Notesnook.app/PlugIns/Make Note.appex,
+ // so two levels up is the app bundle. This is the same traversal dyld
+ // already performs to resolve hermesvm.framework via
+ // @executable_path/../../Frameworks.
+ NSURL *bundleURL = [NNContainingAppBundleURL()
+ URLByAppendingPathComponent:@"main.jsbundle"];
+
+ if ([[NSFileManager defaultManager] fileExistsAtPath:bundleURL.path]) {
+ return bundleURL;
+ }
+
+ // Fall back to a local copy if one was shipped (e.g. an older build layout).
+ return [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"];
+#endif
}
@end
@@ -45,7 +106,9 @@ int rootViewTag = 0;
RCT_EXPORT_MODULE();
- (UIView*) shareView {
-
+
+ NNRegisterSharedFonts();
+
self.reactNativeDelegate = [[ReactNativeShareDelegate alloc] init];
RCTReactNativeFactory *factory = [[RCTReactNativeFactory alloc] initWithDelegate:self.reactNativeDelegate];
self.reactNativeDelegate.dependencyProvider = [RCTAppDependencyProvider new];
diff --git a/apps/mobile/ios/Notesnook.xcodeproj/project.pbxproj b/apps/mobile/ios/Notesnook.xcodeproj/project.pbxproj
index 536d535a9..23b0aef7c 100644
--- a/apps/mobile/ios/Notesnook.xcodeproj/project.pbxproj
+++ b/apps/mobile/ios/Notesnook.xcodeproj/project.pbxproj
@@ -10,12 +10,11 @@
00E356F31AD99517003FC87E /* NotesnookTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 00E356F21AD99517003FC87E /* NotesnookTests.m */; };
13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; };
13B07FC11A68108700A75B9A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; };
- 2B3F87EC6B2264CD8ABA5DA8 /* libPods-Notesnook.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 4BD34AE0C0FD2416E48803B8 /* libPods-Notesnook.a */; };
- 2C45ABC3D976E2128085910D /* libPods-Notesnook-Make Note.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 224696B070BA15252D9BD04E /* libPods-Notesnook-Make Note.a */; };
2D02E4BD1E0B4A84006451C7 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; };
2D02E4BF1E0B4AB3006451C7 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; };
2DCD954D1E0B4F2C00145EB5 /* NotesnookTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 00E356F21AD99517003FC87E /* NotesnookTests.m */; };
2E4BF736C2EB268ED3FD9C29 /* PrivacyInfo.xcprivacy in Resources */ = {isa = PBXBuildFile; fileRef = B5216B66C0B4A91C0A69128B /* PrivacyInfo.xcprivacy */; };
+ 543E4A8A0C7887D72387D34C /* libPods-Notesnook.a in Frameworks */ = {isa = PBXBuildFile; fileRef = C89265087EBE8B605EC6DBC0 /* libPods-Notesnook.a */; };
6510E6D72877215700DACAA9 /* build.bundle in Resources */ = {isa = PBXBuildFile; fileRef = 6510E6D62877215700DACAA9 /* build.bundle */; };
6515C42F2580AA3000E83E39 /* StoreKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6515C42E2580AA2F00E83E39 /* StoreKit.framework */; };
6529A13E279BC4C70048D4A8 /* BootSplash.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 6529A13D279BC4C70048D4A8 /* BootSplash.storyboard */; };
@@ -23,10 +22,6 @@
659201D92EA78265006B16DB /* Inter-Italic.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 653F4E052EA3887C009A42A2 /* Inter-Italic.ttf */; };
659201DA2EA78265006B16DB /* Inter-Regular.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 653F4E062EA3887C009A42A2 /* Inter-Regular.ttf */; };
659201DB2EA78265006B16DB /* Inter-SemiBold.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 653F4E072EA3887C009A42A2 /* Inter-SemiBold.ttf */; };
- 659201DC2EA7826D006B16DB /* Inter-Bold.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 653F4E042EA3887C009A42A2 /* Inter-Bold.ttf */; };
- 659201DD2EA7826D006B16DB /* Inter-Italic.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 653F4E052EA3887C009A42A2 /* Inter-Italic.ttf */; };
- 659201DE2EA7826D006B16DB /* Inter-Regular.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 653F4E062EA3887C009A42A2 /* Inter-Regular.ttf */; };
- 659201DF2EA7826D006B16DB /* Inter-SemiBold.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 653F4E072EA3887C009A42A2 /* Inter-SemiBold.ttf */; };
6593E4A3281C345400492C50 /* AppDelegate.mm in Sources */ = {isa = PBXBuildFile; fileRef = 6593E4A2281C345400492C50 /* AppDelegate.mm */; };
659BE46725E11A5100E05671 /* notesnook-text.png in Resources */ = {isa = PBXBuildFile; fileRef = 659BE46625E11A5100E05671 /* notesnook-text.png */; };
65AA857925E6DDEC00772A01 /* WidgetKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 65AA857825E6DDEC00772A01 /* WidgetKit.framework */; };
@@ -44,7 +39,8 @@
65C400DE2A80B68D00AA3DF5 /* MaterialCommunityIcons.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 65C400DD2A80B68D00AA3DF5 /* MaterialCommunityIcons.ttf */; };
65C400DF2A80B6B600AA3DF5 /* MaterialCommunityIcons.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 65C400DD2A80B68D00AA3DF5 /* MaterialCommunityIcons.ttf */; };
65E0340B257B9FF100793428 /* File.swift in Sources */ = {isa = PBXBuildFile; fileRef = 65E0340A257B9FF100793428 /* File.swift */; };
- A79A93DC9D0CAE8703462151 /* libPods-Notesnook-NotesnookTests.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 068FA9BDFA207A50B0A9E597 /* libPods-Notesnook-NotesnookTests.a */; };
+ BA1528FB9C1E0BD634C4169B /* libPods-Notesnook-Make Note.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 71BC99808CA30E74689CBC70 /* libPods-Notesnook-Make Note.a */; };
+ D5A503790A49186B183A716D /* libPods-Notesnook-NotesnookTests.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 724BD1232A0B1FBDC889F697 /* libPods-Notesnook-NotesnookTests.a */; };
E7F9D56665C2F19F4A97BF49 /* PrivacyInfo.xcprivacy in Resources */ = {isa = PBXBuildFile; fileRef = 4B679E87FDFB1312CAD6CF45 /* PrivacyInfo.xcprivacy */; };
/* End PBXBuildFile section */
@@ -99,21 +95,18 @@
00E356EE1AD99517003FC87E /* NotesnookTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = NotesnookTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
00E356F11AD99517003FC87E /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
00E356F21AD99517003FC87E /* NotesnookTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = NotesnookTests.m; sourceTree = "<group>"; };
- 068FA9BDFA207A50B0A9E597 /* libPods-Notesnook-NotesnookTests.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-Notesnook-NotesnookTests.a"; sourceTree = BUILT_PRODUCTS_DIR; };
13B07F961A680F5B00A75B9A /* Notesnook.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Notesnook.app; sourceTree = BUILT_PRODUCTS_DIR; };
13B07FAF1A68108700A75B9A /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AppDelegate.h; path = Notesnook/AppDelegate.h; sourceTree = "<group>"; };
13B07FB51A68108700A75B9A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = Notesnook/Images.xcassets; sourceTree = "<group>"; };
13B07FB61A68108700A75B9A /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = Notesnook/Info.plist; sourceTree = "<group>"; };
13B07FB71A68108700A75B9A /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = Notesnook/main.m; sourceTree = "<group>"; };
19E7EB248446C3FE09F6E622 /* Pods-Notesnook.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Notesnook.debug.xcconfig"; path = "Target Support Files/Pods-Notesnook/Pods-Notesnook.debug.xcconfig"; sourceTree = "<group>"; };
- 224696B070BA15252D9BD04E /* libPods-Notesnook-Make Note.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-Notesnook-Make Note.a"; sourceTree = BUILT_PRODUCTS_DIR; };
279A4325E1D27BD3E720F35B /* Pods-Notesnook-Make Note.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Notesnook-Make Note.debug.xcconfig"; path = "Target Support Files/Pods-Notesnook-Make Note/Pods-Notesnook-Make Note.debug.xcconfig"; sourceTree = "<group>"; };
2D02E47B1E0B4A5D006451C7 /* Notesnook-tvOS.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "Notesnook-tvOS.app"; sourceTree = BUILT_PRODUCTS_DIR; };
2D02E4901E0B4A5D006451C7 /* Notesnook-tvOSTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "Notesnook-tvOSTests.xctest"; sourceTree = BUILT_PRODUCTS_DIR; };
41D57E9831C724F59F18FBAE /* libPods-Notesnook-Add to Notes.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-Notesnook-Add to Notes.a"; sourceTree = BUILT_PRODUCTS_DIR; };
47AE097A087A651BD60CAD7B /* Pods-Notesnook-Make Note.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Notesnook-Make Note.release.xcconfig"; path = "Target Support Files/Pods-Notesnook-Make Note/Pods-Notesnook-Make Note.release.xcconfig"; sourceTree = "<group>"; };
4B679E87FDFB1312CAD6CF45 /* PrivacyInfo.xcprivacy */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xml; name = PrivacyInfo.xcprivacy; path = Notesnook/PrivacyInfo.xcprivacy; sourceTree = "<group>"; };
- 4BD34AE0C0FD2416E48803B8 /* libPods-Notesnook.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-Notesnook.a"; sourceTree = BUILT_PRODUCTS_DIR; };
6510E6D62877215700DACAA9 /* build.bundle */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.plug-in"; name = build.bundle; path = "../../../packages/editor-mobile/build.bundle"; sourceTree = "<group>"; };
6515C42E2580AA2F00E83E39 /* StoreKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = StoreKit.framework; path = System/Library/Frameworks/StoreKit.framework; sourceTree = SDKROOT; };
6529A13D279BC4C70048D4A8 /* BootSplash.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; name = BootSplash.storyboard; path = Notesnook/BootSplash.storyboard; sourceTree = "<group>"; };
@@ -145,12 +138,15 @@
65E0340A257B9FF100793428 /* File.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = File.swift; sourceTree = "<group>"; };
65EC5B71272A7EE200FB3748 /* NotesWidgetExtensionDebug.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = NotesWidgetExtensionDebug.entitlements; sourceTree = "<group>"; };
684AA0A1B1BE6091A02D42FF /* ios-build.active.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "ios-build.active.xcconfig"; path = "build-configs/ios-build.active.xcconfig"; sourceTree = SOURCE_ROOT; };
+ 71BC99808CA30E74689CBC70 /* libPods-Notesnook-Make Note.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-Notesnook-Make Note.a"; sourceTree = BUILT_PRODUCTS_DIR; };
+ 724BD1232A0B1FBDC889F697 /* libPods-Notesnook-NotesnookTests.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-Notesnook-NotesnookTests.a"; sourceTree = BUILT_PRODUCTS_DIR; };
77124A1C1FB538ED63FDEF82 /* Pods-Notesnook.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Notesnook.release.xcconfig"; path = "Target Support Files/Pods-Notesnook/Pods-Notesnook.release.xcconfig"; sourceTree = "<group>"; };
7D3F6A50D104CE391243515F /* Pods-Notesnook-Add to Notes.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Notesnook-Add to Notes.release.xcconfig"; path = "Target Support Files/Pods-Notesnook-Add to Notes/Pods-Notesnook-Add to Notes.release.xcconfig"; sourceTree = "<group>"; };
88211800FA8BF60638327ADE /* Pods-Make Note.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Make Note.debug.xcconfig"; path = "Target Support Files/Pods-Make Note/Pods-Make Note.debug.xcconfig"; sourceTree = "<group>"; };
A84F3F0D50641D1CD4569B0E /* Pods-Make Note.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Make Note.release.xcconfig"; path = "Target Support Files/Pods-Make Note/Pods-Make Note.release.xcconfig"; sourceTree = "<group>"; };
B5216B66C0B4A91C0A69128B /* PrivacyInfo.xcprivacy */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xml; name = PrivacyInfo.xcprivacy; path = Notesnook/PrivacyInfo.xcprivacy; sourceTree = "<group>"; };
B9989E5C777BB11343A62D09 /* Pods-Notesnook-NotesnookTests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Notesnook-NotesnookTests.debug.xcconfig"; path = "Target Support Files/Pods-Notesnook-NotesnookTests/Pods-Notesnook-NotesnookTests.debug.xcconfig"; sourceTree = "<group>"; };
+ C89265087EBE8B605EC6DBC0 /* libPods-Notesnook.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-Notesnook.a"; sourceTree = BUILT_PRODUCTS_DIR; };
ED297162215061F000B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = System/Library/Frameworks/JavaScriptCore.framework; sourceTree = SDKROOT; };
ED2971642150620600B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS12.0.sdk/System/Library/Frameworks/JavaScriptCore.framework; sourceTree = DEVELOPER_DIR; };
EF88477758968C47002AB99A /* Pods-Notesnook-Add to Notes.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Notesnook-Add to Notes.debug.xcconfig"; path = "Target Support Files/Pods-Notesnook-Add to Notes/Pods-Notesnook-Add to Notes.debug.xcconfig"; sourceTree = "<group>"; };
@@ -162,7 +158,7 @@
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
- A79A93DC9D0CAE8703462151 /* libPods-Notesnook-NotesnookTests.a in Frameworks */,
+ D5A503790A49186B183A716D /* libPods-Notesnook-NotesnookTests.a in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
@@ -170,8 +166,8 @@
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
- 2B3F87EC6B2264CD8ABA5DA8 /* libPods-Notesnook.a in Frameworks */,
6515C42F2580AA3000E83E39 /* StoreKit.framework in Frameworks */,
+ 543E4A8A0C7887D72387D34C /* libPods-Notesnook.a in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
@@ -202,7 +198,7 @@
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
- 2C45ABC3D976E2128085910D /* libPods-Notesnook-Make Note.a in Frameworks */,
+ BA1528FB9C1E0BD634C4169B /* libPods-Notesnook-Make Note.a in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
@@ -252,12 +248,12 @@
6515C42E2580AA2F00E83E39 /* StoreKit.framework */,
ED297162215061F000B7C4FE /* JavaScriptCore.framework */,
ED2971642150620600B7C4FE /* JavaScriptCore.framework */,
- 4BD34AE0C0FD2416E48803B8 /* libPods-Notesnook.a */,
- 068FA9BDFA207A50B0A9E597 /* libPods-Notesnook-NotesnookTests.a */,
41D57E9831C724F59F18FBAE /* libPods-Notesnook-Add to Notes.a */,
65AA857825E6DDEC00772A01 /* WidgetKit.framework */,
65AA857A25E6DDEC00772A01 /* SwiftUI.framework */,
- 224696B070BA15252D9BD04E /* libPods-Notesnook-Make Note.a */,
+ C89265087EBE8B605EC6DBC0 /* libPods-Notesnook.a */,
+ 71BC99808CA30E74689CBC70 /* libPods-Notesnook-Make Note.a */,
+ 724BD1232A0B1FBDC889F697 /* libPods-Notesnook-NotesnookTests.a */,
);
name = Frameworks;
sourceTree = "<group>";
@@ -460,7 +456,6 @@
65B5013C25A672B200E2D264 /* Sources */,
65B5013D25A672B200E2D264 /* Frameworks */,
65B5013E25A672B200E2D264 /* Resources */,
- 658D06A625A7446E008C70C0 /* Run Script */,
E81EC4451F76606456BCA61F /* [CP] Copy Pods Resources */,
);
buildRules = (
@@ -583,10 +578,6 @@
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
- 659201DC2EA7826D006B16DB /* Inter-Bold.ttf in Resources */,
- 659201DD2EA7826D006B16DB /* Inter-Italic.ttf in Resources */,
- 659201DE2EA7826D006B16DB /* Inter-Regular.ttf in Resources */,
- 659201DF2EA7826D006B16DB /* Inter-SemiBold.ttf in Resources */,
65C400DF2A80B6B600AA3DF5 /* MaterialCommunityIcons.ttf in Resources */,
65AD1F4A2F6289110033176F /* EvilIcons.ttf in Resources */,
65C149872A61151B005C40F1 /* extension.bundle in Resources */,
@@ -723,27 +714,6 @@
shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
showEnvVarsInLog = 0;
};
- 658D06A625A7446E008C70C0 /* Run Script */ = {
- isa = PBXShellScriptBuildPhase;
- alwaysOutOfDate = 1;
- buildActionMask = 12;
- files = (
- );
- inputFileListPaths = (
- );
- inputPaths = (
- "$(SRCROOT)/.xcode.env.local",
- "$(SRCROOT)/.xcode.env",
- );
- name = "Run Script";
- outputFileListPaths = (
- );
- outputPaths = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- shellPath = /bin/sh;
- shellScript = "set -e\n\nexport ENTRY_FILE=index.ext.js\n\nWITH_ENVIRONMENT=\"$REACT_NATIVE_PATH/scripts/xcode/with-environment.sh\"\nREACT_NATIVE_XCODE=\"$REACT_NATIVE_PATH/scripts/react-native-xcode.sh\"\n\n/bin/sh -c \"$WITH_ENVIRONMENT $REACT_NATIVE_XCODE\"\n";
- };
74EE9ED768E52033B174E41C /* [CP] Check Pods Manifest.lock */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
@@ -978,7 +948,7 @@
isa = XCBuildConfiguration;
baseConfigurationReference = B9989E5C777BB11343A62D09 /* Pods-Notesnook-NotesnookTests.debug.xcconfig */;
buildSettings = {
- ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
+ ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO;
BUNDLE_LOADER = "$(TEST_HOST)";
"EXCLUDED_ARCHS[sdk=iphonesimulator*]" = arm64;
GCC_PREPROCESSOR_DEFINITIONS = (
@@ -986,7 +956,7 @@
"$(inherited)",
);
INFOPLIST_FILE = NotesnookTests/Info.plist;
- IPHONEOS_DEPLOYMENT_TARGET = 12.0;
+ IPHONEOS_DEPLOYMENT_TARGET = 15.1;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
@@ -1007,12 +977,12 @@
isa = XCBuildConfiguration;
baseConfigurationReference = F284B149424757AABC0A96C2 /* Pods-Notesnook-NotesnookTests.release.xcconfig */;
buildSettings = {
- ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
+ ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO;
BUNDLE_LOADER = "$(TEST_HOST)";
COPY_PHASE_STRIP = NO;
"EXCLUDED_ARCHS[sdk=iphonesimulator*]" = arm64;
INFOPLIST_FILE = NotesnookTests/Info.plist;
- IPHONEOS_DEPLOYMENT_TARGET = 12.0;
+ IPHONEOS_DEPLOYMENT_TARGET = 15.1;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
@@ -1033,7 +1003,7 @@
isa = XCBuildConfiguration;
baseConfigurationReference = 19E7EB248446C3FE09F6E622 /* Pods-Notesnook.debug.xcconfig */;
buildSettings = {
- ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
+ ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO;
APPLICATION_EXTENSION_API_ONLY = NO;
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
ASSETCATALOG_COMPILER_INCLUDE_ALL_APPICON_ASSETS = NO;
@@ -1139,7 +1109,7 @@
isa = XCBuildConfiguration;
baseConfigurationReference = 77124A1C1FB538ED63FDEF82 /* Pods-Notesnook.release.xcconfig */;
buildSettings = {
- ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
+ ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO;
APPLICATION_EXTENSION_API_ONLY = NO;
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
ASSETCATALOG_COMPILER_INCLUDE_ALL_APPICON_ASSETS = NO;
@@ -1724,7 +1694,20 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
- IPHONEOS_DEPLOYMENT_TARGET = 12.0;
+ HEADER_SEARCH_PATHS = (
+ "$(inherited)",
+ "${PODS_CONFIGURATION_BUILD_DIR}/ReactCommon/ReactCommon.framework/Headers",
+ "${PODS_CONFIGURATION_BUILD_DIR}/ReactCommon/ReactCommon.framework/Headers/react/nativemodule/core",
+ "${PODS_CONFIGURATION_BUILD_DIR}/React-runtimeexecutor/React_runtimeexecutor.framework/Headers",
+ "${PODS_CONFIGURATION_BUILD_DIR}/React-runtimeexecutor/React_runtimeexecutor.framework/Headers/platform/ios",
+ "${PODS_CONFIGURATION_BUILD_DIR}/ReactCommon-Samples/ReactCommon_Samples.framework/Headers",
+ "${PODS_CONFIGURATION_BUILD_DIR}/ReactCommon-Samples/ReactCommon_Samples.framework/Headers/platform/ios",
+ "${PODS_CONFIGURATION_BUILD_DIR}/React-Fabric/React_Fabric.framework/Headers/react/renderer/components/view/platform/cxx",
+ "${PODS_CONFIGURATION_BUILD_DIR}/React-NativeModulesApple/React_NativeModulesApple.framework/Headers",
+ "${PODS_CONFIGURATION_BUILD_DIR}/React-graphics/React_graphics.framework/Headers",
+ "${PODS_CONFIGURATION_BUILD_DIR}/React-graphics/React_graphics.framework/Headers/react/renderer/graphics/platform/ios",
+ );
+ IPHONEOS_DEPLOYMENT_TARGET = 15.1;
LD_RUNPATH_SEARCH_PATHS = (
/usr/lib/swift,
"$(inherited)",
@@ -1790,7 +1773,20 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
- IPHONEOS_DEPLOYMENT_TARGET = 12.0;
+ HEADER_SEARCH_PATHS = (
+ "$(inherited)",
+ "${PODS_CONFIGURATION_BUILD_DIR}/ReactCommon/ReactCommon.framework/Headers",
+ "${PODS_CONFIGURATION_BUILD_DIR}/ReactCommon/ReactCommon.framework/Headers/react/nativemodule/core",
+ "${PODS_CONFIGURATION_BUILD_DIR}/React-runtimeexecutor/React_runtimeexecutor.framework/Headers",
+ "${PODS_CONFIGURATION_BUILD_DIR}/React-runtimeexecutor/React_runtimeexecutor.framework/Headers/platform/ios",
+ "${PODS_CONFIGURATION_BUILD_DIR}/ReactCommon-Samples/ReactCommon_Samples.framework/Headers",
+ "${PODS_CONFIGURATION_BUILD_DIR}/ReactCommon-Samples/ReactCommon_Samples.framework/Headers/platform/ios",
+ "${PODS_CONFIGURATION_BUILD_DIR}/React-Fabric/React_Fabric.framework/Headers/react/renderer/components/view/platform/cxx",
+ "${PODS_CONFIGURATION_BUILD_DIR}/React-NativeModulesApple/React_NativeModulesApple.framework/Headers",
+ "${PODS_CONFIGURATION_BUILD_DIR}/React-graphics/React_graphics.framework/Headers",
+ "${PODS_CONFIGURATION_BUILD_DIR}/React-graphics/React_graphics.framework/Headers/react/renderer/graphics/platform/ios",
+ );
+ IPHONEOS_DEPLOYMENT_TARGET = 15.1;
LD_RUNPATH_SEARCH_PATHS = (
/usr/lib/swift,
"$(inherited)",
diff --git a/apps/mobile/ios/Podfile.lock b/apps/mobile/ios/Podfile.lock
index 13176cb8e..1f42bbd93 100644
--- a/apps/mobile/ios/Podfile.lock
+++ b/apps/mobile/ios/Podfile.lock
@@ -144,7 +144,6 @@ PODS:
- React-RCTText (= 0.82.1)
- React-RCTVibration (= 0.82.1)
- React-callinvoker (0.82.1)
- - React-Codegen (0.1.0)
- React-Core (0.82.1):
- boost
- DoubleConversion
@@ -548,6 +547,7 @@ PODS:
- RCT-Folly
- RCT-Folly/Fabric
- React-domnativemodule
+ - React-featureflags
- React-featureflagsnativemodule
- React-idlecallbacksnativemodule
- React-jsi
@@ -2040,8 +2040,8 @@ PODS:
- RCT-Folly
- RCTRequired
- RCTTypeSafety
- - React-Codegen
- React-Core
+ - ReactCodegen
- ReactCommon/turbomodule/core
- react-native-html-to-pdf-lite (0.9.1):
- React
@@ -2056,7 +2056,6 @@ PODS:
- RCT-Folly/Fabric
- RCTRequired
- RCTTypeSafety
- - React-Codegen
- React-Core
- React-debug
- React-Fabric
@@ -2080,9 +2079,9 @@ PODS:
- RCT-Folly
- RCTRequired
- RCTTypeSafety
- - React-Codegen
- React-Core
- React-RCTFabric
+ - ReactCodegen
- ReactCommon/turbomodule/core
- react-native-mmkv-storage (12.0.1):
- boost
@@ -2800,6 +2799,7 @@ PODS:
- hermes-engine
- RCT-Folly
- RCT-Folly/Fabric
+ - React-cxxreact
- React-featureflags
- React-hermes
- React-jsi
@@ -2857,6 +2857,7 @@ PODS:
- hermes-engine
- RCT-Folly
- RCT-Folly/Fabric
+ - React-cxxreact
- React-jsi
- React-jsiexecutor
- React-performancetimeline
@@ -3676,7 +3677,6 @@ SPEC REPOS:
- MMKV
- MMKVCore
- pop
- - React-Codegen
- SDWebImage
- SocketRocket
- SSZipArchive
@@ -3977,12 +3977,11 @@ SPEC CHECKSUMS:
RCTTypeSafety: c693294e3993056955c3010eb1ebc574f1fcded6
React: aeece948ccf155182ea86a2395786ed31cf21c61
React-callinvoker: 05ad789505922d68c06cde1c8060e734df9fe182
- React-Codegen: 4b8b4817cea7a54b83851d4c1f91f79aa73de30a
React-Core: 956ac86b4d9b0c0fd9a14b9cc533aa297bb501c0
React-CoreModules: 3a8d39778cf9eeca40e419814e875da1a8e29855
React-cxxreact: db275765e1eb08f038599fb44114cf57ee0d18cd
React-debug: 1dfa1d1cbd93bdaffa3b140190829f9fd9e27985
- React-defaultsnativemodule: 35f353ba06901fb5e374bc56e750fde05cbb05b9
+ React-defaultsnativemodule: bfd4d6a815b28ff89cf0e8a2e424ebfe52d993ec
React-domnativemodule: cf9e1b1b520ce0e66396c2744b3eb6d419711c13
React-Fabric: c0b0c1ad70476d354b3da9fef96094f7b37804da
React-FabricComponents: 8c6861c5233cf0d5685cee301a979313090e2f57
@@ -4016,11 +4015,11 @@ SPEC CHECKSUMS:
react-native-fast-openpgp: 42a99ddfafbd132457cb7964062431fbaf666484
react-native-fingerprint-scanner: d5e143a361f3f01858e9c45141ddcabc4fd57055
react-native-get-random-values: d16467cf726c618e9c7a8c3c39c31faa2244bbba
- react-native-gzip: 794e0e964a0d9e1dfd1773fee938adb4d4310e26
+ react-native-gzip: 84f94a9000c3163c0fbe8f2b2899dd1b8832f883
react-native-html-to-pdf-lite: d606d3b72d9696c7a6d1e5f5b7536783faacef14
- react-native-image-resizer: 290b045c34c69db7574e4d08aadfc4abe1ff5a99
+ react-native-image-resizer: f7809d00f870e16084dfbd874b047a7632651101
react-native-in-app-review: 1516ba69d60d58053b7eb3aaaf8d2a5a74af8b57
- react-native-keep-awake: a351e6f67006b47f316ae2b17ee8ee69386167f4
+ react-native-keep-awake: ac1367fb951b1437ddaf3d21665415674b7bceb0
react-native-mmkv-storage: e84980084e371a9c2230bbde071536a7e1539406
react-native-netinfo: cec9c4e86083cb5b6aba0e0711f563e2fbbff187
react-native-notification-sounds: ce106d58df0dd384bccbd2e84fb53accab7cc068
@@ -4060,11 +4059,11 @@ SPEC CHECKSUMS:
React-RuntimeApple: 4136aee89257894955ef09e9f9ef74f0c27596be
React-RuntimeCore: e9a743d7de4bbd741b16e10b26078d815d6513ab
React-runtimeexecutor: 781e292362066af82fa2478d95c6b0e374421844
- React-RuntimeHermes: 6ab3c2847516769fc860d711814f1735859cad74
+ React-RuntimeHermes: 68bc8a05567426d01c2e765cf31f093f72cea37d
React-runtimescheduler: 824c83a5fd68b35396de6d4f2f9ae995daac861b
React-timing: 1ebc7102dd52a3edcc63534686bb156e12648411
React-utils: abf37b162f560cd0e3e5d037af30bb796512246d
- React-webperformancenativemodule: 50a57c713a90d27ae3ab947a6c9c8859bcb49709
+ React-webperformancenativemodule: c347972b7e24beb597d9cf4eab294273e405f6a3
ReactAppDependencyProvider: a45ef34bb22dc1c9b2ac1f74167d9a28af961176
ReactCodegen: 878add6c7d8ff8cea87697c44d29c03b79b6f2d9
ReactCommon: 804dc80944fa90b86800b43c871742ec005ca424
@@ -4099,6 +4098,6 @@ SPEC CHECKSUMS:
toolbar-android: c426ed5bd3dcccfed20fd79533efc0d1ae0ef018
Yoga: 689c8e04277f3ad631e60fe2a08e41d411daf8eb
-PODFILE CHECKSUM: 30b2045c0f4fc91402a43a9e2a872af803f2d6c3
+PODFILE CHECKSUM: 61007f83b1537a154e3ba33b41631032498cb2a2
COCOAPODS: 1.16.2
diff --git a/packages/editor-mobile/public/fonts/Inter-Black.ttf b/packages/editor-mobile/public/fonts/Inter-Black.ttf
deleted file mode 100644
index 69762d79c..000000000
Binary files a/packages/editor-mobile/public/fonts/Inter-Black.ttf and /dev/null differ
diff --git a/packages/editor-mobile/public/fonts/Inter-BlackItalic.ttf b/packages/editor-mobile/public/fonts/Inter-BlackItalic.ttf
deleted file mode 100644
index c15c3ba1b..000000000
Binary files a/packages/editor-mobile/public/fonts/Inter-BlackItalic.ttf and /dev/null differ
diff --git a/packages/editor-mobile/public/fonts/Inter-ExtraBold.ttf b/packages/editor-mobile/public/fonts/Inter-ExtraBold.ttf
deleted file mode 100644
index 0fdf1e051..000000000
Binary files a/packages/editor-mobile/public/fonts/Inter-ExtraBold.ttf and /dev/null differ
diff --git a/packages/editor-mobile/public/fonts/Inter-ExtraBoldItalic.ttf b/packages/editor-mobile/public/fonts/Inter-ExtraBoldItalic.ttf
deleted file mode 100644
index b1e2eae3e..000000000
Binary files a/packages/editor-mobile/public/fonts/Inter-ExtraBoldItalic.ttf and /dev/null differ
diff --git a/packages/editor-mobile/public/fonts/Inter-ExtraLight.ttf b/packages/editor-mobile/public/fonts/Inter-ExtraLight.ttf
deleted file mode 100644
index a758a018b..000000000
Binary files a/packages/editor-mobile/public/fonts/Inter-ExtraLight.ttf and /dev/null differ
diff --git a/packages/editor-mobile/public/fonts/Inter-ExtraLightItalic.ttf b/packages/editor-mobile/public/fonts/Inter-ExtraLightItalic.ttf
deleted file mode 100644
index 647ea6ae0..000000000
Binary files a/packages/editor-mobile/public/fonts/Inter-ExtraLightItalic.ttf and /dev/null differ
diff --git a/packages/editor-mobile/public/fonts/Inter-Light.ttf b/packages/editor-mobile/public/fonts/Inter-Light.ttf
deleted file mode 100644
index 2e0739314..000000000
Binary files a/packages/editor-mobile/public/fonts/Inter-Light.ttf and /dev/null differ
diff --git a/packages/editor-mobile/public/fonts/Inter-LightItalic.ttf b/packages/editor-mobile/public/fonts/Inter-LightItalic.ttf
deleted file mode 100644
index e711ef8c8..000000000
Binary files a/packages/editor-mobile/public/fonts/Inter-LightItalic.ttf and /dev/null differ
diff --git a/packages/editor-mobile/public/fonts/Inter-Thin.ttf b/packages/editor-mobile/public/fonts/Inter-Thin.ttf
deleted file mode 100644
index 4cc53b314..000000000
Binary files a/packages/editor-mobile/public/fonts/Inter-Thin.ttf and /dev/null differ
diff --git a/packages/editor-mobile/public/fonts/Inter-ThinItalic.ttf b/packages/editor-mobile/public/fonts/Inter-ThinItalic.ttf
deleted file mode 100644
index f6527437a..000000000
Binary files a/packages/editor-mobile/public/fonts/Inter-ThinItalic.ttf and /dev/null differ