Skip to content

Commit

Permalink
reverted back jayway maven android plugin to version 2.9.0-beta-5
Browse files Browse the repository at this point in the history
  • Loading branch information
sasinda committed Jul 10, 2012
1 parent 2d8672d commit d1cd624
Show file tree
Hide file tree
Showing 23 changed files with 156 additions and 144 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ atlassian-ide-plugin.xml
.fbprefs
bin
gen
libs
.settings/*

# Automatically generated by WTP
Expand Down
8 changes: 8 additions & 0 deletions AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="org.xwiki.android.core"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk android:minSdkVersion="7" />
<application ></application>
</manifest>
119 changes: 37 additions & 82 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,21 +24,21 @@
<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>
<!-- <parent>
<groupId>org.xwiki.commons</groupId>
<artifactId>xwiki-commons</artifactId>
<version>4.2-SNAPSHOT</version>
</parent>
</parent> -->
<groupId>org.xwiki.android</groupId>
<artifactId>xwiki-android</artifactId>
<version>1.0-SNAPSHOT</version>
<name>XWiki Android - Parent POM</name>
<packaging>pom</packaging>
<description>XWiki Android - Parent POM</description>
<properties>
<properties>
<xwiki.clirr.skip>true</xwiki.clirr.skip>
<!-- Force accessing banned dependancy junit since android-test artifact
uses it -->
Force accessing banned dependancy junit since android-test artifact
uses it
<xwiki.enforcer.skip>true</xwiki.enforcer.skip>
</properties>

Expand All @@ -48,93 +48,48 @@
<module>xwiki-android-core</module>
<module>xwiki-android-components</module>
<module>xwiki-android-client</module>
<module>xwiki-android-test-rest</module>
<module>xwiki-android-tests-instrumentation</module>
</modules>

<dependencies>
<module>xwiki-android-test-rest</module>
<module>xwiki-android-tests-instrumentation</module>
</modules>
<dependencies>
<dependency>
<groupId>com.google.android</groupId>
<artifactId>android</artifactId>
<version>2.2.1</version>
<scope>provided</scope>
</dependency>

<dependency>
<groupId>com.j256.ormlite</groupId>
<artifactId>ormlite-core</artifactId>
<type>jar</type>
<version>4.40</version>
<scope>compile</scope>
</dependency>

<dependency>
<groupId>com.j256.ormlite</groupId>
<artifactId>ormlite-android</artifactId>
<type>jar</type>
<version>4.40</version>
<scope>compile</scope>
</dependency>

<dependency>
<groupId>org.simpleframework</groupId>
<artifactId>simple-xml</artifactId>
<version>2.6.4</version>
<type>jar</type>
<scope>compile</scope>
<exclusions>
<!-- StAX is not available on Android -->
<exclusion>
<artifactId>stax</artifactId>
<groupId>stax</groupId>
</exclusion>
<exclusion>
<artifactId>stax-api</artifactId>
<groupId>stax</groupId>
</exclusion>
<!-- Provided by Android -->
<exclusion>
<artifactId>xpp3</artifactId>
<groupId>xpp3</groupId>
</exclusion>
</exclusions>
</dependency>




</dependencies>
</dependency>
</dependencies>

<build>

<sourceDirectory>src</sourceDirectory>

<plugins>

<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.3</version>
<configuration>
<source>1.6</source>
<target>1.6</target>
</configuration>
</plugin>

<plugin>
<groupId>com.jayway.maven.plugins.android.generation2</groupId>
<artifactId>android-maven-plugin</artifactId>
<version>3.2.0</version>
<configuration>
<sdk>
<platform>7</platform>
</sdk>
<emulator>
<avd>android-7</avd>
</emulator>
<undeployBeforeDeploy>true</undeployBeforeDeploy>
<coreLibrary>true</coreLibrary>
</configuration>
<extensions>true</extensions>
</plugin>
</plugins>
<groupId>com.jayway.maven.plugins.android.generation2</groupId>
<artifactId>maven-android-plugin</artifactId>
<version>2.9.0-beta-5</version>
<configuration>
<sdk>
<platform>2.1</platform>
</sdk>
<emulator>
<avd>android-7</avd>
</emulator>
<deleteConflictingFiles>true</deleteConflictingFiles>
<undeployBeforeDeploy>true</undeployBeforeDeploy>
<coreLibrary>true</coreLibrary>
</configuration>
<extensions>true</extensions>
</plugin>


<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.3.2</version>
</plugin>
</plugins>

</build>
</project>
12 changes: 12 additions & 0 deletions xwiki-android-client/default.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# 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.

# Project target.
target=android-7

3 changes: 2 additions & 1 deletion xwiki-android-client/project.properties
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

# Project target.
target=android-7
android.library.reference.3=../xwiki-android-core

android.library.reference.1=../xwiki-android-rest
android.library.reference.2=../xwiki-android-components
android.library.reference.3=../xwiki-android-core
Empty file.
55 changes: 0 additions & 55 deletions xwiki-android-core/.gitignore

This file was deleted.

23 changes: 23 additions & 0 deletions xwiki-android-howtos/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="org.xwiki.android.howtos"
android:versionCode="1"
android:versionName="1.0" >

<uses-sdk android:minSdkVersion="7" />

<application
android:icon="@drawable/ic_launcher"
android:label="@string/app_name" >
<activity
android:name="._00_SampleActivity"
android:label="@string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>

</manifest>
20 changes: 20 additions & 0 deletions xwiki-android-howtos/proguard-project.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# To enable ProGuard in your project, edit project.properties
# to define the proguard.config property as described in that file.
#
# Add project specific ProGuard rules here.
# By default, the flags in this file are appended to flags specified
# in ${sdk.dir}/tools/proguard/proguard-android.txt
# You can edit the include path and order by changing the ProGuard
# include property in project.properties.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html

# Add any project specific keep options here:

# If your project uses WebView with JS, uncomment the following
# and specify the fully qualified class name to the JavaScript interface
# class:
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
# public *;
#}
14 changes: 14 additions & 0 deletions xwiki-android-howtos/project.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# 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 edit
# "ant.properties", and override values to adapt the script to your
# project structure.
#
# To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home):
#proguard.config=${sdk.dir}\tools\proguard\proguard-android.txt:proguard-project.txt

# Project target.
target=android-7
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions xwiki-android-howtos/res/layout/main.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" >

<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/hello" />

</LinearLayout>
7 changes: 7 additions & 0 deletions xwiki-android-howtos/res/values/strings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>

<string name="hello">Hello World, _00_SampleActivity!</string>
<string name="app_name">Xwiki-android-howtos</string>

</resources>
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package org.xwiki.android.howtos;

import android.app.Activity;
import android.os.Bundle;

public class _00_SampleActivity extends Activity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package demo_tutorials;
package org.xwiki.android.howtos;

import org.xwiki.android.blog.xobj.XBlogPost;
import org.xwiki.android.ral.RaoException;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package demo_tutorials;
package org.xwiki.android.howtos;

import org.xwiki.android.blog.xobj.XBlogPost;
import org.xwiki.android.xmodel.entity.Document;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package demo_tutorials;
package org.xwiki.android.howtos;

import org.xwiki.android.xmodel.entity.Document;
import org.xwiki.android.xmodel.svc.DocumentLocalSvcs;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package demo_tutorials;
package org.xwiki.android.howtos;

import java.io.File;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package demo_tutorials;
package org.xwiki.android.howtos;

import java.util.List;
import java.util.Map;
Expand Down
3 changes: 2 additions & 1 deletion xwiki-android-rest/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,9 @@
<dependencies>
<dependency>
<groupId>org.xwiki.android</groupId>
<artifactId>xwiki-rest-simplexml-model</artifactId>
<artifactId>xwiki-rest-model-simplexml</artifactId>
<version>${project.version}</version>
<type>jar</type>
<scope>compile</scope>
</dependency>
</dependencies>
Expand Down

0 comments on commit d1cd624

Please sign in to comment.