Skip to content

Commit

Permalink
basic CocoaPods support
Browse files Browse the repository at this point in the history
  • Loading branch information
numen31337 committed Apr 22, 2021
1 parent 622ca9f commit 4aa8cb2
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,15 @@ let basicAuth = BasicAuthCredentials(login: "myLogin", password: "myPassword")
let settingsWithAuth = try? RemoteSettings(settingsJsonURLString: endpointWithAuth, basicAuth: basicAuth)
```

### Installation

##### SPM
Repository: `https://github.com/numen31337/remote_settings.git`, Branch: `main`

##### CocoaPods
`pod 'RemoteSettings', :git => 'https://github.com/numen31337/remote_settings.git'`

### Facts

- The cached data is persistent and available after the app relaunch. It uses UserDefaults to store the cached data.
Expand Down
16 changes: 16 additions & 0 deletions RemoteSettings.podspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
Pod::Spec.new do |s|
s.name = 'RemoteSettings'
s.version = '1.0.0'
s.summary = 'A self-hosted remote config.'
s.description = <<-DESC
A simple library for fetching your self-hosted remote config with caching capabilities.
DESC

s.homepage = 'https://github.com/numen31337/remote_settings'
s.license = { :type => 'MIT', :file => 'LICENSE' }
s.author = { 'Alexander Kirsch' => '[email protected]' }
s.source = { :git => 'https://github.com/numen31337/remote_settings.git', :tag => s.version.to_s }
s.source_files = 'Sources/RemoteSettings/**/*'
s.swift_version = '5.0'
s.ios.deployment_target = '9.0'
end

0 comments on commit 4aa8cb2

Please sign in to comment.