bitpay / cordova-plugin-qrscanner

A fast, energy efficient, highly-configurable QR code scanner for Cordova apps and the browser.
MIT License
568 stars 772 forks source link

PGB Compatible Plugin #229

Open danish1023 opened 5 years ago

danish1023 commented 5 years ago

Can Author or Anybody can make this plugin pgb compatible. Needed urgently. I can pay for this. Please help.

danish1023 commented 5 years ago

"SWIFT_VERSION" error on ios (phonegap build). Please help

danish1023 commented 5 years ago

@bitjson Error on Phonegap Build IOS: The “Swift Language Version” (SWIFT_VERSION) build setting must be set to a supported value for targets which use Swift. This setting can be set in the build settings editor.

Please help.

jdekany commented 5 years ago

For me helped to paste into config.xml

<preference name = "UseSwiftLanguageVersion" value = "4.2" />

Razorholt commented 5 years ago

For me helped to paste into config.xml

<preference name = "UseSwiftLanguageVersion" value = "4.2" />

Can you please be more specific? Here is the result I got after PGB building process failed:

The “Swift Language Version” (SWIFT_VERSION) build setting must be set to a supported value for targets which use Swift. Supported values are: 3.0, 4.0, 4.2. This setting can be set in the build settings editor.

Thanks WellBload!

Razorholt commented 5 years ago

Is there a swift 4 version out there? Otherwise, since I want to stick with Phonegap Build, what are my options? Thanks!

jdekany commented 5 years ago

For PGB I added to config.xml `

`

and plugin definition: <plugin name="cordova-plugin-qrscanner" source="npm" />

PGP build passed successfully for iOS and Android and plugin works!

Razorholt commented 5 years ago

Which phonegap-version are you using?

jdekany commented 5 years ago

cli-8.1.1

danish1023 commented 5 years ago

@WellBload

Can you please share your config.xml file so that we can identify where we are doing wrong, as we all are trying but failed.

Razorholt commented 5 years ago

Same phonegap version that I'm using... weird. Also, I don't understand why you specify swift 4.2 since the plugin requires swift 3. As @danish1023 suggested, can you please share your config file. Several of us are losing their minds right now. :) Thank you so much!!

jdekany commented 5 years ago

This is iOS part of my config.xml:

<platform name="ios">
    <preference name="phonegap-version" value="cli-8.1.1" />
    <preference name="BackupWebStorage" value="cloud" />
    <preference name="webviewbounce" value="false" />
    <preference name="DisallowOverscroll" value="true" />
    <preference name="SplashScreenDelay" value="10000" />
    <preference name="SuppressesLongPressGesture" value="true" />
    <preference name="EnableViewportScale" value="false" />
    <preference name="detect-data-types" value="true" />
    <preference name="exit-on-suspend" value="false" />
    <preference name="deployment-target" value="9.0.0" />
    <preference name="UseSwiftLanguageVersion" value="4.2" />
  </platform>

And plugins:

<!--Plugins-->
  <plugin name="cordova-plugin-dialogs" source="npm" />
  <plugin name="cordova-plugin-device" source="npm" />
  <plugin name="cordova-plugin-device-orientation" source="npm" />
  <plugin name="cordova-plugin-splashscreen" source="npm" />
  <plugin name="cordova-plugin-network-information" source="npm" />
  <plugin name="cordova-plugin-networkinterface" source="npm" />
  <plugin name="cordova-plugin-whitelist" source="npm" />
  <plugin name="cordova-plugin-android-gpsdetect" source="npm" />
  <plugin name="cordova-plugin-inappbrowser" source="npm" />
  <plugin spec="https://github.com/whiteoctober/cordova-plugin-app-version.git" source="git" />

  <plugin name="cordova-plugin-geolocation" source="npm" />
  <plugin name="cordova-plugin-statusbar" source="npm" />

  <plugin name="cordova-plugin-qrscanner" source="npm" />
  <plugin spec="https://github.com/fasjunior/cordova-plugin-fingerprint-aio.git" source="git" />

Good luck

Razorholt commented 5 years ago

Thank you @WellBload but I still couldn't make it work. Tired of it. So I'll switch to phonegap-plugin-barcodescanner. I appreciate your time!