Skip to content

Commit

Permalink
fixed spm build
Browse files Browse the repository at this point in the history
  • Loading branch information
Igor Litvinenko committed Jan 6, 2025
1 parent dce40a2 commit 24be582
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 2 deletions.
6 changes: 6 additions & 0 deletions example/ios/Runner.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -438,10 +438,16 @@
);
inputPaths = (
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh",
"${BUILT_PRODUCTS_DIR}/Airship/AirshipKit.framework",
"${BUILT_PRODUCTS_DIR}/AirshipFrameworkProxy/AirshipFrameworkProxy.framework",
"${BUILT_PRODUCTS_DIR}/airship_flutter/airship_flutter.framework",
"${BUILT_PRODUCTS_DIR}/AirshipServiceExtension/AirshipServiceExtension.framework",
);
name = "[CP] Embed Pods Frameworks";
outputPaths = (
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/AirshipKit.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/AirshipFrameworkProxy.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/airship_flutter.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/AirshipServiceExtension.framework",
);
runOnlyForDeploymentPostprocessing = 0;
Expand Down
7 changes: 6 additions & 1 deletion example/ios/Runner/AirshipPluginExtender.swift
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
/* Copyright Airship and Contributors */

import Foundation
import AirshipKit
import AirshipFrameworkProxy
import ActivityKit

#if canImport(AirshipCore)
import AirshipCore
#else
import AirshipKit
#endif

@objc(AirshipPluginExtender)
public class AirshipPluginExtender: NSObject, AirshipPluginExtenderProtocol {

Expand Down
5 changes: 5 additions & 0 deletions example/ios/Runner/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,12 @@

import UIKit
import Flutter

#if canImport(AirshipCore)
import AirshipCore
#else
import AirshipKit
#endif

@main
@objc class AppDelegate: FlutterAppDelegate {
Expand Down
2 changes: 1 addition & 1 deletion ios/airship_flutter/Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ let package = Package(
.library( name: "airship-flutter", targets: ["airship_flutter"])
],
dependencies: [
.package(url: "https://github.com/urbanairship/airship-mobile-framework-proxy.git", from: "11.2.1")
.package(url: "https://github.com/urbanairship/airship-mobile-framework-proxy.git", from: "11.2.2")
],
targets: [
.target(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import Flutter

#if canImport(AirshipCore)
import AirshipCore
import AirshipMessageCenter
#else
import AirshipKit
#endif
Expand Down

0 comments on commit 24be582

Please sign in to comment.