Skip to content
Open
Show file tree
Hide file tree
Changes from 3 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
4 changes: 0 additions & 4 deletions packages/mixpanel_flutter/ios/Classes/MixpanelFlutterPlugin.h

This file was deleted.

15 changes: 0 additions & 15 deletions packages/mixpanel_flutter/ios/Classes/MixpanelFlutterPlugin.m

This file was deleted.

This file was deleted.

This file was deleted.

2 changes: 1 addition & 1 deletion packages/mixpanel_flutter/ios/mixpanel_flutter.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Pod::Spec.new do |s|
s.license = { :file => '../LICENSE' }
s.author = { 'Mixpanel, Inc' => 'support@mixpanel.com' }
s.source = { :path => '.' }
s.source_files = 'Classes/**/*'
s.source_files = 'mixpanel_flutter/Sources/mixpanel_flutter/**/*.swift'
s.dependency 'Flutter'
s.dependency 'Mixpanel-swift', '6.4.0'
s.platform = :ios, '13.0'
Expand Down
31 changes: 31 additions & 0 deletions packages/mixpanel_flutter/ios/mixpanel_flutter/Package.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
// swift-tools-version: 5.9
import PackageDescription

let package = Package(
name: "mixpanel_flutter",
platforms: [
.iOS("12.0")
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i had recently bumped to iOS 13 in a previous PR. Can we adjust this to 13?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done, bumped to 13.0 in bbaa0e1. This now matches the podspec and the example Podfile.

],
products: [
.library(
name: "mixpanel-flutter",
targets: ["mixpanel_flutter"]
)
],
dependencies: [
.package(
url: "https://github.com/mixpanel/mixpanel-swift.git",
exact: "6.4.0"
)
],
targets: [
.target(
name: "mixpanel_flutter",
dependencies: [
.product(name: "Mixpanel", package: "mixpanel-swift")
],
path: "Sources/mixpanel_flutter",
resources: []
)
]
)
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import Mixpanel
public typealias MixpanelFlutterPlugin = SwiftMixpanelFlutterPlugin
#endif

@objc(MixpanelFlutterPlugin)
public class SwiftMixpanelFlutterPlugin: NSObject, FlutterPlugin {

private var instance: MixpanelInstance?
Expand Down
Loading