Revert "Merge branch 'master' of ssh://git.average.org/~/NFCAuthCR"
[YkNeoCR.git] / AndroidManifest.xml
index 70507a433278f512e5381b04b6c1f0ff6b256812..73d6683af9f33f0793296d2b3e6ff8b05be43ca4 100644 (file)
@@ -1,15 +1,42 @@
 <?xml version="1.0" encoding="utf-8"?>
 <manifest xmlns:android="http://schemas.android.com/apk/res/android"
-      package="org.average.nfcauthcr"
-      android:versionCode="1"
-      android:versionName="1.0">
-    <application android:label="@string/app_name" android:icon="@drawable/ic_launcher">
-        <activity android:name="NFCAuthCRConf"
-                  android:label="@string/app_name">
-            <intent-filter>
-                <action android:name="android.intent.action.MAIN" />
-                <category android:name="android.intent.category.LAUNCHER" />
-            </intent-filter>
-        </activity>
-    </application>
+         package="org.average.nfcauthcr"
+         android:versionCode="1"
+         android:versionName="1.0">
+       <uses-sdk android:minSdkVersion="10"
+                 android:targetSdkVersion="17" />
+
+       <uses-permission android:name="android.permission.NFC" />
+       <uses-feature android:name="android.hardware.nfc"
+                     android:required="true" />
+
+       <application android:label="@string/app_name"
+                        android:icon="@drawable/yalekey"
+                        android:allowBackup="true"
+                        android:theme="@style/AppTheme">
+
+               <activity android:name=".Enroll"
+                         android:label="@string/app_name">
+                       <intent-filter>
+                               <action android:name="android.intent.action.MAIN" />
+                               <category android:name="android.intent.category.LAUNCHER" />
+                       </intent-filter>
+               </activity>
+
+               <receiver android:name=".Autostart">
+                       <intent-filter>
+                               <action android:name="android.intent.action.USER_PRESENT" />
+                       </intent-filter>
+               </receiver>
+               <receiver android:name=".Autostop">
+                       <intent-filter>
+                               <action android:name="android.intent.action.SCREEN_OFF" />
+                       </intent-filter>
+               </receiver>
+
+               <service android:name=".Check"
+                        android:label="@string/app_name">
+               </service>
+
+       </application>
 </manifest>