Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Maven Support #262

Closed
wants to merge 5 commits into from

5 participants

@alex-richards

I've added Maven support to the Facebook Android SDK if you'd like it.

Alex

@billmag

Any idea when/if this will get included?

@alex-richards

No idea, I've not heard anything from Facebook.

@mosabua

I dont think anybody from facebook looks at these pull requests. I created a feature request with my branch linked to it
https://github.com/mosabua/facebook-android-sdk/tree/maven and they will look at it in the future. If I get around to it I will push this to central myself in the next weeks.

Alex Richards added some commits
Alex Richards changed default.properties for newer project.properties 02bec79
Alex Richards Merge git://github.com/facebook/facebook-android-sdk
Conflicts:
	.gitignore
	examples/Hackbook/default.properties
04fc330
@fern

From other fb projects on github, they ask that you create bugs on their bug system, if you want them to pay any attention. Also I bet they have an internal private repository that they publish out to this public one. they probably don't like to take in any submissions.. :( :(

So it might be really low chance, but you probably want to create a bug in their system pointing back to these pull requests. And I'll keep my fingers crossed too.

@billmag

I made a public fork with a pom setup that worked for me (the pull requests in here had a few minor issues).
https://github.com/Appboy/facebook-android-sdk

@mosabua

I have created a bug in their internal system and also talked to James Pearce about it at AnDevCon as well as the state of pull requests here.. we will see what comes out of this

@billmag

I made a pull request to add maven support to the preview branch at #282 . There are still some issues though, see the pull request for more details.

@billmag

Updated for 3.0.0: #289

@gcaglar
Collaborator

Thanks for submitting a pull request to the Facebook SDK. We’re sorry we haven’t responded sooner but we are cleaning up old pull requests so that we can better respond to new requests. We're hoping to add Maven support soon.

@gcaglar gcaglar closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Apr 2, 2012
  1. Added Maven POMs for entire project.

    Alex Richards authored
Commits on May 28, 2012
  1. changed default.properties for newer project.properties

    Alex Richards authored
  2. Merge git://github.com/facebook/facebook-android-sdk

    Alex Richards authored
    Conflicts:
    	.gitignore
    	examples/Hackbook/default.properties
Commits on Sep 14, 2012
  1. Merge git://github.com/facebook/facebook-android-sdk

    Alex Richards authored
  2. New version numbers

    Alex Richards authored
This page is out of date. Refresh to see the latest.
View
19 .gitignore
@@ -5,15 +5,10 @@
*.classpath
*.project
*.settings
-facebook/local.properties
-facebook/bin/
-facebook/gen/
-examples/Hackbook/bin/
-examples/Hackbook/gen/
-examples/Hackbook/local.properties
-examples/stream/bin/
-examples/simple/bin/
-examples/stream/gen/
-examples/simple/gen/
-tests/bin
-tests/gen
+
+bin/
+gen/
+target/
+
+local.properties
+
View
11 examples/Hackbook/default.properties
@@ -1,14 +1,5 @@
-# This file is automatically generated by Android Tools.
-# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
-#
-# This file must be checked in Version Control Systems.
-#
-# To customize properties used by the Ant build system use,
-# "build.properties", and override values to adapt the script to your
-# project structure.
-
# Indicates whether an apk should be generated for each density.
split.density=false
+android.library.reference.1=../../facebook
# Project target.
target=android-8
-android.library.reference.1=../../facebook
View
22 examples/Hackbook/pom.xml
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<project
+ xmlns="http://maven.apache.org/POM/4.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+
+ <parent>
+ <groupId>com.facebook.android</groupId>
+ <artifactId>android-examples-parent</artifactId>
+ <version>1.2.2</version>
+ </parent>
+
+ <artifactId>android-examples-hackbook</artifactId>
+
+ <packaging>apk</packaging>
+
+ <properties>
+ <android.platform.version>2.2_r2</android.platform.version>
+ </properties>
+
+</project>
View
37 examples/pom.xml
@@ -0,0 +1,37 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<project
+ xmlns="http://maven.apache.org/POM/4.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+
+ <parent>
+ <groupId>com.facebook.android</groupId>
+ <artifactId>android-sdk-parent</artifactId>
+ <version>1.2.2</version>
+ </parent>
+
+ <artifactId>android-examples-parent</artifactId>
+
+ <packaging>pom</packaging>
+
+ <modules>
+ <module>simple</module>
+ <module>stream</module>
+ <module>Hackbook</module>
+ </modules>
+
+ <dependencies>
+ <dependency>
+ <groupId>android</groupId>
+ <artifactId>android</artifactId>
+ </dependency>
+
+ <dependency>
+ <groupId>${project.groupId}</groupId>
+ <artifactId>android-sdk</artifactId>
+ <type>apklib</type>
+ </dependency>
+ </dependencies>
+
+</project>
View
11 examples/simple/default.properties
@@ -1,14 +1,5 @@
-# This file is automatically generated by Android Tools.
-# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
-#
-# This file must be checked in Version Control Systems.
-#
-# To customize properties used by the Ant build system use,
-# "build.properties", and override values to adapt the script to your
-# project structure.
-
# Indicates whether an apk should be generated for each density.
split.density=false
-android.library.reference.1=../../facebook/
+android.library.reference.1=../../facebook
# Project target.
target=android-3
View
18 examples/simple/pom.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<project
+ xmlns="http://maven.apache.org/POM/4.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+
+ <parent>
+ <groupId>com.facebook.android</groupId>
+ <artifactId>android-examples-parent</artifactId>
+ <version>1.2.2</version>
+ </parent>
+
+ <artifactId>android-examples-simple</artifactId>
+
+ <packaging>apk</packaging>
+
+</project>
View
11 examples/stream/default.properties
@@ -1,14 +1,5 @@
-# This file is automatically generated by Android Tools.
-# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
-#
-# This file must be checked in Version Control Systems.
-#
-# To customize properties used by the Ant build system use,
-# "build.properties", and override values to adapt the script to your
-# project structure.
-
# Indicates whether an apk should be generated for each density.
split.density=false
-android.library.reference.1=../../facebook/
+android.library.reference.1=../../facebook
# Project target.
target=android-3
View
18 examples/stream/pom.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<project
+ xmlns="http://maven.apache.org/POM/4.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+
+ <parent>
+ <groupId>com.facebook.android</groupId>
+ <artifactId>android-examples-parent</artifactId>
+ <version>1.2.2</version>
+ </parent>
+
+ <artifactId>android-examples-stream</artifactId>
+
+ <packaging>apk</packaging>
+
+</project>
View
25 facebook/pom.xml
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<project
+ xmlns="http://maven.apache.org/POM/4.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+
+ <parent>
+ <groupId>com.facebook.android</groupId>
+ <artifactId>android-sdk-parent</artifactId>
+ <version>1.2.2</version>
+ </parent>
+
+ <artifactId>android-sdk</artifactId>
+
+ <packaging>apklib</packaging>
+
+ <dependencies>
+ <dependency>
+ <groupId>android</groupId>
+ <artifactId>android</artifactId>
+ </dependency>
+ </dependencies>
+
+</project>
View
76 pom.xml
@@ -0,0 +1,76 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<project
+ xmlns="http://maven.apache.org/POM/4.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+
+ <groupId>com.facebook.android</groupId>
+ <artifactId>android-sdk-parent</artifactId>
+ <version>1.2.2</version>
+
+ <packaging>pom</packaging>
+
+ <modules>
+ <module>facebook</module>
+ <module>tests</module>
+ <module>examples</module>
+ </modules>
+
+ <properties>
+ <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+ <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
+
+ <android.plugin.name>android-maven-plugin</android.plugin.name>
+ <android.plugin.version>3.1.1</android.plugin.version>
+
+ <android.platform>15</android.platform>
+ <android.platform.version>1.5_r4</android.platform.version>
+ </properties>
+
+ <dependencyManagement>
+ <dependencies>
+ <dependency>
+ <groupId>android</groupId>
+ <artifactId>android</artifactId>
+ <version>${android.platform.version}</version>
+ <scope>provided</scope>
+ </dependency>
+
+ <dependency>
+ <groupId>${project.groupId}</groupId>
+ <artifactId>android-sdk</artifactId>
+ <version>${project.version}</version>
+ <type>apklib</type>
+ </dependency>
+ </dependencies>
+ </dependencyManagement>
+
+ <build>
+ <sourceDirectory>src/</sourceDirectory>
+
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <version>2.3.2</version>
+ <configuration>
+ <source>1.6</source>
+ <target>1.6</target>
+ </configuration>
+ </plugin>
+
+ <plugin>
+ <groupId>com.jayway.maven.plugins.android.generation2</groupId>
+ <artifactId>${android.plugin.name}</artifactId>
+ <version>${android.plugin.version}</version>
+ <extensions>true</extensions>
+ <configuration>
+ <sdk>
+ <platform>${android.platform}</platform>
+ </sdk>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+</project>
View
11 tests/default.properties
@@ -1,12 +1,3 @@
-# This file is automatically generated by Android Tools.
-# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
-#
-# This file must be checked in Version Control Systems.
-#
-# To customize properties used by the Ant build system use,
-# "build.properties", and override values to adapt the script to your
-# project structure.
-
-android.library.reference.1=../facebook/
+android.library.reference.1=../facebook
# Project target.
target=android-3
View
31 tests/pom.xml
@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<project
+ xmlns="http://maven.apache.org/POM/4.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+
+ <parent>
+ <groupId>com.facebook.android</groupId>
+ <artifactId>android-sdk-parent</artifactId>
+ <version>1.2.2</version>
+ </parent>
+
+ <artifactId>android-sdk-tests</artifactId>
+
+ <packaging>apk</packaging>
+
+ <dependencies>
+ <dependency>
+ <groupId>android</groupId>
+ <artifactId>android</artifactId>
+ </dependency>
+
+ <dependency>
+ <groupId>${project.groupId}</groupId>
+ <artifactId>android-sdk</artifactId>
+ <type>apklib</type>
+ </dependency>
+ </dependencies>
+
+</project>
Something went wrong with that request. Please try again.