Skip to content

Commit ecd3f13

Browse files
committed
V1.3.0
PropertyQuery must hold on to Query to keep it alive PropertyQuery init() must check if C function is successful Lower deployment target to 9.3; seems to be still used by older iPads removed InspectableEntity (seems outdated and unused (?)), minor comment improvements Query: remove deprecated all(), fix lint warnings Box: make visit() and related functions read-only by default and writeable optionally, refactor all*() e.g. to avoid double transaction for visit variant Box change contains to use a read-only Tx Box add a read-only visitor extend setup.sh: clean builds by default, brew, cli tools PropertyQuery: avoid UnsafePointer when calling obx_query_prop_*_find(), add test for providing a Int64 null value supportsLargeArrays; add alternative implementations if not supported fix minor warnings with new Swift compiler (5.2)
1 parent 2eabf88 commit ecd3f13

17 files changed

+581
-343
lines changed

Source/Gemfile.lock

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
GEM
22
remote: https://rubygems.org/
33
specs:
4-
CFPropertyList (3.0.1)
5-
activesupport (4.2.10)
4+
CFPropertyList (3.0.2)
5+
activesupport (4.2.11.1)
66
i18n (~> 0.7)
77
minitest (~> 5.1)
88
thread_safe (~> 0.3, >= 0.3.4)
@@ -12,10 +12,10 @@ GEM
1212
json (>= 1.5.1)
1313
atomos (0.1.3)
1414
claide (1.0.3)
15-
cocoapods (1.8.1)
15+
cocoapods (1.8.4)
1616
activesupport (>= 4.0.2, < 5)
1717
claide (>= 1.0.2, < 2.0)
18-
cocoapods-core (= 1.8.1)
18+
cocoapods-core (= 1.8.4)
1919
cocoapods-deintegrate (>= 1.0.3, < 2.0)
2020
cocoapods-downloader (>= 1.2.2, < 2.0)
2121
cocoapods-plugins (>= 1.0.0, < 2.0)
@@ -31,14 +31,14 @@ GEM
3131
nap (~> 1.0)
3232
ruby-macho (~> 1.4)
3333
xcodeproj (>= 1.11.1, < 2.0)
34-
cocoapods-core (1.8.1)
34+
cocoapods-core (1.8.4)
3535
activesupport (>= 4.0.2, < 6)
3636
algoliasearch (~> 1.0)
3737
concurrent-ruby (~> 1.1)
3838
fuzzy_match (~> 2.0.4)
3939
nap (~> 1.0)
4040
cocoapods-deintegrate (1.0.4)
41-
cocoapods-downloader (1.2.2)
41+
cocoapods-downloader (1.3.0)
4242
cocoapods-plugins (1.0.0)
4343
nap
4444
cocoapods-search (1.0.0)
@@ -57,7 +57,7 @@ GEM
5757
httpclient (2.8.3)
5858
i18n (0.9.5)
5959
concurrent-ruby (~> 1.0)
60-
jazzy (0.12.0)
60+
jazzy (0.13.0)
6161
cocoapods (~> 1.5)
6262
mustache (~> 1.1)
6363
open4
@@ -66,17 +66,17 @@ GEM
6666
sassc (~> 2.1)
6767
sqlite3 (~> 1.3)
6868
xcinvoke (~> 0.3.0)
69-
json (2.2.0)
69+
json (2.3.0)
7070
liferaft (0.0.6)
71-
minitest (5.12.2)
71+
minitest (5.13.0)
7272
molinillo (0.6.6)
73-
mustache (1.1.0)
73+
mustache (1.1.1)
7474
nanaimo (0.2.6)
7575
nap (1.1.0)
7676
netrc (0.11.0)
7777
open4 (1.3.4)
7878
redcarpet (3.5.0)
79-
rouge (3.13.0)
79+
rouge (3.14.0)
8080
ruby-macho (1.4.0)
8181
sassc (2.2.1)
8282
ffi (~> 1.9)
@@ -86,7 +86,7 @@ GEM
8686
thread_safe (~> 0.1)
8787
xcinvoke (0.3.0)
8888
liferaft (~> 0.0.6)
89-
xcodeproj (1.12.0)
89+
xcodeproj (1.14.0)
9090
CFPropertyList (>= 2.3.3, < 4.0)
9191
atomos (~> 0.1.3)
9292
claide (>= 1.0.2, < 2.0)

Source/README.md

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,10 @@ Repository Contents
1717
Setup
1818
-----
1919

20-
* Install latest Xcode (Swift 5.1+) with command line tools prepared to build from the shell
20+
* Install latest Xcode (Swift 5.2+) with command line tools prepared to build from the shell
21+
* Note: After Xcode updates, you may have to reinstall the CLI tools via `xcode-select --install`
2122
* Ensure you have homebrew (e.g. setup.sh uses it to install [Carthage](https://github.com/Carthage/Carthage))
23+
* Using homebrew, install basic build tools like cmake and ccache
2224
* Run `./setup.sh` (see the [setup.sh](setup.sh) file for more comments if you want)
2325
* Open Xcode project in ios-framework/ObjectBox.xcodeproj
2426

@@ -153,3 +155,20 @@ Then you're all set to use entities with ObjectBox:
153155
_ = personBox.query({ Person.name == "Fry" }).build().find()
154156

155157
That's it, it works now!
158+
159+
Testing from commandline
160+
------------------------
161+
To execute all unit tests:
162+
```shell script
163+
cd ios-framework
164+
make unit_test
165+
```
166+
167+
To execute a specific test. Change the last argument to specify your test. You can also execute a group/class by removing the last one/two parts of the filter.
168+
Note: `xcpretty` cleans up the output so you wan't see all the compiler calls but it also hides failed tests output. So once you see a failure, run without `xcpretty` to read the error.
169+
```shell script
170+
xcodebuild -derivedDataPath ./DerivedData test -project ObjectBox.xcodeproj -scheme ObjectBox-macOS -destination 'platform=OS X,arch=x86_64' -only-testing ObjectBoxTests-macOS/StoreTests/test32vs64BitForOs | xcpretty
171+
xcodebuild -derivedDataPath ./DerivedData test -project ObjectBox.xcodeproj -scheme ObjectBox-iOS -destination 'platform=iOS Simulator,name=iPhone 11' -only-testing ObjectBoxTests-iOS/StoreTests/test32vs64BitForOs | xcpretty
172+
```
173+
174+

0 commit comments

Comments
 (0)