Skip to content

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

update ios project to 1.5.5

ammarahm-ed19f1a52ff552
diff --git a/apps/mobile/ios/Notesnook.xcodeproj/project.pbxproj b/apps/mobile/ios/Notesnook.xcodeproj/project.pbxproj
index 397329b41..0a3268cdf 100644
--- a/apps/mobile/ios/Notesnook.xcodeproj/project.pbxproj
+++ b/apps/mobile/ios/Notesnook.xcodeproj/project.pbxproj
@@ -1040,7 +1040,7 @@
CODE_SIGN_IDENTITY = "Apple Development";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "Apple Development";
CODE_SIGN_STYLE = Automatic;
- CURRENT_PROJECT_VERSION = 1540;
+ CURRENT_PROJECT_VERSION = 1550;
DEVELOPMENT_TEAM = 53CWBG3QUC;
ENABLE_BITCODE = NO;
GCC_GENERATE_DEBUGGING_SYMBOLS = YES;
@@ -1112,7 +1112,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
- MARKETING_VERSION = 1.5.40;
+ MARKETING_VERSION = 1.5.50;
OTHER_LDFLAGS = (
"$(inherited)",
"-ObjC",
@@ -1140,7 +1140,7 @@
CODE_SIGN_ENTITLEMENTS = Notesnook/Notesnook.entitlements;
CODE_SIGN_IDENTITY = "iPhone Distribution";
CODE_SIGN_STYLE = Manual;
- CURRENT_PROJECT_VERSION = 1540;
+ CURRENT_PROJECT_VERSION = 1550;
DEVELOPMENT_TEAM = 53CWBG3QUC;
GCC_GENERATE_DEBUGGING_SYMBOLS = YES;
HEADER_SEARCH_PATHS = (
@@ -1211,7 +1211,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
- MARKETING_VERSION = 1.5.40;
+ MARKETING_VERSION = 1.5.50;
OTHER_LDFLAGS = (
"$(inherited)",
"-ObjC",
@@ -1367,7 +1367,7 @@
CODE_SIGN_ENTITLEMENTS = "Make Note/Make Note.entitlements";
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
- CURRENT_PROJECT_VERSION = 1540;
+ CURRENT_PROJECT_VERSION = 1550;
DEBUG_INFORMATION_FORMAT = dwarf;
DEVELOPMENT_TEAM = 53CWBG3QUC;
GCC_C_LANGUAGE_STANDARD = gnu11;
@@ -1440,7 +1440,7 @@
"@executable_path/Frameworks",
"@executable_path/../../Frameworks",
);
- MARKETING_VERSION = 1.5.40;
+ MARKETING_VERSION = 1.5.50;
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
MTL_FAST_MATH = YES;
PRODUCT_BUNDLE_IDENTIFIER = org.streetwriters.notesnook.share;
@@ -1470,7 +1470,7 @@
CODE_SIGN_IDENTITY = "iPhone Distribution";
CODE_SIGN_STYLE = Manual;
COPY_PHASE_STRIP = NO;
- CURRENT_PROJECT_VERSION = 1540;
+ CURRENT_PROJECT_VERSION = 1550;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
DEVELOPMENT_TEAM = 53CWBG3QUC;
GCC_C_LANGUAGE_STANDARD = gnu11;
@@ -1543,7 +1543,7 @@
"@executable_path/Frameworks",
"@executable_path/../../Frameworks",
);
- MARKETING_VERSION = 1.5.40;
+ MARKETING_VERSION = 1.5.50;
MTL_FAST_MATH = YES;
PRODUCT_BUNDLE_IDENTIFIER = org.streetwriters.notesnook.share;
PRODUCT_NAME = "$(TARGET_NAME)";
diff --git a/apps/mobile/ios/Podfile.lock b/apps/mobile/ios/Podfile.lock
index 66c4e85ac..d270e45f4 100644
--- a/apps/mobile/ios/Podfile.lock
+++ b/apps/mobile/ios/Podfile.lock
@@ -335,6 +335,8 @@ PODS:
- React-Core
- RNCCheckbox (0.5.8):
- React-Core
+ - RNCClipboard (1.8.4):
+ - React-Core
- RNCMaskedView (0.1.11):
- React
- RNCPushNotificationIOS (1.8.0):
@@ -443,6 +445,7 @@ DEPENDENCIES:
- rn-extensions-share (from `../node_modules/rn-extensions-share`)
- rn-fetch-blob (from `../node_modules/rn-fetch-blob`)
- "RNCCheckbox (from `../node_modules/@react-native-community/checkbox`)"
+ - "RNCClipboard (from `../node_modules/@react-native-clipboard/clipboard`)"
- "RNCMaskedView (from `../node_modules/@react-native-community/masked-view`)"
- "RNCPushNotificationIOS (from `../node_modules/@react-native-community/push-notification-ios`)"
- RNDeviceInfo (from `../node_modules/react-native-device-info`)
@@ -570,6 +573,8 @@ EXTERNAL SOURCES:
:path: "../node_modules/rn-fetch-blob"
RNCCheckbox:
:path: "../node_modules/@react-native-community/checkbox"
+ RNCClipboard:
+ :path: "../node_modules/@react-native-clipboard/clipboard"
RNCMaskedView:
:path: "../node_modules/@react-native-community/masked-view"
RNCPushNotificationIOS:
@@ -674,6 +679,7 @@ SPEC CHECKSUMS:
rn-extensions-share: 3f0ecce20dfbca1f0358deb4ebfb9ee121a6d92a
rn-fetch-blob: f065bb7ab7fb48dd002629f8bdcb0336602d3cba
RNCCheckbox: 6bd119c26c6eb8264a29d59ff66cb70a14de3349
+ RNCClipboard: ddd4d291537f1667209c9c405aaa4307297e252e
RNCMaskedView: 0e1bc4bfa8365eba5fbbb71e07fbdc0555249489
RNCPushNotificationIOS: 61a7c72bd1ebad3568025957d001e0f0e7b32191
RNDeviceInfo: ace1442cd0f7d01292a39a3b587666177eaf8cb0
@@ -701,4 +707,4 @@ SPEC CHECKSUMS:
PODFILE CHECKSUM: b0855a87f6220ed2901b0f35ebbd45aa7795a696
-COCOAPODS: 1.10.1
+COCOAPODS: 1.11.2
diff --git a/apps/mobile/src/services/PremiumService.js b/apps/mobile/src/services/PremiumService.js
index 503e95280..142eacc75 100644
--- a/apps/mobile/src/services/PremiumService.js
+++ b/apps/mobile/src/services/PremiumService.js
@@ -1,5 +1,6 @@
import {CHECK_IDS} from 'notes-core/common';
import * as RNIap from 'react-native-iap';
+import InAppBrowser from 'react-native-inappbrowser-reborn';
import {useMessageStore, useUserStore} from '../provider/stores';
import {itemSkus, SUBSCRIPTION_STATUS} from '../utils';
import {db} from '../utils/DB';
@@ -43,6 +44,7 @@ async function setPremiumStatus() {
}
}
+
function getMontlySub() {
let _product = {
localizedPrice: '$4.49'
diff --git a/apps/mobile/src/views/Editor/Functions.js b/apps/mobile/src/views/Editor/Functions.js
index d134bd657..4362c9350 100644
--- a/apps/mobile/src/views/Editor/Functions.js
+++ b/apps/mobile/src/views/Editor/Functions.js
@@ -109,7 +109,7 @@ export const CHECK_STATUS = `(function() {
});
window.ReactNativeWebView.postMessage(msg)
- },1)
+ },${Platform.OS === "ios" ? "300" : "1"})
})();`;
export function getNote() {
@@ -197,6 +197,7 @@ export const loadNote = async item => {
if (getNote()) {
await clearEditor(true, true, true);
}
+ disableSaving = false;
clearNote();
noteEdited = false;
if (Platform.OS === 'android') {
@@ -229,6 +230,7 @@ export const loadNote = async item => {
if (getNote()) {
await clearEditor(true, false, true);
}
+ disableSaving = false;
console.log('cleared editor');
noteEdited = false;
await setNote(item);
@@ -449,6 +451,7 @@ function onNoteChange() {
}
let cTimeout = null;
+let disableSaving = false;
export async function clearEditor(
clear = true,
reset = true,
@@ -456,6 +459,7 @@ export async function clearEditor(
) {
tiny.call(EditorWebView, tiny.isLoading);
clear && (await clearTimer(true));
+ disableSaving = true;
clearNote();
if (cTimeout) {
clearTimeout(cTimeout);
@@ -546,12 +550,17 @@ async function addToCollection(id) {
}
}
let isSaving = false;
-
+console.log('loaded now')
export async function saveNote(preventUpdate) {
+ if (disableSaving) {
+ console.log('saving is disabled');
+ return;
+ }
+
+ console.log('NOTE_SAVE_CALLED', id, noteEdited);
if (!noteEdited) return;
if (isSaving && !id) return;
isSaving = true;
- console.log('NOTE_SAVE_CALLED', id, noteEdited);
try {
if (id && !db.notes.note(id)) {
clearNote();
diff --git a/apps/mobile/src/views/Settings/index.js b/apps/mobile/src/views/Settings/index.js
index c9b6686bf..9e279961c 100644
--- a/apps/mobile/src/views/Settings/index.js
+++ b/apps/mobile/src/views/Settings/index.js
@@ -1645,9 +1645,9 @@ export const SettingsDeveloperOptions = ({isSheet}) => {
const devModeList = [
{
- name: 'Enable developer mode',
+ name: 'Enable debug mode',
func: toggleDevMode,
- desc: 'Backup your data to phone storage',
+ desc: 'Show debug options on items',
customComponent: (
<ToggleSwitch
isOn={settings.devMode}