Skip to content

Commit 7bc8e5a

Browse files
committed
Merge pull request #24 from DAGalpin/6.12_So_Much_Real_Estate_Part_3_Finish
6.12 so much real estate part 3 finish
2 parents 7a85791 + fbe3d43 commit 7bc8e5a

File tree

9 files changed

+299
-267
lines changed

9 files changed

+299
-267
lines changed

app/build.gradle

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
apply plugin: 'com.android.application'
2+
apply plugin: 'com.google.gms.google-services'
23

34
android {
45
compileSdkVersion 21
@@ -29,5 +30,5 @@ dependencies {
2930
compile 'com.android.support:support-annotations:22.1.0'
3031
compile 'com.android.support:gridlayout-v7:22.1.0'
3132
compile 'com.android.support:cardview-v7:22.1.1'
32-
compile 'com.google.android.gms:play-services-gcm:7.0.0'
33+
compile 'com.google.android.gms:play-services-gcm:7.5.0'
3334
}

app/src/main/AndroidManifest.xml

Lines changed: 38 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,21 @@
2121
<uses-permission android:name="android.permission.INTERNET" />
2222

2323
<!-- Permissions required by the sync adapter -->
24-
<uses-permission android:name="android.permission.READ_SYNC_SETTINGS" />
25-
<uses-permission android:name="android.permission.WRITE_SYNC_SETTINGS" />
26-
<uses-permission android:name="android.permission.AUTHENTICATE_ACCOUNTS" />
24+
<uses-permission
25+
android:name="android.permission.READ_SYNC_SETTINGS"/>
26+
<uses-permission
27+
android:name="android.permission.WRITE_SYNC_SETTINGS"/>
28+
<uses-permission
29+
android:name="android.permission.AUTHENTICATE_ACCOUNTS"/>
2730

2831
<!-- Permissions required to make our UI more friendly -->
29-
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
32+
<uses-permission
33+
android:name="android.permission.ACCESS_NETWORK_STATE" />
3034

3135
<!-- Permissions required for Google Cloud Messaging -->
36+
<uses-permission android:name="android.permission.WAKE_LOCK" />
3237
<uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" />
33-
<permission
34-
android:name="com.example.android.sunshine.app.permission.C2D_MESSAGE"
38+
<permission android:name="com.example.android.sunshine.app.permission.C2D_MESSAGE"
3539
android:protectionLevel="signature" />
3640
<uses-permission android:name="com.example.android.sunshine.app.permission.C2D_MESSAGE" />
3741

@@ -43,7 +47,7 @@
4347
android:supportsRtl="true">
4448
<activity
4549
android:name=".MainActivity"
46-
android:label="@string/app_name">
50+
android:label="@string/app_name" >
4751
<intent-filter>
4852
<action android:name="android.intent.action.MAIN" />
4953

@@ -62,24 +66,22 @@
6266
android:name=".SettingsActivity"
6367
android:label="@string/title_activity_settings"
6468
android:parentActivityName=".MainActivity"
65-
android:theme="@style/SettingsTheme" >
69+
android:theme="@style/SettingsTheme">
6670
<meta-data
6771
android:name="android.support.PARENT_ACTIVITY"
6872
android:value="com.example.android.sunshine.app.MainActivity" />
6973
</activity>
70-
7174
<provider
72-
android:name=".data.WeatherProvider"
7375
android:authorities="@string/content_authority"
76+
android:name=".data.WeatherProvider"
7477
android:exported="false"
7578
android:syncable="true" />
7679

7780
<!-- SyncAdapter's dummy authentication service -->
78-
<service android:name=".sync.SunshineAuthenticatorService" >
81+
<service android:name=".sync.SunshineAuthenticatorService">
7982
<intent-filter>
8083
<action android:name="android.accounts.AccountAuthenticator" />
8184
</intent-filter>
82-
8385
<meta-data
8486
android:name="android.accounts.AccountAuthenticator"
8587
android:resource="@xml/authenticator" />
@@ -88,25 +90,45 @@
8890
<!-- The SyncAdapter service -->
8991
<service
9092
android:name=".sync.SunshineSyncService"
91-
android:exported="true" >
93+
android:exported="true"
94+
>
9295
<intent-filter>
9396
<action android:name="android.content.SyncAdapter" />
9497
</intent-filter>
95-
9698
<meta-data
9799
android:name="android.content.SyncAdapter"
98100
android:resource="@xml/syncadapter" />
99101
</service>
100102

101-
<!-- GCM receiver -->
103+
<!-- The Google Cloud Messaging receiver and services -->
102104
<receiver
103-
android:name=".GcmBroadcastReceiver"
105+
android:name="com.google.android.gms.gcm.GcmReceiver"
106+
android:exported="true"
104107
android:permission="com.google.android.c2dm.permission.SEND" >
105108
<intent-filter>
106109
<action android:name="com.google.android.c2dm.intent.RECEIVE" />
110+
<action android:name="com.google.android.c2dm.intent.REGISTRATION" />
107111
<category android:name="com.example.android.sunshine.app" />
108112
</intent-filter>
109113
</receiver>
114+
<service
115+
android:name="gcm.MyGcmListenerService"
116+
android:exported="false" >
117+
<intent-filter>
118+
<action android:name="com.google.android.c2dm.intent.RECEIVE" />
119+
</intent-filter>
120+
</service>
121+
<service
122+
android:name="gcm.MyInstanceIDListenerService"
123+
android:exported="false">
124+
<intent-filter>
125+
<action android:name="com.google.android.gms.iid.InstanceID"/>
126+
</intent-filter>
127+
</service>
128+
<service
129+
android:name=".gcm.RegistrationIntentService"
130+
android:exported="false" >
131+
</service>
110132
</application>
111133

112134
</manifest>

app/src/main/java/com/example/android/sunshine/app/GcmBroadcastReceiver.java

Lines changed: 0 additions & 93 deletions
This file was deleted.

0 commit comments

Comments
 (0)