framework for demo app at demo.evergreencatalog.com
authorkenstir <kenstir@gmail.com>
Tue, 10 Dec 2013 02:58:07 +0000 (21:58 -0500)
committerkenstir <kenstir@gmail.com>
Tue, 10 Dec 2013 02:58:07 +0000 (21:58 -0500)
Open-ILS/src/Android/core/.idea/.name
Open-ILS/src/Android/core/EvergreenCore.iml [deleted file]
Open-ILS/src/Android/cwmars_app/.idea/.name
Open-ILS/src/Android/cwmars_app/.idea/modules.xml
Open-ILS/src/Android/cwmars_app/cwmars.iml [deleted file]
Open-ILS/src/Android/cwmars_app/cwmars_app.iml [new file with mode: 0644]
Open-ILS/src/Android/demo_app/.gitignore [new file with mode: 0644]
Open-ILS/src/Android/demo_app/AndroidManifest.xml [new file with mode: 0644]
Open-ILS/src/Android/demo_app/res/values/ou.xml [new file with mode: 0644]

index a4eaec3..db6c79b 100644 (file)
@@ -1 +1 @@
-EvergreenApp
\ No newline at end of file
+app_core
\ No newline at end of file
diff --git a/Open-ILS/src/Android/core/EvergreenCore.iml b/Open-ILS/src/Android/core/EvergreenCore.iml
deleted file mode 100644 (file)
index da3c168..0000000
+++ /dev/null
@@ -1,73 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<module type="JAVA_MODULE" version="4">
-  <component name="EclipseModuleManager" forced_jdk="true">
-    <libelement value="jar://$MODULE_DIR$/libs/android-support-v4.jar!/" />
-    <libelement value="jar://$MODULE_DIR$/libs/org.opensrf2_serialized_reg.jar!/" />
-    <libelement value="jar://$MODULE_DIR$/libs/zxing_barcode.jar!/" />
-    <libelement value="jar://$MODULE_DIR$/libs/androwrapee-1.1.0.jar!/" />
-    <conelement value="com.android.ide.eclipse.adt.DEPENDENCIES" />
-    <src_description expected_position="5">
-      <src_folder value="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK" expected_position="0" />
-      <src_folder value="com.android.ide.eclipse.adt.LIBRARIES" expected_position="1" />
-      <src_folder value="file://$MODULE_DIR$/src" expected_position="6" />
-      <src_folder value="file://$MODULE_DIR$/gen" expected_position="7" />
-    </src_description>
-  </component>
-  <component name="FacetManager">
-    <facet type="android" name="Android">
-      <configuration>
-        <option name="LIBRARY_PROJECT" value="true" />
-        <option name="UPDATE_PROPERTY_FILES" value="true" />
-      </configuration>
-    </facet>
-  </component>
-  <component name="NewModuleRootManager" inherit-compiler-output="false">
-    <output url="file://$MODULE_DIR$/bin/classes" />
-    <exclude-output />
-    <content url="file://$MODULE_DIR$">
-      <sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
-      <sourceFolder url="file://$MODULE_DIR$/gen" isTestSource="false" generated="true" />
-    </content>
-    <orderEntry type="jdk" jdkName="Android 4.4 Platform" jdkType="Android SDK" />
-    <orderEntry type="module-library" exported="">
-      <library name="android-support-v4.jar">
-        <CLASSES>
-          <root url="jar://$MODULE_DIR$/libs/android-support-v4.jar!/" />
-        </CLASSES>
-        <JAVADOC>
-          <root url="file://E:/tools/adt-bundle-windows-x86_64-20130917/sdk/extras/android/support/v4/docs" />
-        </JAVADOC>
-        <SOURCES />
-      </library>
-    </orderEntry>
-    <orderEntry type="module-library" exported="">
-      <library name="org.opensrf2_serialized_reg.jar">
-        <CLASSES>
-          <root url="jar://$MODULE_DIR$/libs/org.opensrf2_serialized_reg.jar!/" />
-        </CLASSES>
-        <JAVADOC />
-        <SOURCES />
-      </library>
-    </orderEntry>
-    <orderEntry type="module-library" exported="">
-      <library name="zxing_barcode.jar">
-        <CLASSES>
-          <root url="jar://$MODULE_DIR$/libs/zxing_barcode.jar!/" />
-        </CLASSES>
-        <JAVADOC />
-        <SOURCES />
-      </library>
-    </orderEntry>
-    <orderEntry type="module-library" exported="">
-      <library name="androwrapee-1.1.0.jar">
-        <CLASSES>
-          <root url="jar://$MODULE_DIR$/libs/androwrapee-1.1.0.jar!/" />
-        </CLASSES>
-        <JAVADOC />
-        <SOURCES />
-      </library>
-    </orderEntry>
-    <orderEntry type="sourceFolder" forTests="false" />
-  </component>
-</module>
-
index eb09bdf..df5f5ac 100644 (file)
@@ -1 +1 @@
-cwmars
\ No newline at end of file
+cwmars_app
\ No newline at end of file
index 6e7bbd4..8c5c298 100644 (file)
@@ -3,7 +3,7 @@
   <component name="ProjectModuleManager">
     <modules>
       <module fileurl="file://$PROJECT_DIR$/../core/core.iml" filepath="$PROJECT_DIR$/../core/core.iml" />
-      <module fileurl="file://$PROJECT_DIR$/cwmars.iml" filepath="$PROJECT_DIR$/cwmars.iml" />
+      <module fileurl="file://$PROJECT_DIR$/cwmars_app.iml" filepath="$PROJECT_DIR$/cwmars_app.iml" />
     </modules>
   </component>
 </project>
diff --git a/Open-ILS/src/Android/cwmars_app/cwmars.iml b/Open-ILS/src/Android/cwmars_app/cwmars.iml
deleted file mode 100644 (file)
index b366ef5..0000000
+++ /dev/null
@@ -1,21 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<module type="JAVA_MODULE" version="4">
-  <component name="FacetManager">
-    <facet type="android" name="Android">
-      <configuration>
-        <option name="UPDATE_PROPERTY_FILES" value="true" />
-      </configuration>
-    </facet>
-  </component>
-  <component name="NewModuleRootManager" inherit-compiler-output="true">
-    <exclude-output />
-    <content url="file://$MODULE_DIR$">
-      <sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
-      <sourceFolder url="file://$MODULE_DIR$/gen" isTestSource="false" generated="true" />
-    </content>
-    <orderEntry type="inheritedJdk" />
-    <orderEntry type="sourceFolder" forTests="false" />
-    <orderEntry type="module" module-name="core" />
-  </component>
-</module>
-
diff --git a/Open-ILS/src/Android/cwmars_app/cwmars_app.iml b/Open-ILS/src/Android/cwmars_app/cwmars_app.iml
new file mode 100644 (file)
index 0000000..b366ef5
--- /dev/null
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<module type="JAVA_MODULE" version="4">
+  <component name="FacetManager">
+    <facet type="android" name="Android">
+      <configuration>
+        <option name="UPDATE_PROPERTY_FILES" value="true" />
+      </configuration>
+    </facet>
+  </component>
+  <component name="NewModuleRootManager" inherit-compiler-output="true">
+    <exclude-output />
+    <content url="file://$MODULE_DIR$">
+      <sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
+      <sourceFolder url="file://$MODULE_DIR$/gen" isTestSource="false" generated="true" />
+    </content>
+    <orderEntry type="inheritedJdk" />
+    <orderEntry type="sourceFolder" forTests="false" />
+    <orderEntry type="module" module-name="core" />
+  </component>
+</module>
+
diff --git a/Open-ILS/src/Android/demo_app/.gitignore b/Open-ILS/src/Android/demo_app/.gitignore
new file mode 100644 (file)
index 0000000..de3bba3
--- /dev/null
@@ -0,0 +1,10 @@
+*.class
+*.dex
+.idea/workspace.xml
+.idea/tasks.xml
+bin/
+gen/
+out/
+.settings
+local.properties
+proguard-project.txt
diff --git a/Open-ILS/src/Android/demo_app/AndroidManifest.xml b/Open-ILS/src/Android/demo_app/AndroidManifest.xml
new file mode 100644 (file)
index 0000000..534a470
--- /dev/null
@@ -0,0 +1,132 @@
+<?xml version="1.0" encoding="utf-8"?>
+<manifest xmlns:android="http://schemas.android.com/apk/res/android"
+          package="com.evergreencatalog.demo"
+          android:installLocation="auto"
+          android:versionCode="1"
+          android:versionName="1.0">
+
+    <uses-sdk
+        android:minSdkVersion="8"
+        android:targetSdkVersion="18" />
+
+    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
+    <uses-permission android:name="android.permission.AUTHENTICATE_ACCOUNTS" />
+    <uses-permission android:name="android.permission.CAMERA" />
+    <uses-permission android:name="android.permission.FLASHLIGHT" />
+    <uses-permission android:name="android.permission.GET_ACCOUNTS" />
+    <uses-permission android:name="android.permission.INTERNET" />
+    <uses-permission android:name="android.permission.MANAGE_ACCOUNTS" />
+    <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
+    <uses-permission android:name="android.permission.USE_CREDENTIALS" />
+    <uses-permission android:name="android.permission.VIBRATE" />
+    <uses-permission android:name="android.permission.WAKE_LOCK" />
+
+    <uses-feature android:name="android.hardware.camera" />
+    <uses-feature android:name="android.hardware.camera.autofocus" />
+
+    <application
+        android:allowBackup="true"
+        android:icon="@drawable/evergreen_launcher_icon"
+        android:label="@string/ou_app_name"
+        android:theme="@style/EvergreenTheme" >
+
+        <!-- Notification receiver -->
+        <receiver
+            android:name="org.evergreen.android.services.NotificationReceiver"
+            android:process=":remote" >
+        </receiver>
+        <!-- Receiver to reinit notifications on reboot -->
+        <receiver android:name="org.evergreen.android.services.RebootReceiver" >
+            <intent-filter>
+                <action android:name="android.intent.action.BOOT_COMPLETED" />
+            </intent-filter>
+        </receiver>
+        <receiver android:name="org.evergreen.android.services.PeriodicServiceBroadcastReceiver" >
+            <intent-filter>
+                <action android:name="android.net.conn.CONNECTIVITY_CHANGE" />
+            </intent-filter>
+        </receiver>
+
+        <service android:name="org.evergreen.android.services.ScheduledIntentService" >
+        </service>
+
+        <activity
+            android:name="org.evergreen.android.views.splashscreen.SplashActivity"
+            android:label="@string/ou_app_label">
+            <!--  android:theme="@android:style/Theme.Light.NoTitleBar"  -->
+            <intent-filter>
+                <action android:name="android.intent.action.MAIN" />
+
+                <category android:name="android.intent.category.LAUNCHER" />
+            </intent-filter>
+        </activity>
+        <activity
+            android:name="org.evergreen.android.views.AccountScreenDashboard"
+            android:theme="@android:style/Theme.Light.NoTitleBar" >
+        </activity>
+        <activity android:name="org.evergreen.android.views.ApplicationPreferences" >
+        </activity>
+
+        <!-- Search -->
+
+        <activity
+            android:name="org.evergreen.android.searchCatalog.SampleUnderlinesNoFade"
+            android:label="Underlines/No Fade" >
+        </activity>
+        <activity android:name="org.evergreen.android.searchCatalog.MoreCopyInformation" >
+        </activity>
+        <activity
+            android:name="org.evergreen.android.searchCatalog.SearchCatalogListView"
+            android:label="@string/ou_app_label" >
+        </activity>
+        <activity android:name="org.evergreen.android.searchCatalog.AdvancedSearchActivity" >
+        </activity>
+        <activity
+            android:name="org.evergreen.android.barcodescan.CaptureActivity"
+            android:label="@string/ou_app_label"
+            android:screenOrientation="landscape"
+            android:theme="@android:style/Theme.NoTitleBar"
+            android:windowSoftInputMode="stateAlwaysHidden" >
+        </activity>
+
+        <!-- Checkout Activities -->
+        <activity android:name="org.evergreen.android.accountAccess.checkout.ItemsCheckOutListView" >
+        </activity>
+
+        <!-- Holds Activities -->
+        <activity android:name="org.evergreen.android.accountAccess.holds.HoldsListView" >
+        </activity>
+        <activity android:name="org.evergreen.android.accountAccess.holds.PlaceHold" >
+        </activity>
+        <activity android:name="org.evergreen.android.accountAccess.holds.HoldDetails" >
+        </activity>
+
+        <!-- Fines Activities -->
+        <activity android:name="org.evergreen.android.accountAccess.fines.FinesActivity" >
+        </activity>
+
+        <!-- Bookbags -->
+        <activity android:name="org.evergreen.android.accountAccess.bookbags.BookbagsListView" >
+        </activity>
+        <activity android:name="org.evergreen.android.accountAccess.bookbags.BookBagDetails" >
+        </activity>
+
+        <activity
+            android:name="org.evergreen_ils.auth.AuthenticatorActivity"
+            android:label="@string/ou_account_label"
+            android:theme="@android:style/Theme.Light" >
+        </activity>
+
+        <service
+            android:name="org.evergreen_ils.auth.AuthenticatorService"
+            android:exported="false" >
+            <intent-filter>
+                <action android:name="android.accounts.AccountAuthenticator" />
+            </intent-filter>
+
+            <meta-data
+                android:name="android.accounts.AccountAuthenticator"
+                android:resource="@xml/authenticator" />
+        </service>
+    </application>
+</manifest>
diff --git a/Open-ILS/src/Android/demo_app/res/values/ou.xml b/Open-ILS/src/Android/demo_app/res/values/ou.xml
new file mode 100644 (file)
index 0000000..a4c6b11
--- /dev/null
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- ou_cwmars.xml - C/W MARS organizational unit -->
+<resources>
+    <string name="ou_library_url">https://demo.evergreencatalog.com</string>
+    <string name="ou_app_name">Evergreen Demo Library</string>
+    <string name="ou_app_label">Evergreen Demo</string>
+    <string name="ou_app_welcome_label">Welcome</string>
+    <string name="ou_account_label">Evergreen Demo Library</string>
+    <string name="ou_account_sign_in_message">Sign in to your\nEvergreen Demo Library Account</string>
+</resources>