Skip to content
This repository has been archived by the owner on May 30, 2023. It is now read-only.

Older plugin version available for PhoneGap Build? #25

Closed
asgathea opened this issue Dec 18, 2014 · 12 comments
Closed

Older plugin version available for PhoneGap Build? #25

asgathea opened this issue Dec 18, 2014 · 12 comments

Comments

@asgathea
Copy link

Hi,

I'm trying to create a PhoneGap app that uses this plugin and the Facebook Connect plugin. Unfortunately I get a "jar mismatch" error on PhoneGap Build when both plugins are included. Apparently the Google Plus plugin uses version 21 of android-support-v4.jar while the other plugin uses version 20. Is it possible to make version 1.0.5 of the Google Plus plugin available for PhoneGap Build again?

@EddyVerbruggen
Copy link
Owner

That's a nasty clash :{

I'll investigate this a bit and will update this issue shortly.

@EddyVerbruggen
Copy link
Owner

Ha, found a solution. The Facebook plugin has been updated to the exact same jar as this plugin, so upgrading the Facebook plugin should fix your troubles.

They have however not yet updated phonegap build, but since pgb now supports pulling plugins from the Cordova plugin registry, you should be able to update your plugin.xml to this:

<gap:plugin name="com.phonegap.plugins.facebookconnect" source="plugins.cordova.io" />

@nicholasareed
Copy link

That fix doesn't appear to work. Using the following and trying to build on PhoneGap Build:

<gap:plugin name="com.phonegap.plugins.facebookconnect" source="plugins.cordova.io">
    <param name="APP_ID" value="app_id_here" />
    <param name="APP_NAME" value="name_here" />
</gap:plugin>

both iOS and Android fail to build.

Leaving it out, or including the specific PGB version does work:

<gap:plugin name="com.phonegap.plugins.facebookconnect">

but then including the GooglePlus login too

<gap:plugin name="nl.x-services.plugins.googleplus" version="1.0.7" />

again results in neither building successfully.

The facebookconnect plugin seems to have a bug pulling from the plugins.cordova.io repo, and I can't put it on PGB (too big of a plugin!).

@EddyVerbruggen
Copy link
Owner

I think you're best off asking why FBConnect can't be pulled from the Cordova plugin registry at the FBConnect forum.

@nicholasareed
Copy link

@EddyVerbruggen Here's a solution to the plugman tarball issue: Wizcorp/phonegap-facebook-plugin#839 (comment)

@EddyVerbruggen
Copy link
Owner

Thanks @nicholasareed, that's a bit of a hassle, but it seems to work. Please try the freshly published 1.0.8 version <gap:plugin name="nl.x-services.plugins.googleplus" version="1.0.8" source="plugins.cordova.io"/>

@nicholasareed
Copy link

@EddyVerbruggen happy holidays, thanks for adding that update!

Unfortunately, symlinks aren't preserved (only the iOS source has them: https://github.com/EddyVerbruggen/cordova-plugin-googleplus/tree/master/src/ios/libs/GoogleOpenSource.framework ) and it breaks on PGB.

Error log for PGB contains some meaningful stuff about failing to #import <GoogleOpenSource/GoogleOpenSource.h>:

CompileC build/Wishlist.build/Release-iphoneos/Wishlist.build/Objects-normal/armv7/GooglePlus.o Wishlist/Plugins/nl.x-services.plugins.googleplus/GooglePlus.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler
    cd /project
    export LANG=en_US.US-ASCII
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -arch armv7 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=c99 -fobjc-arc -Wno-trigraphs -fpascal-strings -Os -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-implicit-atomic-properties -Wno-receiver-is-weak -Wno-arc-repeated-use-of-weak -Wduplicate-method-match -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wno-shorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wno-deprecated-implementations -DCORDOVA_FRAMEWORK=1 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -g -fvisibility=hidden -Wno-sign-conversion -miphoneos-version-min=7.0 -iquote /project/build/Wishlist.build/Release-iphoneos/Wishlist.build/Wishlist-generated-files.hmap -I/project/build/Wishlist.build/Release-iphoneos/Wishlist.build/Wishlist-own-target-headers.hmap -I/project/build/Wishlist.build/Release-iphoneos/Wishlist.build/Wishlist-all-target-headers.hmap -iquote /project/build/Wishlist.build/Release-iphoneos/Wishlist.build/Wishlist-project-headers.hmap -I/project/build/include -I/project/build/usr/local/lib/include -I/project/build/UninstalledProducts/include -I/project/build -I/project/build/Wishlist.build/Release-iphoneos/Wishlist.build/DerivedSources/armv7 -I/project/build/Wishlist.build/Release-iphoneos/Wishlist.build/DerivedSources -F/project/build -FWishlist/Plugins/nl.x-services.plugins.googleplus -include /var/folders/b2/s6cv_gm10h53_s9lhg72_1cw0000gp/C/com.apple.DeveloperTools/6.1-6A1052d/Xcode/SharedPrecompiledHeaders/Wishlist-Prefix-csdlecntuecnkzegvdjwddafdifw/Wishlist-Prefix.pch -MMD -MT dependencies -MF /project/build/Wishlist.build/Release-iphoneos/Wishlist.build/Objects-normal/armv7/GooglePlus.d --serialize-diagnostics /project/build/Wishlist.build/Release-iphoneos/Wishlist.build/Objects-normal/armv7/GooglePlus.dia -c /project/Wishlist/Plugins/nl.x-services.plugins.googleplus/GooglePlus.m -o /project/build/Wishlist.build/Release-iphoneos/Wishlist.build/Objects-normal/armv7/GooglePlus.o
/project/Wishlist/Plugins/nl.x-services.plugins.googleplus/GooglePlus.m:1:9: fatal error: 'GoogleOpenSource/GoogleOpenSource.h' file not found
#import <GoogleOpenSource/GoogleOpenSource.h>
        ^
1 error generated.

I guess npm pack doesn't work as advertised, or the plugins.cordova.io registry is broken?

Also, if you can recommend any direction on getting the server-side to have access to the email scope after receiving the authToken from this plugin, that would be great! I can get access to the entire G+ profile, but no email addresses (but I get one from the G+ plugin).

@EddyVerbruggen
Copy link
Owner

Could you try to rebuild it? I've just updated that 1.0.8 version at plugins.cordova.io (not pushed to this repo yet) version to no longer include symlinks. I tried building it in PGB and that seemed to work fine (not yet tested any runtime code yet though).

@nicholasareed
Copy link

Alright! Builds for Android and iOS using the tag you pasted a few posts ago.

@celwell
Copy link

celwell commented May 7, 2015

Also, if you can recommend any direction on getting the server-side to have access to the email scope after receiving the authToken from this plugin, that would be great! I can get access to the entire G+ profile, but no email addresses (but I get one from the G+ plugin).

@nicholasareed Hey Nicholas, did you ever find a solution to getting the Email addresses on the scope? I, too, need to retrieve it server side but the scope is not including email address.

@nicholasareed
Copy link

@celwell I wish! I had to rip GPlus out because I couldn't get it working correctly. If you come across a newer solution, I'd love to hear about it

@celwell
Copy link

celwell commented May 8, 2015

@nicholasareed I ended up just taking the email address from the JS object in the response, and sending that alongside the auth token. So, now my email are able to be spoofed, since I'm not checking server side, oh well.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants