Skip to content

Commit

Permalink
Merge pull request #6 from LaloCo/developers
Browse files Browse the repository at this point in the history
Developers
  • Loading branch information
LaloCo authored Sep 28, 2018
2 parents 098d9b8 + dab8f15 commit 1e3fe8a
Show file tree
Hide file tree
Showing 12 changed files with 99 additions and 47 deletions.
12 changes: 9 additions & 3 deletions .vs/Finance/xs/UserPrefs.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
<Properties StartupConfiguration="{8337A36F-24EB-4EA0-909B-C7644191855D}|Default">
<MonoDevelop.Ide.Workbench />
<MonoDevelop.Ide.ItemProperties.Finance.iOS PreferredExecutionTarget="MonoDevelop.IPhone.IPhoneSimulatorTarget.804459D3-51C1-45A7-80A8-0E1ECA803C14" />
<Properties StartupConfiguration="{8337A36F-24EB-4EA0-909B-C7644191855D}|Default" GitUserInfo="UsingGIT">
<MonoDevelop.Ide.Workbench ActiveDocument="Finance Status">
<Files>
<File FileName="Finance/App.xaml.cs" Line="25" Column="94" />
<File FileName="Finance/View/PostPage.xaml.cs" Line="26" Column="48" />
<File FileName="Finance Status" />
</Files>
</MonoDevelop.Ide.Workbench>
<MonoDevelop.Ide.ItemProperties.Finance.iOS PreferredExecutionTarget="MonoDevelop.IPhone.IPhoneSimulatorTarget.804459D3-51C1-45A7-80A8-0E1ECA803C14" automaticSigning="False" />
<MonoDevelop.Ide.Workspace ActiveConfiguration="Debug" />
<MonoDevelop.Ide.ItemProperties.Finance.Android PreferredExecutionTarget="Android.Android_Accelerated_Oreo" AndroidDesignerPreferredTheme="Theme.DeviceDefault.NoActionBar.Fullscreen" />
<MonoDevelop.Ide.DebuggingService.Breakpoints>
Expand Down
Binary file modified .vs/Finance/xs/sqlite3/storage.ide
Binary file not shown.
Binary file modified .vs/Finance/xs/sqlite3/storage.ide-shm
Binary file not shown.
Binary file modified .vs/Finance/xs/sqlite3/storage.ide-wal
Binary file not shown.
15 changes: 14 additions & 1 deletion Finance.Android/Finance.Android.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
<AndroidHttpClientHandlerType>Xamarin.Android.Net.AndroidClientHandler</AndroidHttpClientHandlerType>
<NuGetPackageImportStamp>
</NuGetPackageImportStamp>
<AndroidUseSharedRuntime>false</AndroidUseSharedRuntime>
<AndroidSupportedAbis>armeabi-v7a;armeabi;x86;arm64-v8a;x86_64</AndroidSupportedAbis>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
Expand All @@ -30,6 +32,7 @@
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<AndroidLinkMode>None</AndroidLinkMode>
<EmbedAssembliesIntoApk>true</EmbedAssembliesIntoApk>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
Expand All @@ -39,7 +42,11 @@
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<AndroidManagedSymbols>true</AndroidManagedSymbols>
<AndroidUseSharedRuntime>false</AndroidUseSharedRuntime>
<AndroidKeyStore>True</AndroidKeyStore>
<AndroidSigningKeyStore>/Users/eduardorosas/Library/Developer/Xamarin/Keystore/LPAFinance/LPAFinance.keystore</AndroidSigningKeyStore>
<AndroidSigningStorePass>JpvRDN3W$VbVTU@3</AndroidSigningStorePass>
<AndroidSigningKeyAlias>LPAFinance</AndroidSigningKeyAlias>
<AndroidSigningKeyPass>JpvRDN3W$VbVTU@3</AndroidSigningKeyPass>
</PropertyGroup>
<ItemGroup>
<Reference Include="Mono.Android" />
Expand All @@ -55,6 +62,12 @@
<PackageReference Include="Xamarin.Android.Support.v4" Version="27.0.2.1" />
<PackageReference Include="Xamarin.Android.Support.v7.CardView" Version="27.0.2.1" />
<PackageReference Include="Xamarin.Android.Support.v7.MediaRouter" Version="27.0.2.1" />
<PackageReference Include="Microsoft.AppCenter.Analytics">
<Version>1.9.0</Version>
</PackageReference>
<PackageReference Include="Microsoft.AppCenter.Crashes">
<Version>1.9.0</Version>
</PackageReference>
</ItemGroup>
<ItemGroup>
<Compile Include="MainActivity.cs" />
Expand Down
5 changes: 2 additions & 3 deletions Finance.Android/Properties/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionCode="1" android:versionName="1.0" package="com.lalorosas.Finance">
<uses-sdk android:minSdkVersion="21" android:targetSdkVersion="27" />
<application android:label="Finance.Android">
</application>
<uses-sdk android:minSdkVersion="22" android:targetSdkVersion="27" />
<application android:label="Finance.Android"></application>
</manifest>
24 changes: 18 additions & 6 deletions Finance.iOS/Finance.iOS.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@
<MtouchArch>x86_64</MtouchArch>
<MtouchLink>None</MtouchLink>
<MtouchDebug>true</MtouchDebug>
<CodesignProvision>VS: WildCard Development</CodesignProvision>
<CodesignKey>iPhone Developer: Eduardo Rosas (L77NYX594K)</CodesignKey>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|iPhoneSimulator' ">
<DebugType>none</DebugType>
Expand All @@ -38,6 +40,8 @@
<MtouchLink>None</MtouchLink>
<MtouchArch>x86_64</MtouchArch>
<ConsolePause>false</ConsolePause>
<CodesignProvision>VS: WildCard Development</CodesignProvision>
<CodesignKey>iPhone Developer: Eduardo Rosas (L77NYX594K)</CodesignKey>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|iPhone' ">
<DebugSymbols>true</DebugSymbols>
Expand All @@ -49,9 +53,10 @@
<WarningLevel>4</WarningLevel>
<ConsolePause>false</ConsolePause>
<MtouchArch>ARM64</MtouchArch>
<CodesignKey>iPhone Developer</CodesignKey>
<CodesignKey>iPhone Developer: Eduardo Rosas (L77NYX594K)</CodesignKey>
<MtouchDebug>true</MtouchDebug>
<CodesignEntitlements>Entitlements.plist</CodesignEntitlements>
<CodesignProvision>VS: WildCard Development</CodesignProvision>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|iPhone' ">
<DebugType>none</DebugType>
Expand All @@ -61,8 +66,9 @@
<WarningLevel>4</WarningLevel>
<MtouchArch>ARM64</MtouchArch>
<ConsolePause>false</ConsolePause>
<CodesignKey>iPhone Developer</CodesignKey>
<CodesignKey>iPhone Developer: Eduardo Rosas (L77NYX594K)</CodesignKey>
<CodesignEntitlements>Entitlements.plist</CodesignEntitlements>
<CodesignProvision>VS: WildCard Development</CodesignProvision>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Ad-Hoc|iPhone' ">
<DebugType>none</DebugType>
Expand All @@ -73,8 +79,8 @@
<ConsolePause>False</ConsolePause>
<MtouchArch>ARM64</MtouchArch>
<BuildIpa>True</BuildIpa>
<CodesignProvision>Automatic:AdHoc</CodesignProvision>
<CodesignKey>iPhone Distribution</CodesignKey>
<CodesignProvision>VS: WildCard Development</CodesignProvision>
<CodesignKey>iPhone Developer: Eduardo Rosas (L77NYX594K)</CodesignKey>
<CodesignEntitlements>Entitlements.plist</CodesignEntitlements>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'AppStore|iPhone' ">
Expand All @@ -85,8 +91,8 @@
<WarningLevel>4</WarningLevel>
<ConsolePause>False</ConsolePause>
<MtouchArch>ARM64</MtouchArch>
<CodesignProvision>Automatic:AppStore</CodesignProvision>
<CodesignKey>iPhone Distribution</CodesignKey>
<CodesignProvision>VS: WildCard Development</CodesignProvision>
<CodesignKey>iPhone Developer: Eduardo Rosas (L77NYX594K)</CodesignKey>
<CodesignEntitlements>Entitlements.plist</CodesignEntitlements>
</PropertyGroup>
<ItemGroup>
Expand Down Expand Up @@ -149,6 +155,12 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="Xamarin.Forms" Version="3.1.0.697729" />
<PackageReference Include="Microsoft.AppCenter.Crashes">
<Version>1.9.0</Version>
</PackageReference>
<PackageReference Include="Microsoft.AppCenter.Analytics">
<Version>1.9.0</Version>
</PackageReference>
</ItemGroup>
<Import Project="$(MSBuildExtensionsPath)\Xamarin\iOS\Xamarin.iOS.CSharp.targets" />
<ItemGroup>
Expand Down
64 changes: 32 additions & 32 deletions Finance.iOS/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -2,37 +2,37 @@
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>UIDeviceFamily</key>
<array>
<integer>1</integer>
<integer>2</integer>
</array>
<key>UISupportedInterfaceOrientations</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
<key>UISupportedInterfaceOrientations~ipad</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationPortraitUpsideDown</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
<key>MinimumOSVersion</key>
<string>8.0</string>
<key>CFBundleDisplayName</key>
<string>Finance</string>
<key>CFBundleIdentifier</key>
<string>com.lalorosas.Finance</string>
<key>CFBundleVersion</key>
<string>1.0</string>
<key>UILaunchStoryboardName</key>
<string>LaunchScreen</string>
<key>CFBundleName</key>
<string>Finance</string>
<key>XSAppIconAssets</key>
<string>Assets.xcassets/AppIcon.appiconset</string>
<key>UIDeviceFamily</key>
<array>
<integer>1</integer>
<integer>2</integer>
</array>
<key>UISupportedInterfaceOrientations</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
<key>UISupportedInterfaceOrientations~ipad</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationPortraitUpsideDown</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
<key>MinimumOSVersion</key>
<string>11.0</string>
<key>CFBundleDisplayName</key>
<string>Finance</string>
<key>CFBundleIdentifier</key>
<string>com.lalorosas.Finance</string>
<key>CFBundleVersion</key>
<string>1.0</string>
<key>UILaunchStoryboardName</key>
<string>LaunchScreen</string>
<key>CFBundleName</key>
<string>Finance</string>
<key>XSAppIconAssets</key>
<string>Assets.xcassets/AppIcon.appiconset</string>
</dict>
</plist>
7 changes: 6 additions & 1 deletion Finance/App.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
using Xamarin.Forms;
using Xamarin.Forms.Xaml;
using Finance.View;
using Microsoft.AppCenter;
using Microsoft.AppCenter.Crashes;
using Microsoft.AppCenter.Analytics;

[assembly: XamlCompilation(XamlCompilationOptions.Compile)]
namespace Finance
Expand All @@ -17,7 +20,9 @@ public App()

protected override void OnStart()
{
// Handle when your app starts
string androidAppSecret = "8626cb1e-a5e1-43db-a223-14e5deb03fd6";
string iOSAppSecret = "69127242-7f3e-4c21-9a5a-f191c6a53161";
AppCenter.Start($"android={androidAppSecret};ios={iOSAppSecret}", typeof(Crashes));
}

protected override void OnSleep()
Expand Down
2 changes: 2 additions & 0 deletions Finance/Finance.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@

<ItemGroup>
<PackageReference Include="Xamarin.Forms" Version="3.1.0.697729" />
<PackageReference Include="Microsoft.AppCenter.Crashes" Version="1.9.0" />
<PackageReference Include="Microsoft.AppCenter.Analytics" Version="1.9.0" />
</ItemGroup>
<ItemGroup>
<Folder Include="View\" />
Expand Down
16 changes: 15 additions & 1 deletion Finance/View/PostPage.xaml.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using System;
using System.Collections.Generic;
using Finance.Model;
using Microsoft.AppCenter.Crashes;
using Xamarin.Forms;

namespace Finance.View
Expand All @@ -18,7 +19,20 @@ public PostPage(Item item)
InitializeComponent();
Xamarin.Forms.PlatformConfiguration.iOSSpecific.Page.SetUseSafeArea(this, true);

webView.Source = item.ItemLink;
try
{
throw (new Exception("Unable to load blog"));

webView.Source = item.ItemLink;
}
catch(Exception ex)
{
var properties = new Dictionary<string, string>
{
{"Blog_Post", $"{item.Title}"}
};
Crashes.TrackError(ex, properties);
}
}
}
}
1 change: 1 addition & 0 deletions Finance/ViewModel/MainVM.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.IO;
using System.Net;
Expand Down

0 comments on commit 1e3fe8a

Please sign in to comment.