Commit: 1131460

Initialize app

Mårten Åsberg committed on 2026-08-01 at 11:50
.gitignore +482 -0
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..0808c4a
@@ -0,0 +1,482 @@
## Ignore Visual Studio temporary files, build results, and
## files generated by popular Visual Studio add-ons.
##
## Get latest from `dotnet new gitignore`
# dotenv files
.env
# User-specific files
*.rsuser
*.suo
*.user
*.userosscache
*.sln.docstates
# User-specific files (MonoDevelop/Xamarin Studio)
*.userprefs
# Mono auto generated files
mono_crash.*
# Build results
[Dd]ebug/
[Dd]ebugPublic/
[Rr]elease/
[Rr]eleases/
x64/
x86/
[Ww][Ii][Nn]32/
[Aa][Rr][Mm]/
[Aa][Rr][Mm]64/
bld/
[Bb]in/
[Oo]bj/
[Ll]og/
[Ll]ogs/
# Visual Studio 2015/2017 cache/options directory
.vs/
# Uncomment if you have tasks that create the project's static files in wwwroot
#wwwroot/
# Visual Studio 2017 auto generated files
Generated\ Files/
# MSTest test Results
[Tt]est[Rr]esult*/
[Bb]uild[Ll]og.*
# NUnit
*.VisualState.xml
TestResult.xml
nunit-*.xml
# Build Results of an ATL Project
[Dd]ebugPS/
[Rr]eleasePS/
dlldata.c
# Benchmark Results
BenchmarkDotNet.Artifacts/
# .NET
project.lock.json
project.fragment.lock.json
artifacts/
# Tye
.tye/
# ASP.NET Scaffolding
ScaffoldingReadMe.txt
# StyleCop
StyleCopReport.xml
# Files built by Visual Studio
*_i.c
*_p.c
*_h.h
*.ilk
*.meta
*.obj
*.iobj
*.pch
*.pdb
*.ipdb
*.pgc
*.pgd
*.rsp
# but not Directory.Build.rsp, as it configures directory-level build defaults
!Directory.Build.rsp
*.sbr
*.tlb
*.tli
*.tlh
*.tmp
*.tmp_proj
*_wpftmp.csproj
*.log
*.tlog
*.vspscc
*.vssscc
.builds
*.pidb
*.svclog
*.scc
# Chutzpah Test files
_Chutzpah*
# Visual C++ cache files
ipch/
*.aps
*.ncb
*.opendb
*.opensdf
*.sdf
*.cachefile
*.VC.db
*.VC.VC.opendb
# Visual Studio profiler
*.psess
*.vsp
*.vspx
*.sap
# Visual Studio Trace Files
*.e2e
# TFS 2012 Local Workspace
$tf/
# Guidance Automation Toolkit
*.gpState
# ReSharper is a .NET coding add-in
_ReSharper*/
*.[Rr]e[Ss]harper
*.DotSettings.user
# TeamCity is a build add-in
_TeamCity*
# DotCover is a Code Coverage Tool
*.dotCover
# AxoCover is a Code Coverage Tool
.axoCover/*
!.axoCover/settings.json
# Coverlet is a free, cross platform Code Coverage Tool
coverage*.json
coverage*.xml
coverage*.info
# Visual Studio code coverage results
*.coverage
*.coveragexml
# NCrunch
_NCrunch_*
.*crunch*.local.xml
nCrunchTemp_*
# MightyMoose
*.mm.*
AutoTest.Net/
# Web workbench (sass)
.sass-cache/
# Installshield output folder
[Ee]xpress/
# DocProject is a documentation generator add-in
DocProject/buildhelp/
DocProject/Help/*.HxT
DocProject/Help/*.HxC
DocProject/Help/*.hhc
DocProject/Help/*.hhk
DocProject/Help/*.hhp
DocProject/Help/Html2
DocProject/Help/html
# Click-Once directory
publish/
# Publish Web Output
*.[Pp]ublish.xml
*.azurePubxml
# Note: Comment the next line if you want to checkin your web deploy settings,
# but database connection strings (with potential passwords) will be unencrypted
*.pubxml
*.publishproj
# Microsoft Azure Web App publish settings. Comment the next line if you want to
# checkin your Azure Web App publish settings, but sensitive information contained
# in these scripts will be unencrypted
PublishScripts/
# NuGet Packages
*.nupkg
# NuGet Symbol Packages
*.snupkg
# The packages folder can be ignored because of Package Restore
**/[Pp]ackages/*
# except build/, which is used as an MSBuild target.
!**/[Pp]ackages/build/
# Uncomment if necessary however generally it will be regenerated when needed
#!**/[Pp]ackages/repositories.config
# NuGet v3's project.json files produces more ignorable files
*.nuget.props
*.nuget.targets
# Microsoft Azure Build Output
csx/
*.build.csdef
# Microsoft Azure Emulator
ecf/
rcf/
# Windows Store app package directories and files
AppPackages/
BundleArtifacts/
Package.StoreAssociation.xml
_pkginfo.txt
*.appx
*.appxbundle
*.appxupload
# Visual Studio cache files
# files ending in .cache can be ignored
*.[Cc]ache
# but keep track of directories ending in .cache
!?*.[Cc]ache/
# Others
ClientBin/
~$*
*~
*.dbmdl
*.dbproj.schemaview
*.jfm
*.pfx
*.publishsettings
orleans.codegen.cs
# Including strong name files can present a security risk
# (https://github.com/github/gitignore/pull/2483#issue-259490424)
#*.snk
# Since there are multiple workflows, uncomment next line to ignore bower_components
# (https://github.com/github/gitignore/pull/1529#issuecomment-104372622)
#bower_components/
# RIA/Silverlight projects
Generated_Code/
# Backup & report files from converting an old project file
# to a newer Visual Studio version. Backup files are not needed,
# because we have git ;-)
_UpgradeReport_Files/
Backup*/
UpgradeLog*.XML
UpgradeLog*.htm
ServiceFabricBackup/
*.rptproj.bak
# SQL Server files
*.mdf
*.ldf
*.ndf
# Business Intelligence projects
*.rdl.data
*.bim.layout
*.bim_*.settings
*.rptproj.rsuser
*- [Bb]ackup.rdl
*- [Bb]ackup ([0-9]).rdl
*- [Bb]ackup ([0-9][0-9]).rdl
# Microsoft Fakes
FakesAssemblies/
# GhostDoc plugin setting file
*.GhostDoc.xml
# Node.js Tools for Visual Studio
.ntvs_analysis.dat
node_modules/
# Visual Studio 6 build log
*.plg
# Visual Studio 6 workspace options file
*.opt
# Visual Studio 6 auto-generated workspace file (contains which files were open etc.)
*.vbw
# Visual Studio 6 auto-generated project file (contains which files were open etc.)
*.vbp
# Visual Studio 6 workspace and project file (working project files containing files to include in project)
*.dsw
*.dsp
# Visual Studio 6 technical files
*.ncb
*.aps
# Visual Studio LightSwitch build output
**/*.HTMLClient/GeneratedArtifacts
**/*.DesktopClient/GeneratedArtifacts
**/*.DesktopClient/ModelManifest.xml
**/*.Server/GeneratedArtifacts
**/*.Server/ModelManifest.xml
_Pvt_Extensions
# Paket dependency manager
.paket/paket.exe
paket-files/
# FAKE - F# Make
.fake/
# CodeRush personal settings
.cr/personal
# Python Tools for Visual Studio (PTVS)
__pycache__/
*.pyc
# Cake - Uncomment if you are using it
# tools/**
# !tools/packages.config
# Tabs Studio
*.tss
# Telerik's JustMock configuration file
*.jmconfig
# BizTalk build output
*.btp.cs
*.btm.cs
*.odx.cs
*.xsd.cs
# OpenCover UI analysis results
OpenCover/
# Azure Stream Analytics local run output
ASALocalRun/
# MSBuild Binary and Structured Log
*.binlog
# NVidia Nsight GPU debugger configuration file
*.nvuser
# MFractors (Xamarin productivity tool) working folder
.mfractor/
# Local History for Visual Studio
.localhistory/
# Visual Studio History (VSHistory) files
.vshistory/
# BeatPulse healthcheck temp database
healthchecksdb
# Backup folder for Package Reference Convert tool in Visual Studio 2017
MigrationBackup/
# Ionide (cross platform F# VS Code tools) working folder
.ionide/
# Fody - auto-generated XML schema
FodyWeavers.xsd
# VS Code files for those working on multiple tools
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
*.code-workspace
# Local History for Visual Studio Code
.history/
# Windows Installer files from build outputs
*.cab
*.msi
*.msix
*.msm
*.msp
# JetBrains Rider
*.sln.iml
.idea/
##
## Visual studio for Mac
##
# globs
Makefile.in
*.userprefs
*.usertasks
config.make
config.status
aclocal.m4
install-sh
autom4te.cache/
*.tar.gz
tarballs/
test-results/
# content below from: https://github.com/github/gitignore/blob/main/Global/macOS.gitignore
# General
.DS_Store
.AppleDouble
.LSOverride
# Icon must end with two \r
Icon
# Thumbnails
._*
# Files that might appear in the root of a volume
.DocumentRevisions-V100
.fseventsd
.Spotlight-V100
.TemporaryItems
.Trashes
.VolumeIcon.icns
.com.apple.timemachine.donotpresent
# Directories potentially created on remote AFP share
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk
# content below from: https://github.com/github/gitignore/blob/main/Global/Windows.gitignore
# Windows thumbnail cache files
Thumbs.db
ehthumbs.db
ehthumbs_vista.db
# Dump file
*.stackdump
# Folder config file
[Dd]esktop.ini
# Recycle Bin used on file shares
$RECYCLE.BIN/
# Windows Installer files
*.cab
*.msi
*.msix
*.msm
*.msp
# Windows shortcuts
*.lnk
# Vim temporary swap files
*.swp
Directory.Build.props +9 -0
diff --git a/Directory.Build.props b/Directory.Build.props
new file mode 100644
index 0000000..0759c7e
@@ -0,0 +1,9 @@
<Project>
<PropertyGroup>
<TargetFramework>net10.0</TargetFramework>
<LangVersion>14</LangVersion>
<ImplicitUsings>disable</ImplicitUsings>
<Nullable>enable</Nullable>
<RestorePackagesWithLockFile>true</RestorePackagesWithLockFile>
</PropertyGroup>
</Project>
Directory.Packages.props +12 -0
diff --git a/Directory.Packages.props b/Directory.Packages.props
new file mode 100644
index 0000000..48f3df1
@@ -0,0 +1,12 @@
<Project>
<PropertyGroup>
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
<CentralPackageTransitivePinningEnabled>true</CentralPackageTransitivePinningEnabled>
</PropertyGroup>
<ItemGroup>
<GlobalPackageReference Include="CSharpier.MsBuild" Version="1.3.0">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</GlobalPackageReference>
</ItemGroup>
</Project>
\ No newline at end of file
dotnet-tools.json +13 -0
diff --git a/dotnet-tools.json b/dotnet-tools.json
new file mode 100644
index 0000000..6e2e244
@@ -0,0 +1,13 @@
{
"version": 1,
"isRoot": true,
"tools": {
"csharpier": {
"version": "1.3.0",
"commands": [
"csharpier"
],
"rollForward": false
}
}
}
\ No newline at end of file
global.json +5 -0
diff --git a/global.json b/global.json
new file mode 100644
index 0000000..14b50cf
@@ -0,0 +1,5 @@
{
"sdk": {
"version": "10.0.302"
}
}
notes-app.slnx +3 -0
diff --git a/notes-app.slnx b/notes-app.slnx
new file mode 100644
index 0000000..1555677
@@ -0,0 +1,3 @@
<Solution>
<Project Path="src/NotesApp.csproj" />
</Solution>
src/AndroidManifest.xml +11 -0
diff --git a/src/AndroidManifest.xml b/src/AndroidManifest.xml
new file mode 100644
index 0000000..9687c82
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<application
android:allowBackup="true"
android:icon="@mipmap/appicon"
android:label="@string/app_name"
android:roundIcon="@mipmap/appicon_round"
android:supportsRtl="true"
></application>
<uses-permission android:name="android.permission.INTERNET" />
</manifest>
src/MainActivity.cs +13 -0
diff --git a/src/MainActivity.cs b/src/MainActivity.cs
new file mode 100644
index 0000000..cdebb7f
@@ -0,0 +1,13 @@
namespace NotesApp.Android;
[Activity(Label = "@string/app_name", MainLauncher = true)]
public class MainActivity : Activity
{
protected override void OnCreate(Bundle? savedInstanceState)
{
base.OnCreate(savedInstanceState);
// Set our view from the "main" layout resource
SetContentView(Resource.Layout.activity_main);
}
}
src/NotesApp.csproj +13 -0
diff --git a/src/NotesApp.csproj b/src/NotesApp.csproj
new file mode 100644
index 0000000..eab9485
@@ -0,0 +1,13 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net10.0-android</TargetFramework>
<SupportedOSPlatformVersion>24</SupportedOSPlatformVersion>
<OutputType>Exe</OutputType>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<ApplicationId>NotesApp</ApplicationId>
<ApplicationVersion>1</ApplicationVersion>
<ApplicationDisplayVersion>1.0</ApplicationDisplayVersion>
<TrimMode>full</TrimMode>
</PropertyGroup>
</Project>
src/Resources/AboutResources.txt +44 -0
diff --git a/src/Resources/AboutResources.txt b/src/Resources/AboutResources.txt
new file mode 100644
index 0000000..219f425
@@ -0,0 +1,44 @@
Images, layout descriptions, binary blobs and string dictionaries can be included
in your application as resource files. Various Android APIs are designed to
operate on the resource IDs instead of dealing with images, strings or binary blobs
directly.
For example, a sample Android app that contains a user interface layout (main.xml),
an internationalization string table (strings.xml) and some icons (drawable-XXX/icon.png)
would keep its resources in the "Resources" directory of the application:
Resources/
drawable/
icon.png
layout/
main.xml
values/
strings.xml
In order to get the build system to recognize Android resources, set the build action to
"AndroidResource". The native Android APIs do not operate directly with filenames, but
instead operate on resource IDs. When you compile an Android application that uses resources,
the build system will package the resources for distribution and generate a class called "Resource"
(this is an Android convention) that contains the tokens for each one of the resources
included. For example, for the above Resources layout, this is what the Resource class would expose:
public class Resource {
public class Drawable {
public const int icon = 0x123;
}
public class Layout {
public const int main = 0x456;
}
public class Strings {
public const int first_string = 0xabc;
public const int second_string = 0xbcd;
}
}
You would then use Resource.Drawable.icon to reference the drawable/icon.png file, or
Resource.Layout.main to reference the layout/main.xml file, or Resource.Strings.first_string
to reference the first string in the dictionary file values/strings.xml.
\ No newline at end of file
src/Resources/layout/activity_main.xml +15 -0
diff --git a/src/Resources/layout/activity_main.xml b/src/Resources/layout/activity_main.xml
new file mode 100644
index 0000000..550796f
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:text="@string/app_text"
/>
</RelativeLayout>
src/Resources/mipmap-anydpi-v26/appicon.xml +4 -0
diff --git a/src/Resources/mipmap-anydpi-v26/appicon.xml b/src/Resources/mipmap-anydpi-v26/appicon.xml
new file mode 100644
index 0000000..ae5a675
@@ -0,0 +1,4 @@
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@mipmap/appicon_background" />
<foreground android:drawable="@mipmap/appicon_foreground" />
</adaptive-icon>
src/Resources/mipmap-anydpi-v26/appicon_round.xml +4 -0
diff --git a/src/Resources/mipmap-anydpi-v26/appicon_round.xml b/src/Resources/mipmap-anydpi-v26/appicon_round.xml
new file mode 100644
index 0000000..ae5a675
@@ -0,0 +1,4 @@
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@mipmap/appicon_background" />
<foreground android:drawable="@mipmap/appicon_foreground" />
</adaptive-icon>
src/Resources/mipmap-hdpi/appicon.png +0 -0
diff --git a/src/Resources/mipmap-hdpi/appicon.png b/src/Resources/mipmap-hdpi/appicon.png
new file mode 100644
index 0000000..0abfc1b
Binary files /dev/null and b/src/Resources/mipmap-hdpi/appicon.png differ
src/Resources/mipmap-hdpi/appicon_background.png +0 -0
diff --git a/src/Resources/mipmap-hdpi/appicon_background.png b/src/Resources/mipmap-hdpi/appicon_background.png
new file mode 100644
index 0000000..513e69d
Binary files /dev/null and b/src/Resources/mipmap-hdpi/appicon_background.png differ
src/Resources/mipmap-hdpi/appicon_foreground.png +0 -0
diff --git a/src/Resources/mipmap-hdpi/appicon_foreground.png b/src/Resources/mipmap-hdpi/appicon_foreground.png
new file mode 100644
index 0000000..99d3a29
Binary files /dev/null and b/src/Resources/mipmap-hdpi/appicon_foreground.png differ
src/Resources/mipmap-mdpi/appicon.png +0 -0
diff --git a/src/Resources/mipmap-mdpi/appicon.png b/src/Resources/mipmap-mdpi/appicon.png
new file mode 100644
index 0000000..7b5a2e2
Binary files /dev/null and b/src/Resources/mipmap-mdpi/appicon.png differ
src/Resources/mipmap-mdpi/appicon_background.png +0 -0
diff --git a/src/Resources/mipmap-mdpi/appicon_background.png b/src/Resources/mipmap-mdpi/appicon_background.png
new file mode 100644
index 0000000..9e2d1e4
Binary files /dev/null and b/src/Resources/mipmap-mdpi/appicon_background.png differ
src/Resources/mipmap-mdpi/appicon_foreground.png +0 -0
diff --git a/src/Resources/mipmap-mdpi/appicon_foreground.png b/src/Resources/mipmap-mdpi/appicon_foreground.png
new file mode 100644
index 0000000..a28d342
Binary files /dev/null and b/src/Resources/mipmap-mdpi/appicon_foreground.png differ
src/Resources/mipmap-xhdpi/appicon.png +0 -0
diff --git a/src/Resources/mipmap-xhdpi/appicon.png b/src/Resources/mipmap-xhdpi/appicon.png
new file mode 100644
index 0000000..b28b73c
Binary files /dev/null and b/src/Resources/mipmap-xhdpi/appicon.png differ
src/Resources/mipmap-xhdpi/appicon_background.png +0 -0
diff --git a/src/Resources/mipmap-xhdpi/appicon_background.png b/src/Resources/mipmap-xhdpi/appicon_background.png
new file mode 100644
index 0000000..658be3f
Binary files /dev/null and b/src/Resources/mipmap-xhdpi/appicon_background.png differ
src/Resources/mipmap-xhdpi/appicon_foreground.png +0 -0
diff --git a/src/Resources/mipmap-xhdpi/appicon_foreground.png b/src/Resources/mipmap-xhdpi/appicon_foreground.png
new file mode 100644
index 0000000..70a542a
Binary files /dev/null and b/src/Resources/mipmap-xhdpi/appicon_foreground.png differ
src/Resources/mipmap-xxhdpi/appicon.png +0 -0
diff --git a/src/Resources/mipmap-xxhdpi/appicon.png b/src/Resources/mipmap-xxhdpi/appicon.png
new file mode 100644
index 0000000..f9af117
Binary files /dev/null and b/src/Resources/mipmap-xxhdpi/appicon.png differ
src/Resources/mipmap-xxhdpi/appicon_background.png +0 -0
diff --git a/src/Resources/mipmap-xxhdpi/appicon_background.png b/src/Resources/mipmap-xxhdpi/appicon_background.png
new file mode 100644
index 0000000..9171c3e
Binary files /dev/null and b/src/Resources/mipmap-xxhdpi/appicon_background.png differ
src/Resources/mipmap-xxhdpi/appicon_foreground.png +0 -0
diff --git a/src/Resources/mipmap-xxhdpi/appicon_foreground.png b/src/Resources/mipmap-xxhdpi/appicon_foreground.png
new file mode 100644
index 0000000..cb63bfb
Binary files /dev/null and b/src/Resources/mipmap-xxhdpi/appicon_foreground.png differ
src/Resources/mipmap-xxxhdpi/appicon.png +0 -0
diff --git a/src/Resources/mipmap-xxxhdpi/appicon.png b/src/Resources/mipmap-xxxhdpi/appicon.png
new file mode 100644
index 0000000..1d948d6
Binary files /dev/null and b/src/Resources/mipmap-xxxhdpi/appicon.png differ
src/Resources/mipmap-xxxhdpi/appicon_background.png +0 -0
diff --git a/src/Resources/mipmap-xxxhdpi/appicon_background.png b/src/Resources/mipmap-xxxhdpi/appicon_background.png
new file mode 100644
index 0000000..1232d8c
Binary files /dev/null and b/src/Resources/mipmap-xxxhdpi/appicon_background.png differ
src/Resources/mipmap-xxxhdpi/appicon_foreground.png +0 -0
diff --git a/src/Resources/mipmap-xxxhdpi/appicon_foreground.png b/src/Resources/mipmap-xxxhdpi/appicon_foreground.png
new file mode 100644
index 0000000..9f9c9e6
Binary files /dev/null and b/src/Resources/mipmap-xxxhdpi/appicon_foreground.png differ
src/Resources/values/ic_launcher_background.xml +4 -0
diff --git a/src/Resources/values/ic_launcher_background.xml b/src/Resources/values/ic_launcher_background.xml
new file mode 100644
index 0000000..e2605cb
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="ic_launcher_background">#2C3E50</color>
</resources>
src/Resources/values/strings.xml +4 -0
diff --git a/src/Resources/values/strings.xml b/src/Resources/values/strings.xml
new file mode 100644
index 0000000..6a06690
@@ -0,0 +1,4 @@
<resources>
<string name="app_name">NotesApp</string>
<string name="app_text">Hello, Notes!</string>
</resources>
src/packages.lock.json +21 -0
diff --git a/src/packages.lock.json b/src/packages.lock.json
new file mode 100644
index 0000000..dad1588
@@ -0,0 +1,21 @@
{
"version": 2,
"dependencies": {
"net10.0-android36.0": {
"CSharpier.MsBuild": {
"type": "Direct",
"requested": "[1.3.0, )",
"resolved": "1.3.0",
"contentHash": "jzzLpmz7F6LyBh5FTZy8/4dEYVcAG9VjBPKryZ82LIoUuupcBkCSXzaeS/4oYcp/rBC8yVLcDstJ8CIv9n2IFw=="
},
"Microsoft.NET.ILLink.Tasks": {
"type": "Direct",
"requested": "[10.0.10, )",
"resolved": "10.0.10",
"contentHash": "f5VCIE7AJpd5YvzNTeMGVzQIgyE9tX+AreTYwQF+REbu+DZo/2Ae+jNSwhPEYrVz6RRkd7y8ubXjk6Nn6Ka+Cg=="
}
},
"net10.0-android36.0/android-arm64": {},
"net10.0-android36.0/android-x64": {}
}
}
\ No newline at end of file