Skip to content
Open
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
24 changes: 12 additions & 12 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,18 +119,18 @@ jobs:
cd ..
zip -r app-spm.ipa Payload-spm

# iOS IPA with CocoaPods
- name: Build iOS Sample (CocoaPods)
working-directory: ./didomi_sdk/example
run: |
flutter config --no-enable-swift-package-manager
flutter build ios --no-codesign
cd build/ios/iphoneos
mkdir Payload
cd Payload
ln -s ../Runner.app
cd ..
zip -r app.ipa Payload
# iOS IPA with CocoaPods disabled from https://github.com/didomi/flutter/pull/160
# - name: Build iOS Sample (CocoaPods)
# working-directory: ./didomi_sdk/example
# run: |
# flutter config --no-enable-swift-package-manager
# flutter build ios --no-codesign
# cd build/ios/iphoneos
# mkdir Payload
# cd Payload
# ln -s ../Runner.app
# cd ..
# zip -r app.ipa Payload

# Archive iOS IPA
- name: Archive iOS artifacts
Expand Down
23 changes: 12 additions & 11 deletions ios/didomi_sdk/Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,29 +12,30 @@ let package = Package(
.library(name: "didomi-sdk", targets: ["didomi_sdk"])
],
dependencies: [
.package(url: "https://github.com/didomi/didomi-ios-sdk-spm", from: "2.47.0")
.package(url: "https://github.com/didomi/didomi-ios-sdk-spm", from: "2.47.0"),
// Provided by the Flutter tool: it generates this package next to the
// plugin package when building an app, so the relative path resolves then.
.package(name: "FlutterFramework", path: "../FlutterFramework")
],
targets: [
.target(
name: "DidomiSwift",
dependencies: [
.product(name: "Didomi", package: "didomi-ios-sdk-spm")
.product(name: "Didomi", package: "didomi-ios-sdk-spm"),
.product(name: "FlutterFramework", package: "FlutterFramework")
],
path: "Sources/DidomiSwift",
resources: [],
linkerSettings: [
.linkedFramework("Flutter", .when(platforms: [.iOS]))
]
resources: []
),
.target(
name: "didomi_sdk",
dependencies: ["DidomiSwift"],
dependencies: [
"DidomiSwift",
.product(name: "FlutterFramework", package: "FlutterFramework")
],
path: "Sources/DidomiObjC",
resources: [],
publicHeadersPath: "include",
linkerSettings: [
.linkedFramework("Flutter", .when(platforms: [.iOS]))
]
publicHeadersPath: "include"
)
]
)