Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/uakihir0/kbsky-cocoapods
Bluesky/ATProtoco library for Apple Devices with Cocoapods.
https://github.com/uakihir0/kbsky-cocoapods
cocoapods ios macos objective-c swift
Last synced: about 8 hours ago
JSON representation
Bluesky/ATProtoco library for Apple Devices with Cocoapods.
- Host: GitHub
- URL: https://github.com/uakihir0/kbsky-cocoapods
- Owner: uakihir0
- License: mit
- Created: 2023-12-28T15:12:19.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-09-19T03:53:15.000Z (6 days ago)
- Last Synced: 2024-09-24T21:28:53.923Z (about 13 hours ago)
- Topics: cocoapods, ios, macos, objective-c, swift
- Language: Objective-C
- Homepage:
- Size: 38.7 MB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
> [日本語](./README_ja.md)
# kbsky cocoapods
This repository is the Cocoapods repository for [kbsky].
[kbsky] is a Bluesky/ATProtocol client library created using Kotlin Multiplatform.
Therefore, it can be built and used on Apple devices such as iOS. Here,
we distribute the library built as an XCFramework via Cocoapods.
Also, this repository is automatically committed by [kbsky]'s GitHub Actions,
so please send issues and pull requests to [kbsky].## Usage
### Podfile
Please add the following lines to your Podfile.
There is no specific version for this repository,
and it corresponds to the branch that matches the version of [kbsky].
The version to use is determined by specifying the branch of this repository.
Check the [Branch List](https://github.com/uakihir0/kbsky-cocoapods/branches)
for the branch corresponding to your version.
Additionally, different dependencies are used for Debug and Release builds.```ruby
target '{{PROJECT_NAME}}' do
use_frameworks!# Pods for kbsky
pod 'kbsky-debug',
:configuration => ['Debug'],
:git => 'https://github.com/uakihir0/kbsky-cocoapods/',
:branch => '{{BRANCH_NAME}}'
pod 'kbsky-release',
:configuration => ['Release'],
:git => 'https://github.com/uakihir0/kbsky-cocoapods/',
:branch => '{{BRANCH_NAME}}'
...
end
```### Request Example
While it can be used in Objective-C as well,
here is an example of usage in Swift.
For more detailed instructions, please refer to the README of [kbsky].```swift
let response = BskyFactory()
.atproto(apiUri: "https://bsky.social/")
.repo()
.getRecord(request:
CoreRepoGetRecordRequest(
repo: "uakihir0.com",
collection: "app.bsky.feed.post",
rkey: nil,
uri: "at://did:plc:bwdof2anluuf5wmfy2upgulw/app.bsky.feed.post/3jqcyfp3zt22s"
)
)print(response.data?.uri ?? "nil")
```## License
MIT License
## Author
[Akihiro Urushihara](https://github.com/uakihir0)
[kbsky]: https://github.com/uakihir0/kbsky