parent
3e82839bd8
commit
a3f786b42a
@ -1,15 +0,0 @@
|
|||||||
using Demo.Droid;
|
|
||||||
using Xamarin.Forms;
|
|
||||||
|
|
||||||
[assembly: Dependency(typeof(BaseUrl_Android))]
|
|
||||||
|
|
||||||
namespace Demo.Droid
|
|
||||||
{
|
|
||||||
public class BaseUrl_Android : IBaseUrl
|
|
||||||
{
|
|
||||||
public string Get()
|
|
||||||
{
|
|
||||||
return "file:///android_asset/";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,16 +0,0 @@
|
|||||||
using Demo.iOS;
|
|
||||||
using Foundation;
|
|
||||||
using Xamarin.Forms;
|
|
||||||
|
|
||||||
[assembly: Dependency(typeof(BaseUrl_iOS))]
|
|
||||||
|
|
||||||
namespace Demo.iOS
|
|
||||||
{
|
|
||||||
public class BaseUrl_iOS : IBaseUrl
|
|
||||||
{
|
|
||||||
public string Get()
|
|
||||||
{
|
|
||||||
return NSBundle.MainBundle.BundlePath;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,7 +0,0 @@
|
|||||||
namespace Demo
|
|
||||||
{
|
|
||||||
public interface IBaseUrl
|
|
||||||
{
|
|
||||||
string Get();
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
Reference in new issue