|
8 | 8 | <uses-sdk android:minSdkVersion="14" android:targetSdkVersion="21" /> |
9 | 9 | <uses-permission android:name="android.permission.INTERNET" /> |
10 | 10 |
|
11 | | - <application android:icon="@mipmap/ic_launcher" android:label="Fitness" android:name="org.domokit.sky.shell.SkyApplication"> |
| 11 | + <!-- for GCM --> |
| 12 | + <uses-permission android:name="android.permission.WAKE_LOCK" /> |
| 13 | + <uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" /> |
| 14 | + <!-- Supposedly this permission prevents other apps from receiving our |
| 15 | + messages, but it doesn't seem to have any effect. --> |
| 16 | + <permission android:name="org.domokit.sky.shell.permission.C2D_MESSAGE" |
| 17 | + android:protectionLevel="signature" /> |
| 18 | + <uses-permission android:name="org.domokit.sky.shell.permission.C2D_MESSAGE" /> |
| 19 | + <!-- end for GCM --> |
| 20 | + |
| 21 | + <application android:icon="@mipmap/ic_launcher" android:label="Fitness" android:name="org.domokit.fitness.FitnessApplication"> |
12 | 22 | <activity android:configChanges="orientation|keyboardHidden|keyboard|screenSize" android:hardwareAccelerated="true" android:launchMode="singleTask" android:name="org.domokit.sky.shell.SkyActivity" android:theme="@android:style/Theme.Black.NoTitleBar"> |
13 | 23 | <intent-filter> |
14 | 24 | <action android:name="android.intent.action.MAIN" /> |
|
19 | 29 | android:name="org.domokit.sky.shell.UpdateService" |
20 | 30 | android:exported="false" |
21 | 31 | android:process=":remote"/> |
| 32 | + |
| 33 | + <!-- for GCM --> |
| 34 | + <receiver |
| 35 | + android:name="com.google.android.gms.gcm.GcmReceiver" |
| 36 | + android:exported="true" |
| 37 | + android:permission="com.google.android.c2dm.permission.SEND" > |
| 38 | + <intent-filter> |
| 39 | + <action android:name="com.google.android.c2dm.intent.RECEIVE" /> |
| 40 | + <category android:name="org.domokit.sky.shell" /> |
| 41 | + </intent-filter> |
| 42 | + </receiver> |
| 43 | + <service |
| 44 | + android:name="org.domokit.gcm.GcmListenerService" |
| 45 | + android:exported="false" > |
| 46 | + <intent-filter> |
| 47 | + <action android:name="com.google.android.c2dm.intent.RECEIVE" /> |
| 48 | + </intent-filter> |
| 49 | + </service> |
| 50 | + <service |
| 51 | + android:name="org.domokit.gcm.InstanceIDListenerService" |
| 52 | + android:exported="false"> |
| 53 | + <intent-filter> |
| 54 | + <action android:name="com.google.android.gms.iid.InstanceID"/> |
| 55 | + </intent-filter> |
| 56 | + </service> |
| 57 | + <service |
| 58 | + android:name="org.domokit.gcm.RegistrationIntentService" |
| 59 | + android:exported="false"> |
| 60 | + </service> |
22 | 61 | </application> |
23 | 62 | </manifest> |
0 commit comments