Skip to content

Commit e1927f4

Browse files
turnipdabeetsclaude
andcommitted
chore!: require iOS 15 and macOS 11
Raises the deployment targets to the posthog-ios 4.0 minimums ahead of the SDK bump, so the bump itself only changes the dependency range. Drops the availability checks that are now always true and moves the CodeQL Swift job to Xcode 26. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
1 parent 5022778 commit e1927f4

11 files changed

Lines changed: 29 additions & 34 deletions

File tree

‎.changeset/v6-remove-deprecated-apis.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"posthog_flutter": major
33
---
44

5+
- **Breaking:** bump minimum iOS deployment target from 13.0 to 15.0 and macOS from 10.15 to 11.0
56
- **Breaking:** remove `PostHogConfig.apiKey` and the `com.posthog.posthog.API_KEY` manifest/Info.plist key — use `projectToken` and `com.posthog.posthog.PROJECT_TOKEN`
67
- **Breaking:** remove `Posthog().getFeatureFlagPayload()` — use `getFeatureFlagResult(key, sendFeatureFlagEvent: false)` and read `payload`
78
- **Breaking:** remove the `PostHogSessionReplayConfig.debouncerDelay` setter — use `PostHogSessionReplayConfig.throttleDelay`

‎.github/workflows/codeql.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
runner: ubuntu-latest
2525
- language: swift
2626
build-mode: manual
27-
runner: macos-15-xlarge
27+
runner: macos-26
2828
- language: actions
2929
build-mode: none
3030
runner: ubuntu-latest
@@ -45,7 +45,7 @@ jobs:
4545
if: matrix.language == 'swift'
4646
uses: maxim-lobanov/setup-xcode@ed7a3b1fda3918c0306d1b724322adc0b8cc0a90 # v1.7.0
4747
with:
48-
xcode-version: '16.4'
48+
xcode-version: '26.4'
4949

5050
- name: Install dependencies (Swift)
5151
if: matrix.language == 'swift'

‎example/ios/Podfile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Uncomment this line to define a global platform for your project
2-
platform :ios, '14.0'
2+
platform :ios, '15.0'
33

44
# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
55
ENV['COCOAPODS_DISABLE_STATS'] = 'true'

‎example/ios/Podfile.lock‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,6 @@ SPEC CHECKSUMS:
3333
google_maps_flutter_ios: 17552876e72723da1d41accc22f03b5f7afbde69
3434
GoogleMaps: 8939898920281c649150e0af74aa291c60f2e77d
3535

36-
PODFILE CHECKSUM: 3c864ae2f1db9f17d3418f22aa4b78eac050c10b
36+
PODFILE CHECKSUM: 583e7c5826ead1663c2849ec27bee3d398ceebac
3737

3838
COCOAPODS: 1.16.2

‎example/ios/Runner.xcodeproj/project.pbxproj‎

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -478,7 +478,7 @@
478478
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
479479
GCC_WARN_UNUSED_FUNCTION = YES;
480480
GCC_WARN_UNUSED_VARIABLE = YES;
481-
IPHONEOS_DEPLOYMENT_TARGET = 14.0;
481+
IPHONEOS_DEPLOYMENT_TARGET = 15.0;
482482
MTL_ENABLE_DEBUG_INFO = NO;
483483
SDKROOT = iphoneos;
484484
SUPPORTED_PLATFORMS = iphoneos;
@@ -497,7 +497,7 @@
497497
DEVELOPMENT_TEAM = PNC2XCH2XP;
498498
ENABLE_BITCODE = NO;
499499
INFOPLIST_FILE = Runner/Info.plist;
500-
IPHONEOS_DEPLOYMENT_TARGET = 14.0;
500+
IPHONEOS_DEPLOYMENT_TARGET = 15.0;
501501
LD_RUNPATH_SEARCH_PATHS = (
502502
"$(inherited)",
503503
"@executable_path/Frameworks",
@@ -518,7 +518,7 @@
518518
CODE_SIGN_STYLE = Automatic;
519519
CURRENT_PROJECT_VERSION = 1;
520520
GENERATE_INFOPLIST_FILE = YES;
521-
IPHONEOS_DEPLOYMENT_TARGET = 14.0;
521+
IPHONEOS_DEPLOYMENT_TARGET = 15.0;
522522
MARKETING_VERSION = 1.0;
523523
PRODUCT_BUNDLE_IDENTIFIER = com.example.posthogFlutterExample.RunnerTests;
524524
PRODUCT_NAME = "$(TARGET_NAME)";
@@ -537,7 +537,7 @@
537537
CODE_SIGN_STYLE = Automatic;
538538
CURRENT_PROJECT_VERSION = 1;
539539
GENERATE_INFOPLIST_FILE = YES;
540-
IPHONEOS_DEPLOYMENT_TARGET = 14.0;
540+
IPHONEOS_DEPLOYMENT_TARGET = 15.0;
541541
MARKETING_VERSION = 1.0;
542542
PRODUCT_BUNDLE_IDENTIFIER = com.example.posthogFlutterExample.RunnerTests;
543543
PRODUCT_NAME = "$(TARGET_NAME)";
@@ -554,7 +554,7 @@
554554
CODE_SIGN_STYLE = Automatic;
555555
CURRENT_PROJECT_VERSION = 1;
556556
GENERATE_INFOPLIST_FILE = YES;
557-
IPHONEOS_DEPLOYMENT_TARGET = 14.0;
557+
IPHONEOS_DEPLOYMENT_TARGET = 15.0;
558558
MARKETING_VERSION = 1.0;
559559
PRODUCT_BUNDLE_IDENTIFIER = com.example.posthogFlutterExample.RunnerTests;
560560
PRODUCT_NAME = "$(TARGET_NAME)";
@@ -610,7 +610,7 @@
610610
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
611611
GCC_WARN_UNUSED_FUNCTION = YES;
612612
GCC_WARN_UNUSED_VARIABLE = YES;
613-
IPHONEOS_DEPLOYMENT_TARGET = 14.0;
613+
IPHONEOS_DEPLOYMENT_TARGET = 15.0;
614614
MTL_ENABLE_DEBUG_INFO = YES;
615615
ONLY_ACTIVE_ARCH = YES;
616616
SDKROOT = iphoneos;
@@ -659,7 +659,7 @@
659659
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
660660
GCC_WARN_UNUSED_FUNCTION = YES;
661661
GCC_WARN_UNUSED_VARIABLE = YES;
662-
IPHONEOS_DEPLOYMENT_TARGET = 14.0;
662+
IPHONEOS_DEPLOYMENT_TARGET = 15.0;
663663
MTL_ENABLE_DEBUG_INFO = NO;
664664
SDKROOT = iphoneos;
665665
SUPPORTED_PLATFORMS = iphoneos;
@@ -680,7 +680,7 @@
680680
DEVELOPMENT_TEAM = PNC2XCH2XP;
681681
ENABLE_BITCODE = NO;
682682
INFOPLIST_FILE = Runner/Info.plist;
683-
IPHONEOS_DEPLOYMENT_TARGET = 14.0;
683+
IPHONEOS_DEPLOYMENT_TARGET = 15.0;
684684
LD_RUNPATH_SEARCH_PATHS = (
685685
"$(inherited)",
686686
"@executable_path/Frameworks",
@@ -704,7 +704,7 @@
704704
DEVELOPMENT_TEAM = PNC2XCH2XP;
705705
ENABLE_BITCODE = NO;
706706
INFOPLIST_FILE = Runner/Info.plist;
707-
IPHONEOS_DEPLOYMENT_TARGET = 14.0;
707+
IPHONEOS_DEPLOYMENT_TARGET = 15.0;
708708
LD_RUNPATH_SEARCH_PATHS = (
709709
"$(inherited)",
710710
"@executable_path/Frameworks",

‎example/macos/Podfile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
platform :osx, '10.15'
1+
platform :osx, '11.0'
22

33
# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
44
ENV['COCOAPODS_DISABLE_STATS'] = 'true'

‎example/macos/Podfile.lock‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ EXTERNAL SOURCES:
1111
SPEC CHECKSUMS:
1212
FlutterMacOS: d0db08ddef1a9af05a5ec4b724367152bb0500b1
1313

14-
PODFILE CHECKSUM: 9ebaf0ce3d369aaa26a9ea0e159195ed94724cf3
14+
PODFILE CHECKSUM: c2e95c8c0fe03c5c57e438583cae4cc732296009
1515

1616
COCOAPODS: 1.16.2

‎example/macos/Runner.xcodeproj/project.pbxproj‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -549,7 +549,7 @@
549549
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
550550
GCC_WARN_UNUSED_FUNCTION = YES;
551551
GCC_WARN_UNUSED_VARIABLE = YES;
552-
MACOSX_DEPLOYMENT_TARGET = 10.15;
552+
MACOSX_DEPLOYMENT_TARGET = 11.0;
553553
MTL_ENABLE_DEBUG_INFO = NO;
554554
SDKROOT = macosx;
555555
SWIFT_COMPILATION_MODE = wholemodule;
@@ -628,7 +628,7 @@
628628
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
629629
GCC_WARN_UNUSED_FUNCTION = YES;
630630
GCC_WARN_UNUSED_VARIABLE = YES;
631-
MACOSX_DEPLOYMENT_TARGET = 10.15;
631+
MACOSX_DEPLOYMENT_TARGET = 11.0;
632632
MTL_ENABLE_DEBUG_INFO = YES;
633633
ONLY_ACTIVE_ARCH = YES;
634634
SDKROOT = macosx;
@@ -675,7 +675,7 @@
675675
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
676676
GCC_WARN_UNUSED_FUNCTION = YES;
677677
GCC_WARN_UNUSED_VARIABLE = YES;
678-
MACOSX_DEPLOYMENT_TARGET = 10.15;
678+
MACOSX_DEPLOYMENT_TARGET = 11.0;
679679
MTL_ENABLE_DEBUG_INFO = NO;
680680
SDKROOT = macosx;
681681
SWIFT_COMPILATION_MODE = wholemodule;

‎posthog_flutter/darwin/posthog_flutter.podspec‎

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,10 @@ Postog flutter plugin
2121
s.ios.dependency 'Flutter'
2222
s.osx.dependency 'FlutterMacOS'
2323

24-
# ~> Version 3.80.0 up to, but not including, 4.0.0
2524
s.dependency 'PostHog', '>= 3.84.0', '< 4.0.0'
2625

27-
s.ios.deployment_target = '13.0'
28-
# PH iOS SDK 3.0.0 requires >= 10.15
29-
s.osx.deployment_target = '10.15'
26+
s.ios.deployment_target = '15.0'
27+
s.osx.deployment_target = '11.0'
3028

3129
# Flutter.framework does not contain a i386 slice.
3230
s.ios.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES', 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'i386' }

‎posthog_flutter/darwin/posthog_flutter/Package.swift‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import PackageDescription
66
let package = Package(
77
name: "posthog_flutter",
88
platforms: [
9-
.iOS("13.0"),
10-
.macOS("10.15"),
9+
.iOS("15.0"),
10+
.macOS("11.0"),
1111
],
1212
products: [
1313
.library(name: "posthog-flutter", targets: ["posthog_flutter"]),

0 commit comments

Comments
 (0)