Skip to content

Commit ea88e7f

Browse files
committed
Update realm-sycn to 2.0.0-rc16
realm-core to 3.0.0-rc5
1 parent a837084 commit ea88e7f

3 files changed

Lines changed: 29 additions & 26 deletions

File tree

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
## 4.0.0-BETA3 (YYYY-MM-DD)
2+
3+
### Internal
4+
5+
* Upgraded to Realm Sync 2.0.0-rc16.
6+
* Upgraded to Realm Core 3.0.0-rc5.
7+
18
## 4.0.0-BETA2 (2017-07-27)
29

310
### Bug Fixes

dependencies.list

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Realm Sync Core release used by Realm Java
22
# https://github.com/realm/realm-sync/releases
3-
REALM_SYNC_VERSION=2.0.0-rc12
4-
REALM_SYNC_SHA256=5f111903159ee2d74c5418560c72977e91a10e291e23e6a7d9999aa856858ca4
3+
REALM_SYNC_VERSION=2.0.0-rc16
4+
REALM_SYNC_SHA256=c20c4e7333f01a3a4ea350cb20b9b7feba95ad4e52d612368b6187b72d518aa1
55

66
# Object Server Release used by Integration tests
77
# Stable releases: https://packagecloud.io/realm/realm?filter=debs

realm/realm-library/src/main/cpp/CMakeLists.txt

Lines changed: 20 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -114,29 +114,25 @@ if (build_SYNC)
114114
endif()
115115

116116
# Download openssl lib
117-
# FIXME sync packed openssl with librealm-sync-android-xxx.a.
118-
# Remove this check after https://github.com/realm/realm-sync/issues/1469 fixed.
119-
if (NOT build_SYNC)
120-
#string(TOLOWER "${CMAKE_BUILD_TYPE}" openssl_build_TYPE)
121-
set(openssl_build_TYPE "release")
122-
# FIXME Read the openssl version from core when the core/sync release has that information.
123-
set(openssl_VERSION "1.0.2k")
124-
set(openssl_FILENAME "openssl-${openssl_build_TYPE}-${openssl_VERSION}-Android-${ANDROID_ABI}")
125-
set(openssl_URL "http://static.realm.io/downloads/openssl/${openssl_VERSION}/Android/${ANDROID_ABI}/${openssl_FILENAME}.tar.gz")
126-
127-
message(STATUS "Downloading OpenSSL...")
128-
file(DOWNLOAD "${openssl_URL}" "${PROJECT_BINARY_DIR}/${openssl_FILENAME}.tar.gz")
129-
130-
message(STATUS "Uncompressing OpenSSL...")
131-
execute_process(COMMAND ${CMAKE_COMMAND} -E tar xfz "${PROJECT_BINARY_DIR}/${openssl_FILENAME}.tar.gz"
132-
WORKING_DIRECTORY "${PROJECT_BINARY_DIR}")
133-
134-
message(STATUS "Importing OpenSSL...")
135-
include(${PROJECT_BINARY_DIR}/${openssl_FILENAME}/openssl.cmake)
136-
get_target_property(openssl_include_DIR crypto INTERFACE_INCLUDE_DIRECTORIES)
137-
get_target_property(crypto_LIB crypto IMPORTED_LOCATION)
138-
get_target_property(ssl_LIB ssl IMPORTED_LOCATION)
139-
endif()
117+
#string(TOLOWER "${CMAKE_BUILD_TYPE}" openssl_build_TYPE)
118+
set(openssl_build_TYPE "release")
119+
# FIXME Read the openssl version from core when the core/sync release has that information.
120+
set(openssl_VERSION "1.0.2k")
121+
set(openssl_FILENAME "openssl-${openssl_build_TYPE}-${openssl_VERSION}-Android-${ANDROID_ABI}")
122+
set(openssl_URL "http://static.realm.io/downloads/openssl/${openssl_VERSION}/Android/${ANDROID_ABI}/${openssl_FILENAME}.tar.gz")
123+
124+
message(STATUS "Downloading OpenSSL...")
125+
file(DOWNLOAD "${openssl_URL}" "${PROJECT_BINARY_DIR}/${openssl_FILENAME}.tar.gz")
126+
127+
message(STATUS "Uncompressing OpenSSL...")
128+
execute_process(COMMAND ${CMAKE_COMMAND} -E tar xfz "${PROJECT_BINARY_DIR}/${openssl_FILENAME}.tar.gz"
129+
WORKING_DIRECTORY "${PROJECT_BINARY_DIR}")
130+
131+
message(STATUS "Importing OpenSSL...")
132+
include(${PROJECT_BINARY_DIR}/${openssl_FILENAME}/openssl.cmake)
133+
get_target_property(openssl_include_DIR crypto INTERFACE_INCLUDE_DIRECTORIES)
134+
get_target_property(crypto_LIB crypto IMPORTED_LOCATION)
135+
get_target_property(ssl_LIB ssl IMPORTED_LOCATION)
140136

141137
# build application's shared lib
142138
include_directories(${REALM_CORE_DIST_DIR}/include
@@ -225,7 +221,7 @@ add_library(realm-jni SHARED ${jni_SRC} ${objectstore_SRC} ${objectstore_sync_SR
225221
add_dependencies(realm-jni jni_headers)
226222

227223
if (build_SYNC)
228-
target_link_libraries(realm-jni log android lib_realm_sync)
224+
target_link_libraries(realm-jni log android lib_realm_sync crypto ssl)
229225
else()
230226
target_link_libraries(realm-jni log android lib_realm_core crypto)
231227
endif()

0 commit comments

Comments
 (0)