Skip to content

Commit 5c64f6f

Browse files
committed
for linux64, add native dependency
1 parent b76db3c commit 5c64f6f

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

build.gradle

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22
version = '0.9.16-RC3-SNAPSHOT'
33

44
buildscript {
5+
ext {
6+
isLinux = System.getProperty("os.name").contains("Linux")
7+
is64 = System.getProperty("sun.arch.data.model") == "64"
8+
isLinux64 = isLinux && is64
9+
}
10+
511
repositories {
612
jcenter()
713
}

tests/objectbox-java-test/build.gradle

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ dependencies {
99
compile project(':objectbox-java')
1010
compile 'org.greenrobot:essentials:3.0.0-RC1'
1111

12+
if(isLinux64) {
13+
compile "io.objectbox:objectbox-linux:$versionUnderTest"
14+
}
15+
1216
// Right now, test sources are in src/main not src/test
1317
compile 'junit:junit:4.12'
1418
}

0 commit comments

Comments
 (0)