Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
fr.avianey:facebook-android-api
Advanced tools
The Mavenized Facebook Android api available in Maven Central repo.
Current port is based on the v3.17.2 available at https://developers.facebook.com/android/
The API is packaged as an aar and available from Maven Central Repository for use with Maven or Gradle.
###How to use
####Maven
The aar dependency requires the use of the maven-android-plugin 3.8.1+ with maven 3.1.1+ :
<dependency>
<groupId>fr.avianey</groupId>
<artifactId>facebook-android-api</artifactId>
<version>3.17.2</version>
<type>aar</type>
</dependency>
If you want to use a newer version of the android-support-v4 dependency, exclude the old one with this line :
<dependency>
<groupId>fr.avianey</groupId>
<artifactId>facebook-android-api</artifactId>
...
<exclusions>
<exclusion>
<artifactId>support-v4</artifactId>
<groupId>com.google.android</groupId>
</exclusion>
</exclusions>
</dependency>
You might want to add the jar dependency as well to support code completion in Eclipse ADT. Adding the jar will result in DEX errors at build time as the Facebook API classes will be added twice to the generated apk. To solve the problem, build your project from command line and reference the jar dependency in the m2e (Eclipse only) Maven profile :
<profiles>
<profile>
<id>m2e</id>
<activation>
<property>
<name>m2e.version</name>
</property>
</activation>
<dependencies>
<dependency>
<groupId>fr.avianey</groupId>
<artifactId>facebook-android-api</artifactId>
<version>3.17.2</version>
<type>jar</type>
<exclusions>
<exclusion>
<artifactId>support-v4</artifactId>
<groupId>com.google.android</groupId>
</exclusion>
</exclusions>
</dependency>
</dependencies>
</profile>
</profiles>
####Gradle
Add the following dependency to your build.gradle
dependencies {
compile 'fr.avianey:facebook-android-api:+@aar'
// other dependencies
}
If you want to use a newer version of the android-support-v4 dependency, exclude the old one with this line :
configurations.all {
exclude group: 'com.google.android', module: 'support-v4', version: 'r7'
// other configurations
}
FAQs
The Mavenized Facebook Android api available in Maven Central repo.
We found that fr.avianey:facebook-android-api demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.