fixes latest commit, for DEV

This commit is contained in:
2017-02-18 02:32:18 +01:00
parent 9fe16d099d
commit e1d10d3ab0
6 changed files with 43 additions and 9 deletions

View File

@ -0,0 +1,30 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Android.App;
using Android.Content;
using Android.OS;
using Android.Runtime;
using Android.Views;
using Android.Widget;
namespace ZicMoove.Droid
{
[Activity(Label = "SendFileActivity")]
[MetaData("android.service.chooser.chooser_target_service", Value = Constants.ApplicationName + ".YavscChooserTargetService")]
[IntentFilter(new[] { "android.intent.action.SEND" },
Categories = new[] { "android.intent.category.DEFAULT" },
Icon = "@drawable/icon",
Label = Constants.SendToApp)]
public class SendFileActivity : Activity
{
protected override void OnCreate(Bundle savedInstanceState)
{
base.OnCreate(savedInstanceState);
// Create your application here
}
}
}

View File

@ -14,23 +14,20 @@ using ZicMoove.Droid.OAuth;
namespace ZicMoove.Droid.Services namespace ZicMoove.Droid.Services
{ {
[Service( [Service(
Name = "fr.pschneider.bas.AccountChooserService", Name = Constants.ApplicationName + ".AccountChooserService",
Label = "Yavsc accounts service", Label = Constants.ApplicationLabel + " accounts service",
Icon = "@drawable/icon", Icon = "@drawable/icon",
Exported = true, Exported = true,
Enabled = true Enabled = true
)] )]
[IntentFilter(new String[] { "android.accounts.AccountAuthenticator" })] [IntentFilter(new String[] { "android.accounts.AccountAuthenticator" })]
[MetaData("android.accounts.AccountAuthenticator",Resource = "@xml/authenticator")]
class AccountChooserService : Service class AccountChooserService : Service
{ {
public static YaOAuth2Authenticator authenticator; public static YaOAuth2Authenticator authenticator;
public override void OnCreate() public override void OnCreate()
{ {
base.OnCreate(); base.OnCreate();
} }
public override IBinder OnBind(Intent intent) public override IBinder OnBind(Intent intent)

View File

@ -13,7 +13,7 @@ using ZicMoove.Settings;
namespace ZicMoove.Droid namespace ZicMoove.Droid
{ {
[Service(Exported = false)] [Service(Exported = false), IntentFilter(new[] { "com.google.android.c2dm.intent.REGISTRATION" })]
class GcmRegistrationIntentService : IntentService class GcmRegistrationIntentService : IntentService
{ {
static object locker = new object(); static object locker = new object();

View File

@ -15,8 +15,8 @@ using static Android.Manifest;
namespace ZicMoove.Droid namespace ZicMoove.Droid
{ {
[Service( [Service(
Name = "fr.pschneider.bas.YavscChooserTargetService", Name = Constants.ApplicationName + ".YavscChooserTargetService",
Label = "Yavsc share service", Label = Constants.ApplicationLabel + " share service",
Permission = Permission.BindChooserTargetService, Permission = Permission.BindChooserTargetService,
Icon = "@drawable/icon", Icon = "@drawable/icon",
Exported = true, Exported = true,

View File

@ -465,6 +465,7 @@
<Compile Include="Rendering\ImageButtonRenderer.cs" /> <Compile Include="Rendering\ImageButtonRenderer.cs" />
<Compile Include="Resources\Resource.Designer.cs" /> <Compile Include="Resources\Resource.Designer.cs" />
<Compile Include="Properties\AssemblyInfo.cs" /> <Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="SendFileActivity.cs" />
<Compile Include="Services\AccountChooserService.cs" /> <Compile Include="Services\AccountChooserService.cs" />
<Compile Include="Services\GCMHandlers\BookQueryGCMHandler.cs" /> <Compile Include="Services\GCMHandlers\BookQueryGCMHandler.cs" />
<Compile Include="Services\GCMHandlers\EstimateGCMHandler.cs" /> <Compile Include="Services\GCMHandlers\EstimateGCMHandler.cs" />

View File

@ -12,6 +12,8 @@ namespace ZicMoove
public static readonly string AuthorizeUrl = YavscHomeUrl + "/authorize"; public static readonly string AuthorizeUrl = YavscHomeUrl + "/authorize";
public static readonly string AccessTokenUrl = YavscHomeUrl + "/token"; public static readonly string AccessTokenUrl = YavscHomeUrl + "/token";
public const string RedirectUrl = YavscHomeUrl + "/oauth/success";
public static readonly string Scope = "profile";
public static readonly string YavscApiUrl = YavscHomeUrl + "/api"; public static readonly string YavscApiUrl = YavscHomeUrl + "/api";
public static readonly string MobileRegistrationUrl = YavscApiUrl + "/gcm/register"; public static readonly string MobileRegistrationUrl = YavscApiUrl + "/gcm/register";
@ -23,5 +25,9 @@ namespace ZicMoove
public static int AllowBeATarget = 1; public static int AllowBeATarget = 1;
public static int CloudTimeout = 400; public static int CloudTimeout = 400;
public const string PermissionMapReceive = Constants.ApplicationName + ".permission.MAPS_RECEIVE";
public const string PermissionC2DMessage = Constants.ApplicationName + ".permission.C2D_MESSAGE";
} }
} }