Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions packages/core/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
## 1.1.13

- Fixed Swift Package Manager support for iOS and macOS: the package now uses the layout Flutter 3.44+ expects (#213)
- Allow `flutter_fgbg` 0.8.x, which adds Swift Package Manager support, on Dart 3.8+ (#218)
- Android: changed the plugin namespace to `com.segment.analytics.flutter` so it no longer collides with analytics-kotlin under AGP 9 (#215)
- Web: the anonymousId read from analytics.js localStorage no longer includes surrounding quotes. Affected users' anonymousId will now match analytics.js (#197)
- Fixed `context.library.version` and the User-Agent reporting 1.1.11 in 1.1.12

## 1.1.12

- Added Swift Package Manager support for iOS and macOS
Expand Down
2 changes: 1 addition & 1 deletion packages/core/lib/version.dart
Original file line number Diff line number Diff line change
@@ -1 +1 @@
const segmentVersion = "1.1.11";
const segmentVersion = "1.1.13";
2 changes: 1 addition & 1 deletion packages/core/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: segment_analytics
description: The hassle-free way to add Segment analytics to your Flutter app.
version: 1.1.12
version: 1.1.13
homepage: https://github.com/segmentio/analytics_flutter#readme
repository: https://github.com/segmentio/analytics_flutter/tree/main/packages/core#readme
issue_tracker: https://github.com/segmentio/analytics_flutter/issues
Expand Down
15 changes: 15 additions & 0 deletions packages/core/test/version_test.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import 'dart:io';

import 'package:flutter_test/flutter_test.dart';
import 'package:segment_analytics/version.dart';

void main() {
// segmentVersion is sent as context.library.version and in the User-Agent,
// and is bumped by hand alongside pubspec.yaml at release time.
test('segmentVersion matches the pubspec version', () {
final pubspec = File('pubspec.yaml').readAsStringSync();
final match = RegExp(r'^version:\s*(\S+)', multiLine: true).firstMatch(pubspec);
expect(match, isNotNull);
expect(segmentVersion, match!.group(1));
});
}
4 changes: 4 additions & 0 deletions packages/plugins/plugin_idfa/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 1.0.3

- Fixed Swift Package Manager support for iOS: the package now uses the layout Flutter 3.44+ expects

## 1.0.2

- Added Swift Package Manager support for iOS
Expand Down
4 changes: 2 additions & 2 deletions packages/plugins/plugin_idfa/build_pigeon_plugins.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
mkdir -p ios/Classes
mkdir -p ios/segment_analytics_plugin_idfa/Sources/segment_analytics_plugin_idfa

flutter pub run pigeon \
--input pigeon/idfa.dart \
--dart_out lib/native_idfa.dart \
--experimental_swift_out ios/Classes/Idfa.swift
--experimental_swift_out ios/segment_analytics_plugin_idfa/Sources/segment_analytics_plugin_idfa/Idfa.swift
5 changes: 4 additions & 1 deletion packages/plugins/plugin_idfa/ios/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,7 @@ Icon?

/Flutter/Generated.xcconfig
/Flutter/ephemeral/
/Flutter/flutter_export_environment.sh
/Flutter/flutter_export_environment.sh

.build/
.swiftpm/
26 changes: 0 additions & 26 deletions packages/plugins/plugin_idfa/ios/Package.swift

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ The hassle-free way to add Segment analytics to your Flutter app.
s.license = { :file => '../LICENSE' }
s.author = { 'Segment' => 'support@segment.com' }
s.source = { :path => '.' }
s.source_files = 'Classes/**/*'
s.source_files = 'segment_analytics_plugin_idfa/Sources/segment_analytics_plugin_idfa/**/*.swift'
s.dependency 'Flutter'
s.platform = :ios, '9.0'

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
// swift-tools-version: 5.9
// The swift-tools-version declares the minimum version of Swift required to build this package.

import PackageDescription

let package = Package(
name: "segment_analytics_plugin_idfa",
platforms: [
.iOS("13.0"),
],
products: [
.library(name: "segment-analytics-plugin-idfa", targets: ["segment_analytics_plugin_idfa"]),
],
dependencies: [
.package(name: "FlutterFramework", path: "../FlutterFramework"),
],
targets: [
.target(
name: "segment_analytics_plugin_idfa",
dependencies: [
.product(name: "FlutterFramework", package: "FlutterFramework"),
],
linkerSettings: [
.linkedFramework("AdSupport"),
.linkedFramework("AppTrackingTransparency"),
]
),
]
)
2 changes: 1 addition & 1 deletion packages/plugins/plugin_idfa/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: segment_analytics_plugin_idfa
description: The hassle-free way to add Segment analytics to your Flutter app.
version: 1.0.2
version: 1.0.3
homepage: https://github.com/segmentio/analytics_flutter#readme
repository: https://github.com/segmentio/analytics_flutter/tree/main/packages/plugins/plugin_idfa#readme
issue_tracker: https://github.com/segmentio/analytics_flutter/issues
Expand Down
Loading