fullstackreact / react-native-oauth

A react-native wrapper for social authentication login for both Android and iOS
https://fullstackreact.com
MIT License
801 stars 215 forks source link

Is this supposed to work for Android? Can't even build... #19

Closed ujwal-setlur closed 7 years ago

ujwal-setlur commented 7 years ago

Hello,

I got this working for iOS (with minor difficulty, but it did work), but this does not even build for android:

FAILURE: Build failed with an exception.

Then I added

maven { url "https://jitpack.io" }

to the android/build.gradle, so the package was found, but then I get a compilation error:

node_modules/react-native-oauth/android/src/main/java/io/fullstack/oauth/OAuthManagerModule.java:228: error: cannot find symbol OAuthRequest request = new OAuthRequest(httpVerb, url.toString(), service);

Any help? The reason I am looking at this package is that I need oAuth support for multiple providers on both iOS and Android.

Thanks...

PrincipalsOffice commented 7 years ago

Having the same issue here.

auser commented 7 years ago

Interesting. Yes, it should still work for Android. Can you provide a sample app?

auser commented 7 years ago

@EyesBear and @ujwal-setlur Can you try the latest version? I just pushed a new update to npm.

auser commented 7 years ago

Here is a react-native app that works on Android from:

react-native init authapp && cd authapp
yarn install
npm install --save react-native-oauth
react-native link react-native-oauth
react-native run-android

http://d.pr/f/M9hT.tar.gz

adrianotadao commented 7 years ago

I'm having the same problem here.

/Users/adrianotadao/personal/timekeeper-app/node_modules/react-native-oauth/android/src/main/java/io/fullstack/oauth/OAuthManagerFragmentController.java:32: error: cannot find symbol
import com.github.scribejava.core.exceptions.OAuthConnectionException;
                                            ^
  symbol:   class OAuthConnectionException
  location: package com.github.scribejava.core.exceptions

@ujwal-setlur how did you fix it? Could you please share your solution?

auser commented 7 years ago

You need to add

 maven { url "https://jitpack.io" }

to your build.gradle

Updated the README with these instructions

https://github.com/fullstackreact/react-native-oauth/blob/master/README.md#android-setup

adrianotadao commented 7 years ago

@auser I added and then, I received this error 😢

Before adding this mave, I received the error:

Could not resolve all dependencies for configuration ':app:_debugCompile'.
Could not find com.github.delight-im:Android-AdvancedWebView:v3.0.0.
ujwal-setlur commented 7 years ago

That's the error I got as well I believe

Get Outlook for iOS

On Wed, Jan 18, 2017 at 4:21 PM -0800, "Adriano Tadao" notifications@github.com wrote:

@auser I added and then, I received this error 😢

Before adding this mave, I received the error: Could not resolve all dependencies for configuration ':app:_debugCompile'. Could not find com.github.delight-im:Android-AdvancedWebView:v3.0.0.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

ujwal-setlur commented 7 years ago

I will check out the latest version. Thanks

ahmedu007 commented 6 years ago

Followed the instructions, Added the maven link still get an error:

> Task :react-native-oauth:compileReleaseJavaWithJavac /Users/umair/Desktop/Projects/reactcore/node_modules/react-native-oauth/android/src/main/java/io/fullstack/oauth/OAuthManagerPackage.java:39: error: method does not override or implement a method from a supertype @Override ^ Note: /Users/umair/Desktop/Projects/reactcore/node_modules/react-native-oauth/android/src/main/java/io/fullstack/oauth/OAuthManagerDialogFragment.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. Note: Some input files use unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. 1 error

Any help would be appreciated

nokite commented 6 years ago

My project also can't resolve AdvancedWebView. I see it as a dependency when I check the gradleDependencies: +--- com.github.delight-im:Android-AdvancedWebView:v3.0.0@aar But I don't see it listed in the external libraries. And consequently it can't be referenced in code.

rincethomas commented 5 years ago

Hi, I am getting error - Could not find com.github.delight-im:Android-AdvancedWebView:v3.0.0.

Any Solutions ?.

vamsipidugu commented 5 years ago

add maven { url "https://jitpack.io" }

inside allprojects repositories and try

Andrfas commented 4 years ago

Facing an error Could not download Android-AdvancedWebView.aar (com.github.delight-im:Android-AdvancedWebView:v3.0.0): Skipped due to earlier error

Already added maven { url "https://jitpack.io" }. Did anyone solve this issue?