@dittolive/ditto 4.11.0-preview.2 → 4.11.0-preview.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.
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.11.0-preview.2**
6
+ Version: **4.11.0-preview.4**
7
7
 
8
8
  For more information please visit [ditto.com](https://ditto.com), as well as the
9
- [API Reference](https://software.ditto.live/js/Ditto/4.11.0-preview.2/api-reference/) for this particular version.
9
+ [API Reference](https://software.ditto.live/js/Ditto/4.11.0-preview.4/api-reference/) for this particular version.
10
10
 
11
11
  ---
12
12
 
package/node/ditto.cjs.js CHANGED
@@ -2274,7 +2274,7 @@ class AttachmentToken {
2274
2274
 
2275
2275
  // NOTE: this is patched up with the actual build version by Jake task
2276
2276
  // build:package and has to be a valid semantic version as defined here: https://semver.org.
2277
- const fullBuildVersionString = '4.11.0-preview.2';
2277
+ const fullBuildVersionString = '4.11.0-preview.4';
2278
2278
 
2279
2279
  //
2280
2280
  // Copyright © 2021 DittoLive Incorporated. All rights reserved.
Binary file
Binary file
Binary file
Binary file
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dittolive/ditto",
3
- "version": "4.11.0-preview.2",
3
+ "version": "4.11.0-preview.4",
4
4
  "description": "Ditto is a cross-platform SDK that allows apps to sync with and even without internet connectivity.",
5
5
  "homepage": "https://ditto.live",
6
6
  "license": "SEE LICENSE IN LICENSE.md",
@@ -109,6 +109,18 @@ repositories {
109
109
 
110
110
  def kotlin_version = getExtOrDefault("kotlinVersion")
111
111
 
112
+ def getVersionFromPackageJson() {
113
+ def packageJsonPath = file('../../package.json')
114
+ if (packageJsonPath.exists()) {
115
+ def packageJson = new JsonSlurper().parse(packageJsonPath)
116
+ return packageJson.version
117
+ } else {
118
+ throw new FileNotFoundException("package.json not found at: ${packageJsonPath}")
119
+ }
120
+ }
121
+
122
+ project.version = getVersionFromPackageJson()
123
+
112
124
  dependencies {
113
125
  implementation "com.facebook.react:react-android"
114
126
  implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
@@ -120,22 +132,11 @@ dependencies {
120
132
  println "Using local `ditto.aar`."
121
133
  implementation files('dittoffi/aar/ditto.aar')
122
134
  } else {
135
+ println "Using remote `live.ditto:ditto:${project.version}`"
123
136
  implementation "live.ditto:ditto:${project.version}"
124
137
  }
125
138
  }
126
139
 
127
- def getVersionFromPackageJson() {
128
- def packageJsonPath = file('../../package.json')
129
- if (packageJsonPath.exists()) {
130
- def packageJson = new JsonSlurper().parse(packageJsonPath)
131
- return packageJson.version
132
- } else {
133
- throw new FileNotFoundException("package.json not found at: ${packageJsonPath}")
134
- }
135
- }
136
-
137
- project.version = getVersionFromPackageJson()
138
-
139
140
  tasks.register('downloadBinaries') {
140
141
  doLast {
141
142
  def defaultArchitectures = ['arm64-v8a', 'armeabi-v7a', 'x86', 'x86_64']