mirror of
https://github.com/nerzhul/nrz-androidlib.git
synced 2025-06-07 16:06:21 +00:00
Build using apache maven
This commit is contained in:
parent
8ef4339412
commit
690c42138c
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
target/
|
29
build.xml
29
build.xml
@ -1,29 +0,0 @@
|
|||||||
<project name="nrz-androidlib" default="dist" basedir=".">
|
|
||||||
<property name="dist.dir" location="dist" />
|
|
||||||
<property name="src" location="src"/>
|
|
||||||
<property name="build.dir" location="build"/>
|
|
||||||
<property file="androidsdk.properties" />
|
|
||||||
|
|
||||||
<path id="res.classpath">
|
|
||||||
<fileset dir="${androidsdk.path}" includes="**/*.jar" />
|
|
||||||
</path>
|
|
||||||
|
|
||||||
<target name="init">
|
|
||||||
<mkdir dir="${build.dir}" />
|
|
||||||
<mkdir dir="${dist.dir}" />
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<target name="compile" depends="init">
|
|
||||||
<javac srcdir="${src}" destdir="${build.dir}" classpathref="res.classpath" includeantruntime="false" />
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<target name="dist" depends="compile">
|
|
||||||
<jar destfile="${dist.dir}/nrz-androidlib.jar" basedir="${build.dir}">
|
|
||||||
</jar>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<target name="clean">
|
|
||||||
<delete dir="${build.dir}" />
|
|
||||||
<delete dir="${dist.dir}" />
|
|
||||||
</target>
|
|
||||||
</project>
|
|
38
pom.xml
Normal file
38
pom.xml
Normal file
@ -0,0 +1,38 @@
|
|||||||
|
<?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>fr.nrz.androidlib</groupId>
|
||||||
|
<artifactId>gs-maven-android</artifactId>
|
||||||
|
<version>1.0</version>
|
||||||
|
<packaging>jar</packaging>
|
||||||
|
|
||||||
|
<properties>
|
||||||
|
<!-- use UTF-8 for everything -->
|
||||||
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||||
|
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
|
||||||
|
</properties>
|
||||||
|
|
||||||
|
<dependencies>
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.google.android</groupId>
|
||||||
|
<artifactId>android</artifactId>
|
||||||
|
<version>4.1.1.4</version>
|
||||||
|
<scope>provided</scope>
|
||||||
|
</dependency>
|
||||||
|
</dependencies>
|
||||||
|
|
||||||
|
<build>
|
||||||
|
<plugins>
|
||||||
|
<plugin>
|
||||||
|
<artifactId>maven-compiler-plugin</artifactId>
|
||||||
|
<version>3.1</version>
|
||||||
|
<configuration>
|
||||||
|
<source>1.7</source>
|
||||||
|
<target>1.7</target>
|
||||||
|
</configuration>
|
||||||
|
</plugin>
|
||||||
|
</plugins>
|
||||||
|
</build>
|
||||||
|
|
||||||
|
</project>
|
11
src/main/AndroidManifest.xml
Normal file
11
src/main/AndroidManifest.xml
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
package="fr.nrz.androidlib"
|
||||||
|
android:versionCode="1"
|
||||||
|
android:versionName="1.0">
|
||||||
|
|
||||||
|
<uses-sdk
|
||||||
|
android:minSdkVersion="8"
|
||||||
|
android:targetSdkVersion="23"/>
|
||||||
|
|
||||||
|
</manifest>
|
Loading…
x
Reference in New Issue
Block a user