Skip to content

Commit

Permalink
such code
Browse files Browse the repository at this point in the history
  • Loading branch information
kmark committed Feb 10, 2014
1 parent 37efcf1 commit 45134d0
Show file tree
Hide file tree
Showing 91 changed files with 3,145 additions and 2 deletions.
35 changes: 33 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,35 @@
# built application files
*.apk
*.ap_

# files for the dex VM
*.dex

# Java class files
*.class

# generated files
bin/
gen/

# Local configuration file (sdk path, etc)
local.properties

# Eclipse project files
.classpath
.project

# Android Studio
.idea/
.gradle
/local.properties
/.idea/workspace.xml
/*/local.properties
/*/out
/*/build
/*/production
*.iml
*.iws
*.ipr
*~
*.swp

.DS_Store
57 changes: 57 additions & 0 deletions WeatherDoge/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
def getVersionCode = { ->
try {
def stdout = new ByteArrayOutputStream()
exec {
commandLine './versionCode.sh'
standardOutput = stdout
}
return stdout.toString().trim().toInteger()
}
catch (ignored) {
return null;
}
}

def getVersionName = { ->
try {
def stdout = new ByteArrayOutputStream()
exec {
commandLine './versionName.sh'
standardOutput = stdout
}
return stdout.toString().trim()
}
catch (ignored) {
return null;
}
}
apply plugin: 'android'

android {
compileSdkVersion 19
buildToolsVersion "19.0.1"

defaultConfig {
minSdkVersion 10
targetSdkVersion 19
versionCode getVersionCode()
versionName getVersionName()
}

compileOptions {
sourceCompatibility JavaVersion.VERSION_1_7
targetCompatibility JavaVersion.VERSION_1_7
}
buildTypes {
release {
runProguard false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
}
}
}

dependencies {
compile 'com.google.android.gms:play-services:4.1.32'
compile 'com.android.support:support-v4:19.0.1'
compile files('libs/commons-io-2.4.jar')
}
Binary file added WeatherDoge/libs/commons-io-2.4.jar
Binary file not shown.
34 changes: 34 additions & 0 deletions WeatherDoge/proguard-rules.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Add project specific ProGuard rules here.
# By default, the flags in this file are appended to flags specified
# in /Applications/Android Studio.app/sdk/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 *;
#}

-keep class * extends java.util.ListResourceBundle {
protected Object[][] getContents();
}

-keep public class com.google.android.gms.common.internal.safeparcel.SafeParcelable {
public static final *** NULL;
}

-keepnames @com.google.android.gms.common.annotation.KeepName class *
-keepclassmembernames class * {
@com.google.android.gms.common.annotation.KeepName *;
}

-keepnames class * implements android.os.Parcelable {
public static final ** CREATOR;
}
39 changes: 39 additions & 0 deletions WeatherDoge/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.versobit.weatherdoge" >

<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.INTERNET" />

<uses-feature android:name="android.hardware.location" />

<application
android:name="com.versobit.weatherdoge.WeatherDoge"
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
<activity
android:name="com.versobit.weatherdoge.MainActivity"
android:label="@string/app_name"
android:screenOrientation="portrait" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />

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

<meta-data
android:name="com.google.android.gms.version"
android:value="@integer/google_play_services_version" />

<activity
android:theme="@style/AppTheme.Options"
android:name="com.versobit.weatherdoge.OptionsActivity"
android:screenOrientation="portrait"
android:label="@string/action_options" >
</activity>
</application>

</manifest>
Binary file added WeatherDoge/src/main/assets/comic.ttf
Binary file not shown.
17 changes: 17 additions & 0 deletions WeatherDoge/src/main/assets/comicsans.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Comic Sans MS</title>
<style type="text/css">
* {
font-family: sans-serif;
}
</style>
</head>
<body>
<h1>Comic Sans MS</h1>
<p>Weather Doge for Android includes and utilizes Microsoft Corporation's Comic Sans MS (comic.ttf version 5.00).</p>
<p>Comic Sans MS 5.00 was authored by Vincent Connare and &copy; Copyright 2006 Microsoft Corporation. All rights reserved. Additional licensing and copyright information, including how to purchase, license, and download Comic Sans MS, can be found on <a href="http://www.microsoft.com/typography/fonts/font.aspx?FMID=1920">Microsoft's typography knowledgebase</a>.</p>
<p><a href="othershibes.html">&laquo; Back to Other Shibes</a></p>
</body>
</html>
Loading

0 comments on commit 45134d0

Please sign in to comment.