Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix the package name for SPM configuration #467

Merged
merged 3 commits into from
Jun 24, 2024
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
Empty file removed maplibre_gl/ios/Assets/.gitkeep
Empty file.
4 changes: 2 additions & 2 deletions maplibre_gl/ios/maplibre_gl.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ A new Flutter plugin.
s.license = { :file => '../LICENSE' }
s.author = { 'Your Company' => '[email protected]' }
s.source = { :path => '.' }
s.source_files = 'maplibre_gl_ios/Sources/maplibre_gl_ios/**/*'
s.source_files = 'maplibre_gl/Sources/maplibre_gl/**/*'
s.dependency 'Flutter'
# When updating the dependency version,
# make sure to also update the version Package.swift.
# make sure to also update the version in Package.swift.
s.dependency 'MapLibre', '6.5.0'
s.swift_version = '5.0'
s.ios.deployment_target = '12.0'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,25 +4,26 @@
import PackageDescription

let package = Package(
name: "maplibre_gl_ios",
name: "maplibre_gl",
platforms: [
.iOS("12.0"),
],
products: [
.library(name: "maplibre-gl-ios", targets: ["maplibre_gl_ios"])
.library(name: "maplibre-gl", targets: ["maplibre_gl"])
],
dependencies: [
// When updating the dependency version,
// make sure to also update the version in maplibre_gl.podspec.
.package(url: "https://github.com/maplibre/maplibre-gl-native-distribution.git", exact: "6.5.0"),
],
targets: [
.target(
name: "maplibre_gl_ios",
name: "maplibre_gl",
dependencies: [
.product(name: "MapLibre", package: "maplibre-gl-native-distribution")
],
cSettings: [
.headerSearchPath("include/maplibre_gl_ios")
.headerSearchPath("include/maplibre_gl")
]
)
]
Expand Down