-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Robert Cooper
committed
Apr 8, 2015
0 parents
commit eb4c4b3
Showing
335 changed files
with
27,461 additions
and
0 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 |
---|---|---|
@@ -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 | ||
|
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,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 | ||
|
||
|
38 changes: 38 additions & 0 deletions
38
app/src/androidTest/java/com/totsp/crossword/shortyz/test/PageScraperTest.java
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,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"); | ||
} | ||
} | ||
|
||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,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> |
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,5 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<resources> | ||
<string name="hello">Hello World!</string> | ||
<string name="app_name">shortyzTest</string> | ||
</resources> |
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,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> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,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> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Oops, something went wrong.