Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Me and the boys #5

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Binary file added NoPoverty.Android_com.companyname.nopoverty.apk
Binary file not shown.
Binary file not shown.
Binary file added NoPoverty/.vs/NoPoverty/v16/.suo
Binary file not shown.
Empty file.
Binary file not shown.
83 changes: 83 additions & 0 deletions NoPoverty/NoPoverty.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16
VisualStudioVersion = 16.0.29709.97
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NoPoverty.Android", "NoPoverty\NoPoverty.Android\NoPoverty.Android.csproj", "{03DC0178-9D8A-47B3-A481-44FC3E0F55FA}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NoPoverty.iOS", "NoPoverty\NoPoverty.iOS\NoPoverty.iOS.csproj", "{A996ED72-A7D6-4C4A-A41C-8C4FB4594EE6}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "NoPoverty", "NoPoverty\NoPoverty\NoPoverty.csproj", "{C2A66A35-107E-4035-AF39-B4A22AB3569C}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Debug|iPhone = Debug|iPhone
Debug|iPhoneSimulator = Debug|iPhoneSimulator
Release|Any CPU = Release|Any CPU
Release|iPhone = Release|iPhone
Release|iPhoneSimulator = Release|iPhoneSimulator
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{03DC0178-9D8A-47B3-A481-44FC3E0F55FA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{03DC0178-9D8A-47B3-A481-44FC3E0F55FA}.Debug|Any CPU.Build.0 = Debug|Any CPU
{03DC0178-9D8A-47B3-A481-44FC3E0F55FA}.Debug|Any CPU.Deploy.0 = Debug|Any CPU
{03DC0178-9D8A-47B3-A481-44FC3E0F55FA}.Debug|iPhone.ActiveCfg = Debug|Any CPU
{03DC0178-9D8A-47B3-A481-44FC3E0F55FA}.Debug|iPhone.Build.0 = Debug|Any CPU
{03DC0178-9D8A-47B3-A481-44FC3E0F55FA}.Debug|iPhone.Deploy.0 = Debug|Any CPU
{03DC0178-9D8A-47B3-A481-44FC3E0F55FA}.Debug|iPhoneSimulator.ActiveCfg = Debug|Any CPU
{03DC0178-9D8A-47B3-A481-44FC3E0F55FA}.Debug|iPhoneSimulator.Build.0 = Debug|Any CPU
{03DC0178-9D8A-47B3-A481-44FC3E0F55FA}.Debug|iPhoneSimulator.Deploy.0 = Debug|Any CPU
{03DC0178-9D8A-47B3-A481-44FC3E0F55FA}.Release|Any CPU.ActiveCfg = Release|Any CPU
{03DC0178-9D8A-47B3-A481-44FC3E0F55FA}.Release|Any CPU.Build.0 = Release|Any CPU
{03DC0178-9D8A-47B3-A481-44FC3E0F55FA}.Release|Any CPU.Deploy.0 = Release|Any CPU
{03DC0178-9D8A-47B3-A481-44FC3E0F55FA}.Release|iPhone.ActiveCfg = Release|Any CPU
{03DC0178-9D8A-47B3-A481-44FC3E0F55FA}.Release|iPhone.Build.0 = Release|Any CPU
{03DC0178-9D8A-47B3-A481-44FC3E0F55FA}.Release|iPhone.Deploy.0 = Release|Any CPU
{03DC0178-9D8A-47B3-A481-44FC3E0F55FA}.Release|iPhoneSimulator.ActiveCfg = Release|Any CPU
{03DC0178-9D8A-47B3-A481-44FC3E0F55FA}.Release|iPhoneSimulator.Build.0 = Release|Any CPU
{03DC0178-9D8A-47B3-A481-44FC3E0F55FA}.Release|iPhoneSimulator.Deploy.0 = Release|Any CPU
{A996ED72-A7D6-4C4A-A41C-8C4FB4594EE6}.Debug|Any CPU.ActiveCfg = Debug|iPhoneSimulator
{A996ED72-A7D6-4C4A-A41C-8C4FB4594EE6}.Debug|Any CPU.Build.0 = Debug|iPhoneSimulator
{A996ED72-A7D6-4C4A-A41C-8C4FB4594EE6}.Debug|Any CPU.Deploy.0 = Debug|iPhoneSimulator
{A996ED72-A7D6-4C4A-A41C-8C4FB4594EE6}.Debug|iPhone.ActiveCfg = Debug|iPhone
{A996ED72-A7D6-4C4A-A41C-8C4FB4594EE6}.Debug|iPhone.Build.0 = Debug|iPhone
{A996ED72-A7D6-4C4A-A41C-8C4FB4594EE6}.Debug|iPhone.Deploy.0 = Debug|iPhone
{A996ED72-A7D6-4C4A-A41C-8C4FB4594EE6}.Debug|iPhoneSimulator.ActiveCfg = Debug|iPhoneSimulator
{A996ED72-A7D6-4C4A-A41C-8C4FB4594EE6}.Debug|iPhoneSimulator.Build.0 = Debug|iPhoneSimulator
{A996ED72-A7D6-4C4A-A41C-8C4FB4594EE6}.Debug|iPhoneSimulator.Deploy.0 = Debug|iPhoneSimulator
{A996ED72-A7D6-4C4A-A41C-8C4FB4594EE6}.Release|Any CPU.ActiveCfg = Release|iPhone
{A996ED72-A7D6-4C4A-A41C-8C4FB4594EE6}.Release|Any CPU.Build.0 = Release|iPhone
{A996ED72-A7D6-4C4A-A41C-8C4FB4594EE6}.Release|Any CPU.Deploy.0 = Release|iPhone
{A996ED72-A7D6-4C4A-A41C-8C4FB4594EE6}.Release|iPhone.ActiveCfg = Release|iPhone
{A996ED72-A7D6-4C4A-A41C-8C4FB4594EE6}.Release|iPhone.Build.0 = Release|iPhone
{A996ED72-A7D6-4C4A-A41C-8C4FB4594EE6}.Release|iPhone.Deploy.0 = Release|iPhone
{A996ED72-A7D6-4C4A-A41C-8C4FB4594EE6}.Release|iPhoneSimulator.ActiveCfg = Release|iPhoneSimulator
{A996ED72-A7D6-4C4A-A41C-8C4FB4594EE6}.Release|iPhoneSimulator.Build.0 = Release|iPhoneSimulator
{A996ED72-A7D6-4C4A-A41C-8C4FB4594EE6}.Release|iPhoneSimulator.Deploy.0 = Release|iPhoneSimulator
{C2A66A35-107E-4035-AF39-B4A22AB3569C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{C2A66A35-107E-4035-AF39-B4A22AB3569C}.Debug|Any CPU.Build.0 = Debug|Any CPU
{C2A66A35-107E-4035-AF39-B4A22AB3569C}.Debug|Any CPU.Deploy.0 = Debug|Any CPU
{C2A66A35-107E-4035-AF39-B4A22AB3569C}.Debug|iPhone.ActiveCfg = Debug|Any CPU
{C2A66A35-107E-4035-AF39-B4A22AB3569C}.Debug|iPhone.Build.0 = Debug|Any CPU
{C2A66A35-107E-4035-AF39-B4A22AB3569C}.Debug|iPhone.Deploy.0 = Debug|Any CPU
{C2A66A35-107E-4035-AF39-B4A22AB3569C}.Debug|iPhoneSimulator.ActiveCfg = Debug|Any CPU
{C2A66A35-107E-4035-AF39-B4A22AB3569C}.Debug|iPhoneSimulator.Build.0 = Debug|Any CPU
{C2A66A35-107E-4035-AF39-B4A22AB3569C}.Debug|iPhoneSimulator.Deploy.0 = Debug|Any CPU
{C2A66A35-107E-4035-AF39-B4A22AB3569C}.Release|Any CPU.ActiveCfg = Release|Any CPU
{C2A66A35-107E-4035-AF39-B4A22AB3569C}.Release|Any CPU.Build.0 = Release|Any CPU
{C2A66A35-107E-4035-AF39-B4A22AB3569C}.Release|Any CPU.Deploy.0 = Release|Any CPU
{C2A66A35-107E-4035-AF39-B4A22AB3569C}.Release|iPhone.ActiveCfg = Release|Any CPU
{C2A66A35-107E-4035-AF39-B4A22AB3569C}.Release|iPhone.Build.0 = Release|Any CPU
{C2A66A35-107E-4035-AF39-B4A22AB3569C}.Release|iPhone.Deploy.0 = Release|Any CPU
{C2A66A35-107E-4035-AF39-B4A22AB3569C}.Release|iPhoneSimulator.ActiveCfg = Release|Any CPU
{C2A66A35-107E-4035-AF39-B4A22AB3569C}.Release|iPhoneSimulator.Build.0 = Release|Any CPU
{C2A66A35-107E-4035-AF39-B4A22AB3569C}.Release|iPhoneSimulator.Deploy.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {B93CFADF-EA9C-459F-AE83-CE417F5B0B1E}
EndGlobalSection
EndGlobal
19 changes: 19 additions & 0 deletions NoPoverty/NoPoverty/NoPoverty.Android/Assets/AboutAssets.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
Any raw assets you want to be deployed with your application can be placed in
this directory (and child directories) and given a Build Action of "AndroidAsset".

These files will be deployed with your package and will be accessible using Android's
AssetManager, like this:

public class ReadAsset : Activity
{
protected override void OnCreate (Bundle bundle)
{
base.OnCreate (bundle);

InputStream input = Assets.Open ("my_asset.txt");
}
}

Additionally, some Android functions will automatically load asset files:

Typeface tf = Typeface.CreateFromAsset (Context.Assets, "fonts/samplefont.ttf");
35 changes: 35 additions & 0 deletions NoPoverty/NoPoverty/NoPoverty.Android/MainActivity.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
using System;

using Android.App;
using Android.Content.PM;
using Android.Runtime;
using Android.Views;
using Android.Widget;
using Android.OS;
using ImageCircle.Forms.Plugin.Droid;

namespace NoPoverty.Droid
{
[Activity(Label = "NoPoverty", Icon = "@mipmap/icon", Theme = "@style/MainTheme", MainLauncher = true, ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation)]
public class MainActivity : global::Xamarin.Forms.Platform.Android.FormsAppCompatActivity
{
protected override void OnCreate(Bundle savedInstanceState)
{
TabLayoutResource = Resource.Layout.Tabbar;
ToolbarResource = Resource.Layout.Toolbar;

base.OnCreate(savedInstanceState);

Xamarin.Essentials.Platform.Init(this, savedInstanceState);
global::Xamarin.Forms.Forms.Init(this, savedInstanceState);
ImageCircleRenderer.Init();
LoadApplication(new App());
}
public override void OnRequestPermissionsResult(int requestCode, string[] permissions, [GeneratedEnum] Android.Content.PM.Permission[] grantResults)
{
Xamarin.Essentials.Platform.OnRequestPermissionsResult(requestCode, permissions, grantResults);

base.OnRequestPermissionsResult(requestCode, permissions, grantResults);
}
}
}
183 changes: 183 additions & 0 deletions NoPoverty/NoPoverty/NoPoverty.Android/NoPoverty.Android.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,183 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{03DC0178-9D8A-47B3-A481-44FC3E0F55FA}</ProjectGuid>
<ProjectTypeGuids>{EFBA0AD7-5A72-4C68-AF49-83D382785DCF};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
<TemplateGuid>{9AA2D3C6-3393-45F1-8E7C-5A9901728795}</TemplateGuid>
<OutputType>Library</OutputType>
<RootNamespace>NoPoverty.Droid</RootNamespace>
<AssemblyName>NoPoverty.Android</AssemblyName>
<AndroidApplication>True</AndroidApplication>
<AndroidResgenFile>Resources\Resource.designer.cs</AndroidResgenFile>
<AndroidResgenClass>Resource</AndroidResgenClass>
<AndroidManifest>Properties\AndroidManifest.xml</AndroidManifest>
<MonoAndroidResourcePrefix>Resources</MonoAndroidResourcePrefix>
<MonoAndroidAssetsPrefix>Assets</MonoAndroidAssetsPrefix>
<AndroidUseLatestPlatformSdk>false</AndroidUseLatestPlatformSdk>
<TargetFrameworkVersion>v9.0</TargetFrameworkVersion>
<AndroidEnableSGenConcurrent>true</AndroidEnableSGenConcurrent>
<AndroidUseAapt2>true</AndroidUseAapt2>
<AndroidHttpClientHandlerType>Xamarin.Android.Net.AndroidClientHandler</AndroidHttpClientHandlerType>
<NuGetPackageImportStamp>
</NuGetPackageImportStamp>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>portable</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug</OutputPath>
<DefineConstants>DEBUG;</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<AndroidLinkMode>None</AndroidLinkMode>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>portable</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release</OutputPath>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<AndroidManagedSymbols>true</AndroidManagedSymbols>
<AndroidUseSharedRuntime>false</AndroidUseSharedRuntime>
</PropertyGroup>
<ItemGroup>
<Reference Include="Mono.Android" />
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Numerics" />
<Reference Include="System.Numerics.Vectors" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="FirebaseStorage.net">
<Version>1.0.3</Version>
</PackageReference>
<PackageReference Include="Xam.Plugin.Media">
<Version>4.0.1.5</Version>
</PackageReference>
<PackageReference Include="Xam.Plugins.DownloadManager">
<Version>1.4.0</Version>
</PackageReference>
<PackageReference Include="Xam.Plugins.Forms.ImageCircle">
<Version>3.0.0.5</Version>
</PackageReference>
<PackageReference Include="Xam.Plugins.Messaging">
<Version>5.2.0</Version>
</PackageReference>
<PackageReference Include="Xamarin.Forms" Version="4.3.0.908675" />
<PackageReference Include="Xamarin.Essentials" Version="1.3.1" />
<PackageReference Include="Xamarin.GooglePlayServices.Basement">
<Version>71.1620.0</Version>
</PackageReference>
<PackageReference Include="Xamarin.Plugin.Calendar">
<Version>1.1.925</Version>
</PackageReference>
</ItemGroup>
<ItemGroup>
<Compile Include="MainActivity.cs" />
<Compile Include="Resources\Resource.designer.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<GoogleServicesJson Include="google-services.json" />
<None Include="Resources\AboutResources.txt" />
<None Include="Assets\AboutAssets.txt" />
<None Include="Properties\AndroidManifest.xml" />
</ItemGroup>
<ItemGroup>
<AndroidResource Include="Resources\layout\Tabbar.xml" />
<AndroidResource Include="Resources\layout\Toolbar.xml" />
<AndroidResource Include="Resources\values\styles.xml" />
<AndroidResource Include="Resources\values\colors.xml" />
<AndroidResource Include="Resources\mipmap-anydpi-v26\icon.xml" />
<AndroidResource Include="Resources\mipmap-anydpi-v26\icon_round.xml" />
<AndroidResource Include="Resources\mipmap-hdpi\icon.png" />
<AndroidResource Include="Resources\mipmap-hdpi\launcher_foreground.png" />
<AndroidResource Include="Resources\mipmap-mdpi\icon.png" />
<AndroidResource Include="Resources\mipmap-mdpi\launcher_foreground.png" />
<AndroidResource Include="Resources\mipmap-xhdpi\icon.png" />
<AndroidResource Include="Resources\mipmap-xhdpi\launcher_foreground.png" />
<AndroidResource Include="Resources\mipmap-xxhdpi\icon.png" />
<AndroidResource Include="Resources\mipmap-xxhdpi\launcher_foreground.png" />
<AndroidResource Include="Resources\mipmap-xxxhdpi\icon.png" />
<AndroidResource Include="Resources\mipmap-xxxhdpi\launcher_foreground.png" />
<AndroidResource Include="Resources\drawable\xamarin_logo.png" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\NoPoverty\NoPoverty.csproj">
<Project>{7DF9D724-F794-405F-B2FF-368DEDE7E92A}</Project>
<Name>NoPoverty</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<AndroidResource Include="Resources\drawable\icon.png" />
</ItemGroup>
<ItemGroup>
<AndroidResource Include="Resources\drawable\uploadicon.png" />
</ItemGroup>
<ItemGroup>
<AndroidResource Include="Resources\drawable\CurvedMask.png" />
</ItemGroup>
<ItemGroup>
<AndroidResource Include="Resources\drawable\HeaderBackground.png" />
</ItemGroup>
<ItemGroup>
<AndroidResource Include="Resources\drawable\add.png" />
</ItemGroup>
<ItemGroup>
<AndroidResource Include="Resources\drawable\add_selected.png" />
</ItemGroup>
<ItemGroup>
<AndroidResource Include="Resources\drawable\ar_camera.png" />
</ItemGroup>
<ItemGroup>
<AndroidResource Include="Resources\drawable\book.png" />
</ItemGroup>
<ItemGroup>
<AndroidResource Include="Resources\drawable\book_selected.png" />
</ItemGroup>
<ItemGroup>
<AndroidResource Include="Resources\drawable\close.png" />
</ItemGroup>
<ItemGroup>
<AndroidResource Include="Resources\drawable\images.jpg" />
</ItemGroup>
<ItemGroup>
<AndroidResource Include="Resources\drawable\images1.jpg" />
</ItemGroup>
<ItemGroup>
<AndroidResource Include="Resources\drawable\pencil_case.png" />
</ItemGroup>
<ItemGroup>
<AndroidResource Include="Resources\drawable\stationery.png" />
</ItemGroup>
<ItemGroup>
<AndroidResource Include="Resources\drawable\stationery_selected.png" />
</ItemGroup>
<ItemGroup>
<AndroidResource Include="Resources\drawable\location.jpg" />
</ItemGroup>
<ItemGroup>
<AndroidResource Include="Resources\drawable\call.png" />
</ItemGroup>
<ItemGroup>
<AndroidResource Include="Resources\drawable\email.png" />
</ItemGroup>
<ItemGroup>
<AndroidResource Include="Resources\drawable\Sms.png" />
</ItemGroup>
<ItemGroup>
<AndroidResource Include="Resources\drawable\meal.jpg" />
</ItemGroup>
<ItemGroup>
<AndroidResource Include="Resources\drawable\meal2.jpg" />
</ItemGroup>
<ItemGroup>
<AndroidResource Include="Resources\drawable\meal3.jpg" />
</ItemGroup>
<Import Project="$(MSBuildExtensionsPath)\Xamarin\Android\Xamarin.Android.CSharp.targets" />
</Project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<SelectedDevice>Samsung SM-G955F</SelectedDevice>
</PropertyGroup>
</Project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?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.companyname.nopoverty">
<uses-sdk android:minSdkVersion="21" android:targetSdkVersion="28" />
<application android:label="NoPoverty.Android"></application>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.CALL_PHONE" />
<uses-permission android:name="android.permission.SEND_SMS" />
</manifest>
34 changes: 34 additions & 0 deletions NoPoverty/NoPoverty/NoPoverty.Android/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using Android.App;

// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("NoPoverty.Android")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("NoPoverty.Android")]
[assembly: AssemblyCopyright("Copyright © 2014")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
[assembly: ComVisible(false)]

// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]

// Add some common permissions, these can be removed if not needed
[assembly: UsesPermission(Android.Manifest.Permission.Internet)]
[assembly: UsesPermission(Android.Manifest.Permission.WriteExternalStorage)]
Loading