maplibre/maplibre-gl-native-distribution as Swift Package

文章推薦指數: 80 %
投票人數:10人

maplibre/maplibre-gl-native-distribution as Swift Package - An open-source fork of Mapbox GL SDK for iOS distributed via the Swift Package Manager. Swiftpack.co - maplibre/maplibre-gl-native-distributionasSwiftPackage Swiftpack.coisacollectionofthousandsofindexedSwiftpackages.Searchpackages. Seeallpackagespublishedbymaplibre. maplibre/maplibre-gl-native-distribution5.13.0-pre.1 Anopen-sourceforkofMapboxGLSDKforiOSdistributedviatheSwiftPackageManager. ⭐️&nbsp28 🕓&nbsp44weeksago .package(url:"https://github.com/maplibre/maplibre-gl-native-distribution.git",from:"5.13.0-pre.1") MapLibreGLNativeSDKforiOS MapLibreGLNativeisacommunityledforkderivedfrommapbox-gl-nativepriortotheirswitchtoanon-OSSlicense.TheforkalsoincludesMapsSDKforiOSandmacOS(forkedfrommapbox-gl-native-ios)andAndroidSDK(forkedfrommapbox-gl-native-android). AddMapLibretoyourProject ToaddapackagedependencytoyourXcodeproject,selectFile>SwiftPackages>AddPackageDependencyandenteritsrepositoryURL.SeeAddingPackageDependenciestoYourApp. SwiftPackagesDevelopment YoucanoverridetheMapLibrepackagedependencyandedititscontentbyaddingitasalocalpackage.SeeEditingaPackageDependencyasaLocalPackage. Forexample,youcanaddthistoPackage.swift,ifyouareinterestedintestingtheMapboxframeworkwithanotherframework. products:[ .library(name:"Mapbox",targets:["Mapbox"]), .library(name:"MetalANGLE",targets:["MetalANGLE"]) ], dependencies:[], //targetpathshouldberelativetopackageroot targets:[ .binaryTarget(name:"Mapbox",path:"Mapbox.xcframework"), .binaryTarget(name:"MetalANGLE",path:"MetalANGLE.xcframework") ] OtherReferencesfromdeveloper.apple.com Findoutifapackagedependencyreferencesabinaryandverifythebinary’sauthenticity.SeeIdentifyingBinaryDependencies. WWDC20DistributebinaryframeworksasSwiftpackages,whichdescribesseveralfeaturesofabinarytargets. TestMapLibrewithaSwiftPlaygrounds WhenyoudownloadthisrepothereisaSwiftPlaygroundthatallowsyoutochangethestyleandplayaroundwithaverysimplerenderedmap. Downloadthisrepo Navigatetothefolderwhereyoucloned,andopenPackage.swiftinatleastXcode12. RunPlaygroundbychoosingEditor>RunPlaygroundor⇧⌘⏎ GitHub link Stars:28 Lastcommit:8weeksago Something'[email protected](andmoney)isalsowelcome. RelatedPackages gubnota/maplibre-gl-native-distribution ReleaseNotes 22weeksago Seeall SwiftpackisbeingmaintainedbyPetrPavlik|@ptrpavlik|@swiftpackco|API|Analytics



請為這篇文章評分?