Skip to content

Commit eb4112f

Browse files
author
Krzysztof Borowy
committed
v1.6.0
1 parent a50c63f commit eb4112f

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

android/build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ if( newDbSize != null && newDbSize.isLong()) {
3030
dbSizeInMB = newDbSize.toLong()
3131
}
3232

33-
def useCustomExecutor = rootProject.hasProperty('AsyncStorage_useCustomExecutor')
34-
? rootProject.properties['AsyncStorage_useCustomExecutor']
33+
def useDedicatedExecutor = rootProject.hasProperty('AsyncStorage_dedicatedExecutor')
34+
? rootProject.properties['AsyncStorage_dedicatedExecutor']
3535
: false
3636

3737
apply plugin: 'com.android.library'
@@ -45,7 +45,7 @@ android {
4545
targetSdkVersion getExtOrIntegerDefault('targetSdkVersion')
4646

4747
buildConfigField "Long", "AsyncStorage_db_size", "${dbSizeInMB}L"
48-
buildConfigField("boolean", "AsyncStorage_useCustomExecutor", "${useCustomExecutor}")
48+
buildConfigField("boolean", "AsyncStorage_useDedicatedExecutor", "${useDedicatedExecutor}")
4949
}
5050
}
5151

android/src/main/java/com/reactnativecommunity/asyncstorage/AsyncStorageModule.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ synchronized void scheduleNext() {
8181
public AsyncStorageModule(ReactApplicationContext reactContext) {
8282
this(
8383
reactContext,
84-
BuildConfig.AsyncStorage_useCustomExecutor
84+
BuildConfig.AsyncStorage_useDedicatedExecutor
8585
? Executors.newSingleThreadExecutor()
8686
: AsyncTask.THREAD_POOL_EXECUTOR
8787
);

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@react-native-community/async-storage",
3-
"version": "1.5.1",
3+
"version": "1.6.0",
44
"description": "Asynchronous, persistent, key-value storage system for React Native.",
55
"types": "./types/index.d.ts",
66
"main": "lib/index.js",

0 commit comments

Comments
 (0)