React-native-fbsdk: 0.9.0 not available via npm

Created on 11 Dec 2018  路  11Comments  路  Source: facebook/react-native-fbsdk

Environment

React Native Environment Info:
System:
OS: macOS 10.14.1
CPU: (12) x64 Intel(R) Core(TM) i9-8950HK CPU @ 2.90GHz
Memory: 3.50 GB / 32.00 GB
Shell: 5.3 - /bin/zsh
Binaries:
Node: 11.3.0 - /usr/local/bin/node
Yarn: 1.12.3 - /usr/local/bin/yarn
npm: 6.4.1 - /usr/local/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
SDKs:
iOS SDK:
Platforms: iOS 12.1, macOS 10.14, tvOS 12.1, watchOS 5.1
Android SDK:
API Levels: 23, 26, 27, 28
Build Tools: 23.0.1, 25.0.0, 26.0.3, 27.0.3, 28.0.1, 28.0.2, 28.0.3
System Images: android-24 | Google APIs Intel x86 Atom, android-27 | Google APIs Intel x86 Atom, android-28 | Google APIs Intel x86 Atom
IDEs:
Android Studio: 3.2 AI-181.5540.7.32.5056338
Xcode: 10.1/10B61 - /usr/bin/xcodebuild
npmPackages:
react: ^16.6.1 => 16.6.1
react-native: ^0.57.7 => 0.57.7
npmGlobalPackages:
react-native-cli: 2.0.1
react-native-git-upgrade: 0.2.7

Description

The latest release 0.9.0 has not been published on npm yet. npm info react-native-fbsdk outputs:

[email protected] | Facebook Platform License | deps: 7 | versions: 16
Facebook SDK support for React Native apps.
https://github.com/facebook/react-native-fbsdk/

keywords: react, react-native, react-component, ios, android, facebook, core

dist
.tarball: https://registry.npmjs.org/react-native-fbsdk/-/react-native-fbsdk-0.8.0.tgz
.shasum: 4ee95ebb7be4b00fa9f871ca594f068c9782c7de
.integrity: sha512-odqSTgvXtw9f84iU0THTjK+Z9Lvy14aP5Yd0fdfHCXFpb/Q0WrpwsSyjPFXG1AsWIe+FtpzzgJsjOu6E2xqgMQ==
.unpackedSize: 1.7 MB

dependencies:
adm-zip: ^0.4.7  fastfall: ^1.5.1 got: ^7.0.0      plist: ^2.1.0    progress: ^2.0.0 pump: ^1.0.2     xcode: ^0.9.3

maintainers:
- chrisp-fb <[email protected]>
- dzhuowen <[email protected]>
- lepouya <[email protected]>

dist-tags:
latest: 0.8.0

published 3 months ago by codytwinton <[email protected]>

Reproducible Demo

npm info react-native-fbsdk

Please publish this version on npm whenever you have the chance. Thanks for the great work!

Most helpful comment

Current 0.9.0 tag is actually invalid as the compilation results in error on Android:

node_modules\react-native-fbsdk\android\src\main\java\com\facebook\reactnative\androidsdk\Utility.java:64: error: no suitable constructor found for AccessToken(String,String,String,List<String>,List<String>,AccessTokenSource,Date,Date)
        return new AccessToken(
               ^
    constructor AccessToken.AccessToken(String,String,String,Collection<String>,Collection<String>,AccessTokenSource,Date,Date,Date) is not applicable
      (actual and formal argument lists differ in length)
    constructor AccessToken.AccessToken(Parcel) is not applicable
      (actual and formal argument lists differ in length)

The problem and compatibility with FB SDK 4.38+ is fixed in 869ae479196c7e70b598af87ae9ef9f5d5d8fde2 => yarn add react-native-fbsdk@facebook/react-native-fbsdk#869ae479196c7e70b598af87ae9ef9f5d5d8fde2

All 11 comments

"react-native-fbsdk": "facebook/react-native-fbsdk#0.9.0"
For workaround.

What are the steps to upgrade the version?

this is ridiculous, why isn't the latest version on npm?

Still having this issue... can't believe this happens with Facebook...

the 0.9.0 version was also broken for me on android.

nao esta funcionando ainda?

Any update on this, Facebook team? I've been watching this issue now for over two months waiting for a fix. It sounds like it might be fixed in 0.9.0, but it's not available on NPM.

Current 0.9.0 tag is actually invalid as the compilation results in error on Android:

node_modules\react-native-fbsdk\android\src\main\java\com\facebook\reactnative\androidsdk\Utility.java:64: error: no suitable constructor found for AccessToken(String,String,String,List<String>,List<String>,AccessTokenSource,Date,Date)
        return new AccessToken(
               ^
    constructor AccessToken.AccessToken(String,String,String,Collection<String>,Collection<String>,AccessTokenSource,Date,Date,Date) is not applicable
      (actual and formal argument lists differ in length)
    constructor AccessToken.AccessToken(Parcel) is not applicable
      (actual and formal argument lists differ in length)

The problem and compatibility with FB SDK 4.38+ is fixed in 869ae479196c7e70b598af87ae9ef9f5d5d8fde2 => yarn add react-native-fbsdk@facebook/react-native-fbsdk#869ae479196c7e70b598af87ae9ef9f5d5d8fde2

@Buthrakaur still compiling release version on android fails - while debug works - funny!
Wich version of react native and wich sdk version is this library supposed to work with?
The error is:

.gradle/caches/transforms-1/files-1.1/appcompat-v7-28.0.0.aar/2c0d4e2c2ef72b99d9e31814dbf6389a/res/values-v28/values-v28.xml:5:5-8:13: 
AAPT: No resource found that matches the given name
 (at 'dialogCornerRadius' with value '?android:attr/dialogCornerRadius')

Can't build on android.

Can build latest commit for android.
But iOS fails
At least need to merge https://github.com/facebook/react-native-fbsdk/pull/515

Was this page helpful?
0 / 5 - 0 ratings