leap-capacitor 1.6.0 → 1.6.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/android/build.gradle
CHANGED
|
@@ -51,7 +51,7 @@ repositories {
|
|
|
51
51
|
dependencies {
|
|
52
52
|
implementation fileTree(dir: 'libs', include: ['*.jar'])
|
|
53
53
|
implementation project(':capacitor-android')
|
|
54
|
-
implementation 'is.leap.android:sdk:1.11.
|
|
54
|
+
implementation 'is.leap.android:sdk:1.11.1'
|
|
55
55
|
implementation "androidx.appcompat:appcompat:$androidxAppCompatVersion"
|
|
56
56
|
testImplementation "junit:junit:$junitVersion"
|
|
57
57
|
androidTestImplementation "androidx.test.ext:junit:$androidxJunitVersion"
|
|
@@ -128,9 +128,11 @@ public class LeapPlugin extends Plugin {
|
|
|
128
128
|
if(propValue instanceof String) {
|
|
129
129
|
String valueStr = (String) propValue;
|
|
130
130
|
if (valueStr.startsWith(DATE_TYPE_PREFIX)) {
|
|
131
|
-
String
|
|
131
|
+
String[] split = valueStr.split(DATE_TYPE_PREFIX);
|
|
132
|
+
if (split.length != 2) break;
|
|
133
|
+
String dateValue = split[1];
|
|
132
134
|
Date date = getDate(dateValue);
|
|
133
|
-
leapBuilder.addProperty(key, date);
|
|
135
|
+
if(date != null) leapBuilder.addProperty(key, date);
|
|
134
136
|
break;
|
|
135
137
|
}
|
|
136
138
|
leapBuilder.addProperty(key, String.valueOf(propValue));
|
|
@@ -159,9 +161,11 @@ public class LeapPlugin extends Plugin {
|
|
|
159
161
|
if(propValue instanceof String) {
|
|
160
162
|
String valueStr = (String) propValue;
|
|
161
163
|
if (valueStr.startsWith(DATE_TYPE_PREFIX)) {
|
|
162
|
-
String
|
|
164
|
+
String[] split = valueStr.split(DATE_TYPE_PREFIX);
|
|
165
|
+
if (split.length != 2) break;
|
|
166
|
+
String dateValue = split[1];
|
|
163
167
|
Date date = getDate(dateValue);
|
|
164
|
-
leapPropertyBuilder.addProperty(key, date);
|
|
168
|
+
if(date != null) leapPropertyBuilder.addProperty(key, date);
|
|
165
169
|
break;
|
|
166
170
|
}
|
|
167
171
|
leapPropertyBuilder.addProperty(key, String.valueOf(propValue));
|
|
@@ -221,8 +225,7 @@ public class LeapPlugin extends Plugin {
|
|
|
221
225
|
offlineProjId = array.getString(i);
|
|
222
226
|
} catch (JSONException e) {
|
|
223
227
|
}
|
|
224
|
-
if(offlineProjId != null)
|
|
225
|
-
offlineProjList.add(offlineProjId);
|
|
228
|
+
if(offlineProjId != null) offlineProjList.add(offlineProjId);
|
|
226
229
|
}
|
|
227
230
|
Leap.offlineSync(offlineProjList);
|
|
228
231
|
call.resolve();
|