Skip to content

Commit

Permalink
Release 7.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
pchmelar committed Jun 22, 2023
1 parent ddbd271 commit 0c1940a
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 23 deletions.
7 changes: 2 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
.DS_Store
/.build
xcuserdata/
.swiftpm/config/registries.json
.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata
.netrc
.build
Build/
GoogleFrameworks/
20 changes: 10 additions & 10 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -41,28 +41,28 @@ let package = Package(
targets: [
.binaryTarget(
name: "GoogleMaps",
url: "https://github.com/darrarski/GoogleMaps-SP/releases/download/7.1.0/GoogleMaps.xcframework.zip",
checksum: "825102248e774c68c330cad1873834864ad152441bb36effbcb23993d1e1da4a"
url: "https://github.com/MateeDevs/GoogleMaps-SP/releases/download/7.4.0/GoogleMaps.xcframework.zip",
checksum: "405f347ba7763b716e3228d081abfec930110f8528a4367b677c855ee6872b63"
),
.binaryTarget(
name: "GoogleMapsBase",
url: "https://github.com/darrarski/GoogleMaps-SP/releases/download/7.1.0/GoogleMapsBase.xcframework.zip",
checksum: "485e5123233f682befcd6e9e13c7452abdcbc2992dedad1bbb9326a541af5e04"
url: "https://github.com/MateeDevs/GoogleMaps-SP/releases/download/7.4.0/GoogleMapsBase.xcframework.zip",
checksum: "627b75401c9b6a965dd2b28b203e8c11e45ef42adc71abf1f281e8b6a2dd33e0"
),
.binaryTarget(
name: "GoogleMapsCore",
url: "https://github.com/darrarski/GoogleMaps-SP/releases/download/7.1.0/GoogleMapsCore.xcframework.zip",
checksum: "77123c2d929d22502498e0bf1581f32355e4bd1e8211ef288c7869e981051002"
url: "https://github.com/MateeDevs/GoogleMaps-SP/releases/download/7.4.0/GoogleMapsCore.xcframework.zip",
checksum: "5e43192e2ef259ca29607e1c978d82e1575547b96c3947cdd7cecddf08f86405"
),
.binaryTarget(
name: "GoogleMapsM4B",
url: "https://github.com/darrarski/GoogleMaps-SP/releases/download/7.1.0/GoogleMapsM4B.xcframework.zip",
checksum: "e6290834d28f6a3ead9180bf83f85b4fe5954e1c20efd6f5eaffafbcbfc6a390"
url: "https://github.com/MateeDevs/GoogleMaps-SP/releases/download/7.4.0/GoogleMapsM4B.xcframework.zip",
checksum: "7af88b77dbedbd545b5b71544159893ae714586051f0281b45cb4f1d2bb8f12c"
),
.binaryTarget(
name: "GooglePlaces",
url: "https://github.com/darrarski/GoogleMaps-SP/releases/download/7.1.0/GooglePlaces.xcframework.zip",
checksum: "f03f9ea1e7357df6b42b41e8fe8ca9c7b28c05f9a0305dab4997cc8b04d61503"
url: "https://github.com/MateeDevs/GoogleMaps-SP/releases/download/7.4.0/GooglePlaces.xcframework.zip",
checksum: "edbbccfb204eb2aa011137715c8bed06eba2e79c3fb7a5eadc108294373b3638"
)
]
)
15 changes: 8 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,26 +8,27 @@ This project rebuilds Google's beta XCFrameworks so they can be added as a depen

## Requirements

* [iOS 13.0](https://wikipedia.org/wiki/IOS_13) or later.
* [Xcode 14.0](https://developer.apple.com/xcode) or later.
* [iOS 13.0](https://wikipedia.org/wiki/IOS_13) or later
* [Xcode 14.0](https://developer.apple.com/xcode) or later

## Add as a dependecy to your Swift Package

```swift
dependencies: [
.package(url: "https://github.com/darrarski/GoogleMaps-SP.git", .upToNextMinor(from: "7.1.0"))
.package(url: "https://github.com/MateeDevs/GoogleMaps-SP.git", .upToNextMinor(from: "7.4.0"))
]
```

## Build XCFrameworks yourself
## Update version

1. Clone this project.
1. Clone this project
2. Download official XCFrameworks from Google:
- [GoogleMaps SDK](https://developers.google.com/maps/documentation/ios-sdk/config#install-the-xcframework)
- [GooglePlaces SDK](https://developers.google.com/maps/documentation/places/ios-sdk/config#install-the-xcframework)
3. Unzip and put downloaded XCFrameworks inside `GoogleFrameworks` directory
4. Run `make_xcframeworks.sh` script.
5. You can find your new XCFrameworks in `Build` directory.
4. Run `make_xcframeworks.sh -x` script
6. Update versions and checksums in `Package.swift` (new checksums are in `Build/checksum`)
7. Create a new tag and release on GitHub and upload XCFrameworks from `Build` directory

## License & Copyright

Expand Down
4 changes: 3 additions & 1 deletion make_xcframework.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#!/bin/bash

BUILD_DIRECTORY="Build"
CARTHAGE_XCFRAMEWORK_DIRECTORY="Carthage/Build/"

function archive_project() {
project_name=$1
Expand Down Expand Up @@ -69,6 +68,9 @@ function build_xcproject_project() {

cd $BUILD_DIRECTORY

# Clean checksum file
> checksum

create_xcframework "GoogleMaps" "GoogleMaps"
create_xcframework "GoogleMaps" "GoogleMapsBase"
create_xcframework "GoogleMaps" "GoogleMapsCore"
Expand Down

0 comments on commit 0c1940a

Please sign in to comment.