factorizing constants

This commit is contained in:
Paul Schneider 2017-02-05 20:46:42 +01:00
commit fd2e40dcf1
11 changed files with 108 additions and 71 deletions

View file

@ -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));

View file

@ -64,7 +64,7 @@ namespace ZicMoove.Droid
}
#endif
var senderid = MainSettings.GoogleSenderId;
var senderid = Constants.GoogleSenderId;
var token = instanceID.GetToken ( senderid,
GoogleCloudMessaging.InstanceIdScope, null);

View file

@ -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));