Skip to content

Commit

Permalink
Initial git commit.
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert Cooper committed Apr 8, 2015
0 parents commit eb4c4b3
Show file tree
Hide file tree
Showing 335 changed files with 27,461 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# See gitignore(5) or http://git-scm.com/docs/gitignore for syntax.
#
# These should all be checked. bin is questionable, as it would match
# directories we have checked in currently. Therefore it is disabled.
.settings
.myumldata
activemq-data
#bin
.idea
*.iml
.gradle
.project
.settings
.classpath
nbactions.xml
/out
/?

build
target
gen

/unit_test/com/gaggle/test/DirectoryTestRunner.java
/bin
/.gwt
/.apt_generated
/www-test
/*.eml
/*.ipr
/*.iws

92 changes: 92 additions & 0 deletions app/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
apply plugin: 'android'

android {
Properties props = new Properties()
props.load(new FileInputStream(System.getProperty("user.home")+"/androidkeyinfo.properties"))
compileSdkVersion 21
buildToolsVersion '19.1.0'

defaultConfig {
minSdkVersion 9
targetSdkVersion 21
testInstrumentationRunner "android.test.InstrumentationTestRunner"
}
signingConfigs {
debug {
storeFile file(System.getProperty("user.home")+"/androidkeystore")
storePassword props.getProperty("storePassword")
keyAlias "robert \"kebernet\" cooper"
keyPassword props.getProperty("keyPassword")

}

release {
storeFile file(System.getProperty("user.home")+"/androidkeystore")
storePassword props.getProperty("storePassword")
keyAlias "robert \"kebernet\" cooper"
keyPassword props.getProperty("keyPassword")
}
}

buildTypes {
release {
signingConfig signingConfigs.release
}
}
}

dependencies {
compile 'com.android.support:appcompat-v7:21.0.+'
compile 'com.google.android.gms:play-services:4.0.30'
compile project(":puzlib")
compile 'com.shamanland:fab:0.0.5'
compile 'com.github.traex.rippleeffect:library:1.2.2'
compile 'com.nineoldandroids:library:2.4.0'
androidTestCompile 'com.jayway.android.robotium:robotium-solo:4.3.1'
}


task prepareChrome << {
def slurp = new XmlSlurper().parse("src/main/AndroidManifest.xml")
def versionCode = slurp.'@android:versionCode'.text()
def versionName = slurp.'@android:versionName'.text()
copy {
from("src/main/chrome") {
include "**/*.json"
include "**/*.html"
filter {
it.replaceAll('@@versionCode@@', versionCode)
.replace('@@versionName@@', versionName)
}
}
into "build/chrome"
}
copy {
from("src/main/chrome") {
exclude "**/*.json"
exclude "**/*.html"
}
into "build/chrome"
}
}

task assembleChrome << {
copy {
from "build/outputs/apk/app-release.apk"
into "build/chrome/vendor/chromium/crx"
}
}
tasks.assembleChrome.dependsOn prepareChrome
tasks.assembleChrome.dependsOn assembleRelease

task packageChrome(type:Zip){
from "build/chrome"
archiveName "shortyz-chrome.zip"

}

tasks.packageChrome.dependsOn assembleChrome

tasks.build.dependsOn packageChrome


Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
package com.totsp.crossword.shortyz.test;

import android.test.AndroidTestCase;

import com.totsp.crossword.net.AbstractPageScraper;

public class PageScraperTest extends AndroidTestCase{

public void testParse() throws Exception {

String testString = "<a href=\"http://code.google.com/some/test/puzzle.puz\"> test puzzle</a>\n<a href=\"http://code.google.com/some/test/puzzle2.puz\"> test2 puzzle</a>";
System.out.println("Running...");
System.out.println(AbstractPageScraper.puzzleURLs(testString));

}

public void testBEQ() throws Exception {

AbstractPageScraper scraper = new TestScraper();

String payload = scraper.getContent();
System.out.println(payload);

System.out.println(scraper.puzzleURLs(payload));



}


private static class TestScraper extends AbstractPageScraper {

TestScraper(){
super("http://www.fleetwoodwack.typepad.com/", "BEQ");
}
}

}
Binary file added app/src/androidTest/res/drawable-hdpi/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/androidTest/res/drawable-ldpi/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/androidTest/res/drawable-mdpi/icon.png
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 app/src/androidTest/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:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/hello"
/>
</LinearLayout>
5 changes: 5 additions & 0 deletions app/src/androidTest/res/values/strings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="hello">Hello World!</string>
<string name="app_name">shortyzTest</string>
</resources>
127 changes: 127 additions & 0 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,127 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.totsp.crossword.shortyz"
android:installLocation="auto"
android:versionCode="40007"
android:versionName="4.0.7">

<supports-screens
android:anyDensity="true"
android:largeScreens="true"
android:normalScreens="true"
android:resizeable="true"
android:smallScreens="true"
android:xlargeScreens="true" />

<application
android:name="com.totsp.crossword.shortyz.ShortyzApplication"
android:backupAgent="com.totsp.crossword.shortyz.BackupAgent"
android:icon="@drawable/icon"
android:label="@string/app_name"
android:restoreAnyVersion="true">

<activity
android:name="com.totsp.crossword.HttpDownloadActivity"
android:label="Download to Shortyz">
<intent-filter>
<action android:name="android.intent.action.VIEW" />

<category android:name="android.intent.category.BROWSABLE" />
<category android:name="android.intent.category.DEFAULT" />

<data
android:host="*"
android:pathPattern=".*\\.puz"
android:scheme="http" />
</intent-filter>
</activity>
<activity
android:name="com.totsp.crossword.PlayActivity"
android:hardwareAccelerated="false"
android:label="@string/app_name"
android:theme="@style/Theme.Shortyz">
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<action android:name="android.intent.action.EDIT" />

<category android:name="android.intent.category.DEFAULT" />

<data
android:host="*"
android:pathPattern=".*\\.puz"
android:scheme="file" />
<data
android:mimeType="application/x-crossword"
android:scheme="file" />
</intent-filter>
</activity>
<activity
android:name="com.totsp.crossword.PreferencesActivity"
android:label="Settings"
android:theme="@style/Theme.Shortyz"
></activity>
<activity
android:name="com.totsp.crossword.ClueListActivity"
android:label="Clues"
android:theme="@style/Theme.Shortyz"
></activity>
<activity
android:name="com.totsp.crossword.HTMLActivity"
android:label="Shortyz"
android:theme="@style/Theme.Shortyz"
></activity>
<activity
android:name="com.totsp.crossword.BrowseActivity"
android:label="@string/app_name"
android:theme="@style/Theme.Shortyz">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name="com.totsp.crossword.WebBrowserActivity"
android:configChanges="keyboardHidden|orientation"
android:label="Browse for Puzzles"
android:theme="@style/Theme.Shortyz"></activity>
<activity
android:name="com.totsp.crossword.PuzzleFinishedActivity"
android:label="Puzzle Completed!"
android:theme="@style/Theme.AppCompat.Dialog"></activity>

<receiver android:name="com.totsp.crossword.net.DownloadReceiver">
<intent-filter>
<action android:name="android.intent.action.DOWNLOAD_COMPLETE" />
</intent-filter>
</receiver>

<activity
android:name="com.totsp.crossword.GamesSignIn"
android:label="@string/title_activity_games_sign_in"
android:theme="@style/Theme.Shortyz"></activity>

<meta-data
android:name="com.google.android.backup.api_key"
android:value="AEdPqrEAAAAIpupOi468PpFd3hXnN3o4Omx0Fgu9FyojG9lvzw" />
<meta-data
android:name="com.google.android.gms.games.APP_ID"
android:value="@string/app_id" />
<meta-data
android:name="com.google.android.gms.version"
android:value="@integer/google_play_services_version" />

</application>

<uses-sdk
android:minSdkVersion="9"
android:targetSdkVersion="11" />

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

<uses-feature
android:name="android.hardware.touchscreen"
android:required="false" />

</manifest>
Binary file added app/src/main/assets/donate.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
45 changes: 45 additions & 0 deletions app/src/main/assets/filescreen.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
<html>
<style>
* { font-family: Roboto, sans-serif; color:black; }
body { background: #eeeeee; height: 100%;}
</style>
<body>

<h2>Puzzle List Help</h2>

<p>Browse the list of puzzles and select one to play by touching it. You can also "Long Touch" a puzzle to delete it, or movie it to the "Archive" view.
You can also press the floating green button to download puzzles for an arbitrary date.

<p>Pressing the Menu button on this screen provides the following options:
<ul>
<li>
<dl>
<dt>Help</dt>
<dd>Displays this screen</dd>
</dl>
</li>
<li>
<dl>
<dt>Settings</dt>
<dd>Displays the Application settings. Here you can select puzzles to download and customize the behavior of the Cleanup operation.</dd>
</dl>
</li>
<li>
<dl>
<dt>Archive/Crosswords</dt>
<dd>Toggles between the regular list of crosswords and the archive folder</dd>
</dl>
</li>

<li>
<dl>
<dt>Cleanup</dt>
<dd>Moves completed and older puzzles to the Archive folder. If you wish to delete, instead of moving them to the archive folder, you can specify this in the settings. The puzzle files are not that large, though, and won't take up a significant amount of space on your external storage device.</dd></dl>
</li>
</ul>
</p>



</body>
</html>
Binary file added app/src/main/assets/gplus-32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/assets/icons1.ttf
Binary file not shown.
Binary file added app/src/main/assets/icons4.ttf
Binary file not shown.
Loading

0 comments on commit eb4c4b3

Please sign in to comment.