@dittolive/ditto 4.5.3 → 4.5.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,9 @@
1
1
  # Podspec *must* be located at package root level or it will not be find for React
2
2
  # Native's autolinking.
3
+ #
4
+ # It would be great to move this to the RN folder and still have the
5
+ # relative paths work in production somehow. Maybe when RN will stop forcing
6
+ # the podspec to exist at root level or allow us to modify it via some property.
3
7
  require "json"
4
8
 
5
9
  package = JSON.parse(File.read(File.join(__dir__, "package.json")))
@@ -13,13 +17,11 @@ Pod::Spec.new do |s|
13
17
  s.authors = package["author"]
14
18
 
15
19
  s.platforms = { :ios => "14.0" }
16
-
17
- s.source = { :http => "https://ditto.live" }
20
+ s.source = { :http => 'https://ditto.live' }
18
21
 
19
22
  s.source_files = "react-native/ios/**/*.{h,m,mm}", "react-native/cpp/**/*.{h,cpp,hpp}",
20
23
  s.public_header_files = 'react-native/dittoffi/dittoffi.h', 'react-native/dittoffi/ifaddrs.h'
21
24
 
22
25
  s.dependency "React-Core"
23
- s.dependency 'DittoReactNativeIOS', '~> 4.5.3'
24
-
26
+ s.dependency 'DittoReactNativeIOS', "~> #{package["version"]}"
25
27
  end
package/README.md CHANGED
@@ -3,10 +3,10 @@
3
3
  _Ditto is a cross-platform SDK that allows mobile, web, and IoT apps to sync
4
4
  with and even without connectivity._
5
5
 
6
- Version: **4.5.3**
6
+ Version: **4.5.4**
7
7
 
8
8
  For more information please visit [ditto.live](https://ditto.live), as well as the
9
- [API Reference](https://software.ditto.live/js/Ditto/4.5.3/api-reference/) for this particular version.
9
+ [API Reference](https://software.ditto.live/js/Ditto/4.5.4/api-reference/) for this particular version.
10
10
 
11
11
  ---
12
12
 
package/node/ditto.cjs.js CHANGED
@@ -1787,7 +1787,7 @@ class AttachmentToken {
1787
1787
 
1788
1788
  // NOTE: this is patched up with the actual build version by Jake task
1789
1789
  // build:package and has to be a valid semantic version as defined here: https://semver.org.
1790
- const fullBuildVersionString = '4.5.3';
1790
+ const fullBuildVersionString = '4.5.4';
1791
1791
 
1792
1792
  //
1793
1793
  // Copyright © 2021 DittoLive Incorporated. All rights reserved.
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
package/package.json CHANGED
@@ -1,46 +1 @@
1
- {
2
- "name": "@dittolive/ditto",
3
- "version": "4.5.3",
4
- "description": "Ditto is a cross-platform embeddable NoSQL database that can sync with or without an internet connection.",
5
- "homepage": "https://ditto.live",
6
- "license": "SEE LICENSE IN LICENSE.md",
7
- "author": {
8
- "name": "DittoLive Incorporated.",
9
- "email": "contact@ditto.live",
10
- "url": "https://ditto.live"
11
- },
12
- "keywords": [
13
- "ditto",
14
- "dittolive",
15
- "webassembly",
16
- "wasm",
17
- "db",
18
- "database",
19
- "sync",
20
- "p2p"
21
- ],
22
- "engines": {
23
- "node": ">=14"
24
- },
25
- "browserslist": [
26
- "defaults"
27
- ],
28
- "main": "node/ditto.cjs.js",
29
- "browser": "web/ditto.es6.js",
30
- "browser/umd": "web/ditto.umd.js",
31
- "types": "types/ditto.d.ts",
32
- "react-native": "react-native/src/index.ts",
33
- "scripts": {
34
- "play:web": "npx serve --listen 5285",
35
- "play:node": "node --experimental-repl-await --unhandled-rejections=strict playground.cjs"
36
- },
37
- "dependencies": {
38
- "cbor-redux": "^1.0.0",
39
- "@ungap/weakrefs": "^0.2.0",
40
- "cbor-js": "^0.1.0",
41
- "fastestsmallesttextencoderdecoder": "^1.0.22"
42
- },
43
- "devDependencies": {
44
- "serve": "^14.2.0"
45
- }
46
- }
1
+ {"name":"@dittolive/ditto","version":"4.5.4","description":"Ditto is a cross-platform embeddable NoSQL database that can sync with or without an internet connection.","homepage":"https://ditto.live","license":"SEE LICENSE IN LICENSE.md","author":{"name":"DittoLive Incorporated.","email":"contact@ditto.live","url":"https://ditto.live"},"keywords":["ditto","dittolive","webassembly","wasm","db","database","sync","p2p"],"engines":{"node":">=14"},"browserslist":["defaults"],"main":"node/ditto.cjs.js","browser":"web/ditto.es6.js","browser/umd":"web/ditto.umd.js","types":"types/ditto.d.ts","scripts":{"play:web":"npx serve --listen 5285","play:node":"node --experimental-repl-await --unhandled-rejections=strict playground.cjs"},"dependencies":{"@ungap/weakrefs":"^0.2.0","cbor-js":"^0.1.0","cbor-redux":"^1.0.0","fastestsmallesttextencoderdecoder":"^1.0.22"},"devDependencies":{"serve":"^14.2.0"},"react-native":"react-native/src/index.ts"}
@@ -0,0 +1 @@
1
+ nodeLinker: node-modules
@@ -9,7 +9,6 @@ set(CMAKE_CXX_STANDARD 17)
9
9
  include_directories(
10
10
  ../cpp/include
11
11
  ../dittoffi
12
- ../boost
13
12
  )
14
13
 
15
14
  file(GLOB SOURCES "../cpp/src/*.cpp")
@@ -105,7 +105,7 @@ android {
105
105
  cppFlags "-O2 -frtti -fexceptions -Wall -fstack-protector-all"
106
106
  // ESSENTIAL for adding JSI
107
107
  arguments "-DANDROID_STL=c++_shared"
108
- abiFilters "x86", "x86_64", "armeabi-v7a", "arm64-v8a"
108
+ abiFilters "armeabi-v7a", "arm64-v8a", "x86", "x86_64"
109
109
  }
110
110
  }
111
111
  }
@@ -148,12 +148,16 @@ repositories {
148
148
  google()
149
149
  }
150
150
 
151
+ // This can be moved to gradle.properties (minus the quotes) with no code changes
152
+ // here since `version` is a default project property.
153
+ version = "4.5.4"
154
+
151
155
  dependencies {
152
156
  // For < 0.71, this will be from the local maven repo
153
157
  // For > 0.71, this will be replaced by `com.facebook.react:react-android:$version` by react gradle plugin
154
158
  //noinspection GradleDynamicVersion
155
159
  implementation "com.facebook.react:react-native:+"
156
- implementation "live.ditto:ditto:4.5.2-rc.3"
160
+ implementation "live.ditto:ditto:${project.version}"
157
161
  }
158
162
 
159
163
  if (isNewArchitectureEnabled()) {
@@ -169,7 +173,7 @@ task downloadBinaries {
169
173
  def defaultArchitectures = ['arm64-v8a', 'armeabi-v7a', 'x86', 'x86_64']
170
174
 
171
175
  defaultArchitectures.each { arch ->
172
- def fileUrl = "https://software.ditto.live/react-native/ditto/4.5.3/android/${arch}/libdittoffi.a"
176
+ def fileUrl = "https://software.ditto.live/react-native/ditto/${project.version}/android/${arch}/libdittoffi.a"
173
177
 
174
178
  new File("${project.projectDir}/../dittoffi/android/${arch}").mkdirs()
175
179
  def localFilePath = "${project.projectDir}/../dittoffi/android/${arch}/libdittoffi.a"
@@ -5,6 +5,8 @@
5
5
  namespace sharedjsi
6
6
  {
7
7
 
8
+ // TODO: Bridge int64_t! When we'll actually reach a number as big as int64, it will crash.
9
+
8
10
  Function ditto_live_query_signal_available_next(Runtime &runtime)
9
11
  {
10
12
  return Function::createFromHostFunction(runtime,