mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2026-12-02 18:32:55 +00:00
Merge branch 'feature/macos-15'
This commit is contained in:
commit
f4828e53e8
33 files changed
+139
-24
No files matched your search
@@ -30,11 +30,22 @@ private extension AboutWindowController {
|
||||
window?.titlebarAppearsTransparent = true
|
||||
window?.titleVisibility = .hidden
|
||||
window?.styleMask.insert(.fullSizeContentView)
|
||||
if let contentView = window?.contentView {
|
||||
let visualEffectView = NSGlassEffectView(frame: contentView.bounds)
|
||||
visualEffectView.tintColor = .clear
|
||||
visualEffectView.autoresizingMask = [.width, .height]
|
||||
contentView.addSubview(visualEffectView, positioned: .below, relativeTo: nil)
|
||||
if #available(macOS 26.0, *) {
|
||||
if let contentView = window?.contentView {
|
||||
let visualEffectView = NSGlassEffectView(frame: contentView.bounds)
|
||||
visualEffectView.tintColor = .clear
|
||||
visualEffectView.autoresizingMask = [.width, .height]
|
||||
contentView.addSubview(visualEffectView, positioned: .below, relativeTo: nil)
|
||||
}
|
||||
} else {
|
||||
if let contentView = window?.contentView {
|
||||
let visualEffectView = NSVisualEffectView(frame: contentView.bounds)
|
||||
visualEffectView.blendingMode = .behindWindow
|
||||
visualEffectView.material = .underWindowBackground
|
||||
visualEffectView.state = .active
|
||||
visualEffectView.autoresizingMask = [.width, .height]
|
||||
contentView.addSubview(visualEffectView, positioned: .below, relativeTo: nil)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -132,9 +132,11 @@ private extension DetailWebView {
|
||||
}
|
||||
|
||||
func updateObscuredContentInsets() {
|
||||
let updatedObscuredContentInsets = NSEdgeInsets(top: toolbarHeight, left: 0, bottom: 0, right: 0)
|
||||
if obscuredContentInsets != updatedObscuredContentInsets {
|
||||
obscuredContentInsets = updatedObscuredContentInsets
|
||||
if #available(macOS 26.0, *) {
|
||||
let updatedObscuredContentInsets = NSEdgeInsets(top: toolbarHeight, left: 0, bottom: 0, right: 0)
|
||||
if obscuredContentInsets != updatedObscuredContentInsets {
|
||||
obscuredContentInsets = updatedObscuredContentInsets
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -94,7 +94,9 @@ final class MainWindowController: NSWindowController, NSUserInterfaceValidations
|
||||
|
||||
timelineContainerViewController = splitViewController?.splitViewItems[1].viewController as? TimelineContainerViewController
|
||||
timelineContainerViewController!.delegate = self
|
||||
splitViewController?.splitViewItems[1].automaticallyAdjustsSafeAreaInsets = true
|
||||
if #available(macOS 26.0, *) {
|
||||
splitViewController?.splitViewItems[1].automaticallyAdjustsSafeAreaInsets = true
|
||||
}
|
||||
|
||||
detailViewController = splitViewController?.splitViewItems[2].viewController as? DetailViewController
|
||||
|
||||
|
||||
@@ -3,3 +3,4 @@
|
||||
/Packages
|
||||
/*.xcodeproj
|
||||
xcuserdata/
|
||||
Package.resolved
|
||||
@@ -3,7 +3,7 @@ import PackageDescription
|
||||
|
||||
let package = Package(
|
||||
name: "Account",
|
||||
platforms: [.macOS(.v26), .iOS(.v26)],
|
||||
platforms: [.macOS(.v15), .iOS(.v26)],
|
||||
products: [
|
||||
.library(
|
||||
name: "Account",
|
||||
|
||||
@@ -3,3 +3,4 @@
|
||||
/Packages
|
||||
/*.xcodeproj
|
||||
xcuserdata/
|
||||
Package.resolved
|
||||
@@ -3,7 +3,7 @@ import PackageDescription
|
||||
|
||||
let package = Package(
|
||||
name: "Articles",
|
||||
platforms: [.macOS(.v26), .iOS(.v26)],
|
||||
platforms: [.macOS(.v15), .iOS(.v26)],
|
||||
products: [
|
||||
.library(
|
||||
name: "Articles",
|
||||
|
||||
@@ -3,3 +3,4 @@
|
||||
/Packages
|
||||
/*.xcodeproj
|
||||
xcuserdata/
|
||||
Package.resolved
|
||||
@@ -3,7 +3,7 @@ import PackageDescription
|
||||
|
||||
let package = Package(
|
||||
name: "ArticlesDatabase",
|
||||
platforms: [.macOS(.v26), .iOS(.v26)],
|
||||
platforms: [.macOS(.v15), .iOS(.v26)],
|
||||
products: [
|
||||
.library(
|
||||
name: "ArticlesDatabase",
|
||||
|
||||
@@ -6,3 +6,4 @@ DerivedData/
|
||||
.swiftpm/configuration/registries.json
|
||||
.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata
|
||||
.netrc
|
||||
Package.resolved
|
||||
@@ -3,7 +3,7 @@ import PackageDescription
|
||||
|
||||
let package = Package(
|
||||
name: "CloudKitSync",
|
||||
platforms: [.macOS(.v26), .iOS(.v26)],
|
||||
platforms: [.macOS(.v15), .iOS(.v26)],
|
||||
products: [
|
||||
.library(
|
||||
name: "CloudKitSync",
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
.DS_Store
|
||||
/.build
|
||||
/Packages
|
||||
/*.xcodeproj
|
||||
xcuserdata/
|
||||
Package.resolved
|
||||
@@ -3,7 +3,7 @@ import PackageDescription
|
||||
|
||||
let package = Package(
|
||||
name: "FeedFinder",
|
||||
platforms: [.macOS(.v26), .iOS(.v26)],
|
||||
platforms: [.macOS(.v15), .iOS(.v26)],
|
||||
products: [
|
||||
.library(
|
||||
name: "FeedFinder",
|
||||
|
||||
@@ -6,3 +6,4 @@ DerivedData/
|
||||
.swiftpm/configuration/registries.json
|
||||
.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata
|
||||
.netrc
|
||||
Package.resolved
|
||||
@@ -3,7 +3,7 @@ import PackageDescription
|
||||
|
||||
let package = Package(
|
||||
name: "NewsBlur",
|
||||
platforms: [.macOS(.v26), .iOS(.v26)],
|
||||
platforms: [.macOS(.v15), .iOS(.v26)],
|
||||
products: [
|
||||
.library(
|
||||
name: "NewsBlur",
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
.DS_Store
|
||||
/.build
|
||||
/Packages
|
||||
/*.xcodeproj
|
||||
xcuserdata/
|
||||
Package.resolved
|
||||
@@ -3,7 +3,7 @@ import PackageDescription
|
||||
|
||||
let package = Package(
|
||||
name: "RSCore",
|
||||
platforms: [.macOS(.v26), .iOS(.v26)],
|
||||
platforms: [.macOS(.v15), .iOS(.v26)],
|
||||
products: [
|
||||
.library(name: "RSCore", type: .dynamic, targets: ["RSCore"]),
|
||||
.library(name: "RSCoreObjC", type: .dynamic, targets: ["RSCoreObjC"]),
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
.DS_Store
|
||||
/.build
|
||||
/Packages
|
||||
/*.xcodeproj
|
||||
xcuserdata/
|
||||
Package.resolved
|
||||
@@ -3,7 +3,7 @@ import PackageDescription
|
||||
|
||||
let package = Package(
|
||||
name: "RSDatabase",
|
||||
platforms: [.macOS(.v26), .iOS(.v26)],
|
||||
platforms: [.macOS(.v15), .iOS(.v26)],
|
||||
products: [
|
||||
.library(
|
||||
name: "RSDatabase",
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
.DS_Store
|
||||
/.build
|
||||
/Packages
|
||||
/*.xcodeproj
|
||||
xcuserdata/
|
||||
Package.resolved
|
||||
@@ -3,7 +3,7 @@ import PackageDescription
|
||||
|
||||
let package = Package(
|
||||
name: "RSMarkdown",
|
||||
platforms: [.macOS(.v26), .iOS(.v26)],
|
||||
platforms: [.macOS(.v15), .iOS(.v26)],
|
||||
products: [
|
||||
.library(
|
||||
name: "RSMarkdown",
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
.DS_Store
|
||||
/.build
|
||||
/Packages
|
||||
/*.xcodeproj
|
||||
xcuserdata/
|
||||
Package.resolved
|
||||
@@ -3,7 +3,7 @@ import PackageDescription
|
||||
|
||||
let package = Package(
|
||||
name: "RSParser",
|
||||
platforms: [.macOS(.v26), .iOS(.v26)],
|
||||
platforms: [.macOS(.v15), .iOS(.v26)],
|
||||
products: [
|
||||
.library(
|
||||
name: "RSParser",
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
.DS_Store
|
||||
/.build
|
||||
/Packages
|
||||
/*.xcodeproj
|
||||
xcuserdata/
|
||||
Package.resolved
|
||||
@@ -3,7 +3,7 @@ import PackageDescription
|
||||
|
||||
let package = Package(
|
||||
name: "RSTree",
|
||||
platforms: [.macOS(.v26), .iOS(.v26)],
|
||||
platforms: [.macOS(.v15), .iOS(.v26)],
|
||||
products: [
|
||||
.library(
|
||||
name: "RSTree",
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
.DS_Store
|
||||
/.build
|
||||
/Packages
|
||||
/*.xcodeproj
|
||||
xcuserdata/
|
||||
Package.resolved
|
||||
@@ -3,7 +3,7 @@ import PackageDescription
|
||||
|
||||
let package = Package(
|
||||
name: "RSWeb",
|
||||
platforms: [.macOS(.v26), .iOS(.v26)],
|
||||
platforms: [.macOS(.v15), .iOS(.v26)],
|
||||
products: [
|
||||
.library(
|
||||
name: "RSWeb",
|
||||
|
||||
@@ -3,3 +3,4 @@
|
||||
/Packages
|
||||
/*.xcodeproj
|
||||
xcuserdata/
|
||||
Package.resolved
|
||||
@@ -3,7 +3,7 @@ import PackageDescription
|
||||
|
||||
let package = Package(
|
||||
name: "Secrets",
|
||||
platforms: [.macOS(.v26), .iOS(.v26)],
|
||||
platforms: [.macOS(.v15), .iOS(.v26)],
|
||||
products: [
|
||||
.library(
|
||||
name: "Secrets",
|
||||
|
||||
@@ -3,3 +3,4 @@
|
||||
/Packages
|
||||
/*.xcodeproj
|
||||
xcuserdata/
|
||||
Package.resolved
|
||||
@@ -3,7 +3,7 @@ import PackageDescription
|
||||
|
||||
let package = Package(
|
||||
name: "SyncDatabase",
|
||||
platforms: [.macOS(.v26), .iOS(.v26)],
|
||||
platforms: [.macOS(.v15), .iOS(.v26)],
|
||||
products: [
|
||||
.library(
|
||||
name: "SyncDatabase",
|
||||
|
||||
Executable
+51
@@ -0,0 +1,51 @@
|
||||
#!/bin/bash
|
||||
set -euo pipefail
|
||||
|
||||
# Build a universal (arm64 + x86_64) debug build of NetNewsWire
|
||||
# and copy it to the Desktop for testing on local machines.
|
||||
|
||||
PROJECT_PATH="NetNewsWire.xcodeproj"
|
||||
SCHEME="NetNewsWire"
|
||||
DESTINATION="platform=macOS"
|
||||
DESKTOP="$HOME/Desktop"
|
||||
APP_NAME="NetNewsWire.app"
|
||||
|
||||
echo "Building universal binary..."
|
||||
xcodebuild \
|
||||
-project "$PROJECT_PATH" \
|
||||
-scheme "$SCHEME" \
|
||||
-destination "$DESTINATION" \
|
||||
ARCHS="x86_64 arm64" \
|
||||
ONLY_ACTIVE_ARCH=NO \
|
||||
build | xcbeautify
|
||||
|
||||
# Find the built app in DerivedData.
|
||||
BUILD_DIR=$(xcodebuild \
|
||||
-project "$PROJECT_PATH" \
|
||||
-scheme "$SCHEME" \
|
||||
-showBuildSettings 2>/dev/null \
|
||||
| grep -m1 '^\s*BUILT_PRODUCTS_DIR' \
|
||||
| sed 's/.*= //')
|
||||
|
||||
BUILT_APP="$BUILD_DIR/$APP_NAME"
|
||||
|
||||
if [ ! -d "$BUILT_APP" ]; then
|
||||
echo "Error: could not find $BUILT_APP"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Verify it's actually universal.
|
||||
ARCHS=$(lipo -archs "$BUILT_APP/Contents/MacOS/NetNewsWire")
|
||||
echo "Architectures: $ARCHS"
|
||||
|
||||
if [[ "$ARCHS" != *"x86_64"* ]] || [[ "$ARCHS" != *"arm64"* ]]; then
|
||||
echo "Error: build is not universal"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Copy to Desktop, replacing any existing copy.
|
||||
rm -rf "$DESKTOP/$APP_NAME"
|
||||
cp -R "$BUILT_APP" "$DESKTOP/$APP_NAME"
|
||||
|
||||
echo "Copied $APP_NAME to $DESKTOP"
|
||||
echo "Remember: on the test machine, right-click > Open or run: xattr -cr $APP_NAME"
|
||||
@@ -46,7 +46,7 @@ GCC_WARN_UNDECLARED_SELECTOR = YES
|
||||
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE
|
||||
GCC_WARN_UNUSED_FUNCTION = YES
|
||||
GCC_WARN_UNUSED_VARIABLE = YES
|
||||
MACOSX_DEPLOYMENT_TARGET = 26.0
|
||||
MACOSX_DEPLOYMENT_TARGET = 15.0
|
||||
IPHONEOS_DEPLOYMENT_TARGET = 26.0
|
||||
//SDKROOT = macosx
|
||||
SWIFT_EMIT_LOC_STRINGS = YES
|
||||
|
||||
Reference in new issue
Block a user