storesafe / cordova-sqlite-evcore-extbuild-free

Cordova sqlite plugin with Android performance enhancements for PhoneGap Build, GPL v3 or commercial license options
Other
24 stars 13 forks source link

Windows version does not work with PhoneGap Build #1

Open brodybits opened 8 years ago

brodybits commented 8 years ago

When I tried building a Windows version of my test app at https://github.com/brodybits/Cordova-sql-test-app-evcore-free-pgb with PhoneGap Build it would not work with this plugin. Using the echoTest function would not work. However displaying a dialog using cordova-plugin-dialogs does work with Windows on PhoneGap Build.

brodybits commented 7 years ago

I tried PhoneGap Build with another version of my test app at https://github.com/brodybits/Cordova-sql-test-app-legacy-pgb that uses cordova-sqlite-legacy and it is able to pass the echoTest and selfTest stages. I think that PhoneGap Build will still use the wp8 target by default.

I tried following http://phonegap.com/blog/2016/04/25/windows-10-and-phonegap-cli-6_1-now-on-build/ to test the test app with Windows 10 mobile, and the PhoneGap Build web interface tells me that they have to investigate the build error. I will update this once I hear back from them.

brodybits commented 7 years ago

Raised phonegap/build#530. It doesn't even seem to work with a dialog test app.

brodybits commented 7 years ago

Related question at https://forums.adobe.com/message/8864670 - still not answered!

brodybits commented 7 years ago

Current status:

I think the next step is to investigate why an app built by PhoneGap Build with this plugin crashes on Windows. Another idea may be to build the SQLite3 C++ libs manually.

brodybits commented 7 years ago

I discovered that for some reason PhoneGap Build does not build the SQLite3 component. Here is some log for the build of https://github.com/brodybits/Cordova-sqlite-evcore-free-PGB-W10-arm-test:

Build Date: 2016-10-27 18:20:18 +0000
--------------------------------------------------------------------------------
PLUGIN OUTPUT
--------------------------------------------------------------------------------
Fetching plugin "cordova-plugin-dialogs@~1.3.0" via npm
Installing "cordova-plugin-dialogs" at "1.3.0" for windows
Fetching plugin "cordova-sqlite-evcore-extbuild-free@~0.8.2" via npm
Installing "cordova-sqlite-evcore-extbuild-free" at "0.8.2" for windows
Building project: C:\cygwin\tmp\gimlet\2327652\project\CordovaApp.Windows10.jsproj
    Configuration : debug
    Platform      : arm
C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.Common.CurrentVersion.targets(1610,5): warning : The referenced project '..\..\cordova\plugins\cordova-sqlite-evcore-extbuild-free\src\windows\SQLite3-Win-RT\SQLite3\SQLite3.UWP\SQLite3.UWP.vcxproj' does not exist. [C:\cygwin\tmp\gimlet\2327652\project\CordovaApp.Windows10.jsproj]
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\AppxPackage\Microsoft.AppXPackage.Targets(4330,5): warning MSB3202: The project file "..\..\cordova\plugins\cordova-sqlite-evcore-extbuild-free\src\windows\SQLite3-Win-RT\SQLite3\SQLite3.UWP\SQLite3.UWP.vcxproj" was not found. [C:\cygwin\tmp\gimlet\2327652\project\CordovaApp.Windows10.jsproj]
  CordovaApp.Windows10 -> C:\cygwin\tmp\gimlet\2327652\project\AppPackages\CordovaApp.Windows10_0.0.1.0_arm_debug_Test\CordovaApp.Windows10_0.0.1.0_arm_debug.appx

I get similar log for the x86 build as well.

For some reason PhoneGap Build does not see and include SQLite3.UWP.vcxproj from the plugins directory tree. I will also try this on the legacy version and then raise a new issue on https://github.com/phonegap/build.