Skip to content

Commit

Permalink
First Commit
Browse files Browse the repository at this point in the history
  • Loading branch information
javipacheco committed Feb 15, 2013
1 parent 330822b commit df9fa53
Show file tree
Hide file tree
Showing 7 changed files with 1,143 additions and 0 deletions.
27 changes: 27 additions & 0 deletions AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
~ Copyright (C) 2013 47 Degrees, LLC
~ http://47deg.com
~ [email protected]
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License.
-->

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.fortysevendeg.android.swipelistview" android:versionCode="1" android:versionName="1.0-SNAPSHOT">

<uses-sdk android:minSdkVersion="8"
android:targetSdkVersion="16" />

</manifest>

21 changes: 21 additions & 0 deletions default.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#
# Copyright (C) 2013 47 Degrees, LLC
# http://47deg.com
# [email protected]
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

# File used by Eclipse to determine the target system
# Project target.
target=android-16
188 changes: 188 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,188 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Copyright (C) 2013 47 Degrees, LLC
~ http://47deg.com
~ [email protected]
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License.
-->

<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.fortysevendeg.android</groupId>
<artifactId>swipelistview</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>apklib</packaging>
<name>android-swipelistview-lib</name>
<description>An Android List View implementation with support for drawable cells and many other swipe related features</description>
<url>https://github.com/47deg/${project.name-github}</url>
<inceptionYear>2013</inceptionYear>

<properties>
<platform.version>4.1.1.4</platform.version>
<project.name-github>android-swipelistview</project.name-github>
<scm.branch>master</scm.branch>
<android.sdk.path>/Applications/android-sdk-macosx</android.sdk.path>
</properties>

<scm>
<url>https://github.com/47deg/${project.name-github}/tree/${scm.branch}</url>
<connection>scm:git:git://github.com/47deg/${project.name-github}.git</connection>
<developerConnection>scm:git:ssh://[email protected]/47deg/${project.name-github}.git</developerConnection>
<tag>HEAD</tag>
</scm>

<issueManagement>
<system>Github Issue Tracking</system>
<url>https://github.com/47deg/${project.name-github}/issues</url>
</issueManagement>

<distributionManagement>
<snapshotRepository>
<id>sonatype-nexus-snapshots</id>
<name>Sonatype Nexus snapshot repository</name>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
</snapshotRepository>
<repository>
<id>sonatype-nexus-staging</id>
<name>Sonatype Nexus release repository</name>
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
</repository>
</distributionManagement>

<licenses>
<license>
<name>Apache 2.0</name>
<url>http://www.apache.org/licenses/LICENSE-2.0</url>
</license>
</licenses>

<dependencies>
<dependency>
<groupId>com.google.android</groupId>
<artifactId>android</artifactId>
<version>${platform.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.google.android</groupId>
<artifactId>support-v13</artifactId>
<version>r8</version>
</dependency>
<dependency>
<groupId>com.nineoldandroids</groupId>
<artifactId>nineoldandroids</artifactId>
<version>2.4.0</version>
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<groupId>com.jayway.maven.plugins.android.generation2</groupId>
<artifactId>android-maven-plugin</artifactId>
<version>3.5.0</version>
<configuration>
<androidManifestFile>${project.basedir}/AndroidManifest.xml</androidManifestFile>
<assetsDirectory>${project.basedir}/assets</assetsDirectory>
<resourceDirectory>${project.basedir}/res</resourceDirectory>
<nativeLibrariesDirectory>${project.basedir}/src/main/native</nativeLibrariesDirectory>
<sdk>
<platform>16</platform>
</sdk>
<undeployBeforeDeploy>true</undeployBeforeDeploy>
</configuration>
<extensions>true</extensions>
</plugin>

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

<plugin>
<groupId>com.github.github</groupId>
<artifactId>downloads-maven-plugin</artifactId>
<version>0.5</version>
<configuration>
<description>${project.version} release of ${project.name}</description>
<override>true</override>
<includeAttached>true</includeAttached>
<!--<suffix>.${maven.build.timestamp}</suffix>-->
<includes>
<include>*.jar</include>
</includes>
<override>true</override>
</configuration>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<version>2.2.2</version>
<configuration>
<arguments>-Dgpg.passphrase=${gpg.passphrase}</arguments>
</configuration>
</plugin>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<configuration>
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
</configuration>
</plugin>

</plugins>
</build>


<profiles>
<profile>
<id>release-sign-artifacts</id>
<activation>
<property>
<name>performRelease</name>
<value>true</value>
</property>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>1.4</version>
<configuration>
<passphrase>${gpg.passphrase}</passphrase>
</configuration>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>

</project>
45 changes: 45 additions & 0 deletions res/values/attrs.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
<!--
~ Copyright (C) 2013 47 Degrees, LLC
~ http://47deg.com
~ [email protected]
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License.
-->

<resources>

<declare-styleable name="SwipeListView">
<attr name="swipeOpenOnLongPress" format="boolean"/>
<attr name="swipeAnimationTime" format="integer"/>
<attr name="swipeOffsetLeft" format="dimension"/>
<attr name="swipeOffsetRight" format="dimension"/>
<attr name="swipeCloseAllItemsWhenMoveList" format="boolean"/>
<attr name="swipeFrontView" format="reference"/>
<attr name="swipeBackView" format="reference"/>
<attr name="swipeMode" format="enum">
<enum name="none" value="0"/>
<enum name="both" value="1"/>
<enum name="right" value="2"/>
<enum name="left" value="3"/>
</attr>
<attr name="swipeActionLeft" format="enum">
<enum name="reveal" value="0"/>
<enum name="dismiss" value="1"/>
</attr>
<attr name="swipeActionRight" format="enum">
<enum name="reveal" value="0"/>
<enum name="dismiss" value="1"/>
</attr>
</declare-styleable>

</resources>
Loading

0 comments on commit df9fa53

Please sign in to comment.