Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add an option to suppress the result message (was: build failed) #32

Open
riaz12s opened this issue May 9, 2016 · 13 comments
Open

Add an option to suppress the result message (was: build failed) #32

riaz12s opened this issue May 9, 2016 · 13 comments

Comments

@riaz12s
Copy link

riaz12s commented May 9, 2016

Hi,

Has anyone noticed that this build is now failing ?

Unable to use this with PhoneGap Build

Thanks

@EddyVerbruggen
Copy link

How do you build your app?
And for which platform, cordova version?

@riaz12s
Copy link
Author

riaz12s commented May 9, 2016

I upload my zip file to PhoneGap Build ...

Config.xml file I specify:
<plugin spec="https://github.com/Telerik-Verified-Plugins/BarcodeScanner" source="git" />

PhoneGap (iOS / Android / Windows)
cli-5.2.0 (3.9.1 / 4.1.1 / 3.8.1)

@EddyVerbruggen
Copy link

And what's the error exactly (there should be a button to reveal it)

@riaz12s
Copy link
Author

riaz12s commented May 9, 2016

-compile:
[javac] Compiling 6 source files to /project/bin/classes
[javac] /project/src/com/phonegap/plugins/barcodescanner/BarcodeScanner.java:26: error: package com.google.zxing.client.android does not exist
[javac] import com.google.zxing.client.android.Intents;
[javac] ^
[javac] /project/src/com/phonegap/plugins/barcodescanner/BarcodeScanner.java:173: error: package Intents does not exist
[javac] intentScan.putExtra(Intents.Scan.CAMERA_ID, obj.optBoolean(PREFER_FRONTCAMERA, false) ? 1 : 0);
[javac] ^
[javac] /project/src/com/phonegap/plugins/barcodescanner/BarcodeScanner.java:174: error: package Intents does not exist
[javac] intentScan.putExtra(Intents.Scan.SHOW_FLIP_CAMERA_BUTTON, obj.optBoolean(SHOW_FLIP_CAMERA_BUTTON, false));
[javac] ^
[javac] /project/src/com/phonegap/plugins/barcodescanner/BarcodeScanner.java:176: error: package Intents does not exist
[javac] intentScan.putExtra(Intents.Scan.FORMATS, obj.optString(FORMATS));
[javac] ^
[javac] /project/src/com/phonegap/plugins/barcodescanner/BarcodeScanner.java:179: error: package Intents does not exist
[javac] intentScan.putExtra(Intents.Scan.PROMPT_MESSAGE, obj.optString(PROMPT));
[javac] ^
[javac] /project/src/com/phonegap/plugins/barcodescanner/BarcodeScanner.java:182: error: package Intents does not exist
[javac] intentScan.putExtra(Intents.Scan.ORIENTATION_LOCK, obj.optString(ORIENTATION));
[javac] ^
[javac] 6 errors

BUILD FAILED
/android-sdk/tools/ant/build.xml:716: The following error occurred while executing this line:
/android-sdk/tools/ant/build.xml:730: Compile failed; see the compiler error output for details.

@EddyVerbruggen
Copy link

Can you doublecheck you've configured PGB to build with gradle instead of ant?

@riaz12s
Copy link
Author

riaz12s commented May 9, 2016

I'm not sure where I should specify that, but this is my config.xml
`

<widget xmlns   = "http://www.w3.org/ns/widgets"
    xmlns:gap   = "http://phonegap.com/ns/1.0"
    id          = "com.phonegap.example"
    versionCode = "10" 
    version     = "1.0.0" >
<name>My Scanner</name>

<description>
    Scan Items
</description>

<author href="https://build.phonegap.com" email="[email protected]">
    Author Name
</author>

<access origin="*" />
<allow-intent href="*" />
<allow-navigation href="*" />

<preference name="EnableViewportScale" value="true" />

<platform name="android" />

<gap:plugin name="cordova-plugin-whitelist" source="npm" />
<plugin spec="https://github.com/Telerik-Verified-Plugins/BarcodeScanner" source="git" />    

`

@EddyVerbruggen
Copy link

@riaz12s
Copy link
Author

riaz12s commented May 9, 2016

EddyVerbruggen, YOU ARE A STAR!!! works now!!

Thanks so much you have no idea how much you've helped me!

@EddyVerbruggen
Copy link

Awesome, glad that worked!

@riaz12s
Copy link
Author

riaz12s commented May 9, 2016

Hey Eddy!

I'm wanted to find out if it's possible to change the result messages.. after you scan a barcode there's a result message at the bottom that says... for example: Found URL

Is it possible to remove this message from showing up ?

Thanks!

@EddyVerbruggen
Copy link

Can you share a screenshot?

@riaz12s
Copy link
Author

riaz12s commented May 9, 2016

screenshot_2016-05-09-16-44-15

I added a red line around the result message.

@EddyVerbruggen
Copy link

That was added by the ZXing guys recently. We could add an option to suppress it but it's not currently possible.

@EddyVerbruggen EddyVerbruggen changed the title Build Failed Add an option to suppress the result message (was: build failed) May 9, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants