Working with property lists like a piece of cake.
Plister creates,read,update and delete .plist
files super fast in just one row :bowtie:
Also values can encrypt by AES encryption :sunglasses: and plister will decrypt values when you need them! :alien:
Speed of Plister is because it uses his own Cache system.
Also this project is fully stable and 86% code covered, results can be found in codecov.io
Plister creates a property list by your command,save your given key,value pair, encrypt it as you wish and retrieves the value for given key.
There is a list of available methods from Plister here in Documentations
iOS 8.1+
watchOS 3.0+
macOS 10.12 (Sierra)+
tvOS 10.0+
Xcode 10.2+
Swift 4.2+
Also fully compatible with Swift version 5.x
CocoaPods is a dependency manager for Cocoa projects. For usage and installation instructions, visit their website. To integrate Plister into your Xcode project using CocoaPods, specify it in your Podfile
:
pod 'Plister'
If you had problem with finding pod try to include source of project.
pod 'Plister', :git => 'https://github.com/mohamadrezakoohkan/Plister.git'
Then run pod inistall
to add Plister pod to your project. then you should work inside new created .xcworkspace
You can use The Swift Package Manager to install Plister
In the Xcode menu bar choose this path:
File
>Swift Packages
>Add Package Dependency
In opened window type this repository address:
https://github.com/mohamadrezakoohkan/Plister.git
At the end choose your Package Option and simply add to your project.
add the plister package description to your Package.swift
as a dependency file:
import PackageDescription
let package = Package(
name: "YOUR_PROJECT_NAME",
dependencies: [
.package(url: "https://github.com/mohamadrezakoohkan/Plister.git", from: "1.1.1"),
],
targets: [
.target(
name: "YOUR_TARGET_NAME",
dependencies: ["Plister"],
path: "YOUR_TARGET_PATH")
]
)
Then run swift package generate-xcodeproj
in Terminal to generate Xcode project or swift build
to build the project.
If you are on Linux run swift run
in Terminal to build and run the project.
If you prefer not to use any of the aforementioned dependency managers, you can use source code manually. get latest relase from Releases.
Example of how to implement Plister in your project.
import Plister
let plist = Plist(withNameAtDocumentDirectory: "Github")
plist.set("Mohamadreza Koohkan", for: "Developer")
plist.get("Developer")
// output will be Mohamadreza Koohkan
Clone the project and use example project for more.
Follow and contact me on Instagram, Github, LinkedIn and stack overflow. If you find an issue open a ticket. You can send me email at [email protected] .
Plister is released under the MIT license.
link |
Stars: 12 |
Last commit: 3 years ago |
Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics