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

setEnableInitialSmsButton was removed in androidsdk 5.2.0 #199

Closed
huynhquangtoan opened this issue Jul 30, 2019 · 7 comments
Closed

setEnableInitialSmsButton was removed in androidsdk 5.2.0 #199

huynhquangtoan opened this issue Jul 30, 2019 · 7 comments

Comments

@huynhquangtoan
Copy link

setEnableInitialSmsButton was removed in androidsdk 5.2.0

/node_modules/react-native-facebook-account-kit/android/src/main/java/io/underscope/react/fbak/RNAccountKitModule.java:242: error: cannot find symbol
configurationBuilder.setEnableInitialSmsButton(setEnableInitialSmsButton);

Solution:

Add accountKitSdkVersion = '5.0.0' in root project's build.gradle

  • React Native Account Kit version: 2.0.0
  • React Native version: 0.60.4
  • Platform(s) (iOS, Android, or both?): Android
@yosukapro
Copy link

Same issue

@jpgarcia
Copy link
Contributor

I'm closing this as v2.0.0 already sets the default version for the SDK to 5.+(https://github.com/underscopeio/react-native-facebook-account-kit/blob/master/android/build.gradle#L8)

You may face this issue if you previously specified accountKitSdkVersion on your project or maybe it could be related to a gradle cache issue.

@huynhquangtoan
Copy link
Author

I'm closing this as v2.0.0 already sets the default version for the SDK to 5.+(https://github.com/underscopeio/react-native-facebook-account-kit/blob/master/android/build.gradle#L8)

You may face this issue if you previously specified accountKitSdkVersion on your project or maybe it could be related to a gradle cache issue.

setEnableInitialSmsButton has been removed in the latest version (5.2.0)

Please check this: https://developers.facebook.com/docs/reference/androidsdk/current/AccountKit/

SDK 5.0.0:
https://developers.facebook.com/docs/reference/androidsdk/5.0.0/AccountKit/

@jpgarcia
Copy link
Contributor

Got it! you are right. I'll reopen this then

Thanks for the details!

@jpgarcia jpgarcia reopened this Jul 30, 2019
@tarouboy
Copy link

My temp workaround is adding this into build.gradle

buildscript { ext { ... accountKitSdkVersion = "5.0.0" } }

@anhtuank7c
Copy link

anhtuank7c commented Aug 4, 2019

Both Android and iOS needed to limited AccountKit library version 5.0.0, I faced the same issue on iOS after pod repo update, account kit v5.3.0 doesn't compatible

# Podfile
pod 'AccountKit', '5.0.0'

@jpgarcia
Copy link
Contributor

jpgarcia commented Aug 5, 2019

Guys, I've just published a new 2.1.0 version which solves the issues you reported here.

You should now be able to remove the workarounds on your Podfile and build.gradle files.

Before running the project make sure you refresh all the dependencies by doing this:

rm -rf ./node_modules ./ios/Pods ./ios/Podfile.lock
cd android
./gradlew clean
cd ../
yarn

Let me know if you found any issue.

@jpgarcia jpgarcia closed this as completed Aug 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants