Skip to content

Commit

Permalink
Fix the package name for SPM configuration (#467)
Browse files Browse the repository at this point in the history
Co-authored-by: Joscha <[email protected]>
  • Loading branch information
kuhnroyal and josxha committed Jun 24, 2024
1 parent 5c11535 commit 887ee1c
Show file tree
Hide file tree
Showing 20 changed files with 7 additions and 6 deletions.
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

0 comments on commit 887ee1c

Please sign in to comment.