630 Commits

Author SHA1 Message Date
cfec224c42 Normalize repository URLs to internal git.g7software.net for CocoaPods/SPM docs 2026-06-08 18:35:44 +07:00
cf13851d19 Release 3.5.5 3.5.5 2026-06-08 18:33:28 +07:00
fe0036eb7e Migrate MIME-type lookup to UTType (UniformTypeIdentifiers)
Replace the deprecated CoreServices UTI calls
(UTTypeCreatePreferredIdentifierForTag / UTTypeCopyPreferredTagWithClass)
in GCDWebServerGetMimeTypeForExtension with the modern
[UTType typeWithFilenameExtension:].preferredMIMEType, removing the
-Wdeprecated-declarations pragma. Behavior is unchanged: known
extensions map to the same MIME type, unknown ones fall back to the
default.

The UniformTypeIdentifiers framework (macOS 11+ / iOS 14+ / tvOS 14+,
within the project's deployment targets) is now linked in all three
build systems: Xcode (OTHER_LDFLAGS), CocoaPods (Core subspec
frameworks), and SwiftPM (linkedFramework).

Verified: Run-Tests.sh, swift build, and pod lib lint all pass.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-08 16:57:23 +07:00
4a49a6fa02 Adopt Xcode recommended settings and fix resulting build errors
Applied Xcode's "Update to recommended settings" (new warning flags,
LastUpgradeCheck 2650, scheme bumps, Info.plist tidy-up), then fixed the
build failures those stricter checks surfaced:

- Disable ENABLE_MODULE_VERIFIER and CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER:
  the library intentionally uses quoted includes so the flat include/
  symlink directory resolves them for SPM; the module verifier rejects
  that.
- Add (void) to the GCDWebServerInitializeFunctions and
  _ExecuteMainThreadRunLoopSources definitions (CLANG_WARN_STRICT_PROTOTYPES
  + -Werror).
- Cast both branches of the status-code ternary in
  GCDWebServerConnection to NSInteger (-Wenum-compare-conditional mixed
  two enum types).

Verified: Run-Tests.sh, swift build, and the Xcode framework build all pass.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-08 16:47:27 +07:00
6ae4efcc03 Fix Run-Tests.sh for current Xcode/SDK
- Tests (Mac) target: set GENERATE_INFOPLIST_FILE = YES (modern Xcode
  refuses to code sign a test bundle with no Info.plist).
- Bump the script's hardcoded "oldest" deployment targets 10.7 -> 12.0
  and 8.0 -> 16.0; the old values fail on current SDKs (no libarclite).
- Wrap the deprecated CoreServices UTI calls in GCDWebServerFunctions.m
  in a -Wdeprecated-declarations pragma so the Release build (which uses
  -Werror) compiles; runtime behavior is unchanged.
- Comment out the webUploader fixture test: GCDWebUploader was
  customized in this fork (delete/move/create disabled, commit ef4b622)
  so Tests/WebUploader fixtures no longer match.
- Comment out the tvOS build step: it needs the tvOS Simulator runtime
  (xcodebuild -downloadPlatform tvOS) which isn't always installed.
- Document all of the above in CLAUDE.md.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-08 16:28:59 +07:00
b84e6149d6 Clean up podspec: drop redundant libxml2 flag and requires_arc
- Remove `-I$(SDKROOT)/usr/include/libxml2` from the WebDAV subspec: the
  modern SDK ships a libxml2 module map that resolves <libxml/parser.h>
  with no extra header search path (verified via pod lib lint).
- Remove all `requires_arc = true` declarations: ARC is the CocoaPods
  default and the sources already enforce it with #error guards. They
  were leftovers from when GCDWebServer <= 3.1 supported MRC.
- Remove the leftover pod trunk template comment block.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-08 16:03:51 +07:00
1f96a271cb Add Swift Package Manager support
Add Package.swift with three products: GCDWebServer (core),
GCDWebUploader, and GCDWebDAVServer.

Public headers live across Core/Requests/Responses subdirectories, which
SPM cannot expose directly. To support SPM without moving any files
(keeping the Xcode project and CocoaPods builds intact), public headers
are surfaced through symlinks in include/ directories with a hand-written
umbrella-directory module map; the private GCDWebServerPrivate.h is left
unlinked so it stays out of the public module.

GCDWebUploader.bundle is shipped as a .copy resource and located at
runtime via SWIFTPM_MODULE_BUNDLE under a #if SWIFT_PACKAGE branch.

Verified: swift build (all targets), Swift module imports, Xcode
framework build, and the XCTest suite all pass.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-08 15:55:49 +07:00
b38a78a34a Revert "fix include"
This reverts commit f90cd113ba.
2026-06-08 15:53:09 +07:00
ce098e3f7b update docs 2026-06-08 15:27:41 +07:00
8e117daaca AI readme 2026-06-08 15:21:48 +07:00
15e063264b Update prj to iOS 16, tvOS 16, MacOS 12 2026-06-08 15:10:00 +07:00
2012a6546a GCDWebUploader: update example iOS 2026-06-08 15:01:48 +07:00
ef4b622b13 GCDWebUploader: disable some feature 2026-06-08 15:00:38 +07:00
f90cd113ba fix include 2026-06-08 14:52:29 +07:00
f993a1b5d5 remove font .woff that not support iOS Appstore 2026-06-08 14:39:08 +07:00
c6d118f4ec Merge pull request #487 from gezihuzi/dev_bonjour_extent
Bonjour service support custom txt data
2020-08-17 06:45:49 -07:00
0da9ee6afe Merge pull request #497 from trapper-/master
Replace deprecated MobileCoreServices with CoreServices
2020-08-17 06:44:20 -07:00
6c93927e12 Replace deprecated MobileCoreServices with CoreServices 2020-07-22 12:32:16 +08:00
f4cf591e50 replace MobileCoreServices to CoreServices 2020-05-29 15:39:20 +08:00
5c737549fc Merge remote-tracking branch 'origin/master' into dev_bonjour_extent 2020-03-30 10:00:39 +08:00
1c36bf07c8 Bumped version 3.5.4 2020-03-15 09:40:36 -07:00
df8d66f6c8 Formatted source 2020-03-15 09:35:58 -07:00
45432e6563 Updated Travis CI to Xcode 11.3 2020-03-15 09:31:50 -07:00
7720b1363d Ignore deprecation warning for CC_MD5 on iOS 13+ and macOS 10.15+
Fixes #427
2020-03-15 09:30:51 -07:00
a7a6cfdbc7 Fixed Info.plist build warnings 2020-03-15 09:27:01 -07:00
70f687e34b Fixed Clang build warning 2020-03-15 09:27:01 -07:00
11967061a1 Updated to Xcode 11 2020-03-15 09:24:27 -07:00
2d8dc8775d Support setting txtData 2019-12-14 23:02:23 +08:00
9cb7caacbd Update README.md 2019-08-09 06:52:24 -07:00
ac10c0c5b0 Updated Travis CI to Xcode 10.3 2019-08-09 06:50:31 -07:00
acdb5c9262 Bumped version 3.5.3 2019-08-09 06:26:10 -07:00
f54cc20bd6 Formatted source 2019-08-09 06:26:10 -07:00
02738433bf Enforce hidden and extensions restrictions when moving and copying files in uploaders
Fixes #433
2019-08-09 06:25:37 -07:00
c9563db0a6 Fixed GCDWebServerBodyReaderCompletionBlock not allowing null data
Fixed #434
2019-08-09 06:16:08 -07:00
cd1eea5612 Updated to Swift 5 2019-08-09 06:08:56 -07:00
f7c1c4eff5 Updated to Xcode 10.3 2019-08-09 06:05:19 -07:00
fdc0feddf0 Merge pull request #426 from beazlr02/patch-1
Update swebServer.swift hello world
2019-07-03 11:46:28 +02:00
25dbee032d Update swebServer.swift hello world
looks like the example code hasn't been updated when the method signatures have changed
2019-07-03 10:43:14 +01:00
c3c7aaad00 Revert "Merge pull request #416 from melle/app-extensions"
This reverts commit 8d0a3599ee, reversing
changes made to 7e4dd53c98.
2019-03-13 13:40:16 -07:00
2c53064f5d Merge pull request #379 from kayak/runtime-logger
Added support to override built-in logger at runtime
2019-03-13 23:45:25 +09:00
8d0a3599ee Merge pull request #416 from melle/app-extensions
Allow to build and run GDWebServer in app extensions.
2019-03-13 23:32:50 +09:00
653dfb727b Allow to build and run GDWebServer in app extensions. 2019-03-13 15:26:52 +01:00
7e4dd53c98 Update README.md 2019-01-06 12:25:18 -08:00
4739d208c0 Bumped version 3.5.2 2019-01-06 12:10:28 -08:00
f57c307e7d Update README.md 2019-01-06 12:07:45 -08:00
466b1f8444 Updated copyright years 2019-01-06 12:03:46 -08:00
fd565421dc Updated README 2019-01-06 12:03:08 -08:00
8811d2233e Use module in test iOS and tvOS apps 2019-01-06 11:59:40 -08:00
e561389d33 Use explicit modulemap for frameworks 2019-01-06 11:58:43 -08:00
32cf20a1d8 Changed iOS framework target family to "Universal" 2019-01-06 11:39:05 -08:00