factorizing constants
This commit is contained in:
parent
da811bd491
commit
fd2e40dcf1
11 changed files with 108 additions and 71 deletions
|
|
@ -327,8 +327,8 @@ namespace ZicMoove.Droid
|
|||
{
|
||||
var auth = new YaOAuth2Authenticator(
|
||||
clientId: Constants.APIKey,
|
||||
clientSecret: "blouh",
|
||||
scope: "profile",
|
||||
clientSecret: Constants.APISecret,
|
||||
scope: Constants.Scope,
|
||||
authorizeUrl: new Uri(Constants.AuthorizeUrl),
|
||||
redirectUrl: new Uri(Constants.RedirectUrl),
|
||||
accessTokenUrl: new Uri(Constants.AccessTokenUrl));
|
||||
|
|
|
|||
|
|
@ -64,7 +64,7 @@ namespace ZicMoove.Droid
|
|||
}
|
||||
#endif
|
||||
|
||||
var senderid = MainSettings.GoogleSenderId;
|
||||
var senderid = Constants.GoogleSenderId;
|
||||
var token = instanceID.GetToken ( senderid,
|
||||
GoogleCloudMessaging.InstanceIdScope, null);
|
||||
|
||||
|
|
|
|||
|
|
@ -112,8 +112,7 @@ namespace ZicMoove.Droid
|
|||
void SubscribeGCM ()
|
||||
{
|
||||
Context context = this.ApplicationContext;
|
||||
string senders = MainSettings.GoogleSenderId;
|
||||
// Resources.GetString(GoogleSenderId);
|
||||
string senders = Constants.GoogleSenderId;
|
||||
Intent intent = new Intent ("com.google.android.c2dm.intent.REGISTER");
|
||||
intent.SetPackage ("com.google.android.gsf");
|
||||
intent.PutExtra ("app", PendingIntent.GetBroadcast (context, 0, new Intent (), 0));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue