Skip to content

Commit 05b3ab9

Browse files
author
Markus
committed
add macOS support for tests
1 parent 4b565b1 commit 05b3ab9

File tree

4 files changed

+8
-1
lines changed

4 files changed

+8
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ local.properties
2121
# Native libs
2222
objectbox*.dll
2323
libobjectbox*.so
24+
libobjectbox*.dylib
2425

2526
### Test DB files
2627
data.mdb

build.gradle

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,10 @@ buildscript {
55
ext.ob_expected_version = project.hasProperty('expectedVersion') ? project.property('expectedVersion') : 'UNDEFINED'
66
ext {
77
isLinux = System.getProperty("os.name").contains("Linux")
8+
isMac = !isLinux && System.getProperty("os.name").toLowerCase().contains("mac")
89
is64 = System.getProperty("sun.arch.data.model") == "64"
910
isLinux64 = isLinux && is64
11+
isMac64 = isMac && is64
1012
}
1113

1214
repositories {
@@ -156,6 +158,6 @@ task verifyVersion {
156158

157159
task wrapper(type: Wrapper) {
158160
group 'build setup'
159-
gradleVersion = '4.4.1'
161+
gradleVersion = '4.5.1'
160162
distributionType = Wrapper.DistributionType.ALL
161163
}

tests/objectbox-java-test/build.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ dependencies {
1111

1212
if(isLinux64) {
1313
compile "io.objectbox:objectbox-linux:${rootProject.version}"
14+
} else if(isMac64) {
15+
compile "io.objectbox:objectbox-macos:${rootProject.version}"
1416
}
1517

1618
// Right now, test sources are in src/main not src/test

tests/test-proguard/build.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ dependencies {
1111

1212
if(isLinux64) {
1313
compile "io.objectbox:objectbox-linux:${rootProject.version}"
14+
} else if(isMac64) {
15+
compile "io.objectbox:objectbox-macos:${rootProject.version}"
1416
}
1517

1618
testCompile 'junit:junit:4.12'

0 commit comments

Comments
 (0)