Skip to content

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

build ios project

ammarahm-edbb3c80c8fa45
diff --git a/apps/mobile/ios/Make Note/Info.plist b/apps/mobile/ios/Make Note/Info.plist
index 901f7b8ec..03d51a5c5 100644
--- a/apps/mobile/ios/Make Note/Info.plist
+++ b/apps/mobile/ios/Make Note/Info.plist
@@ -17,11 +17,11 @@
<key>CFBundlePackageType</key>
<string>XPC!</string>
<key>CFBundleShortVersionString</key>
- <string>1.0</string>
+ <string>$(MARKETING_VERSION)</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
- <string>1</string>
+ <string>$(CURRENT_PROJECT_VERSION)</string>
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
diff --git a/apps/mobile/ios/Notesnook.xcodeproj/project.pbxproj b/apps/mobile/ios/Notesnook.xcodeproj/project.pbxproj
index 17ab8b774..fa484fe52 100644
--- a/apps/mobile/ios/Notesnook.xcodeproj/project.pbxproj
+++ b/apps/mobile/ios/Notesnook.xcodeproj/project.pbxproj
@@ -412,9 +412,7 @@
TestTargetID = 13B07F861A680F5B00A75B9A;
};
13B07F861A680F5B00A75B9A = {
- DevelopmentTeam = 53CWBG3QUC;
LastSwiftMigration = 1220;
- ProvisioningStyle = Automatic;
};
2D02E47A1E0B4A5D006451C7 = {
CreatedOnToolsVersion = 8.2.1;
@@ -427,9 +425,7 @@
};
65B5013F25A672B200E2D264 = {
CreatedOnToolsVersion = 12.2;
- DevelopmentTeam = 53CWBG3QUC;
LastSwiftMigration = 1220;
- ProvisioningStyle = Automatic;
};
};
};
@@ -1018,8 +1014,9 @@
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_ENTITLEMENTS = Notesnook/NotesnookDebug.entitlements;
CODE_SIGN_IDENTITY = "Apple Development";
+ "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "Apple Development";
CODE_SIGN_STYLE = Automatic;
- CURRENT_PROJECT_VERSION = 1;
+ CURRENT_PROJECT_VERSION = 1100;
DEVELOPMENT_TEAM = 53CWBG3QUC;
ENABLE_BITCODE = NO;
HEADER_SEARCH_PATHS = (
@@ -1090,7 +1087,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
- MARKETING_VERSION = 0.1.2;
+ MARKETING_VERSION = 1.1.0;
OTHER_LDFLAGS = (
"$(inherited)",
"-ObjC",
@@ -1115,9 +1112,9 @@
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_ENTITLEMENTS = Notesnook/Notesnook.entitlements;
- CODE_SIGN_IDENTITY = "Apple Development";
- CODE_SIGN_STYLE = Automatic;
- CURRENT_PROJECT_VERSION = 1;
+ CODE_SIGN_IDENTITY = "iPhone Distribution";
+ CODE_SIGN_STYLE = Manual;
+ CURRENT_PROJECT_VERSION = 1100;
DEVELOPMENT_TEAM = 53CWBG3QUC;
HEADER_SEARCH_PATHS = (
"$(inherited)",
@@ -1187,7 +1184,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
- MARKETING_VERSION = 0.1.2;
+ MARKETING_VERSION = 1.1.0;
OTHER_LDFLAGS = (
"$(inherited)",
"-ObjC",
@@ -1195,7 +1192,7 @@
);
PRODUCT_BUNDLE_IDENTIFIER = org.streetwriters.notesnook;
PRODUCT_NAME = Notesnook;
- PROVISIONING_PROFILE_SPECIFIER = "";
+ PROVISIONING_PROFILE_SPECIFIER = "Notesnook iOS Distribution";
SWIFT_OBJC_BRIDGING_HEADER = "Notesnook-Bridging-Header.h";
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
@@ -1343,6 +1340,7 @@
CODE_SIGN_ENTITLEMENTS = "Make Note/Make Note.entitlements";
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
+ CURRENT_PROJECT_VERSION = 1100;
DEBUG_INFORMATION_FORMAT = dwarf;
DEVELOPMENT_TEAM = 53CWBG3QUC;
GCC_C_LANGUAGE_STANDARD = gnu11;
@@ -1415,6 +1413,7 @@
"@executable_path/Frameworks",
"@executable_path/../../Frameworks",
);
+ MARKETING_VERSION = 1.1.0;
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
MTL_FAST_MATH = YES;
PRODUCT_BUNDLE_IDENTIFIER = org.streetwriters.notesnook.ext.share;
@@ -1441,9 +1440,10 @@
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
CODE_SIGN_ENTITLEMENTS = "Make Note/Make Note.entitlements";
- CODE_SIGN_IDENTITY = "Apple Development";
- CODE_SIGN_STYLE = Automatic;
+ CODE_SIGN_IDENTITY = "iPhone Distribution";
+ CODE_SIGN_STYLE = Manual;
COPY_PHASE_STRIP = NO;
+ CURRENT_PROJECT_VERSION = 1100;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
DEVELOPMENT_TEAM = 53CWBG3QUC;
GCC_C_LANGUAGE_STANDARD = gnu11;
@@ -1516,9 +1516,11 @@
"@executable_path/Frameworks",
"@executable_path/../../Frameworks",
);
+ MARKETING_VERSION = 1.1.0;
MTL_FAST_MATH = YES;
PRODUCT_BUNDLE_IDENTIFIER = org.streetwriters.notesnook.ext.share;
PRODUCT_NAME = "$(TARGET_NAME)";
+ PROVISIONING_PROFILE_SPECIFIER = "Notesnook Extension iOS Distribution";
SKIP_INSTALL = YES;
SWIFT_OBJC_BRIDGING_HEADER = "Make Note/Make Note-Bridging-Header.h";
SWIFT_VERSION = 5.0;
diff --git a/apps/mobile/ios/Notesnook/Info.plist b/apps/mobile/ios/Notesnook/Info.plist
index 706811a09..af3d63bc8 100644
--- a/apps/mobile/ios/Notesnook/Info.plist
+++ b/apps/mobile/ios/Notesnook/Info.plist
@@ -50,7 +50,7 @@
<dict/>
</array>
<key>CFBundleVersion</key>
- <string>1</string>
+ <string>$(CURRENT_PROJECT_VERSION)</string>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>LSSupportsOpeningDocumentsInPlace</key>
diff --git a/apps/mobile/ios/Podfile b/apps/mobile/ios/Podfile
index 0d9109252..db85c1a39 100644
--- a/apps/mobile/ios/Podfile
+++ b/apps/mobile/ios/Podfile
@@ -17,7 +17,7 @@ target 'Notesnook' do
pod 'MMKV'
use_react_native!(:path => config["reactNativePath"])
pod 'react-native-mmkv-storage', :path => '../node_modules/react-native-mmkv-storage/react-native-mmkv-storage.podspec'
-
+
# for share extension
target 'Make Note' do
use_native_modules!
@@ -54,7 +54,7 @@ end
post_install do |installer|
installer.pods_project.targets.each do |target|
- target.build_configurations.each do |config|
+ target.build_configurations.each do |config|
config.build_settings['APPLICATION_EXTENSION_API_ONLY'] = 'NO'
end
end
diff --git a/apps/mobile/ios/Podfile.lock b/apps/mobile/ios/Podfile.lock
index dfe15cb6f..6cdb8e614 100644
--- a/apps/mobile/ios/Podfile.lock
+++ b/apps/mobile/ios/Podfile.lock
@@ -196,7 +196,7 @@ PODS:
- React-Core
- react-native-get-random-values (1.5.0):
- React
- - react-native-html-to-pdf (0.8.0):
+ - react-native-html-to-pdf-lite (0.9.1):
- React
- react-native-keep-awake (1.0.4):
- React
@@ -312,8 +312,6 @@ PODS:
- Sentry (= 6.0.9)
- RNShare (3.8.5):
- React-Core
- - RNStoreReview (0.1.5):
- - React
- RNSVG (12.1.0):
- React
- RNTooltips (1.0.2):
@@ -354,7 +352,7 @@ DEPENDENCIES:
- React-jsinspector (from `../node_modules/react-native/ReactCommon/jsinspector`)
- react-native-document-picker (from `../node_modules/react-native-document-picker`)
- react-native-get-random-values (from `../node_modules/react-native-get-random-values`)
- - react-native-html-to-pdf (from `../node_modules/react-native-html-to-pdf`)
+ - react-native-html-to-pdf-lite (from `../node_modules/react-native-html-to-pdf-lite`)
- "react-native-keep-awake (from `../node_modules/@sayem314/react-native-keep-awake`)"
- react-native-mmkv-storage (from `../node_modules/react-native-mmkv-storage/react-native-mmkv-storage.podspec`)
- "react-native-netinfo (from `../node_modules/@react-native-community/netinfo`)"
@@ -391,7 +389,6 @@ DEPENDENCIES:
- RNSecureRandom (from `../node_modules/react-native-securerandom`)
- "RNSentry (from `../node_modules/@sentry/react-native`)"
- RNShare (from `../node_modules/react-native-share`)
- - RNStoreReview (from `../node_modules/react-native-store-review/ios`)
- RNSVG (from `../node_modules/react-native-svg`)
- RNTooltips (from `../node_modules/react-native-tooltips/ios`)
- RNVectorIcons (from `../node_modules/react-native-vector-icons`)
@@ -445,8 +442,8 @@ EXTERNAL SOURCES:
:path: "../node_modules/react-native-document-picker"
react-native-get-random-values:
:path: "../node_modules/react-native-get-random-values"
- react-native-html-to-pdf:
- :path: "../node_modules/react-native-html-to-pdf"
+ react-native-html-to-pdf-lite:
+ :path: "../node_modules/react-native-html-to-pdf-lite"
react-native-keep-awake:
:path: "../node_modules/@sayem314/react-native-keep-awake"
react-native-mmkv-storage:
@@ -519,8 +516,6 @@ EXTERNAL SOURCES:
:path: "../node_modules/@sentry/react-native"
RNShare:
:path: "../node_modules/react-native-share"
- RNStoreReview:
- :path: "../node_modules/react-native-store-review/ios"
RNSVG:
:path: "../node_modules/react-native-svg"
RNTooltips:
@@ -563,7 +558,7 @@ SPEC CHECKSUMS:
React-jsinspector: 58aef7155bc9a9683f5b60b35eccea8722a4f53a
react-native-document-picker: c9cbeb5445188a805ab19fa4061115d38fe1ea63
react-native-get-random-values: 1404bd5cc0ab0e287f75ee1c489555688fc65f89
- react-native-html-to-pdf: 1d1199917f56a98377d431bce84c2f275e48eb71
+ react-native-html-to-pdf-lite: 21bfb169bf4cbcd7bec9f736975ee1b3f5292d4a
react-native-keep-awake: e63964d58c890de02bfb6519dedb7d90b5c782de
react-native-mmkv-storage: 1af147d3491d82e9b8c9706d8c03f82a30d8f1b4
react-native-netinfo: 0212ce8604e88edf686f1481b925b17a42a52449
@@ -600,7 +595,6 @@ SPEC CHECKSUMS:
RNSecureRandom: 0dcee021fdb3d50cd5cee5db0ebf583c42f5af0e
RNSentry: 51972e3fe50e2fb38ae459af8c87d61f63f364db
RNShare: 7e22ba3bf66294ff7c122a1f2da8a8ec642091a0
- RNStoreReview: 62d6afd7c37db711a594bbffca6b0ea3a812b7a8
RNSVG: ce9d996113475209013317e48b05c21ee988d42e
RNTooltips: e13180e4339e2a85daabd09507f62a5a32d3dc8a
RNVectorIcons: bc69e6a278b14842063605de32bec61f0b251a59
@@ -609,6 +603,6 @@ SPEC CHECKSUMS:
toolbar-android: 85f3ef4d691469f2d304e7dee4bca013aa1ba1ff
Yoga: 4bd86afe9883422a7c4028c00e34790f560923d6
-PODFILE CHECKSUM: 35fc693c4d538e75ade1302857b725c6a8a63b89
+PODFILE CHECKSUM: 221f4e1fcc0976630135f88e7c95ccec5cc28b8e
COCOAPODS: 1.10.0
diff --git a/apps/mobile/src/utils/Colors.js b/apps/mobile/src/utils/Colors.js
index d5aab731a..438c0733e 100644
--- a/apps/mobile/src/utils/Colors.js
+++ b/apps/mobile/src/utils/Colors.js
@@ -1,7 +1,7 @@
import {eSendEvent} from '../services/EventManager';
import {eThemeUpdated} from './Events';
import {Platform, StatusBar} from 'react-native';
-import { AndroidModule } from '.';
+import {AndroidModule} from '.';
export const ACCENT = {
color: '#0560FF',
@@ -75,10 +75,9 @@ export const COLOR_SCHEME_DARK = {
};
export function getCurrentColors() {
- return COLOR_SCHEME
+ return COLOR_SCHEME;
}
-
export function setColorScheme(colors = COLOR_SCHEME, accent = ACCENT) {
COLOR_SCHEME = {...colors, accent: accent.color, shade: accent.shade};
@@ -86,10 +85,11 @@ export function setColorScheme(colors = COLOR_SCHEME, accent = ACCENT) {
COLOR_SCHEME.night ? 'light-content' : 'dark-content',
true,
);
- AndroidModule.setBackgroundColor(COLOR_SCHEME.bg);
+
if (Platform.OS === 'android') {
+ AndroidModule.setBackgroundColor(COLOR_SCHEME.bg);
StatusBar.setBackgroundColor('transparent', true);
- StatusBar.setTranslucent(true,true);
+ StatusBar.setTranslucent(true, true);
}
eSendEvent(eThemeUpdated);