Skip to content

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

mobile: release v3.0.27

Ammar Ahmed698866f53dae
diff --git a/apps/mobile/app/components/image-preview/index.tsx b/apps/mobile/app/components/image-preview/index.tsx
index 98620c389..62d5e1a18 100644
--- a/apps/mobile/app/components/image-preview/index.tsx
+++ b/apps/mobile/app/components/image-preview/index.tsx
@@ -106,8 +106,6 @@ const ImagePreview = () => {
setVisible(false);
}, [image]);
- console.log("image", image);
-
const renderHeader = React.useCallback(
() => (
<View
diff --git a/apps/mobile/app/services/intent.ts b/apps/mobile/app/services/intent.ts
index c4cdbdafe..a7264891b 100644
--- a/apps/mobile/app/services/intent.ts
+++ b/apps/mobile/app/services/intent.ts
@@ -48,26 +48,29 @@ export const IntentService = {
},
async onAppStateChanged() {
if (Platform.OS === "ios") return;
+ try {
+ const intent = NotesnookModule.getIntent();
- const intent = NotesnookModule.getIntent();
-
- if (intent["com.streetwriters.notesnook.OpenNoteId"]) {
- const note = await db.notes.note(
- intent["com.streetwriters.notesnook.OpenNoteId"]
- );
- if (note) {
- eSendEvent(eOnLoadNote, {
- item: note
- });
- tabBarRef.current?.goToPage(1, false);
+ if (intent["com.streetwriters.notesnook.OpenNoteId"]) {
+ const note = await db.notes.note(
+ intent["com.streetwriters.notesnook.OpenNoteId"]
+ );
+ if (note) {
+ eSendEvent(eOnLoadNote, {
+ item: note
+ });
+ tabBarRef.current?.goToPage(1, false);
+ }
+ } else if (intent["com.streetwriters.notesnook.OpenReminderId"]) {
+ const reminder = await db.reminders.reminder(
+ intent["com.streetwriters.notesnook.OpenReminderId"]
+ );
+ if (reminder) ReminderSheet.present(reminder);
+ } else if (intent["com.streetwriters.notesnook.NewReminder"]) {
+ ReminderSheet.present();
}
- } else if (intent["com.streetwriters.notesnook.OpenReminderId"]) {
- const reminder = await db.reminders.reminder(
- intent["com.streetwriters.notesnook.OpenReminderId"]
- );
- if (reminder) ReminderSheet.present(reminder);
- } else if (intent["com.streetwriters.notesnook.NewReminder"]) {
- ReminderSheet.present();
+ } catch (e) {
+ /* empty */
}
}
};
diff --git a/apps/mobile/app/services/notifications.ts b/apps/mobile/app/services/notifications.ts
index bbc801c42..a1230dcc5 100644
--- a/apps/mobile/app/services/notifications.ts
+++ b/apps/mobile/app/services/notifications.ts
@@ -260,7 +260,7 @@ async function updateRemindersForWidget() {
undefined,
{
sortBy: "dueDate",
- sortDirection: "desc"
+ sortDirection: "asc"
}
);
const activeReminders = [];
diff --git a/apps/mobile/native/android/app/build.gradle b/apps/mobile/native/android/app/build.gradle
index 58e73f64a..71fa96e39 100644
--- a/apps/mobile/native/android/app/build.gradle
+++ b/apps/mobile/native/android/app/build.gradle
@@ -116,7 +116,7 @@ android {
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
multiDexEnabled true
- versionCode 3036
+ versionCode 3037
versionName getNpmVersion()
testBuildType System.getProperty('testBuildType', 'debug')
testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner'
diff --git a/apps/mobile/native/android/app/proguard-rules.pro b/apps/mobile/native/android/app/proguard-rules.pro
index 8fbf1e6be..fae56f07d 100644
--- a/apps/mobile/native/android/app/proguard-rules.pro
+++ b/apps/mobile/native/android/app/proguard-rules.pro
@@ -57,4 +57,9 @@
-keep class org.apache.commons.io.** { *; }
# Background fetch
--keep class com.transistorsoft.rnbackgroundfetch.HeadlessTask { *; }
\ No newline at end of file
+-keep class com.transistorsoft.rnbackgroundfetch.HeadlessTask { *; }
+
+#Gson
+-keepattributes Signature
+-keep class com.google.gson.reflect.TypeToken { *; }
+-keep class * extends com.google.gson.reflect.TypeToken
\ No newline at end of file
diff --git a/apps/mobile/native/android/app/src/main/java/com/streetwriters/notesnook/NotePreviewWidget.java b/apps/mobile/native/android/app/src/main/java/com/streetwriters/notesnook/NotePreviewWidget.java
index b273700ba..87a87aff2 100644
--- a/apps/mobile/native/android/app/src/main/java/com/streetwriters/notesnook/NotePreviewWidget.java
+++ b/apps/mobile/native/android/app/src/main/java/com/streetwriters/notesnook/NotePreviewWidget.java
@@ -7,6 +7,7 @@ import android.appwidget.AppWidgetProvider;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
+import android.net.Uri;
import android.os.Build;
import android.os.Bundle;
import android.widget.RemoteViews;
@@ -24,13 +25,17 @@ public class NotePreviewWidget extends AppWidgetProvider {
}
Gson gson = new Gson();
Note note = gson.fromJson(data, Note.class);
- Intent intent = new Intent(context, MainActivity.class);
- intent.putExtra(OpenNoteId, note.getId());
- PendingIntent pendingIntent = PendingIntent.getActivity(context, 0, intent, PendingIntent.FLAG_UPDATE_CURRENT | PendingIntent.FLAG_IMMUTABLE, getActivityOptionsBundle());
RemoteViews views = new RemoteViews(context.getPackageName(), R.layout.note_widget);
views.setTextViewText(R.id.widget_title, note.getTitle());
views.setTextViewText(R.id.widget_body, note.getHeadline());
- views.setOnClickPendingIntent(R.id.widget_button, pendingIntent);
+
+ Intent intent = new Intent(context, MainActivity.class);
+ intent.putExtra(OpenNoteId, note.getId());
+ intent.putExtra(RCTNNativeModule.IntentType, "OpenNote");
+ intent.setData(Uri.parse("https://notesnook.com/open_note"));
+ PendingIntent pendingIntent = PendingIntent.getActivity(context, appWidgetId, intent, PendingIntent.FLAG_UPDATE_CURRENT | PendingIntent.FLAG_IMMUTABLE, getActivityOptionsBundle());
+ views.setOnClickPendingIntent(R.id.open_note, pendingIntent);
+
appWidgetManager.updateAppWidget(appWidgetId, views);
}
diff --git a/apps/mobile/native/android/app/src/main/java/com/streetwriters/notesnook/NoteWidget.java b/apps/mobile/native/android/app/src/main/java/com/streetwriters/notesnook/NoteWidget.java
index 5db78876b..99026f6a8 100644
--- a/apps/mobile/native/android/app/src/main/java/com/streetwriters/notesnook/NoteWidget.java
+++ b/apps/mobile/native/android/app/src/main/java/com/streetwriters/notesnook/NoteWidget.java
@@ -25,7 +25,7 @@ public class NoteWidget extends AppWidgetProvider {
static void setClickIntent(Context context, RemoteViews views) {
Intent intent = new Intent(context, ShareActivity.class);
PendingIntent pendingIntent = PendingIntent.getActivity(context, 0, intent, PendingIntent.FLAG_UPDATE_CURRENT | PendingIntent.FLAG_IMMUTABLE, getActivityOptionsBundle());
- views.setOnClickPendingIntent(R.id.widget_button, pendingIntent);
+ views.setOnClickPendingIntent(R.id.new_note, pendingIntent);
}
private static Bundle getActivityOptionsBundle() {
diff --git a/apps/mobile/native/android/app/src/main/java/com/streetwriters/notesnook/RCTNNativeModule.java b/apps/mobile/native/android/app/src/main/java/com/streetwriters/notesnook/RCTNNativeModule.java
index 2313bbed6..5faa69636 100644
--- a/apps/mobile/native/android/app/src/main/java/com/streetwriters/notesnook/RCTNNativeModule.java
+++ b/apps/mobile/native/android/app/src/main/java/com/streetwriters/notesnook/RCTNNativeModule.java
@@ -26,11 +26,13 @@ import com.streetwriters.notesnook.datatypes.Note;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
+import java.util.Objects;
public class RCTNNativeModule extends ReactContextBaseJavaModule {
Intent lastIntent;
ReactContext mContext;
+ static String IntentType = "com.streetwriters.notesnook.IntentType";
public RCTNNativeModule(ReactApplicationContext reactContext) {
super(reactContext);
@@ -138,9 +140,14 @@ public class RCTNNativeModule extends ReactContextBaseJavaModule {
if (extras != null && intent != lastIntent) {
lastIntent = intent;
- map.putString(NotePreviewWidget.OpenNoteId, extras.getString(NotePreviewWidget.OpenNoteId));
- map.putString(ReminderViewsService.OpenReminderId, extras.getString(ReminderViewsService.OpenReminderId));
- map.putString(ReminderWidgetProvider.NewReminder, extras.getString(ReminderWidgetProvider.NewReminder));
+ if (Objects.equals(extras.getString(IntentType), "NewReminder")) {
+ map.putString(ReminderWidgetProvider.NewReminder, extras.getString(ReminderWidgetProvider.NewReminder));
+ } else if (Objects.equals(extras.getString(IntentType), "OpenReminder")) {
+ map.putString(ReminderViewsService.OpenReminderId, extras.getString(ReminderViewsService.OpenReminderId));
+ } else if (Objects.equals(extras.getString(IntentType), "OpenNote")) {
+ map.putString(NotePreviewWidget.OpenNoteId, extras.getString(NotePreviewWidget.OpenNoteId));
+ }
+
}
}
return map;
diff --git a/apps/mobile/native/android/app/src/main/java/com/streetwriters/notesnook/ReminderViewsService.java b/apps/mobile/native/android/app/src/main/java/com/streetwriters/notesnook/ReminderViewsService.java
index 78f0033da..8449ca303 100644
--- a/apps/mobile/native/android/app/src/main/java/com/streetwriters/notesnook/ReminderViewsService.java
+++ b/apps/mobile/native/android/app/src/main/java/com/streetwriters/notesnook/ReminderViewsService.java
@@ -72,6 +72,7 @@ class ReminderRemoteViewsFactory implements RemoteViewsService.RemoteViewsFactor
final Intent fillInIntent = new Intent();
final Bundle extras = new Bundle();
extras.putString(ReminderViewsService.OpenReminderId, reminder.getId());
+ fillInIntent.putExtra(RCTNNativeModule.IntentType, "OpenReminder");
fillInIntent.putExtras(extras);
views.setOnClickFillInIntent(R.id.reminder_item_btn, fillInIntent);
return views;
diff --git a/apps/mobile/native/android/app/src/main/java/com/streetwriters/notesnook/ReminderWidgetProvider.java b/apps/mobile/native/android/app/src/main/java/com/streetwriters/notesnook/ReminderWidgetProvider.java
index 6cd1813ed..95c16887d 100644
--- a/apps/mobile/native/android/app/src/main/java/com/streetwriters/notesnook/ReminderWidgetProvider.java
+++ b/apps/mobile/native/android/app/src/main/java/com/streetwriters/notesnook/ReminderWidgetProvider.java
@@ -6,6 +6,7 @@ import android.appwidget.AppWidgetManager;
import android.appwidget.AppWidgetProvider;
import android.content.Context;
import android.content.Intent;
+import android.net.Uri;
import android.os.Build;
import android.os.Bundle;
import android.widget.RemoteViews;
@@ -32,18 +33,21 @@ public class ReminderWidgetProvider extends AppWidgetProvider {
}
static void updateAppWidget(Context context, AppWidgetManager appWidgetManager, int appWidgetId, RemoteViews views) {
- Intent intent = new Intent(context, MainActivity.class);
- PendingIntent pendingIntent = PendingIntent.getActivity(context, 0, intent, PendingIntent.FLAG_UPDATE_CURRENT | PendingIntent.FLAG_MUTABLE, getActivityOptionsBundle());
+ Intent listview_intent_template = new Intent(context, MainActivity.class);
+ listview_intent_template.setData(Uri.parse("https://notesnook.com/open_reminder"));
+ PendingIntent pendingIntent = PendingIntent.getActivity(context, appWidgetId, listview_intent_template, PendingIntent.FLAG_CANCEL_CURRENT | PendingIntent.FLAG_MUTABLE, getActivityOptionsBundle());
views.setPendingIntentTemplate(R.id.widget_list_view, pendingIntent);
- Intent intent2 = new Intent(context, MainActivity.class);
- intent2.putExtra(NewReminder, NewReminder);
- PendingIntent pendingIntent2 = PendingIntent.getActivity(context, 0, intent2, PendingIntent.FLAG_UPDATE_CURRENT | PendingIntent.FLAG_IMMUTABLE, getActivityOptionsBundle());
+ Intent new_reminder_intent = new Intent(context, MainActivity.class);
+ new_reminder_intent.putExtra(NewReminder, NewReminder);
+ new_reminder_intent.putExtra(RCTNNativeModule.IntentType, "NewReminder");
+ new_reminder_intent.setData(Uri.parse("https://notesnook.com/new_reminder"));
+ PendingIntent pendingIntent2 = PendingIntent.getActivity(context, appWidgetId, new_reminder_intent, PendingIntent.FLAG_CANCEL_CURRENT | PendingIntent.FLAG_IMMUTABLE, getActivityOptionsBundle());
views.setOnClickPendingIntent(R.id.add_button, pendingIntent2);
- Intent intent3 = new Intent(context, ReminderViewsService.class);
- intent3.putExtra(AppWidgetManager.EXTRA_APPWIDGET_ID, appWidgetId);
- views.setRemoteAdapter(R.id.widget_list_view, intent3);
+ Intent list_remote_adapter_intent = new Intent(context, ReminderViewsService.class);
+ list_remote_adapter_intent.putExtra(AppWidgetManager.EXTRA_APPWIDGET_ID, appWidgetId);
+ views.setRemoteAdapter(R.id.widget_list_view, list_remote_adapter_intent);
views.setEmptyView(R.id.widget_list_view, R.id.empty_view);
appWidgetManager.updateAppWidget(appWidgetId, views);
}
diff --git a/apps/mobile/native/android/app/src/main/java/com/streetwriters/notesnook/datatypes/BaseItem.java b/apps/mobile/native/android/app/src/main/java/com/streetwriters/notesnook/datatypes/BaseItem.java
index 20a4626e7..09861dc1a 100644
--- a/apps/mobile/native/android/app/src/main/java/com/streetwriters/notesnook/datatypes/BaseItem.java
+++ b/apps/mobile/native/android/app/src/main/java/com/streetwriters/notesnook/datatypes/BaseItem.java
@@ -1,5 +1,8 @@
package com.streetwriters.notesnook.datatypes;
+import androidx.annotation.Keep;
+
+@Keep
public class BaseItem {
private String id;
private String type;
diff --git a/apps/mobile/native/android/app/src/main/java/com/streetwriters/notesnook/datatypes/Note.java b/apps/mobile/native/android/app/src/main/java/com/streetwriters/notesnook/datatypes/Note.java
index 473bab8a4..0ff03c576 100644
--- a/apps/mobile/native/android/app/src/main/java/com/streetwriters/notesnook/datatypes/Note.java
+++ b/apps/mobile/native/android/app/src/main/java/com/streetwriters/notesnook/datatypes/Note.java
@@ -1,5 +1,8 @@
package com.streetwriters.notesnook.datatypes;
+import androidx.annotation.Keep;
+
+@Keep
public class Note extends BaseItem {
private String title;
private String headline;
diff --git a/apps/mobile/native/android/app/src/main/java/com/streetwriters/notesnook/datatypes/Reminder.java b/apps/mobile/native/android/app/src/main/java/com/streetwriters/notesnook/datatypes/Reminder.java
index 682abced4..715199ca6 100644
--- a/apps/mobile/native/android/app/src/main/java/com/streetwriters/notesnook/datatypes/Reminder.java
+++ b/apps/mobile/native/android/app/src/main/java/com/streetwriters/notesnook/datatypes/Reminder.java
@@ -1,7 +1,10 @@
package com.streetwriters.notesnook.datatypes;
+import androidx.annotation.Keep;
+
import java.util.concurrent.TimeUnit;
+@Keep
public class Reminder extends BaseItem {
private String title;
private String description;
diff --git a/apps/mobile/native/android/app/src/main/res/layout/new_note_widget.xml b/apps/mobile/native/android/app/src/main/res/layout/new_note_widget.xml
index fddd56b51..622886bd1 100644
--- a/apps/mobile/native/android/app/src/main/res/layout/new_note_widget.xml
+++ b/apps/mobile/native/android/app/src/main/res/layout/new_note_widget.xml
@@ -3,18 +3,16 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@android:color/transparent"
- android:padding="10dp"
android:theme="@style/ThemeOverlay.Notesnook.AppWidgetContainer">
<LinearLayout
android:layout_width="match_parent"
- android:id="@+id/widget_button"
+ android:id="@+id/new_note"
android:layout_height="50dp"
android:layout_centerHorizontal="true"
android:layout_centerVertical="true"
android:background="@drawable/layout_bg"
android:paddingHorizontal="10dp"
- android:elevation="5dp"
android:orientation="horizontal">
<ImageView
diff --git a/apps/mobile/native/android/app/src/main/res/layout/new_note_widget_icon.xml b/apps/mobile/native/android/app/src/main/res/layout/new_note_widget_icon.xml
index 3be10dbef..b770d6128 100644
--- a/apps/mobile/native/android/app/src/main/res/layout/new_note_widget_icon.xml
+++ b/apps/mobile/native/android/app/src/main/res/layout/new_note_widget_icon.xml
@@ -1,6 +1,7 @@
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="50dp"
+ android:id="@+id/new_note"
android:background="@drawable/layout_bg"
android:padding="@dimen/widget_margin">
diff --git a/apps/mobile/native/android/app/src/main/res/layout/note_widget.xml b/apps/mobile/native/android/app/src/main/res/layout/note_widget.xml
index 2ecac38f7..8a97ce0d3 100644
--- a/apps/mobile/native/android/app/src/main/res/layout/note_widget.xml
+++ b/apps/mobile/native/android/app/src/main/res/layout/note_widget.xml
@@ -3,12 +3,11 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@android:color/transparent"
- android:padding="10dp"
android:theme="@style/ThemeOverlay.Notesnook.AppWidgetContainer">
<LinearLayout
android:layout_width="match_parent"
- android:id="@+id/widget_button"
+ android:id="@+id/open_note"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_centerVertical="true"
diff --git a/apps/mobile/native/android/releasenotes/whatsnew-en-US b/apps/mobile/native/android/releasenotes/whatsnew-en-US
index d9d7860e5..f5e7f7fe1 100644
--- a/apps/mobile/native/android/releasenotes/whatsnew-en-US
+++ b/apps/mobile/native/android/releasenotes/whatsnew-en-US
@@ -1,3 +1,6 @@
-- Bug fixes and small improvements
+- Added a widget to add a note to home screen for quick access
+- Added a widget that shows upcoming reminders on home screen
+- Now you can share an image with other apps from image viewer
+- Many small bug fixes and improvements
Thank you for using Notesnook!
\ No newline at end of file
diff --git a/apps/mobile/native/ios/Notesnook.xcodeproj/project.pbxproj b/apps/mobile/native/ios/Notesnook.xcodeproj/project.pbxproj
index 2b0c1ead9..ef6365802 100644
--- a/apps/mobile/native/ios/Notesnook.xcodeproj/project.pbxproj
+++ b/apps/mobile/native/ios/Notesnook.xcodeproj/project.pbxproj
@@ -1063,7 +1063,7 @@
CODE_SIGN_IDENTITY = "Apple Development";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "Apple Development";
CODE_SIGN_STYLE = Automatic;
- CURRENT_PROJECT_VERSION = 2123;
+ CURRENT_PROJECT_VERSION = 2124;
DEVELOPMENT_TEAM = 53CWBG3QUC;
ENABLE_BITCODE = NO;
"EXCLUDED_ARCHS[sdk=iphonesimulator*]" = arm64;
@@ -1137,7 +1137,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
- MARKETING_VERSION = 3.0.26;
+ MARKETING_VERSION = 3.0.27;
OTHER_LDFLAGS = (
"$(inherited)",
"-ObjC",
@@ -1168,7 +1168,7 @@
CODE_SIGN_IDENTITY = "Apple Development";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Distribution";
CODE_SIGN_STYLE = Manual;
- CURRENT_PROJECT_VERSION = 2123;
+ CURRENT_PROJECT_VERSION = 2124;
DEVELOPMENT_TEAM = "";
"DEVELOPMENT_TEAM[sdk=iphoneos*]" = 53CWBG3QUC;
"EXCLUDED_ARCHS[sdk=iphonesimulator*]" = arm64;
@@ -1242,7 +1242,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
- MARKETING_VERSION = 3.0.26;
+ MARKETING_VERSION = 3.0.27;
ONLY_ACTIVE_ARCH = NO;
OTHER_LDFLAGS = (
"$(inherited)",
@@ -1401,7 +1401,7 @@
CODE_SIGN_IDENTITY = "Apple Development";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "Apple Development";
CODE_SIGN_STYLE = Automatic;
- CURRENT_PROJECT_VERSION = 2123;
+ CURRENT_PROJECT_VERSION = 2124;
DEBUG_INFORMATION_FORMAT = dwarf;
DEVELOPMENT_TEAM = 53CWBG3QUC;
"EXCLUDED_ARCHS[sdk=iphonesimulator*]" = arm64;
@@ -1413,7 +1413,7 @@
"@executable_path/Frameworks",
"@executable_path/../../Frameworks",
);
- MARKETING_VERSION = 3.0.26;
+ MARKETING_VERSION = 3.0.27;
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
MTL_FAST_MATH = YES;
PRODUCT_BUNDLE_IDENTIFIER = org.streetwriters.notesnook.notewidget;
@@ -1444,7 +1444,7 @@
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Distribution";
CODE_SIGN_STYLE = Manual;
COPY_PHASE_STRIP = NO;
- CURRENT_PROJECT_VERSION = 2123;
+ CURRENT_PROJECT_VERSION = 2124;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
DEVELOPMENT_TEAM = "";
"DEVELOPMENT_TEAM[sdk=iphoneos*]" = 53CWBG3QUC;
@@ -1457,7 +1457,7 @@
"@executable_path/Frameworks",
"@executable_path/../../Frameworks",
);
- MARKETING_VERSION = 3.0.26;
+ MARKETING_VERSION = 3.0.27;
MTL_FAST_MATH = YES;
PRODUCT_BUNDLE_IDENTIFIER = org.streetwriters.notesnook.notewidget;
PRODUCT_NAME = "$(TARGET_NAME)";
@@ -1487,7 +1487,7 @@
CODE_SIGN_ENTITLEMENTS = "Make Note/Make Note.entitlements";
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
- CURRENT_PROJECT_VERSION = 2123;
+ CURRENT_PROJECT_VERSION = 2124;
DEBUG_INFORMATION_FORMAT = dwarf;
DEVELOPMENT_TEAM = 53CWBG3QUC;
"EXCLUDED_ARCHS[sdk=iphonesimulator*]" = arm64;
@@ -1561,7 +1561,7 @@
"@executable_path/Frameworks",
"@executable_path/../../Frameworks",
);
- MARKETING_VERSION = 3.0.26;
+ MARKETING_VERSION = 3.0.27;
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
MTL_FAST_MATH = YES;
PRODUCT_BUNDLE_IDENTIFIER = org.streetwriters.notesnook.share;
@@ -1592,7 +1592,7 @@
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Distribution";
CODE_SIGN_STYLE = Manual;
COPY_PHASE_STRIP = NO;
- CURRENT_PROJECT_VERSION = 2123;
+ CURRENT_PROJECT_VERSION = 2124;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
DEVELOPMENT_TEAM = "";
"DEVELOPMENT_TEAM[sdk=iphoneos*]" = 53CWBG3QUC;
@@ -1667,7 +1667,7 @@
"@executable_path/Frameworks",
"@executable_path/../../Frameworks",
);
- MARKETING_VERSION = 3.0.26;
+ MARKETING_VERSION = 3.0.27;
MTL_FAST_MATH = YES;
PRODUCT_BUNDLE_IDENTIFIER = org.streetwriters.notesnook.share;
PRODUCT_NAME = "$(TARGET_NAME)";
diff --git a/apps/mobile/package.json b/apps/mobile/package.json
index a50dd799e..6aae6c453 100644
--- a/apps/mobile/package.json
+++ b/apps/mobile/package.json
@@ -1,6 +1,6 @@
{
"name": "@notesnook/mobile",
- "version": "3.0.26",
+ "version": "3.0.27",
"private": true,
"license": "GPL-3.0-or-later",
"workspaces": [
@@ -54,4 +54,4 @@
"react": "18.2.0",
"react-native": "0.74.5"
}
-}
+}
\ No newline at end of file
diff --git a/fastlane/metadata/android/en-US/changelogs/15174.txt b/fastlane/metadata/android/en-US/changelogs/15174.txt
new file mode 100644
index 000000000..f5e7f7fe1
--- /dev/null
+++ b/fastlane/metadata/android/en-US/changelogs/15174.txt
@@ -0,0 +1,6 @@
+- Added a widget to add a note to home screen for quick access
+- Added a widget that shows upcoming reminders on home screen
+- Now you can share an image with other apps from image viewer
+- Many small bug fixes and improvements
+
+Thank you for using Notesnook!
\ No newline at end of file
diff --git a/packages/editor-mobile/src/hooks/useEditorController.ts b/packages/editor-mobile/src/hooks/useEditorController.ts
index 6760ed8c2..dae40f622 100644
--- a/packages/editor-mobile/src/hooks/useEditorController.ts
+++ b/packages/editor-mobile/src/hooks/useEditorController.ts
@@ -79,19 +79,23 @@ function isInViewport(element: any) {
function scrollIntoView(editor: Editor) {
setTimeout(() => {
- const node = editor?.state.selection.$from;
- const dom = node ? editor?.view?.domAtPos(node.pos) : null;
- let domNode = dom?.node;
-
- if (domNode) {
- if (domNode.nodeType === Node.TEXT_NODE && domNode.parentNode) {
- domNode = domNode.parentNode;
+ try {
+ const node = editor?.state.selection.$from;
+ const dom = node ? editor?.view?.domAtPos?.(node.pos) : null;
+ let domNode = dom?.node;
+
+ if (domNode) {
+ if (domNode.nodeType === Node.TEXT_NODE && domNode.parentNode) {
+ domNode = domNode.parentNode;
+ }
+ if (isInViewport(domNode)) return;
+ (domNode as HTMLElement).scrollIntoView({
+ behavior: "smooth",
+ block: "end"
+ });
}
- if (isInViewport(domNode)) return;
- (domNode as HTMLElement).scrollIntoView({
- behavior: "smooth",
- block: "end"
- });
+ } catch (e) {
+ /* empty */
}
}, 100);
}