Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
mediaexplorer74 committed Aug 11, 2022
1 parent 3b2f3bf commit a49fd5a
Show file tree
Hide file tree
Showing 501 changed files with 40,872 additions and 28,210 deletions.
Empty file removed Design/Text.txt
Empty file.
Binary file removed Design/_/10Tab1.png
Binary file not shown.
Binary file removed Design/_/10Tab2.png
Binary file not shown.
Binary file removed Design/_/10Tab4.png
Binary file not shown.
Binary file removed Design/_/7Tab1.png
Binary file not shown.
Binary file removed Design/_/7Tab2.png
Binary file not shown.
Binary file removed Design/_/7Tab4.png
Binary file not shown.
Binary file removed Design/_/AppIcon-114x114.png
Binary file not shown.
Binary file removed Design/_/AppIcon-512x512.png
Binary file not shown.
Binary file removed Design/_/FeatureGraphic.pdn
Binary file not shown.
Binary file removed Design/_/FeatureGraphic.png
Binary file not shown.
Binary file removed Design/_/Mob1.png
Binary file not shown.
Binary file removed Design/_/Mob2.png
Binary file not shown.
Binary file removed Design/_/Mob3.png
Binary file not shown.
Binary file removed Design/_/Mob4.png
Binary file not shown.
Binary file removed Design/_/MobP1.png
Binary file not shown.
Binary file removed Design/_/MobP2.png
Binary file not shown.
Binary file removed Design/_/MobP3.png
Binary file not shown.
Binary file removed Design/tesla_logo.png
Binary file not shown.
29 changes: 0 additions & 29 deletions Docs/TeslaX.md

This file was deleted.

9 changes: 4 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# TeslaX

TeslaX is my fork of [PowerwallCompanionX](https://github.com/tomhollander/PowerwallCompanionX) project.
TeslaX is my fork of [PowerwallCompanionX](https://github.com/tomhollander/PowerwallCompanionX) project. UWP and W10M support added.

## About Powerwall Companion X

Expand All @@ -9,9 +9,10 @@ Original "Powerwall Companion X" is a Xamarin Forms - based Android app for moni
It has similar functionality to the official Tesla app, but it's designed to be
more of an "always on" dashboard, running on a spare device.


Very cool app, IMHO :)

## Screenshots
![Screenshot1](Images/shot1.png)
## My 2 cents

- Windows UWP version added;
Expand All @@ -25,9 +26,7 @@ Very cool app, IMHO :)

Current supported min. Windows OS build: 16299

14393 planned in near future, So, TeslaAPI and PanCardView libs temporary disabled!

Goal: additional app debugging and bug-fixing after solution "downshifting"
14393/15063 planned in near future. So, TeslaAPI and PanCardView libs temporary disabled at now because of my goal is additional app debugging and bug-fixing after solution "downshifting"
(decreasing min. os. builds, in 2 words).

## DIY
Expand Down
3 changes: 3 additions & 0 deletions Steps/Step01-template-ok/Readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.NET 1.4

Min. os. build: 15063
181 changes: 181 additions & 0 deletions Steps/Step01-template-ok/TeslaX.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,181 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.4.32804.182
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TeslaX.UWP", "TeslaX\TeslaX.UWP\TeslaX.UWP.csproj", "{08FB5553-C7A1-4405-99B3-F48D12A77253}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TeslaX.Android", "TeslaX\TeslaX.Android\TeslaX.Android.csproj", "{4DB892AD-A902-4C13-8AC2-70F25E0D9AD1}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TeslaX.iOS", "TeslaX\TeslaX.iOS\TeslaX.iOS.csproj", "{50147CF6-E051-4B14-9764-76549ADB922E}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TeslaX", "TeslaX\TeslaX\TeslaX.csproj", "{9AB5C5FC-E1A9-4A09-ACF9-73DB6D9C313E}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Debug|ARM = Debug|ARM
Debug|iPhone = Debug|iPhone
Debug|iPhoneSimulator = Debug|iPhoneSimulator
Debug|x64 = Debug|x64
Debug|x86 = Debug|x86
Release|Any CPU = Release|Any CPU
Release|ARM = Release|ARM
Release|iPhone = Release|iPhone
Release|iPhoneSimulator = Release|iPhoneSimulator
Release|x64 = Release|x64
Release|x86 = Release|x86
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{08FB5553-C7A1-4405-99B3-F48D12A77253}.Debug|Any CPU.ActiveCfg = Debug|x64
{08FB5553-C7A1-4405-99B3-F48D12A77253}.Debug|Any CPU.Build.0 = Debug|x64
{08FB5553-C7A1-4405-99B3-F48D12A77253}.Debug|Any CPU.Deploy.0 = Debug|x64
{08FB5553-C7A1-4405-99B3-F48D12A77253}.Debug|ARM.ActiveCfg = Debug|ARM
{08FB5553-C7A1-4405-99B3-F48D12A77253}.Debug|ARM.Build.0 = Debug|ARM
{08FB5553-C7A1-4405-99B3-F48D12A77253}.Debug|ARM.Deploy.0 = Debug|ARM
{08FB5553-C7A1-4405-99B3-F48D12A77253}.Debug|iPhone.ActiveCfg = Debug|x64
{08FB5553-C7A1-4405-99B3-F48D12A77253}.Debug|iPhone.Build.0 = Debug|x64
{08FB5553-C7A1-4405-99B3-F48D12A77253}.Debug|iPhone.Deploy.0 = Debug|x64
{08FB5553-C7A1-4405-99B3-F48D12A77253}.Debug|iPhoneSimulator.ActiveCfg = Debug|x64
{08FB5553-C7A1-4405-99B3-F48D12A77253}.Debug|iPhoneSimulator.Build.0 = Debug|x64
{08FB5553-C7A1-4405-99B3-F48D12A77253}.Debug|iPhoneSimulator.Deploy.0 = Debug|x64
{08FB5553-C7A1-4405-99B3-F48D12A77253}.Debug|x64.ActiveCfg = Debug|x64
{08FB5553-C7A1-4405-99B3-F48D12A77253}.Debug|x64.Build.0 = Debug|x64
{08FB5553-C7A1-4405-99B3-F48D12A77253}.Debug|x64.Deploy.0 = Debug|x64
{08FB5553-C7A1-4405-99B3-F48D12A77253}.Debug|x86.ActiveCfg = Debug|x86
{08FB5553-C7A1-4405-99B3-F48D12A77253}.Debug|x86.Build.0 = Debug|x86
{08FB5553-C7A1-4405-99B3-F48D12A77253}.Debug|x86.Deploy.0 = Debug|x86
{08FB5553-C7A1-4405-99B3-F48D12A77253}.Release|Any CPU.ActiveCfg = Release|x64
{08FB5553-C7A1-4405-99B3-F48D12A77253}.Release|Any CPU.Build.0 = Release|x64
{08FB5553-C7A1-4405-99B3-F48D12A77253}.Release|Any CPU.Deploy.0 = Release|x64
{08FB5553-C7A1-4405-99B3-F48D12A77253}.Release|ARM.ActiveCfg = Release|ARM
{08FB5553-C7A1-4405-99B3-F48D12A77253}.Release|ARM.Build.0 = Release|ARM
{08FB5553-C7A1-4405-99B3-F48D12A77253}.Release|ARM.Deploy.0 = Release|ARM
{08FB5553-C7A1-4405-99B3-F48D12A77253}.Release|iPhone.ActiveCfg = Release|x64
{08FB5553-C7A1-4405-99B3-F48D12A77253}.Release|iPhone.Build.0 = Release|x64
{08FB5553-C7A1-4405-99B3-F48D12A77253}.Release|iPhone.Deploy.0 = Release|x64
{08FB5553-C7A1-4405-99B3-F48D12A77253}.Release|iPhoneSimulator.ActiveCfg = Release|x64
{08FB5553-C7A1-4405-99B3-F48D12A77253}.Release|iPhoneSimulator.Build.0 = Release|x64
{08FB5553-C7A1-4405-99B3-F48D12A77253}.Release|iPhoneSimulator.Deploy.0 = Release|x64
{08FB5553-C7A1-4405-99B3-F48D12A77253}.Release|x64.ActiveCfg = Release|x64
{08FB5553-C7A1-4405-99B3-F48D12A77253}.Release|x64.Build.0 = Release|x64
{08FB5553-C7A1-4405-99B3-F48D12A77253}.Release|x64.Deploy.0 = Release|x64
{08FB5553-C7A1-4405-99B3-F48D12A77253}.Release|x86.ActiveCfg = Release|x86
{08FB5553-C7A1-4405-99B3-F48D12A77253}.Release|x86.Build.0 = Release|x86
{08FB5553-C7A1-4405-99B3-F48D12A77253}.Release|x86.Deploy.0 = Release|x86
{4DB892AD-A902-4C13-8AC2-70F25E0D9AD1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{4DB892AD-A902-4C13-8AC2-70F25E0D9AD1}.Debug|Any CPU.Build.0 = Debug|Any CPU
{4DB892AD-A902-4C13-8AC2-70F25E0D9AD1}.Debug|Any CPU.Deploy.0 = Debug|Any CPU
{4DB892AD-A902-4C13-8AC2-70F25E0D9AD1}.Debug|ARM.ActiveCfg = Debug|Any CPU
{4DB892AD-A902-4C13-8AC2-70F25E0D9AD1}.Debug|ARM.Build.0 = Debug|Any CPU
{4DB892AD-A902-4C13-8AC2-70F25E0D9AD1}.Debug|ARM.Deploy.0 = Debug|Any CPU
{4DB892AD-A902-4C13-8AC2-70F25E0D9AD1}.Debug|iPhone.ActiveCfg = Debug|Any CPU
{4DB892AD-A902-4C13-8AC2-70F25E0D9AD1}.Debug|iPhone.Build.0 = Debug|Any CPU
{4DB892AD-A902-4C13-8AC2-70F25E0D9AD1}.Debug|iPhone.Deploy.0 = Debug|Any CPU
{4DB892AD-A902-4C13-8AC2-70F25E0D9AD1}.Debug|iPhoneSimulator.ActiveCfg = Debug|Any CPU
{4DB892AD-A902-4C13-8AC2-70F25E0D9AD1}.Debug|iPhoneSimulator.Build.0 = Debug|Any CPU
{4DB892AD-A902-4C13-8AC2-70F25E0D9AD1}.Debug|iPhoneSimulator.Deploy.0 = Debug|Any CPU
{4DB892AD-A902-4C13-8AC2-70F25E0D9AD1}.Debug|x64.ActiveCfg = Debug|Any CPU
{4DB892AD-A902-4C13-8AC2-70F25E0D9AD1}.Debug|x64.Build.0 = Debug|Any CPU
{4DB892AD-A902-4C13-8AC2-70F25E0D9AD1}.Debug|x64.Deploy.0 = Debug|Any CPU
{4DB892AD-A902-4C13-8AC2-70F25E0D9AD1}.Debug|x86.ActiveCfg = Debug|Any CPU
{4DB892AD-A902-4C13-8AC2-70F25E0D9AD1}.Debug|x86.Build.0 = Debug|Any CPU
{4DB892AD-A902-4C13-8AC2-70F25E0D9AD1}.Debug|x86.Deploy.0 = Debug|Any CPU
{4DB892AD-A902-4C13-8AC2-70F25E0D9AD1}.Release|Any CPU.ActiveCfg = Release|Any CPU
{4DB892AD-A902-4C13-8AC2-70F25E0D9AD1}.Release|Any CPU.Build.0 = Release|Any CPU
{4DB892AD-A902-4C13-8AC2-70F25E0D9AD1}.Release|Any CPU.Deploy.0 = Release|Any CPU
{4DB892AD-A902-4C13-8AC2-70F25E0D9AD1}.Release|ARM.ActiveCfg = Release|Any CPU
{4DB892AD-A902-4C13-8AC2-70F25E0D9AD1}.Release|ARM.Build.0 = Release|Any CPU
{4DB892AD-A902-4C13-8AC2-70F25E0D9AD1}.Release|ARM.Deploy.0 = Release|Any CPU
{4DB892AD-A902-4C13-8AC2-70F25E0D9AD1}.Release|iPhone.ActiveCfg = Release|Any CPU
{4DB892AD-A902-4C13-8AC2-70F25E0D9AD1}.Release|iPhone.Build.0 = Release|Any CPU
{4DB892AD-A902-4C13-8AC2-70F25E0D9AD1}.Release|iPhone.Deploy.0 = Release|Any CPU
{4DB892AD-A902-4C13-8AC2-70F25E0D9AD1}.Release|iPhoneSimulator.ActiveCfg = Release|Any CPU
{4DB892AD-A902-4C13-8AC2-70F25E0D9AD1}.Release|iPhoneSimulator.Build.0 = Release|Any CPU
{4DB892AD-A902-4C13-8AC2-70F25E0D9AD1}.Release|iPhoneSimulator.Deploy.0 = Release|Any CPU
{4DB892AD-A902-4C13-8AC2-70F25E0D9AD1}.Release|x64.ActiveCfg = Release|Any CPU
{4DB892AD-A902-4C13-8AC2-70F25E0D9AD1}.Release|x64.Build.0 = Release|Any CPU
{4DB892AD-A902-4C13-8AC2-70F25E0D9AD1}.Release|x64.Deploy.0 = Release|Any CPU
{4DB892AD-A902-4C13-8AC2-70F25E0D9AD1}.Release|x86.ActiveCfg = Release|Any CPU
{4DB892AD-A902-4C13-8AC2-70F25E0D9AD1}.Release|x86.Build.0 = Release|Any CPU
{4DB892AD-A902-4C13-8AC2-70F25E0D9AD1}.Release|x86.Deploy.0 = Release|Any CPU
{50147CF6-E051-4B14-9764-76549ADB922E}.Debug|Any CPU.ActiveCfg = Debug|iPhoneSimulator
{50147CF6-E051-4B14-9764-76549ADB922E}.Debug|Any CPU.Build.0 = Debug|iPhoneSimulator
{50147CF6-E051-4B14-9764-76549ADB922E}.Debug|Any CPU.Deploy.0 = Debug|iPhoneSimulator
{50147CF6-E051-4B14-9764-76549ADB922E}.Debug|ARM.ActiveCfg = Debug|iPhoneSimulator
{50147CF6-E051-4B14-9764-76549ADB922E}.Debug|ARM.Build.0 = Debug|iPhoneSimulator
{50147CF6-E051-4B14-9764-76549ADB922E}.Debug|ARM.Deploy.0 = Debug|iPhoneSimulator
{50147CF6-E051-4B14-9764-76549ADB922E}.Debug|iPhone.ActiveCfg = Debug|iPhone
{50147CF6-E051-4B14-9764-76549ADB922E}.Debug|iPhone.Build.0 = Debug|iPhone
{50147CF6-E051-4B14-9764-76549ADB922E}.Debug|iPhone.Deploy.0 = Debug|iPhone
{50147CF6-E051-4B14-9764-76549ADB922E}.Debug|iPhoneSimulator.ActiveCfg = Debug|iPhoneSimulator
{50147CF6-E051-4B14-9764-76549ADB922E}.Debug|iPhoneSimulator.Build.0 = Debug|iPhoneSimulator
{50147CF6-E051-4B14-9764-76549ADB922E}.Debug|iPhoneSimulator.Deploy.0 = Debug|iPhoneSimulator
{50147CF6-E051-4B14-9764-76549ADB922E}.Debug|x64.ActiveCfg = Debug|iPhone
{50147CF6-E051-4B14-9764-76549ADB922E}.Debug|x64.Build.0 = Debug|iPhone
{50147CF6-E051-4B14-9764-76549ADB922E}.Debug|x64.Deploy.0 = Debug|iPhone
{50147CF6-E051-4B14-9764-76549ADB922E}.Debug|x86.ActiveCfg = Debug|iPhoneSimulator
{50147CF6-E051-4B14-9764-76549ADB922E}.Debug|x86.Build.0 = Debug|iPhoneSimulator
{50147CF6-E051-4B14-9764-76549ADB922E}.Debug|x86.Deploy.0 = Debug|iPhoneSimulator
{50147CF6-E051-4B14-9764-76549ADB922E}.Release|Any CPU.ActiveCfg = Release|iPhoneSimulator
{50147CF6-E051-4B14-9764-76549ADB922E}.Release|Any CPU.Build.0 = Release|iPhoneSimulator
{50147CF6-E051-4B14-9764-76549ADB922E}.Release|Any CPU.Deploy.0 = Release|iPhoneSimulator
{50147CF6-E051-4B14-9764-76549ADB922E}.Release|ARM.ActiveCfg = Release|iPhoneSimulator
{50147CF6-E051-4B14-9764-76549ADB922E}.Release|ARM.Build.0 = Release|iPhoneSimulator
{50147CF6-E051-4B14-9764-76549ADB922E}.Release|ARM.Deploy.0 = Release|iPhoneSimulator
{50147CF6-E051-4B14-9764-76549ADB922E}.Release|iPhone.ActiveCfg = Release|iPhone
{50147CF6-E051-4B14-9764-76549ADB922E}.Release|iPhone.Build.0 = Release|iPhone
{50147CF6-E051-4B14-9764-76549ADB922E}.Release|iPhone.Deploy.0 = Release|iPhone
{50147CF6-E051-4B14-9764-76549ADB922E}.Release|iPhoneSimulator.ActiveCfg = Release|iPhoneSimulator
{50147CF6-E051-4B14-9764-76549ADB922E}.Release|iPhoneSimulator.Build.0 = Release|iPhoneSimulator
{50147CF6-E051-4B14-9764-76549ADB922E}.Release|iPhoneSimulator.Deploy.0 = Release|iPhoneSimulator
{50147CF6-E051-4B14-9764-76549ADB922E}.Release|x64.ActiveCfg = Release|iPhoneSimulator
{50147CF6-E051-4B14-9764-76549ADB922E}.Release|x64.Build.0 = Release|iPhoneSimulator
{50147CF6-E051-4B14-9764-76549ADB922E}.Release|x64.Deploy.0 = Release|iPhoneSimulator
{50147CF6-E051-4B14-9764-76549ADB922E}.Release|x86.ActiveCfg = Release|iPhoneSimulator
{50147CF6-E051-4B14-9764-76549ADB922E}.Release|x86.Build.0 = Release|iPhoneSimulator
{50147CF6-E051-4B14-9764-76549ADB922E}.Release|x86.Deploy.0 = Release|iPhoneSimulator
{9AB5C5FC-E1A9-4A09-ACF9-73DB6D9C313E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{9AB5C5FC-E1A9-4A09-ACF9-73DB6D9C313E}.Debug|Any CPU.Build.0 = Debug|Any CPU
{9AB5C5FC-E1A9-4A09-ACF9-73DB6D9C313E}.Debug|Any CPU.Deploy.0 = Debug|Any CPU
{9AB5C5FC-E1A9-4A09-ACF9-73DB6D9C313E}.Debug|ARM.ActiveCfg = Debug|Any CPU
{9AB5C5FC-E1A9-4A09-ACF9-73DB6D9C313E}.Debug|ARM.Build.0 = Debug|Any CPU
{9AB5C5FC-E1A9-4A09-ACF9-73DB6D9C313E}.Debug|ARM.Deploy.0 = Debug|Any CPU
{9AB5C5FC-E1A9-4A09-ACF9-73DB6D9C313E}.Debug|iPhone.ActiveCfg = Debug|Any CPU
{9AB5C5FC-E1A9-4A09-ACF9-73DB6D9C313E}.Debug|iPhone.Build.0 = Debug|Any CPU
{9AB5C5FC-E1A9-4A09-ACF9-73DB6D9C313E}.Debug|iPhone.Deploy.0 = Debug|Any CPU
{9AB5C5FC-E1A9-4A09-ACF9-73DB6D9C313E}.Debug|iPhoneSimulator.ActiveCfg = Debug|Any CPU
{9AB5C5FC-E1A9-4A09-ACF9-73DB6D9C313E}.Debug|iPhoneSimulator.Build.0 = Debug|Any CPU
{9AB5C5FC-E1A9-4A09-ACF9-73DB6D9C313E}.Debug|iPhoneSimulator.Deploy.0 = Debug|Any CPU
{9AB5C5FC-E1A9-4A09-ACF9-73DB6D9C313E}.Debug|x64.ActiveCfg = Debug|Any CPU
{9AB5C5FC-E1A9-4A09-ACF9-73DB6D9C313E}.Debug|x64.Build.0 = Debug|Any CPU
{9AB5C5FC-E1A9-4A09-ACF9-73DB6D9C313E}.Debug|x64.Deploy.0 = Debug|Any CPU
{9AB5C5FC-E1A9-4A09-ACF9-73DB6D9C313E}.Debug|x86.ActiveCfg = Debug|Any CPU
{9AB5C5FC-E1A9-4A09-ACF9-73DB6D9C313E}.Debug|x86.Build.0 = Debug|Any CPU
{9AB5C5FC-E1A9-4A09-ACF9-73DB6D9C313E}.Debug|x86.Deploy.0 = Debug|Any CPU
{9AB5C5FC-E1A9-4A09-ACF9-73DB6D9C313E}.Release|Any CPU.ActiveCfg = Release|Any CPU
{9AB5C5FC-E1A9-4A09-ACF9-73DB6D9C313E}.Release|Any CPU.Build.0 = Release|Any CPU
{9AB5C5FC-E1A9-4A09-ACF9-73DB6D9C313E}.Release|Any CPU.Deploy.0 = Release|Any CPU
{9AB5C5FC-E1A9-4A09-ACF9-73DB6D9C313E}.Release|ARM.ActiveCfg = Release|Any CPU
{9AB5C5FC-E1A9-4A09-ACF9-73DB6D9C313E}.Release|ARM.Build.0 = Release|Any CPU
{9AB5C5FC-E1A9-4A09-ACF9-73DB6D9C313E}.Release|ARM.Deploy.0 = Release|Any CPU
{9AB5C5FC-E1A9-4A09-ACF9-73DB6D9C313E}.Release|iPhone.ActiveCfg = Release|Any CPU
{9AB5C5FC-E1A9-4A09-ACF9-73DB6D9C313E}.Release|iPhone.Build.0 = Release|Any CPU
{9AB5C5FC-E1A9-4A09-ACF9-73DB6D9C313E}.Release|iPhone.Deploy.0 = Release|Any CPU
{9AB5C5FC-E1A9-4A09-ACF9-73DB6D9C313E}.Release|iPhoneSimulator.ActiveCfg = Release|Any CPU
{9AB5C5FC-E1A9-4A09-ACF9-73DB6D9C313E}.Release|iPhoneSimulator.Build.0 = Release|Any CPU
{9AB5C5FC-E1A9-4A09-ACF9-73DB6D9C313E}.Release|iPhoneSimulator.Deploy.0 = Release|Any CPU
{9AB5C5FC-E1A9-4A09-ACF9-73DB6D9C313E}.Release|x64.ActiveCfg = Release|Any CPU
{9AB5C5FC-E1A9-4A09-ACF9-73DB6D9C313E}.Release|x64.Build.0 = Release|Any CPU
{9AB5C5FC-E1A9-4A09-ACF9-73DB6D9C313E}.Release|x64.Deploy.0 = Release|Any CPU
{9AB5C5FC-E1A9-4A09-ACF9-73DB6D9C313E}.Release|x86.ActiveCfg = Release|Any CPU
{9AB5C5FC-E1A9-4A09-ACF9-73DB6D9C313E}.Release|x86.Build.0 = Release|Any CPU
{9AB5C5FC-E1A9-4A09-ACF9-73DB6D9C313E}.Release|x86.Deploy.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {A3BBC102-5B5B-4244-A497-0DEE041D8D90}
EndGlobalSection
EndGlobal
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");
28 changes: 28 additions & 0 deletions Steps/Step01-template-ok/TeslaX/TeslaX.Android/MainActivity.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
using System;

using Android.App;
using Android.Content.PM;
using Android.Runtime;
using Android.OS;

namespace TeslaX.Droid
{
[Activity(Label = "TeslaX", Icon = "@mipmap/icon", Theme = "@style/MainTheme", MainLauncher = true, ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation | ConfigChanges.UiMode | ConfigChanges.ScreenLayout | ConfigChanges.SmallestScreenSize )]
public class MainActivity : global::Xamarin.Forms.Platform.Android.FormsAppCompatActivity
{
protected override void OnCreate(Bundle savedInstanceState)
{
base.OnCreate(savedInstanceState);

Xamarin.Essentials.Platform.Init(this, savedInstanceState);
global::Xamarin.Forms.Forms.Init(this, savedInstanceState);
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);
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?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.teslax">
<uses-sdk android:minSdkVersion="21" android:targetSdkVersion="31" />
<application android:label="TeslaX.Android" android:theme="@style/MainTheme"></application>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
</manifest>
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
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("TeslaX.Android")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("TeslaX.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
[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

0 comments on commit a49fd5a

Please sign in to comment.