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

Maven Support #262

Closed
wants to merge 5 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
19 changes: 7 additions & 12 deletions .gitignore
Expand Up @@ -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

11 changes: 1 addition & 10 deletions 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
22 changes: 22 additions & 0 deletions 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>
37 changes: 37 additions & 0 deletions 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>
11 changes: 1 addition & 10 deletions 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
18 changes: 18 additions & 0 deletions 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>
11 changes: 1 addition & 10 deletions 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
18 changes: 18 additions & 0 deletions 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>
25 changes: 25 additions & 0 deletions 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>
76 changes: 76 additions & 0 deletions 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>
11 changes: 1 addition & 10 deletions 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
31 changes: 31 additions & 0 deletions 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>