tiny fix
This commit is contained in:
parent
ba289b6087
commit
469b1a8627
@ -149,18 +149,13 @@ namespace Billing
|
||||
}
|
||||
}
|
||||
|
||||
public class AsyncLazy<T>
|
||||
public class AsyncLazy<T> : Lazy<Task<T>>
|
||||
{
|
||||
private readonly Lazy<Task<T>> instance;
|
||||
|
||||
public AsyncLazy(Func<Task<T>> factory)
|
||||
{
|
||||
instance = new Lazy<Task<T>>(() => Task.Run(factory));
|
||||
}
|
||||
public AsyncLazy(Func<Task<T>> factory) : base(() => Task.Run(factory)) { }
|
||||
|
||||
public TaskAwaiter<T> GetAwaiter()
|
||||
{
|
||||
return instance.Value.GetAwaiter();
|
||||
return Value.GetAwaiter();
|
||||
}
|
||||
}
|
||||
}
|
@ -15,7 +15,7 @@ namespace Billing
|
||||
|
||||
public static (double longitude, double latitude) Gcj02ToWgs84(this (double lon, double lat) position)
|
||||
{
|
||||
var (longitude, latitude) = Transform(position);
|
||||
(double longitude, double latitude) = Transform(position);
|
||||
longitude = position.lon * 2d - longitude;
|
||||
latitude = position.lat * 2d - latitude;
|
||||
return (longitude, latitude);
|
||||
|
@ -76,7 +76,7 @@ namespace Billing.Store
|
||||
}
|
||||
try
|
||||
{
|
||||
var count = await database.ExecuteScalarAsync<int>("SELECT COUNT(Id) FROM [Category]");
|
||||
var count = await database.ExecuteScalarAsync<int>("SELECT COUNT(Id) FROM [Account]");
|
||||
if (count <= 0)
|
||||
{
|
||||
await database.InsertAsync(new Account { Name = Resource.Cash, Icon = "wallet" });
|
||||
|
@ -50,11 +50,11 @@
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<AndroidManagedSymbols>true</AndroidManagedSymbols>
|
||||
<AndroidUseSharedRuntime>false</AndroidUseSharedRuntime>
|
||||
<AotAssemblies>true</AotAssemblies>
|
||||
<EnableLLVM>true</EnableLLVM>
|
||||
<AotAssemblies>false</AotAssemblies>
|
||||
<EnableLLVM>false</EnableLLVM>
|
||||
<AndroidEnableProfiledAot>false</AndroidEnableProfiledAot>
|
||||
<BundleAssemblies>true</BundleAssemblies>
|
||||
<AndroidSupportedAbis>arm64-v8a</AndroidSupportedAbis>
|
||||
<AndroidSupportedAbis>x86_64;arm64-v8a</AndroidSupportedAbis>
|
||||
<EmbedAssembliesIntoApk>true</EmbedAssembliesIntoApk>
|
||||
<AndroidCreatePackagePerAbi>true</AndroidCreatePackagePerAbi>
|
||||
<AndroidLinkTool>r8</AndroidLinkTool>
|
||||
|
@ -1,5 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionName="1.2.318" package="org.tsanie.billing" android:installLocation="auto" android:versionCode="18">
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionName="1.2.328" package="org.tsanie.billing" android:installLocation="auto" android:versionCode="20">
|
||||
<uses-sdk android:minSdkVersion="24" android:targetSdkVersion="30" />
|
||||
<application android:label="@string/applabel" android:theme="@style/MainTheme" android:requestLegacyExternalStorage="true"></application>
|
||||
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
|
||||
|
@ -14,7 +14,7 @@ namespace Billing.Droid
|
||||
{
|
||||
|
||||
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Xamarin.Android.Build.Tasks", "1.0.0.0")]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Xamarin.Android.Build.Tasks", "12.2.0.155")]
|
||||
public partial class Resource
|
||||
{
|
||||
|
||||
|
@ -80,9 +80,9 @@
|
||||
</dict>
|
||||
</array>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>19</string>
|
||||
<string>20</string>
|
||||
<key>CFBundleShortVersionString</key>
|
||||
<string>1.2.318</string>
|
||||
<string>1.2.328</string>
|
||||
<key>LSApplicationQueriesSchemes</key>
|
||||
<array>
|
||||
<string>mailto</string>
|
||||
|
Loading…
x
Reference in New Issue
Block a user