Skip to content

Commit a165170

Browse files
committed
[Frameworks] Commit v0.9.0 for iOS and macOS (with rocksdb v5.13.1)
1 parent 9b8b441 commit a165170

3 files changed

Lines changed: 65 additions & 1 deletion

File tree

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2014 Iskandar Abudiab (BrainCookie)
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in
13+
all copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21+
THE SOFTWARE.

ObjectiveRocksFramework.podspec

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
Pod::Spec.new do |s|
2+
s.name = 'ObjectiveRocksFramework'
3+
s.version = '0.9.0'
4+
s.summary = 'An Objective-C wrapper for RocksDB - A Persistent Key-Value Store for Flash and RAM Storage.'
5+
s.homepage = 'https://github.com/KeepSafe/ObjectiveRocks/tree/frameworks'
6+
s.author = 'iabudiab'
7+
s.license = { :type => 'MIT', :file => 'LICENSE' }
8+
s.source = { :http => "https://github.com/KeepSafe/ObjectiveRocksFramework/releases/download/v#{s.version.to_s}/ObjectiveRocks.zip" }
9+
s.requires_arc = true
10+
s.ios.deployment_target = '9.0'
11+
s.ios.vendored_frameworks = 'iOS/ObjectiveRocks.framework'
12+
s.osx.deployment_target = '10.10'
13+
s.osx.vendored_frameworks = 'macOS/ObjectiveRocks.framework'
14+
15+
#### CONFIGS
16+
17+
shared_xcconfig = { 'GCC_PREPROCESSOR_DEFINITIONS' => 'NDEBUG=1 OS_MACOSX=1 ROCKSDB_PLATFORM_POSIX=1 ROCKSDB_LIB_IO_POSIX=1' }
18+
framework_shared_xconfig = {
19+
'HEADER_SEARCH_PATHS' => '"${PODS_TARGET_SRCROOT}/rocksdb_src/rocksdb" "${PODS_TARGET_SRCROOT}/rocksdb_src/rocksdb/include"',
20+
'LIBRARY_SEARCH_PATHS' => '"${PODS_TARGET_SRCROOT}/rocksdb_src/rocksdb"',
21+
'GCC_INPUT_FILETYPE' => 'sourcecode.cpp.objcpp',
22+
'GCC_C_LANGUAGE_STANDARD' => 'gnu99',
23+
'CLANG_CXX_LANGUAGE_STANDARD' => 'gnu++11'
24+
}
25+
s.pod_target_xcconfig = shared_xcconfig.merge(framework_shared_xconfig)
26+
s.user_target_xcconfig = shared_xcconfig
27+
28+
shared_osx_xcconfig = { 'GCC_PREPROCESSOR_DEFINITIONS' => 'ROCKSDB_USING_THREAD_STATUS=1' }
29+
s.osx.pod_target_xcconfig = shared_osx_xcconfig
30+
s.osx.user_target_xcconfig = shared_osx_xcconfig
31+
32+
shared_ios_xcconfig = { 'GCC_PREPROCESSOR_DEFINITIONS' => 'ROCKSDB_LITE=1 IOS_CROSS_COMPILE=1 NROCKSDB_THREAD_STATUS=1' }
33+
s.ios.pod_target_xcconfig = shared_ios_xcconfig
34+
s.ios.user_target_xcconfig = shared_ios_xcconfig
35+
end

README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,10 @@
11
# ObjectiveRocksFramework
2-
Internal binary framework version of ObjectiveRocks
2+
3+
Binary framework version of ObjectiveRocks for iOS and macOS to save time building code from scratch each run.
4+
5+
## Instructions
6+
7+
1. Clone [Keepsafe's fork of the ObjectiveRocks repo](https://github.com/KeepSafe/ObjectiveRocks) and switch to the `frameworks` branch
8+
2. From that repo, run `$ ./build_universal_framework.sh`
9+
3. Upload the resulting zip file to this repo's release page as a new release (or overwrite an existing release if the release # hasn't changed)
10+
4. Update your app repo's pod with `$ pod update ObjectiveRocksFramework` and open a pull request with those changes

0 commit comments

Comments
 (0)