Skip to content
This repository has been archived by the owner on Jan 18, 2022. It is now read-only.

Commit

Permalink
created search interface in UI; added AISCL as dependancy; License ch…
Browse files Browse the repository at this point in the history
…anged to GPLv2
  • Loading branch information
Benjamin Winger committed Dec 31, 2014
1 parent a3bbdc9 commit 4e1487b
Show file tree
Hide file tree
Showing 37 changed files with 669 additions and 960 deletions.
2 changes: 2 additions & 0 deletions AIS.iml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
</content>
<orderEntry type="jdk" jdkName="Maven Android API 19 Platform" jdkType="Android SDK" />
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="library" name="android-support-v7-appcompat" level="project" />
<orderEntry type="library" scope="PROVIDED" name="Maven: com.google.android:android:4.1.1.4" level="project" />
<orderEntry type="library" scope="PROVIDED" name="Maven: commons-logging:commons-logging:1.1.1" level="project" />
<orderEntry type="library" scope="PROVIDED" name="Maven: org.apache.httpcomponents:httpclient:4.0.1" level="project" />
Expand All @@ -42,6 +43,7 @@
<orderEntry type="library" scope="PROVIDED" name="Maven: xerces:xmlParserAPIs:2.6.2" level="project" />
<orderEntry type="library" scope="PROVIDED" name="Maven: xpp3:xpp3:1.1.4c" level="project" />
<orderEntry type="library" scope="PROVIDED" name="Maven: org.json:json:20080701" level="project" />
<orderEntry type="library" name="Maven: ca.dracode:AISCL:1.1" level="project" />
<orderEntry type="library" name="Maven: org.apache.lucene:lucene-analyzers-common:4.7.0" level="project" />
<orderEntry type="library" name="Maven: org.apache.lucene:lucene-core:4.7.0" level="project" />
<orderEntry type="library" name="Maven: org.apache.lucene:lucene-queryparser:4.7.0" level="project" />
Expand Down
16 changes: 11 additions & 5 deletions AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
~
~ AIS is free software: you can redistribute it and/or modify
~ it under the terms of the GNU General Public License as published by
~ the Free Software Foundation, either version 3 of the License, or
~ the Free Software Foundation, either version 2 of the License, or
~ (at your option) any later version.
~
~ AIS is distributed in the hope that it will be useful,
Expand All @@ -21,7 +21,7 @@
package="ca.dracode.ais"
xmlns:android="http://schemas.android.com/apk/res/android"
android:versionCode="1"
android:versionName="0.6.1">
android:versionName="0.7.0">

<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/>
Expand All @@ -41,13 +41,19 @@
android:label="@string/app_name"
android:theme="@style/AppTheme">
<activity
android:name="ca.dracode.ais.ui.MainActivity"
android:label="@string/app_name">
android:name=".ui.MainActivity"
android:label="@string/app_name"
android:launchMode="singleTop">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.LAUNCHER" />
<action android:name="android.intent.action.SEARCH" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
<meta-data android:name="android.app.searchable"
android:resource="@xml/searchable"
android:voiceSearchMode=
"showVoiceSearchButton|launchRecognizer"/>
</activity>

<activity
Expand Down
899 changes: 282 additions & 617 deletions COPYING.txt

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lint.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
~
~ AIS is free software: you can redistribute it and/or modify
~ it under the terms of the GNU General Public License as published by
~ the Free Software Foundation, either version 3 of the License, or
~ the Free Software Foundation, either version 2 of the License, or
~ (at your option) any later version.
~
~ AIS is distributed in the hope that it will be useful,
Expand Down
9 changes: 7 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
~
~ AIS is free software: you can redistribute it and/or modify
~ it under the terms of the GNU General Public License as published by
~ the Free Software Foundation, either version 3 of the License, or
~ the Free Software Foundation, either version 2 of the License, or
~ (at your option) any later version.
~
~ AIS is distributed in the hope that it will be useful,
Expand All @@ -23,7 +23,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>ca.dracode</groupId>
<artifactId>ais</artifactId>
<version>0.6.1</version>
<version>0.7.0</version>
<packaging>apk</packaging>
<name>AndroidIndexingService</name>
<dependencies>
Expand All @@ -33,6 +33,11 @@
<version>4.1.1.4</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>ca.dracode</groupId>
<artifactId>AISCL</artifactId>
<version>1.1</version>
</dependency>
<dependency>
<groupId>org.apache.lucene</groupId>
<artifactId>lucene-analyzers-common</artifactId>
Expand Down
14 changes: 6 additions & 8 deletions res/layout/activity_main.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
~
~ AIS is free software: you can redistribute it and/or modify
~ it under the terms of the GNU General Public License as published by
~ the Free Software Foundation, either version 3 of the License, or
~ the Free Software Foundation, either version 2 of the License, or
~ (at your option) any later version.
~
~ AIS is distributed in the hope that it will be useful,
Expand All @@ -19,18 +19,16 @@

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_width="match_parent" android:layout_height="match_parent"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
tools:context=".MainActivity">

<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/hello_world"
android:id="@+id/textView1"/>
<ExpandableListView
android:layout_width="match_parent"
android:layout_height="fill_parent"
android:id="@+id/list"/>

</RelativeLayout>
38 changes: 38 additions & 0 deletions res/layout/result_document.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
~ Copyright 2014 Dracode Software.
~
~ This file is part of AIS.
~
~ AIS is free software: you can redistribute it and/or modify
~ it under the terms of the GNU General Public License as published by
~ the Free Software Foundation, either version 2 of the License, or
~ (at your option) any later version.
~
~ AIS is distributed in the hope that it will be useful,
~ but WITHOUT ANY WARRANTY; without even the implied warranty of
~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
~ GNU General Public License for more details.
~
~ You should have received a copy of the GNU General Public License
~ along with AIS. If not, see <http://www.gnu.org/licenses/>.
-->

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical">

<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Document Name"
android:textSize="10pt"
android:id="@+id/resultTitle"/>

<ListView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/listView"
android:layout_weight="1"/>
</LinearLayout>
38 changes: 38 additions & 0 deletions res/layout/result_page.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
~ Copyright 2014 Dracode Software.
~
~ This file is part of AIS.
~
~ AIS is free software: you can redistribute it and/or modify
~ it under the terms of the GNU General Public License as published by
~ the Free Software Foundation, either version 2 of the License, or
~ (at your option) any later version.
~
~ AIS is distributed in the hope that it will be useful,
~ but WITHOUT ANY WARRANTY; without even the implied warranty of
~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
~ GNU General Public License for more details.
~
~ You should have received a copy of the GNU General Public License
~ along with AIS. If not, see <http://www.gnu.org/licenses/>.
-->

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content">

<TextView
android:layout_width="0px"
android:layout_height="wrap_content"
android:text="#"
android:id="@+id/pagenum"
android:layout_weight="1"/>

<TextView
android:layout_width="0px"
android:layout_height="wrap_content"
android:text="Text"
android:id="@+id/text"
android:layout_weight="3"/>
</LinearLayout>
2 changes: 1 addition & 1 deletion res/menu/aisapplication.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
~
~ AIS is free software: you can redistribute it and/or modify
~ it under the terms of the GNU General Public License as published by
~ the Free Software Foundation, either version 3 of the License, or
~ the Free Software Foundation, either version 2 of the License, or
~ (at your option) any later version.
~
~ AIS is distributed in the hope that it will be useful,
Expand Down
16 changes: 8 additions & 8 deletions res/menu/main.xml
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
~ Copyright 2014 Dracode Software.
~
~ This file is part of AIS.
~
~ AIS is free software: you can redistribute it and/or modify
~ it under the terms of the GNU General Public License as published by
~ the Free Software Foundation, either version 3 of the License, or
~ the Free Software Foundation, either version 2 of the License, or
~ (at your option) any later version.
~
~ AIS is distributed in the hope that it will be useful,
Expand All @@ -18,11 +19,10 @@
-->

<menu xmlns:android="http://schemas.android.com/apk/res/android">

<item android:title="@string/action_settings"
android:id="@+id/action_settings"/>
<item
android:id="@+id/action_settings"
android:orderInCategory="100"
android:showAsAction="never"
android:title="@string/action_settings" />

</menu>
android:id="@+id/menu_search"
android:title="Search"
android:showAsAction="ifRoom|collapseActionView"/>
</menu>
2 changes: 1 addition & 1 deletion res/values-sw600dp/dimens.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
~
~ AIS is free software: you can redistribute it and/or modify
~ it under the terms of the GNU General Public License as published by
~ the Free Software Foundation, either version 3 of the License, or
~ the Free Software Foundation, either version 2 of the License, or
~ (at your option) any later version.
~
~ AIS is distributed in the hope that it will be useful,
Expand Down
2 changes: 1 addition & 1 deletion res/values-sw720dp-land/dimens.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
~
~ AIS is free software: you can redistribute it and/or modify
~ it under the terms of the GNU General Public License as published by
~ the Free Software Foundation, either version 3 of the License, or
~ the Free Software Foundation, either version 2 of the License, or
~ (at your option) any later version.
~
~ AIS is distributed in the hope that it will be useful,
Expand Down
2 changes: 1 addition & 1 deletion res/values-v11/styles.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
~
~ AIS is free software: you can redistribute it and/or modify
~ it under the terms of the GNU General Public License as published by
~ the Free Software Foundation, either version 3 of the License, or
~ the Free Software Foundation, either version 2 of the License, or
~ (at your option) any later version.
~
~ AIS is distributed in the hope that it will be useful,
Expand Down
2 changes: 1 addition & 1 deletion res/values-v14/styles.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
~
~ AIS is free software: you can redistribute it and/or modify
~ it under the terms of the GNU General Public License as published by
~ the Free Software Foundation, either version 3 of the License, or
~ the Free Software Foundation, either version 2 of the License, or
~ (at your option) any later version.
~
~ AIS is distributed in the hope that it will be useful,
Expand Down
2 changes: 1 addition & 1 deletion res/values/dimens.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
~
~ AIS is free software: you can redistribute it and/or modify
~ it under the terms of the GNU General Public License as published by
~ the Free Software Foundation, either version 3 of the License, or
~ the Free Software Foundation, either version 2 of the License, or
~ (at your option) any later version.
~
~ AIS is distributed in the hope that it will be useful,
Expand Down
4 changes: 3 additions & 1 deletion res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
~
~ AIS is free software: you can redistribute it and/or modify
~ it under the terms of the GNU General Public License as published by
~ the Free Software Foundation, either version 3 of the License, or
~ the Free Software Foundation, either version 2 of the License, or
~ (at your option) any later version.
~
~ AIS is distributed in the hope that it will be useful,
Expand Down Expand Up @@ -33,4 +33,6 @@
index created by the Android Indexing Service. All data stored in the index will be
available to the service.</string>
<string name="ais_permission_title">Connect to AIS Indexer</string>
<string name="search_label">AIS</string>
<string name="search_prompt">Search Device Files</string>
</resources>
2 changes: 1 addition & 1 deletion res/values/styles.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
~
~ AIS is free software: you can redistribute it and/or modify
~ it under the terms of the GNU General Public License as published by
~ the Free Software Foundation, either version 3 of the License, or
~ the Free Software Foundation, either version 2 of the License, or
~ (at your option) any later version.
~
~ AIS is distributed in the hope that it will be useful,
Expand Down
2 changes: 1 addition & 1 deletion res/xml/prefs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
~
~ AIS is free software: you can redistribute it and/or modify
~ it under the terms of the GNU General Public License as published by
~ the Free Software Foundation, either version 3 of the License, or
~ the Free Software Foundation, either version 2 of the License, or
~ (at your option) any later version.
~
~ AIS is distributed in the hope that it will be useful,
Expand Down
24 changes: 24 additions & 0 deletions res/xml/searchable.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
~ Copyright 2014 Dracode Software.
~
~ This file is part of AIS.
~
~ AIS is free software: you can redistribute it and/or modify
~ it under the terms of the GNU General Public License as published by
~ the Free Software Foundation, either version 2 of the License, or
~ (at your option) any later version.
~
~ AIS is distributed in the hope that it will be useful,
~ but WITHOUT ANY WARRANTY; without even the implied warranty of
~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
~ GNU General Public License for more details.
~
~ You should have received a copy of the GNU General Public License
~ along with AIS. If not, see <http://www.gnu.org/licenses/>.
-->

<searchable xmlns:android="http://schemas.android.com/apk/res/android"
android:label="@string/search_label"
android:hint="@string/search_prompt">
</searchable>
2 changes: 1 addition & 1 deletion src/ca/dracode/ais/alarm/Alarm.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*
* AIS is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* the Free Software Foundation, either version 2 of the License, or
* (at your option) any later version.
*
* AIS is distributed in the hope that it will be useful,
Expand Down
2 changes: 1 addition & 1 deletion src/ca/dracode/ais/alarm/AutoStart.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*
* AIS is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* the Free Software Foundation, either version 2 of the License, or
* (at your option) any later version.
*
* AIS is distributed in the hope that it will be useful,
Expand Down
Loading

0 comments on commit 4e1487b

Please sign in to comment.