Commit c128ee46 by Javier Piris

Solucinado parte de los warning de toda la app

parent 54d54216
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionCode="1010" android:installLocation="preferExternal" package="com.seti.inutralia.inutralia" android:versionName="1.2">
<uses-sdk android:minSdkVersion="21" android:targetSdkVersion="28" />
<uses-sdk android:minSdkVersion="21" />
<application android:icon="@drawable/icon" android:largeHeap="@bool/largeheap" android:label="iNutralia" />
<uses-permission android:name="android.permission.INTERNET" />
</manifest>
\ No newline at end of file
......@@ -10,6 +10,10 @@
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-12.0.0.0" newVersion="12.0.0.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Net.Http.Primitives" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.2.29.0" newVersion="4.2.29.0" />
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>
\ No newline at end of file
......@@ -33,6 +33,10 @@
<WarningLevel>4</WarningLevel>
<ConsolePause>false</ConsolePause>
<AndroidLinkMode>None</AndroidLinkMode>
<AotAssemblies>false</AotAssemblies>
<EnableLLVM>false</EnableLLVM>
<BundleAssemblies>false</BundleAssemblies>
<AndroidSupportedAbis />
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>full</DebugType>
......@@ -101,6 +105,12 @@
<Reference Include="System" />
<Reference Include="System.IO.Compression" />
<Reference Include="System.Net.Http" />
<Reference Include="System.Net.Http.Extensions, Version=2.2.29.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
<HintPath>..\packages\Microsoft.Net.Http.2.2.29\lib\monoandroid\System.Net.Http.Extensions.dll</HintPath>
</Reference>
<Reference Include="System.Net.Http.Primitives, Version=4.2.29.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
<HintPath>..\packages\Microsoft.Net.Http.2.2.29\lib\monoandroid\System.Net.Http.Primitives.dll</HintPath>
</Reference>
<Reference Include="System.Xml" />
<Reference Include="System.Core" />
<Reference Include="Mono.Android" />
......
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="Com.Airbnb.Android.Lottie" version="2.7.0" targetFramework="monoandroid90" />
<package id="Microsoft.Bcl" version="1.1.10" targetFramework="monoandroid90" />
<package id="Microsoft.Bcl.Build" version="1.0.21" targetFramework="monoandroid90" />
<package id="Microsoft.CSharp" version="4.5.0" targetFramework="monoandroid90" />
<package id="Microsoft.Net.Http" version="2.2.29" targetFramework="monoandroid90" />
<package id="Microsoft.NETCore.Platforms" version="2.2.0" targetFramework="monoandroid90" />
<package id="Microsoft.Win32.Primitives" version="4.3.0" targetFramework="monoandroid90" />
<package id="NETStandard.Library" version="2.0.3" targetFramework="monoandroid90" />
......
{
"images": [
{
"idiom": "universal"
},
{
"scale": "1x",
"idiom": "universal"
},
{
"scale": "2x",
"idiom": "universal"
},
{
"scale": "3x",
"idiom": "universal"
},
{
"idiom": "iphone"
},
{
"scale": "1x",
"idiom": "iphone"
},
{
"orientation": "portrait",
"extent": "full-screen",
"minimum-system-version": "7.0",
"scale": "2x",
"size": "0x0",
"idiom": "iphone"
},
{
"orientation": "portrait",
"extent": "full-screen",
"minimum-system-version": "7.0",
"subtype": "retina4",
"scale": "2x",
"size": "0x0",
"idiom": "iphone"
},
{
"scale": "3x",
"idiom": "iphone"
"orientation": "portrait",
"extent": "full-screen",
"minimum-system-version": "7.0",
"scale": "1x",
"size": "0x0",
"idiom": "ipad"
},
{
"orientation": "landscape",
"extent": "full-screen",
"minimum-system-version": "7.0",
"scale": "1x",
"size": "0x0",
"idiom": "ipad"
},
{
"scale": "1x",
"orientation": "portrait",
"extent": "full-screen",
"minimum-system-version": "7.0",
"scale": "2x",
"size": "0x0",
"idiom": "ipad"
},
{
"orientation": "landscape",
"extent": "full-screen",
"minimum-system-version": "7.0",
"scale": "2x",
"size": "0x0",
"idiom": "ipad"
}
],
"properties": {},
"info": {
"version": 1,
"author": "xcode"
"author": ""
}
}
\ No newline at end of file
......@@ -24,6 +24,8 @@
<key>UISupportedInterfaceOrientations</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
<key>UISupportedInterfaceOrientations~ipad</key>
<array>
......@@ -124,5 +126,7 @@
<string>iNutralia</string>
<key>UIStatusBarHidden</key>
<true/>
<key>XSLaunchImageAssets</key>
<string>Images.xcassets/LaunchImages.launchimage</string>
</dict>
</plist>
{
"images": [
{
"filename": "Icon-Small-40.png",
"size": "20x20",
"scale": "2x",
"idiom": "iphone"
"size": "20x20",
"idiom": "iphone",
"filename": "Icon-Small-40.png"
},
{
"filename": "Icon-60.png",
"size": "20x20",
"scale": "3x",
"idiom": "iphone"
"size": "20x20",
"idiom": "iphone",
"filename": "Icon-60.png"
},
{
"filename": "Icon-Small@2x.png",
"size": "29x29",
"scale": "2x",
"idiom": "iphone"
"size": "29x29",
"idiom": "iphone",
"filename": "Icon-Small@2x.png"
},
{
"filename": "Icon-Small@3x.png",
"size": "29x29",
"scale": "3x",
"idiom": "iphone"
"size": "29x29",
"idiom": "iphone",
"filename": "Icon-Small@3x.png"
},
{
"filename": "Icon-Small-40@2x.png",
"size": "40x40",
"scale": "2x",
"idiom": "iphone"
"size": "40x40",
"idiom": "iphone",
"filename": "Icon-Small-40@2x.png"
},
{
"filename": "Icon-Small-40@3x.png",
"size": "40x40",
"scale": "3x",
"idiom": "iphone"
"size": "40x40",
"idiom": "iphone",
"filename": "Icon-Small-40@3x.png"
},
{
"filename": "Icon-60@2x.png",
"size": "60x60",
"scale": "2x",
"idiom": "iphone"
"size": "60x60",
"idiom": "iphone",
"filename": "Icon-60@2x.png"
},
{
"filename": "Icon-60@3x.png",
"size": "60x60",
"scale": "3x",
"idiom": "iphone"
"size": "60x60",
"idiom": "iphone",
"filename": "Icon-60@3x.png"
},
{
"size": "20x20",
"scale": "1x",
"size": "20x20",
"idiom": "ipad"
},
{
"filename": "Icon-Small-40.png",
"size": "20x20",
"scale": "2x",
"idiom": "ipad"
"size": "20x20",
"idiom": "ipad",
"filename": "Icon-Small-40.png"
},
{
"filename": "Icon-Small.png",
"size": "29x29",
"scale": "1x",
"idiom": "ipad"
"size": "29x29",
"idiom": "ipad",
"filename": "Icon-Small.png"
},
{
"filename": "Icon-Small@2x.png",
"size": "29x29",
"scale": "2x",
"idiom": "ipad"
"size": "29x29",
"idiom": "ipad",
"filename": "Icon-Small@2x.png"
},
{
"filename": "Icon-Small-40.png",
"size": "40x40",
"scale": "1x",
"idiom": "ipad"
"size": "40x40",
"idiom": "ipad",
"filename": "Icon-Small-40.png"
},
{
"filename": "Icon-Small-40@2x.png",
"size": "40x40",
"scale": "2x",
"idiom": "ipad"
"size": "40x40",
"idiom": "ipad",
"filename": "Icon-Small-40@2x.png"
},
{
"filename": "icon-167.png",
"size": "83.5x83.5",
"scale": "2x",
"idiom": "ipad"
"size": "83.5x83.5",
"idiom": "ipad",
"filename": "icon-167.png"
},
{
"filename": "Icon-76.png",
"size": "76x76",
"scale": "1x",
"idiom": "ipad"
"size": "76x76",
"idiom": "ipad",
"filename": "Icon-76.png"
},
{
"filename": "Icon-76@2x.png",
"size": "76x76",
"scale": "2x",
"idiom": "ipad"
"size": "76x76",
"idiom": "ipad",
"filename": "Icon-76@2x.png"
},
{
"filename": "iTunesArtwork@2x.png",
"size": "1024x1024",
"scale": "1x",
"idiom": "ios-marketing"
"size": "1024x1024",
"idiom": "ios-marketing",
"filename": "iTunesArtwork@2x.png"
},
{
"role": "notificationCenter",
"filename": "Icon-48.png",
"size": "24x24",
"subtype": "38mm",
"scale": "2x",
"idiom": "watch"
"size": "24x24",
"idiom": "watch",
"filename": "Icon-48.png"
},
{
"role": "notificationCenter",
"filename": "Icon-55.png",
"size": "27.5x27.5",
"subtype": "42mm",
"scale": "2x",
"idiom": "watch"
"size": "27.5x27.5",
"idiom": "watch",
"filename": "Icon-55.png"
},
{
"role": "companionSettings",
"filename": "Icon-58.png",
"size": "29x29",
"scale": "2x",
"idiom": "watch"
"size": "29x29",
"idiom": "watch",
"filename": "Icon-58.png"
},
{
"role": "companionSettings",
"filename": "Icon-87.png",
"size": "29x29",
"scale": "3x",
"idiom": "watch"
"size": "29x29",
"idiom": "watch",
"filename": "Icon-87.png"
},
{
"role": "appLauncher",
"filename": "Icon-80.png",
"size": "40x40",
"subtype": "38mm",
"scale": "2x",
"idiom": "watch"
"size": "40x40",
"idiom": "watch",
"filename": "Icon-80.png"
},
{
"role": "longLook",
"size": "44x44",
"subtype": "42mm",
"scale": "2x",
"size": "44x44",
"idiom": "watch"
},
{
"role": "quickLook",
"filename": "Icon-172.png",
"size": "86x86",
"subtype": "38mm",
"scale": "2x",
"idiom": "watch"
"size": "86x86",
"idiom": "watch",
"filename": "Icon-172.png"
},
{
"role": "quickLook",
"filename": "Icon-196.png",
"size": "98x98",
"subtype": "42mm",
"scale": "2x",
"idiom": "watch"
"size": "98x98",
"idiom": "watch",
"filename": "Icon-196.png"
},
{
"filename": "Icon-16.png",
"size": "16x16",
"scale": "1x",
"idiom": "mac"
"size": "16x16",
"idiom": "mac",
"filename": "Icon-16.png"
},
{
"filename": "Icon-32.png",
"size": "16x16",
"scale": "2x",
"idiom": "mac"
"size": "16x16",
"idiom": "mac",
"filename": "Icon-32.png"
},
{
"filename": "Icon-32.png",
"size": "32x32",
"scale": "1x",
"idiom": "mac"
"size": "32x32",
"idiom": "mac",
"filename": "Icon-32.png"
},
{
"filename": "Icon-64.png",
"size": "32x32",
"scale": "2x",
"idiom": "mac"
"size": "32x32",
"idiom": "mac",
"filename": "Icon-64.png"
},
{
"filename": "Icon-128.png",
"size": "128x128",
"scale": "1x",
"idiom": "mac"
"size": "128x128",
"idiom": "mac",
"filename": "Icon-128.png"
},
{
"filename": "Icon-256.png",
"size": "128x128",
"scale": "2x",
"idiom": "mac"
"size": "128x128",
"idiom": "mac",
"filename": "Icon-256.png"
},
{
"filename": "Icon-256.png",
"size": "256x256",
"scale": "1x",
"idiom": "mac"
"size": "256x256",
"idiom": "mac",
"filename": "Icon-256.png"
},
{
"filename": "Icon-512.png",
"size": "256x256",
"scale": "2x",
"idiom": "mac"
"size": "256x256",
"idiom": "mac",
"filename": "Icon-512.png"
},
{
"filename": "iTunesArtwork.png",
"size": "512x512",
"scale": "1x",
"idiom": "mac"
"size": "512x512",
"idiom": "mac",
"filename": "iTunesArtwork.png"
},
{
"filename": "iTunesArtwork@2x.png",
"scale": "2x",
"size": "512x512",
"idiom": "mac",
"filename": "iTunesArtwork@2x.png"
},
{
"role": "appLauncher",
"subtype": "40mm",
"scale": "2x",
"size": "44x44",
"idiom": "watch"
},
{
"role": "appLauncher",
"subtype": "44mm",
"scale": "2x",
"idiom": "mac"
"size": "50x50",
"idiom": "watch"
},
{
"role": "quickLook",
"subtype": "44mm",
"scale": "2x",
"size": "108x108",
"idiom": "watch"
},
{
"scale": "1x",
"size": "1024x1024",
"idiom": "watch-marketing"
}
],
"properties": {},
"info": {
"version": 1,
"author": "xcode"
......
......@@ -10,6 +10,10 @@
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-12.0.0.0" newVersion="12.0.0.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Net.Http.Primitives" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.2.29.0" newVersion="4.2.29.0" />
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>
\ No newline at end of file
......@@ -49,6 +49,7 @@
<CodesignExtraArgs />
<CodesignResourceRules />
<CodesignEntitlements />
<OptimizePNGs>true</OptimizePNGs>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|iPhone' ">
<DebugType>full</DebugType>
......@@ -116,6 +117,16 @@
<MtouchLink>None</MtouchLink>
<MtouchDebug>true</MtouchDebug>
</PropertyGroup>
<PropertyGroup>
<AutoGenerateBindingRedirects>false</AutoGenerateBindingRedirects>
</PropertyGroup>
<PropertyGroup>
<StartupObject>
</StartupObject>
</PropertyGroup>
<PropertyGroup Condition=" '$(RunConfiguration)' == 'Default' ">
<AppExtensionDebugBundleId />
</PropertyGroup>
<ItemGroup>
<Reference Include="FFImageLoading, Version=2.4.2.832, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\Xamarin.FFImageLoading.2.4.2.832\lib\Xamarin.iOS10\FFImageLoading.dll</HintPath>
......@@ -160,6 +171,12 @@
<Reference Include="System" />
<Reference Include="System.IO.Compression" />
<Reference Include="System.Net.Http" />
<Reference Include="System.Net.Http.Extensions, Version=2.2.29.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
<HintPath>..\packages\Microsoft.Net.Http.2.2.29\lib\Xamarin.iOS10\System.Net.Http.Extensions.dll</HintPath>
</Reference>
<Reference Include="System.Net.Http.Primitives, Version=4.2.29.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
<HintPath>..\packages\Microsoft.Net.Http.2.2.29\lib\Xamarin.iOS10\System.Net.Http.Primitives.dll</HintPath>
</Reference>
<Reference Include="System.Xml" />
<Reference Include="System.Core" />
<Reference Include="UXDivers.Artina.Shared, Version=2.0.35.0, Culture=neutral, processorArchitecture=MSIL">
......@@ -199,6 +216,9 @@
<Reference Include="System.Xml.Linq" />
</ItemGroup>
<ItemGroup>
<ImageAsset Include="Images.xcassets\LaunchImages.launchimage\Contents.json">
<Visible>false</Visible>
</ImageAsset>
<ImageAsset Include="Resources\Images.xcassets\AppIcons.appiconset\Contents.json">
<Visible>false</Visible>
</ImageAsset>
......@@ -306,6 +326,8 @@
<None Include="app.config" />
<None Include="Info.plist" />
<None Include="Entitlements.plist" />
<ITunesArtwork Include="iTunesArtwork%402x" />
<ITunesArtwork Include="iTunesArtwork" />
<None Include="packages.config" />
</ItemGroup>
<ItemGroup>
......
......@@ -2,8 +2,10 @@
<packages>
<package id="Com.Airbnb.iOS.Lottie" version="2.5.6" targetFramework="xamarinios10" />
<package id="Com.Airbnb.Xamarin.Forms.Lottie" version="2.7.0" targetFramework="xamarinios10" />
<package id="Microsoft.Bcl" version="1.1.10" targetFramework="xamarinios10" />
<package id="Microsoft.Bcl.Build" version="1.0.21" targetFramework="xamarinios10" />
<package id="Microsoft.CSharp" version="4.5.0" targetFramework="xamarinios10" />
<package id="Microsoft.Net.Http" version="2.2.29" targetFramework="xamarinios10" />
<package id="Microsoft.NETCore.Platforms" version="2.2.0" targetFramework="xamarinios10" />
<package id="Microsoft.Win32.Primitives" version="4.3.0" targetFramework="xamarinios10" />
<package id="NETStandard.Library" version="2.0.3" targetFramework="xamarinios10" />
......
namespace inutralia.API
{
using Xamarin.Forms;
class Constants
{
public static readonly string ApiUrlTemplate =
Device.OnPlatform("http://i20.inutralia.com/api/v1/{0}?api-key=7745289b-f09c-4e0b-89d1-bb59c599c85e",
"http://i20.inutralia.com/api/v1/{0}?api-key=7745289b-f09c-4e0b-89d1-bb59c599c85e",
"http://i20.inutralia.com/api/v1/{0}?api-key=7745289b-f09c-4e0b-89d1-bb59c599c85e");
public static readonly string ApiUrlTemplate = "http://i20.inutralia.com/api/v1/{0}?api-key=7745289b-f09c-4e0b-89d1-bb59c599c85e";
// Url redirect a DEL SUPER
public const string ApiUrl = "https://delsuper.es/inutralia?ids=";
}
}
......@@ -106,7 +106,7 @@ namespace inutralia.API
{
JsonConvert.PopulateObject(responseContent, item, _serializerSettings);
}
catch (Exception e)
catch (Exception)
{
return false;
}
......
......@@ -131,7 +131,7 @@
Recipes = new ObservableRangeCollection<Recipe>(recipes);
} //endif
}
catch (System.Exception e)
catch (System.Exception)
{
Recipes.Clear();
}
......
......@@ -46,7 +46,7 @@
groupList.Add(new RecipeOptionGroupViewModel(group));
Groups = groupList;
}
catch (System.Exception e)
catch (System.Exception)
{
Groups.Clear();
}
......
......@@ -45,7 +45,7 @@
{
questions = await App.API.RefreshListAsync<TrivialQuestion>();
}
catch (Exception e) { }
catch (Exception) { }
if (questions == null) questions = new List<TrivialQuestion>()
{
......@@ -122,7 +122,7 @@
{
Games = new ObservableRangeCollection<TrivialGame>(await App.LocalData.RefreshListAsync<TrivialGame>());
}
catch (System.Exception e)
catch (System.Exception)
{
Games.Clear();
}
......
......@@ -51,7 +51,7 @@
}
}
catch (Exception err)
catch (Exception)
{
await DisplayAlert("Error", "El usuario o la contraseña no son correctos", "Entendido");
}
......
......@@ -22,7 +22,7 @@
base.OnAppearing();
}
catch (Exception e) { }
catch (Exception) { }
}
async void OnSaveButtonClicked(object sender, EventArgs e)
......@@ -36,7 +36,7 @@
(App.Current.MainPage as RootPage).Navigate<HomeView>();
}
catch (Exception err)
catch (Exception)
{
await DisplayAlert("Error", "Se ha producido un error. Por favbor, intentelo más tarde", "Entendido");
}
......
......@@ -22,8 +22,6 @@
var target = vm.ListMessages[vm.ListMessages.Count - 1];
MessagesListView.ScrollTo(target, ScrollToPosition.End, true);
};
}
protected void ItemTapped(object sender, ItemTappedEventArgs e)
......
......@@ -16,7 +16,7 @@
InitializeComponent();
}
catch (Exception e) { }
catch (Exception) { }
}
protected override async void OnAppearing()
{
......
......@@ -14,7 +14,7 @@
/// <summary>
/// Llamado cuando esta vista se muestra
/// </summary>
protected override async void OnAppearing()
protected override void OnAppearing()
{
base.OnAppearing();
}
......
......@@ -4,7 +4,7 @@
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="System.Net.Http" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-1.5.0.0" newVersion="1.5.0.0" />
<bindingRedirect oldVersion="0.0.0.0" newVersion="1.5.0.0" />
</dependentAssembly>
</assemblyBinding>
</runtime>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment