mirror of
https://github.com/streetwriters/notesnook.git
synced 2026-08-29 10:09:26 +02:00
Merge pull request #10193 from streetwriters/mobile/release-3.4.8
mobile: release v3.4.8
This commit is contained in:
@@ -140,7 +140,7 @@ android {
|
||||
if (project.hasProperty("prBuildNumber")) {
|
||||
versionCode Integer.parseInt(prBuildNumber())
|
||||
} else {
|
||||
versionCode 3113
|
||||
versionCode 3114
|
||||
}
|
||||
versionName getNpmVersion()
|
||||
testBuildType System.getProperty('testBuildType', 'debug')
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
- Add option to clear note version history
|
||||
- Added sync status icon in sidebar
|
||||
- Added new reminder shortcut in app icon context menu
|
||||
- Improved editor saving reliability
|
||||
- Minor bug fixes and improvements
|
||||
|
||||
Thank you for using Notesnook!
|
||||
|
||||
@@ -5,6 +5,8 @@ require Pod::Executable.execute_command('node', ['-p',
|
||||
{paths: [process.argv[1]]},
|
||||
)', __dir__]).strip
|
||||
|
||||
require_relative 'scripts/patch_fmt_consteval'
|
||||
|
||||
platform :ios, min_ios_version_supported
|
||||
prepare_react_native_project!
|
||||
|
||||
@@ -66,6 +68,10 @@ post_install do |installer|
|
||||
:mac_catalyst_enabled => false,
|
||||
# :ccache_enabled => true
|
||||
)
|
||||
|
||||
# Keep fmt buildable on Xcode >= 26.2. See ios/scripts/patch_fmt_consteval.rb.
|
||||
PatchFmtConsteval.apply!(installer.sandbox.root)
|
||||
|
||||
installer.pods_project.targets.each do |target|
|
||||
target.build_configurations.each do |config|
|
||||
config.build_settings['APPLICATION_EXTENSION_API_ONLY'] = 'NO'
|
||||
|
||||
@@ -4092,6 +4092,6 @@ SPEC CHECKSUMS:
|
||||
toolbar-android: c426ed5bd3dcccfed20fd79533efc0d1ae0ef018
|
||||
Yoga: 689c8e04277f3ad631e60fe2a08e41d411daf8eb
|
||||
|
||||
PODFILE CHECKSUM: 3fe13efa8356dcc061862bfa9f453dcd12ede70a
|
||||
PODFILE CHECKSUM: 30b2045c0f4fc91402a43a9e2a872af803f2d6c3
|
||||
|
||||
COCOAPODS: 1.16.2
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// Production iOS build identifiers
|
||||
IOS_CURRENT_PROJECT_VERSION = 2191
|
||||
IOS_MARKETING_VERSION = 3.4.7
|
||||
IOS_CURRENT_PROJECT_VERSION = 2192
|
||||
IOS_MARKETING_VERSION = 3.4.8
|
||||
IOS_MAIN_BUNDLE_ID = org.streetwriters.notesnook
|
||||
IOS_WIDGET_BUNDLE_ID = org.streetwriters.notesnook.notewidget
|
||||
IOS_SHARE_BUNDLE_ID = org.streetwriters.notesnook.share
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// Production iOS build identifiers
|
||||
IOS_CURRENT_PROJECT_VERSION = 2191
|
||||
IOS_MARKETING_VERSION = 3.4.7
|
||||
IOS_CURRENT_PROJECT_VERSION = 2192
|
||||
IOS_MARKETING_VERSION = 3.4.8
|
||||
IOS_MAIN_BUNDLE_ID = org.streetwriters.notesnook
|
||||
IOS_WIDGET_BUNDLE_ID = org.streetwriters.notesnook.notewidget
|
||||
IOS_SHARE_BUNDLE_ID = org.streetwriters.notesnook.share
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// Staging iOS build identifiers
|
||||
IOS_CURRENT_PROJECT_VERSION = 2191
|
||||
IOS_MARKETING_VERSION = 3.4.7
|
||||
IOS_CURRENT_PROJECT_VERSION = 2192
|
||||
IOS_MARKETING_VERSION = 3.4.8
|
||||
IOS_MAIN_BUNDLE_ID = org.streetwriters.notesnook
|
||||
IOS_WIDGET_BUNDLE_ID = org.streetwriters.notesnook.notewidget
|
||||
IOS_SHARE_BUNDLE_ID = org.streetwriters.notesnook.share
|
||||
|
||||
77
apps/mobile/ios/scripts/patch_fmt_consteval.rb
Normal file
77
apps/mobile/ios/scripts/patch_fmt_consteval.rb
Normal file
@@ -0,0 +1,77 @@
|
||||
# Xcode >= 26.2 rejects fmt's compile-time format-string check with
|
||||
#
|
||||
# call to consteval function 'fmt::fstring<...>::fstring<char[N]>' is not a
|
||||
# constant expression
|
||||
#
|
||||
# React Native 0.81/0.82 vendor fmt 11.0.2, which hits this. It is an upstream
|
||||
# incompatibility (reproducible in a stock RN app), but left alone it makes those
|
||||
# RN versions permanently un-buildable on a modern Xcode.
|
||||
#
|
||||
# fmt's own escape hatch is FMT_USE_CONSTEVAL: 0 downgrades the format-string
|
||||
# check from compile-time to run-time. fmt 11.0.2 does not guard its detection
|
||||
# block with #ifndef, so we cannot simply predefine the macro -- and doing it
|
||||
# through the build settings is worse anyway:
|
||||
#
|
||||
# * a command-line GCC_PREPROCESSOR_DEFINITIONS outranks every per-target
|
||||
# value, silently dropping COCOAPODS=1, RCT_METRO_PORT, ...
|
||||
# * a second `post_install` block in the Podfile REPLACES React Native's own.
|
||||
#
|
||||
# So we patch the header itself, right after fmt has made up its mind and before
|
||||
# the first use of the macro. Idempotent, and safe to run on every pod install.
|
||||
|
||||
module PatchFmtConsteval
|
||||
MARKER = 'NOTESNOOK_FMT_CONSTEVAL_PATCH'.freeze
|
||||
|
||||
# The line that first consumes the macro; our override goes immediately above
|
||||
# it, i.e. after the whole detection cascade.
|
||||
ANCHOR = "#if FMT_USE_CONSTEVAL\n".freeze
|
||||
|
||||
OVERRIDE = <<~PATCH.freeze
|
||||
// #{MARKER}: Xcode >= 26.2 rejects fmt's consteval format-string check
|
||||
// (see ios/scripts/patch_fmt_consteval.rb). Applied automatically by
|
||||
// `pod install`; downgrades the check to run-time.
|
||||
#undef FMT_USE_CONSTEVAL
|
||||
#define FMT_USE_CONSTEVAL 0
|
||||
PATCH
|
||||
|
||||
# pods_root: the Pods directory (installer.sandbox.root).
|
||||
def self.apply!(pods_root)
|
||||
header = File.join(pods_root.to_s, 'fmt', 'include', 'fmt', 'base.h')
|
||||
|
||||
unless File.exist?(header)
|
||||
Pod::UI.warn "fmt: #{header} not found, skipping consteval patch."
|
||||
return
|
||||
end
|
||||
|
||||
contents = File.read(header)
|
||||
|
||||
if contents.include?(MARKER)
|
||||
Pod::UI.puts 'fmt: consteval patch already applied.'
|
||||
return
|
||||
end
|
||||
|
||||
index = contents.index(ANCHOR)
|
||||
if index.nil?
|
||||
Pod::UI.warn 'fmt: could not find `#if FMT_USE_CONSTEVAL` in base.h; ' \
|
||||
'the consteval patch was NOT applied. If this fmt version ' \
|
||||
'still uses a consteval format-string check, builds on ' \
|
||||
'Xcode >= 26.2 will fail -- update ' \
|
||||
'ios/scripts/patch_fmt_consteval.rb.'
|
||||
return
|
||||
end
|
||||
|
||||
contents.insert(index, OVERRIDE)
|
||||
|
||||
# CocoaPods checks pod sources out read-only (0444), so make the header
|
||||
# writable for the write and restore the original mode afterwards.
|
||||
mode = File.stat(header).mode & 0o7777
|
||||
begin
|
||||
File.chmod(mode | 0o200, header)
|
||||
File.write(header, contents)
|
||||
ensure
|
||||
File.chmod(mode, header)
|
||||
end
|
||||
|
||||
Pod::UI.puts 'fmt: patched base.h to set FMT_USE_CONSTEVAL=0 (Xcode >= 26.2 compatibility).'
|
||||
end
|
||||
end
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@notesnook/mobile",
|
||||
"version": "3.4.7",
|
||||
"version": "3.4.8",
|
||||
"private": true,
|
||||
"license": "GPL-3.0-or-later",
|
||||
"scripts": {
|
||||
|
||||
6
fastlane/metadata/android/en-US/changelogs/15574.txt
Normal file
6
fastlane/metadata/android/en-US/changelogs/15574.txt
Normal file
@@ -0,0 +1,6 @@
|
||||
- Added sync status icon in sidebar
|
||||
- Added new reminder shortcut in app icon context menu
|
||||
- Improved editor saving reliability
|
||||
- Minor bug fixes and improvements
|
||||
|
||||
Thank you for using Notesnook!
|
||||
Reference in New Issue
Block a user