cordova-sqlite-evmax-build-free 0.0.8 → 0.0.9

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.
@@ -11,7 +11,7 @@
11
11
  <ItemDefinitionGroup>
12
12
  <ClCompile>
13
13
  <AdditionalIncludeDirectories>%(AdditionalIncludeDirectories);$(MSBuildThisFileDirectory);$(MSBuildThisFileDirectory)..\..\..\deps\common;$(MSBuildThisFileDirectory)..\..\..\deps\common\sqlite3-base64;$(MSBuildThisFileDirectory)..\..\..\deps\common\libb64-core</AdditionalIncludeDirectories>
14
- <AdditionalOptions>/DSQLITE_THREADSAFE=1 /DSQLITE_DEFAULT_SYNCHRONOUS=3 /DHAVE_USLEEP=1 /DSQLITE_DEFAULT_MEMSTATUS=0 /DSQLITE_OMIT_DECLTYPE /DSQLITE_OMIT_DEPRECATED /DSQLITE_OMIT_PROGRESS_CALLBACK /DSQLITE_OMIT_SHARED_CACHE /DSQLITE_TEMP_STORE=2 /DSQLITE_OMIT_LOAD_EXTENSION /DSQLITE_ENABLE_FTS3 /DSQLITE_ENABLE_FTS3_PARENTHESIS /DSQLITE_ENABLE_FTS4 /DSQLITE_ENABLE_FTS5 /DSQLITE_ENABLE_RTREE /DSQLITE_ENABLE_JSON1 /DSQLITE_DEFAULT_PAGE_SIZE=4096 /DSQLITE_DEFAULT_CACHE_SIZE=-2000 /DSQLITE_OS_WINRT %(AdditionalOptions)</AdditionalOptions>
14
+ <AdditionalOptions>/DSQLITE_THREADSAFE=1 /DSQLITE_DEFAULT_SYNCHRONOUS=3 /DHAVE_USLEEP=1 /DSQLITE_DEFAULT_MEMSTATUS=0 /DSQLITE_OMIT_DECLTYPE /DSQLITE_OMIT_DEPRECATED /DSQLITE_OMIT_PROGRESS_CALLBACK /DSQLITE_OMIT_SHARED_CACHE /DSQLITE_TEMP_STORE=2 /DSQLITE_OMIT_LOAD_EXTENSION /DSQLITE_ENABLE_FTS3 /DSQLITE_ENABLE_FTS3_PARENTHESIS /DSQLITE_ENABLE_FTS4 /DSQLITE_ENABLE_FTS5 /DSQLITE_ENABLE_RTREE /DSQLITE_ENABLE_JSON1 /DSQLITE_ENABLE_MATH_FUNCTIONS /DSQLITE_DEFAULT_PAGE_SIZE=4096 /DSQLITE_DEFAULT_CACHE_SIZE=-2000 /DSQLITE_OS_WINRT %(AdditionalOptions)</AdditionalOptions>
15
15
  </ClCompile>
16
16
  </ItemDefinitionGroup>
17
17
  <ItemGroup>
Binary file
Binary file
@@ -794,13 +794,16 @@ Contact for commercial license: sales@litehelpers.net
794
794
  if (!openargs.name) {
795
795
  throw newSQLError('Database name value is missing in openDatabase call');
796
796
  }
797
- if (!openargs.iosDatabaseLocation && !openargs.location && openargs.location !== 0) {
798
- throw newSQLError('Database location or iosDatabaseLocation setting is now mandatory in openDatabase call.');
797
+ if (!openargs.iosDatabaseLocation && !openargs.location && openargs.location !== 0 && !openargs.androidDatabaseLocation) {
798
+ throw newSQLError('Database location (or iosDatabaseLocation or androidDatabaseLocation) setting is now mandatory in openDatabase call.');
799
799
  }
800
800
  if (!!openargs.location && !!openargs.iosDatabaseLocation) {
801
801
  throw newSQLError('AMBIGUOUS: both location and iosDatabaseLocation settings are present in openDatabase call. Please use either setting, not both.');
802
802
  }
803
- dblocation = !!openargs.location && openargs.location === 'default' ? iosLocationMap['default'] : !!openargs.iosDatabaseLocation ? iosLocationMap[openargs.iosDatabaseLocation] : dblocations[openargs.location];
803
+ if (!!openargs.location && !!openargs.androidDatabaseLocation) {
804
+ throw newSQLError('AMBIGUOUS: both location and androidDatabaseLocation settings are present in openDatabase call. Please use either setting, not both. But you *can* use androidDatabaseLocation and iosDatabaseLocation together.');
805
+ }
806
+ dblocation = !!openargs.location && openargs.location === 'default' ? iosLocationMap['default'] : !!openargs.iosDatabaseLocation ? iosLocationMap[openargs.iosDatabaseLocation] : !openargs.location && openargs.location !== 0 ? iosLocationMap['default'] : dblocations[openargs.location];
804
807
  if (!dblocation) {
805
808
  throw newSQLError('Valid iOS database location could not be determined in openDatabase call');
806
809
  }
@@ -848,17 +851,23 @@ Contact for commercial license: sales@litehelpers.net
848
851
  }
849
852
  args.path = dbname;
850
853
  }
851
- if (!first.iosDatabaseLocation && !first.location && first.location !== 0) {
852
- throw newSQLError('Database location or iosDatabaseLocation setting is now mandatory in deleteDatabase call.');
854
+ if (!first.iosDatabaseLocation && !first.location && first.location !== 0 && !first.androidDatabaseLocation) {
855
+ throw newSQLError('Database location (or iosDatabaseLocation or androidDatabaseLocation) setting is now mandatory in deleteDatabase call.');
853
856
  }
854
857
  if (!!first.location && !!first.iosDatabaseLocation) {
855
858
  throw newSQLError('AMBIGUOUS: both location and iosDatabaseLocation settings are present in deleteDatabase call. Please use either setting value, not both.');
856
859
  }
857
- dblocation = !!first.location && first.location === 'default' ? iosLocationMap['default'] : !!first.iosDatabaseLocation ? iosLocationMap[first.iosDatabaseLocation] : dblocations[first.location];
860
+ if (!!first.location && !!first.androidDatabaseLocation) {
861
+ throw newSQLError('AMBIGUOUS: both location and androidDatabaseLocation settings are present in deleteDatabase call. Please use either setting, not both. But you *can* use androidDatabaseLocation and iosDatabaseLocation together.');
862
+ }
863
+ dblocation = !!first.location && first.location === 'default' ? iosLocationMap['default'] : !!first.iosDatabaseLocation ? iosLocationMap[first.iosDatabaseLocation] : !first.location && first.location !== 0 ? iosLocationMap['default'] : dblocations[first.location];
858
864
  if (!dblocation) {
859
865
  throw newSQLError('Valid iOS database location could not be determined in deleteDatabase call');
860
866
  }
861
867
  args.dblocation = dblocation;
868
+ if (!!first.androidDatabaseLocation) {
869
+ args.androidDatabaseLocation = first.androidDatabaseLocation;
870
+ }
862
871
  delete SQLitePlugin.prototype.openDBs[args.path];
863
872
  delete SQLitePlugin.prototype.dbidmap[args.path];
864
873
  delete SQLitePlugin.prototype.fjmap[args.path];