Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add activity to display summary of gauges
- Loading branch information
1 parent
c5efb22
commit 33d383e
Showing
17 changed files
with
828 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,30 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:versionCode="1" | ||
android:versionName="1.0" | ||
package="com.github.mobile.gauges"> | ||
android:versionCode="1" android:versionName="1.0" package="com.github.mobile.gauges"> | ||
|
||
<uses-sdk android:minSdkVersion="8" android:targetSdkVersion="14"/> | ||
<uses-feature android:name="android.software.live_wallpaper" /> | ||
<uses-permission android:name="android.permission.INTERNET" /> | ||
<uses-sdk android:minSdkVersion="8" android:targetSdkVersion="14" /> | ||
<uses-feature android:name="android.software.live_wallpaper" /> | ||
<uses-permission android:name="android.permission.INTERNET" /> | ||
|
||
<application android:icon="@drawable/icon" android:label="@string/app_name"> | ||
<application android:icon="@drawable/icon" android:label="@string/app_name" | ||
android:name=".GaugesApplication"> | ||
|
||
<service | ||
android:label="@string/wallpaper_name" | ||
android:name="com.github.mobile.gauges.AirTrafficWallpaper" | ||
android:permission="android.permission.BIND_WALLPAPER"> | ||
<intent-filter> | ||
<action android:name="android.service.wallpaper.WallpaperService" /> | ||
</intent-filter> | ||
<meta-data android:name="android.service.wallpaper" android:resource="@xml/gauges_wallpaper" /> | ||
</service> | ||
<activity android:name=".ui.GaugeListActivity"> | ||
<intent-filter> | ||
<action android:name="android.intent.action.MAIN" /> | ||
<category android:name="android.intent.category.LAUNCHER" /> | ||
</intent-filter> | ||
</activity> | ||
|
||
</application> | ||
<service android:label="@string/wallpaper_name" | ||
android:name="com.github.mobile.gauges.AirTrafficWallpaper" | ||
android:permission="android.permission.BIND_WALLPAPER"> | ||
<intent-filter> | ||
<action android:name="android.service.wallpaper.WallpaperService" /> | ||
</intent-filter> | ||
<meta-data android:name="android.service.wallpaper" | ||
android:resource="@xml/gauges_wallpaper" /> | ||
</service> | ||
|
||
</application> | ||
</manifest> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,55 +1,224 @@ | ||
<?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> | ||
<version>0.01-SNAPSHOT</version> | ||
<groupId>com.github.github</groupId> | ||
<artifactId>gauges-android</artifactId> | ||
<packaging>apk</packaging> | ||
<name>Gauges Android app</name> | ||
<properties> | ||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | ||
<android.version>4.0.1.2</android.version> | ||
</properties> | ||
<repositories> | ||
<repository> | ||
<id>jakewharton</id> | ||
<url>http://r.jakewharton.com/maven/release/</url> | ||
</repository> | ||
</repositories> | ||
<dependencies> | ||
<dependency> | ||
<groupId>com.google.android</groupId> | ||
<artifactId>android</artifactId> | ||
<scope>provided</scope> | ||
<version>${android.version}</version> | ||
</dependency> | ||
</dependencies> | ||
<build> | ||
<plugins> | ||
<plugin> | ||
<groupId>com.jayway.maven.plugins.android.generation2</groupId> | ||
<artifactId>android-maven-plugin</artifactId> | ||
<version>3.0.2</version> | ||
<extensions>true</extensions> | ||
<configuration> | ||
<sdk> | ||
<platform>14</platform> | ||
</sdk> | ||
<undeployBeforeDeploy>true</undeployBeforeDeploy> | ||
<proguard> | ||
<skip>false</skip> | ||
</proguard> | ||
</configuration> | ||
</plugin> | ||
<plugin> | ||
<artifactId>maven-compiler-plugin</artifactId> | ||
<version>2.3.2</version> | ||
<configuration> | ||
<source>1.6</source> | ||
<target>1.6</target> | ||
</configuration> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
<version>0.01-SNAPSHOT</version> | ||
<groupId>com.github.github</groupId> | ||
<artifactId>gauges-android</artifactId> | ||
<packaging>apk</packaging> | ||
<name>Gauges Android app</name> | ||
<properties> | ||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | ||
<android.version>3.2_r1</android.version> | ||
<abs.version>3.5.1</abs.version> | ||
</properties> | ||
<repositories> | ||
<repository> | ||
<id>jakewharton</id> | ||
<url>http://r.jakewharton.com/maven/release/</url> | ||
</repository> | ||
</repositories> | ||
<dependencies> | ||
<dependency> | ||
<groupId>android</groupId> | ||
<artifactId>android</artifactId> | ||
<scope>provided</scope> | ||
<version>${android.version}</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>com.google.guava</groupId> | ||
<artifactId>guava</artifactId> | ||
<version>11.0.1</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>com.google.code.gson</groupId> | ||
<artifactId>gson</artifactId> | ||
<version>1.7.2</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>com.google.inject</groupId> | ||
<artifactId>guice</artifactId> | ||
<version>3.0</version> | ||
<classifier>no_aop</classifier> | ||
</dependency> | ||
<dependency> | ||
<groupId>com.madgag</groupId> | ||
<artifactId>roboguice</artifactId> | ||
<version>1.99.0.4-UNOFFICIAL-ROBERTO-RELEASE</version> | ||
<exclusions> | ||
<exclusion> | ||
<groupId>android.support</groupId> | ||
<artifactId>compatibility-v4</artifactId> | ||
</exclusion> | ||
</exclusions> | ||
</dependency> | ||
<dependency> | ||
<groupId>com.actionbarsherlock</groupId> | ||
<artifactId>library</artifactId> | ||
<version>${abs.version}</version> | ||
<type>apklib</type> | ||
</dependency> | ||
<dependency> | ||
<groupId>com.actionbarsherlock</groupId> | ||
<artifactId>library</artifactId> | ||
<version>${abs.version}</version> | ||
<type>jar</type> | ||
<scope>provided</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>com.pivotallabs</groupId> | ||
<artifactId>robolectric</artifactId> | ||
<version>1.0-RC1</version> | ||
<scope>test</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>com.madgag</groupId> | ||
<artifactId>android-viewholder-listviews</artifactId> | ||
<version>0.6</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>com.github.kevinsawicki</groupId> | ||
<artifactId>http-request</artifactId> | ||
<version>0.6</version> | ||
</dependency> | ||
</dependencies> | ||
<build> | ||
<plugins> | ||
<plugin> | ||
<groupId>com.jayway.maven.plugins.android.generation2</groupId> | ||
<artifactId>android-maven-plugin</artifactId> | ||
<version>3.0.2</version> | ||
<extensions>true</extensions> | ||
<configuration> | ||
<sdk> | ||
<platform>14</platform> | ||
</sdk> | ||
<undeployBeforeDeploy>true</undeployBeforeDeploy> | ||
<proguard> | ||
<skip>false</skip> | ||
</proguard> | ||
</configuration> | ||
</plugin> | ||
<plugin> | ||
<artifactId>maven-compiler-plugin</artifactId> | ||
<version>2.3.2</version> | ||
<configuration> | ||
<source>1.6</source> | ||
<target>1.6</target> | ||
</configuration> | ||
</plugin> | ||
</plugins> | ||
<pluginManagement> | ||
<plugins> | ||
<plugin> | ||
<artifactId>maven-release-plugin</artifactId> | ||
<version>2.1</version> | ||
<configuration> | ||
<autoVersionSubmodules>true</autoVersionSubmodules> | ||
</configuration> | ||
</plugin> | ||
|
||
<plugin> | ||
<groupId>com.jayway.maven.plugins.android.generation2</groupId> | ||
<artifactId>android-maven-plugin</artifactId> | ||
<version>3.0.2</version> | ||
<extensions>true</extensions> | ||
<configuration> | ||
<sdk> | ||
<platform>13</platform> | ||
</sdk> | ||
<emulator> | ||
<avd>22</avd> | ||
</emulator> | ||
<zipalign> | ||
<verbose>true</verbose> | ||
</zipalign> | ||
<undeployBeforeDeploy>true</undeployBeforeDeploy> | ||
</configuration> | ||
</plugin> | ||
<plugin> | ||
<artifactId>maven-compiler-plugin</artifactId> | ||
<version>2.3.2</version> | ||
<configuration> | ||
<source>1.6</source> | ||
<target>1.6</target> | ||
</configuration> | ||
</plugin> | ||
<plugin> | ||
<groupId>com.pyx4me</groupId> | ||
<artifactId>proguard-maven-plugin</artifactId> | ||
<version>2.0.4</version> | ||
<!-- <executions> <execution> <phase>process-classes</phase> <goals> | ||
<goal>proguard</goal> </goals> </execution> </executions> --> | ||
<!-- we need to override the dependency of the plugin to get a newer | ||
version of proguard --> | ||
<dependencies> | ||
<dependency> | ||
<groupId>net.sf.proguard</groupId> | ||
<artifactId>proguard</artifactId> | ||
<version>4.4</version> | ||
<scope>runtime</scope> | ||
</dependency> | ||
</dependencies> | ||
<configuration> | ||
<proguardVersion>4.4</proguardVersion> | ||
<maxMemory>512m</maxMemory> | ||
<injar>android-classes</injar> | ||
<libs> | ||
<lib>${rt.jar.path}</lib> | ||
<lib>${jsse.jar.path}</lib> | ||
</libs> | ||
<obfuscate>false</obfuscate> | ||
<addMavenDescriptor>false</addMavenDescriptor> | ||
</configuration> | ||
</plugin> | ||
</plugins> | ||
</pluginManagement> | ||
</build> | ||
<profiles> | ||
<!-- to avoid having to do symlinks to rt.jar like documented e.g. here | ||
http://bruehlicke.blogspot.com/2009/11/missing-rtjar-mac-os-x-using-proguard.html | ||
http://codebistro.com/2010/07/18/proguard-and-runtime-libraries-on-mac-os-x/ --> | ||
<profile> | ||
<id>linux</id> | ||
<activation> | ||
<os> | ||
<family>unix</family> | ||
</os> | ||
</activation> | ||
<properties> | ||
<rt.jar.path>${java.home}/lib/rt.jar</rt.jar.path> | ||
<jsse.jar.path>${java.home}/lib/jsse.jar</jsse.jar.path> | ||
</properties> | ||
</profile> | ||
<!-- mac profile has to be after unix since running on mac will trigger | ||
both --> | ||
<profile> | ||
<id>mac</id> | ||
<activation> | ||
<os> | ||
<family>mac</family> | ||
</os> | ||
</activation> | ||
<properties> | ||
<!-- absolute path --> | ||
<!--<rt.jar.path>/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Classes/classes.jar</rt.jar.path> --> | ||
<!-- or with JAVA_HOME /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/ --> | ||
<rt.jar.path>${java.home}/../Classes/classes.jar</rt.jar.path> | ||
<jsse.jar.path>${java.home}/../Classes/jsse.jar</jsse.jar.path> | ||
</properties> | ||
</profile> | ||
<profile> | ||
<id>windows</id> | ||
<activation> | ||
<os> | ||
<family>windows</family> | ||
</os> | ||
</activation> | ||
<properties> | ||
<rt.jar.path>${java.home}/jre/lib/rt.jar</rt.jar.path> | ||
<jsse.jar.path>${java.home}/jre/lib/jsse.jar</jsse.jar.path> | ||
</properties> | ||
</profile> | ||
</profiles> | ||
</project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
android:background="@color/background" | ||
android:orientation="vertical" > | ||
|
||
<LinearLayout | ||
android:id="@android:id/list" | ||
android:layout_width="fill_parent" | ||
android:layout_height="fill_parent" > | ||
</LinearLayout> | ||
|
||
</LinearLayout> |
Oops, something went wrong.