Skip to content

Commit

Permalink
Upgrading to cordova ios 6.2.0
Browse files Browse the repository at this point in the history
And latest sources
  • Loading branch information
wmathurin committed Aug 26, 2021
1 parent 5ac3822 commit 21e850b
Show file tree
Hide file tree
Showing 7 changed files with 31 additions and 16 deletions.
2 changes: 1 addition & 1 deletion plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
<js-module src="www/com.salesforce.util.push.js" name="util.push"></js-module>

<engines>
<engine name="cordova-ios" version="6.1.1" />
<engine name="cordova-ios" version="6.2.0" />
<engine name="cordova-android" version="10.1.0" />
</engines>

Expand Down
6 changes: 4 additions & 2 deletions src/android/libs/MobileSync/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,10 @@ android {

ext {
PUBLISH_GROUP_ID = 'com.salesforce.mobilesdk'
PUBLISH_VERSION = '9.1.1'
PUBLISH_VERSION = '9.2.0'
PUBLISH_ARTIFACT_ID = 'MobileSync'
}

apply from: "${rootProject.projectDir}/publish/publish-module.gradle"
if (rootProject.name == 'SalesforceMobileSDK-Android') {
apply from: "${rootProject.projectDir}/publish/publish-module.gradle"
}
6 changes: 4 additions & 2 deletions src/android/libs/SalesforceAnalytics/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,10 @@ android {

ext {
PUBLISH_GROUP_ID = 'com.salesforce.mobilesdk'
PUBLISH_VERSION = '9.1.1'
PUBLISH_VERSION = '9.2.0'
PUBLISH_ARTIFACT_ID = 'SalesforceAnalytics'
}

apply from: "${rootProject.projectDir}/publish/publish-module.gradle"
if (rootProject.name == 'SalesforceMobileSDK-Android') {
apply from: "${rootProject.projectDir}/publish/publish-module.gradle"
}
6 changes: 4 additions & 2 deletions src/android/libs/SalesforceHybrid/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,10 @@ android {

ext {
PUBLISH_GROUP_ID = 'com.salesforce.mobilesdk'
PUBLISH_VERSION = '9.1.1'
PUBLISH_VERSION = '9.2.0'
PUBLISH_ARTIFACT_ID = 'SalesforceHybrid'
}

apply from: "${rootProject.projectDir}/publish/publish-module.gradle"
if (rootProject.name == 'SalesforceMobileSDK-Android') {
apply from: "${rootProject.projectDir}/publish/publish-module.gradle"
}
6 changes: 4 additions & 2 deletions src/android/libs/SalesforceSDK/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,10 @@ android {

ext {
PUBLISH_GROUP_ID = 'com.salesforce.mobilesdk'
PUBLISH_VERSION = '9.1.1'
PUBLISH_VERSION = '9.2.0'
PUBLISH_ARTIFACT_ID = 'SalesforceSDK'
}

apply from: "${rootProject.projectDir}/publish/publish-module.gradle"
if (rootProject.name == 'SalesforceMobileSDK-Android') {
apply from: "${rootProject.projectDir}/publish/publish-module.gradle"
}
6 changes: 4 additions & 2 deletions src/android/libs/SmartStore/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,10 @@ android {

ext {
PUBLISH_GROUP_ID = 'com.salesforce.mobilesdk'
PUBLISH_VERSION = '9.1.1'
PUBLISH_VERSION = '9.2.0'
PUBLISH_ARTIFACT_ID = 'SmartStore'
}

apply from: "${rootProject.projectDir}/publish/publish-module.gradle"
if (rootProject.name == 'SalesforceMobileSDK-Android') {
apply from: "${rootProject.projectDir}/publish/publish-module.gradle"
}
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
import java.io.FilenameFilter;
import java.io.IOException;
import java.io.InputStream;
import java.util.Collections;
import java.util.HashSet;
import java.util.Set;

Expand Down Expand Up @@ -269,9 +270,13 @@ public void deleteAll() {
file.delete();
}
} else {
for (String key : keySet()) {
SmartStoreLogger.i(TAG, "deleting key :" + key);
deleteValue(key);
for (File file : safeListFiles(KEY_SUFFIX)) {
SmartStoreLogger.i(TAG, "deleting file :" + file.getName());
file.delete();
}
for (File file : safeListFiles(VALUE_SUFFIX)) {
SmartStoreLogger.i(TAG, "deleting file :" + file.getName());
file.delete();
}
}
}
Expand All @@ -293,7 +298,7 @@ public Set<String> keySet() {
keys.add(key);
} catch (Exception e) {
SmartStoreLogger.e(TAG, "keySet(): Threw exception for:" + file.getName(), e);
return null;
// skip the bad key but keep going
}
}
return keys;
Expand All @@ -302,7 +307,7 @@ public Set<String> keySet() {
/** @return number of entries in the store. */
@Override
public int count() {
return kvVersion == 1 ? safeListFiles(null /* all */).length : safeListFiles(VALUE_SUFFIX).length;
return kvVersion == 1 ? safeListFiles(null /* all */).length : keySet().size();
}

/** @return True if store is empty. */
Expand Down

0 comments on commit 21e850b

Please sign in to comment.