@dittolive/ditto 4.12.1 → 4.12.2-rc.1

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.12.1**
6
+ Version: **4.12.2-rc.1**
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.12.1/api-reference/) for this particular version.
9
+ [API Reference](https://software.ditto.live/js/Ditto/4.12.2-rc.1/api-reference/) for this particular version.
10
10
 
11
11
  ---
12
12
 
package/node/ditto.cjs.js CHANGED
@@ -2393,7 +2393,7 @@ class AttachmentToken {
2393
2393
 
2394
2394
  // NOTE: this is patched up with the actual build version by Jake task
2395
2395
  // build:package and has to be a valid semantic version as defined here: https://semver.org.
2396
- const fullBuildVersionString = '4.12.1';
2396
+ const fullBuildVersionString = '4.12.2-rc.1';
2397
2397
 
2398
2398
  //
2399
2399
  // Copyright © 2021 DittoLive Incorporated. All rights reserved.
@@ -7042,11 +7042,12 @@ class TransportConfig {
7042
7042
  const isNodeMacOS = process.platform === 'darwin';
7043
7043
  const isReactNative = isReactNativeBuild;
7044
7044
  const isReactNativeiOS = isReactNative;
7045
+ const isReactNativeMacOS = isReactNative;
7045
7046
  this.peerToPeer.bluetoothLE.isEnabled = enabled;
7046
7047
  this.peerToPeer.lan.isEnabled = enabled;
7047
7048
  this.peerToPeer.wifiAware.isEnabled = false;
7048
7049
  this.peerToPeer.awdl.isEnabled =
7049
- isNodeMacOS || isReactNativeiOS ? enabled : false;
7050
+ isNodeMacOS || isReactNativeiOS || isReactNativeMacOS ? enabled : false;
7050
7051
  }
7051
7052
  /**
7052
7053
  * Returns `true` if the transport configuration is frozen, otherwise
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.12.1",
3
+ "version": "4.12.2-rc.1",
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.com",
6
6
  "license": "SEE LICENSE IN LICENSE.md",
@@ -22855,6 +22855,11 @@ SWIGEXPORT jstring JNICALL Java_live_ditto_internal_swig_ffi_dittoffiJNI_ditto_1
22855
22855
  }
22856
22856
  }
22857
22857
  if (result) jresult = jenv->NewStringUTF((const char *)result);
22858
+ {
22859
+ if (result != NULL) {
22860
+ ditto_c_string_free(result);
22861
+ }
22862
+ }
22858
22863
  return jresult;
22859
22864
  }
22860
22865
 
@@ -24061,6 +24066,11 @@ SWIGEXPORT jstring JNICALL Java_live_ditto_internal_swig_ffi_dittoffiJNI_ditto_1
24061
24066
  }
24062
24067
  }
24063
24068
  if (result) jresult = jenv->NewStringUTF((const char *)result);
24069
+ {
24070
+ if (result != NULL) {
24071
+ ditto_c_string_free(result);
24072
+ }
24073
+ }
24064
24074
  return jresult;
24065
24075
  }
24066
24076
 
@@ -24308,6 +24318,11 @@ SWIGEXPORT jstring JNICALL Java_live_ditto_internal_swig_ffi_dittoffiJNI_ditto_1
24308
24318
  }
24309
24319
  }
24310
24320
  if (result) jresult = jenv->NewStringUTF((const char *)result);
24321
+ {
24322
+ if (result != NULL) {
24323
+ ditto_c_string_free(result);
24324
+ }
24325
+ }
24311
24326
  return jresult;
24312
24327
  }
24313
24328
 
@@ -24572,6 +24587,11 @@ SWIGEXPORT jstring JNICALL Java_live_ditto_internal_swig_ffi_dittoffiJNI_ditto_1
24572
24587
  }
24573
24588
  }
24574
24589
  if (result) jresult = jenv->NewStringUTF((const char *)result);
24590
+ {
24591
+ if (result != NULL) {
24592
+ ditto_c_string_free(result);
24593
+ }
24594
+ }
24575
24595
  return jresult;
24576
24596
  }
24577
24597
 
@@ -25735,6 +25755,11 @@ SWIGEXPORT jstring JNICALL Java_live_ditto_internal_swig_ffi_dittoffiJNI_dittoff
25735
25755
  jenv->ReleaseByteArrayElements(jarg1, (jbyte *)(&arg1)->ptr, JNI_ABORT);
25736
25756
  }
25737
25757
  }
25758
+ {
25759
+ if (result != NULL) {
25760
+ ditto_c_string_free(result);
25761
+ }
25762
+ }
25738
25763
  return jresult;
25739
25764
  }
25740
25765
 
@@ -25964,6 +25989,11 @@ SWIGEXPORT jstring JNICALL Java_live_ditto_internal_swig_ffi_dittoffiJNI_dittoff
25964
25989
  }
25965
25990
  }
25966
25991
  if (result) jresult = jenv->NewStringUTF((const char *)result);
25992
+ {
25993
+ if (result != NULL) {
25994
+ ditto_c_string_free(result);
25995
+ }
25996
+ }
25967
25997
  return jresult;
25968
25998
  }
25969
25999
 
@@ -26502,6 +26532,11 @@ SWIGEXPORT jstring JNICALL Java_live_ditto_internal_swig_ffi_dittoffiJNI_dittoff
26502
26532
  }
26503
26533
  }
26504
26534
  if (result) jresult = jenv->NewStringUTF((const char *)result);
26535
+ {
26536
+ if (result != NULL) {
26537
+ ditto_c_string_free(result);
26538
+ }
26539
+ }
26505
26540
  return jresult;
26506
26541
  }
26507
26542
 
@@ -27997,6 +28032,11 @@ SWIGEXPORT jstring JNICALL Java_live_ditto_internal_swig_ffi_dittoffiJNI_dittoff
27997
28032
  }
27998
28033
  }
27999
28034
  if (result) jresult = jenv->NewStringUTF((const char *)result);
28035
+ {
28036
+ if (result != NULL) {
28037
+ ditto_c_string_free(result);
28038
+ }
28039
+ }
28000
28040
  return jresult;
28001
28041
  }
28002
28042
 
@@ -28072,6 +28112,11 @@ SWIGEXPORT jstring JNICALL Java_live_ditto_internal_swig_ffi_dittoffiJNI_dittoff
28072
28112
  }
28073
28113
  }
28074
28114
  if (result) jresult = jenv->NewStringUTF((const char *)result);
28115
+ {
28116
+ if (result != NULL) {
28117
+ ditto_c_string_free(result);
28118
+ }
28119
+ }
28075
28120
  return jresult;
28076
28121
  }
28077
28122
 
@@ -29454,6 +29499,11 @@ SWIGEXPORT jstring JNICALL Java_live_ditto_internal_swig_ffi_dittoffiJNI_dittoff
29454
29499
  }
29455
29500
  }
29456
29501
  if (result) jresult = jenv->NewStringUTF((const char *)result);
29502
+ {
29503
+ if (result != NULL) {
29504
+ ditto_c_string_free(result);
29505
+ }
29506
+ }
29457
29507
  return jresult;
29458
29508
  }
29459
29509
 
@@ -469,6 +469,16 @@
469
469
  %newobject ditto_get_complete_attachment_path;
470
470
  %newobject ditto_get_sdk_version;
471
471
  %newobject ditto_document_id_query_compatible;
472
+ %newobject dittoffi_query_result_item_json;
473
+ %newobject ditto_small_peer_info_get_metadata;
474
+ %newobject dittoffi_error_description;
475
+ %newobject dittoffi_base64_encode;
476
+ %newobject ditto_presence_v3;
477
+ %newobject ditto_transports_diagnostics;
478
+ %newobject dittoffi_get_sdk_semver;
479
+ %newobject dittoffi_ditto_absolute_persistence_directory;
480
+ %newobject ditto_sdk_transports_error_description;
481
+ %newobject dittoffi_connection_request_peer_key_string;
472
482
 
473
483
  // To make it possible (or at least a lot easier) to work with pointers to some
474
484
  // of the Ditto_* types we use the `%pointer_functions` directive to provide a