diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..f6a1e11 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,304 @@ +# EditorConfig is awesome: https://EditorConfig.org + +# top-most EditorConfig file +root = true + +# All files +[*] +charset = utf-8 +indent_style = space +insert_final_newline = true +trim_trailing_whitespace = true + +# Code files +[*.{cs,csx,vb,vbx}] +indent_size = 4 + +# XML project files +[*.{csproj,vbproj,vcxproj,vcxproj.filters,proj,projitems,shproj}] +indent_size = 2 + +# XML config files +[*.{props,targets,ruleset,config,nuspec,resx,vsixmanifest,vsct}] +indent_size = 2 + +# JSON files +[*.json] +indent_size = 2 + +# YAML files +[*.{yml,yaml}] +indent_size = 2 + +# Markdown files +[*.md] +max_line_length = off +trim_trailing_whitespace = false + +# C# files +[*.cs] + +#### Core EditorConfig Options #### + +# Indentation and spacing +indent_size = 4 +tab_width = 4 + +# New line preferences +end_of_line = lf +insert_final_newline = true + +#### .NET Coding Conventions #### + +# Organize usings +dotnet_separate_import_directive_groups = false +dotnet_sort_system_directives_first = true +file_header_template = unset + +# this. and Me. preferences +dotnet_style_qualification_for_event = false:warning +dotnet_style_qualification_for_field = false:warning +dotnet_style_qualification_for_method = false:warning +dotnet_style_qualification_for_property = false:warning + +# Language keywords vs BCL types preferences +dotnet_style_predefined_type_for_locals_parameters_members = true:warning +dotnet_style_predefined_type_for_member_access = true:warning + +# Parentheses preferences +dotnet_style_parentheses_in_arithmetic_binary_operators = always_for_clarity:suggestion +dotnet_style_parentheses_in_other_binary_operators = always_for_clarity:suggestion +dotnet_style_parentheses_in_other_operators = never_if_unnecessary:suggestion +dotnet_style_parentheses_in_relational_binary_operators = always_for_clarity:suggestion + +# Modifier preferences +dotnet_style_require_accessibility_modifiers = for_non_interface_members:warning + +# Expression-level preferences +dotnet_style_coalesce_expression = true:warning +dotnet_style_collection_initializer = true:warning +dotnet_style_explicit_tuple_names = true:warning +dotnet_style_namespace_match_folder = true:suggestion +dotnet_style_null_propagation = true:warning +dotnet_style_object_initializer = true:warning +dotnet_style_operator_placement_when_wrapping = beginning_of_line +dotnet_style_prefer_auto_properties = true:warning +dotnet_style_prefer_compound_assignment = true:warning +dotnet_style_prefer_conditional_expression_over_assignment = true:suggestion +dotnet_style_prefer_conditional_expression_over_return = true:suggestion +dotnet_style_prefer_inferred_anonymous_type_member_names = true:warning +dotnet_style_prefer_inferred_tuple_names = true:warning +dotnet_style_prefer_is_null_check_over_reference_equality_method = true:warning +dotnet_style_prefer_simplified_boolean_expressions = true:warning +dotnet_style_prefer_simplified_interpolation = true:warning + +# Field preferences +dotnet_style_readonly_field = true:warning + +# Parameter preferences +dotnet_code_quality_unused_parameters = all:warning + +# Suppression preferences +dotnet_remove_unnecessary_suppression_exclusions = none + +# New line preferences +dotnet_style_allow_multiple_blank_lines_experimental = false:warning +dotnet_style_allow_statement_immediately_after_block_experimental = false:warning + +#### C# Coding Conventions #### + +# var preferences +csharp_style_var_elsewhere = false:suggestion +csharp_style_var_for_built_in_types = false:suggestion +csharp_style_var_when_type_is_apparent = true:suggestion + +# Expression-bodied members +csharp_style_expression_bodied_accessors = true:suggestion +csharp_style_expression_bodied_constructors = false:suggestion +csharp_style_expression_bodied_indexers = true:suggestion +csharp_style_expression_bodied_lambdas = true:suggestion +csharp_style_expression_bodied_local_functions = false:suggestion +csharp_style_expression_bodied_methods = false:suggestion +csharp_style_expression_bodied_operators = false:suggestion +csharp_style_expression_bodied_properties = true:suggestion + +# Pattern matching preferences +csharp_style_pattern_matching_over_as_with_null_check = true:warning +csharp_style_pattern_matching_over_is_with_cast_check = true:warning +csharp_style_prefer_extended_property_pattern = true:suggestion +csharp_style_prefer_not_pattern = true:warning +csharp_style_prefer_pattern_matching = true:suggestion +csharp_style_prefer_switch_expression = true:suggestion + +# Null-checking preferences +csharp_style_conditional_delegate_call = true:warning +csharp_style_prefer_parameter_null_checking = true:suggestion + +# Modifier preferences +csharp_prefer_static_local_function = true:warning +csharp_preferred_modifier_order = public,private,protected,internal,static,extern,new,virtual,abstract,sealed,override,readonly,unsafe,volatile,async:warning + +# Code-block preferences +csharp_prefer_braces = true:warning +csharp_prefer_simple_using_statement = true:suggestion +csharp_style_namespace_declarations = file_scoped:warning +csharp_style_prefer_method_group_conversion = true:suggestion +csharp_style_prefer_top_level_statements = false:suggestion + +# Expression-level preferences +csharp_prefer_simple_default_expression = true:warning +csharp_style_deconstructed_variable_declaration = true:suggestion +csharp_style_implicit_object_creation_when_type_is_apparent = true:suggestion +csharp_style_inlined_variable_declaration = true:warning +csharp_style_prefer_index_operator = true:warning +csharp_style_prefer_local_over_anonymous_function = true:suggestion +csharp_style_prefer_null_check_over_type_check = true:warning +csharp_style_prefer_range_operator = true:warning +csharp_style_prefer_tuple_swap = true:suggestion +csharp_style_throw_expression = true:warning +csharp_style_unused_value_assignment_preference = discard_variable:suggestion +csharp_style_unused_value_expression_statement_preference = discard_variable:suggestion + +# 'using' directive preferences +csharp_using_directive_placement = outside_namespace:warning + +# New line preferences +csharp_style_allow_blank_line_after_colon_in_constructor_initializer_experimental = false:warning +csharp_style_allow_blank_lines_between_consecutive_braces_experimental = false:warning +csharp_style_allow_embedded_statements_on_same_line_experimental = false:warning + +#### C# Formatting Rules #### + +# New line preferences +csharp_new_line_before_catch = true +csharp_new_line_before_else = true +csharp_new_line_before_finally = true +csharp_new_line_before_members_in_anonymous_types = true +csharp_new_line_before_members_in_object_initializers = true +csharp_new_line_before_open_brace = all +csharp_new_line_between_query_expression_clauses = true + +# Indentation preferences +csharp_indent_block_contents = true +csharp_indent_braces = false +csharp_indent_case_contents = true +csharp_indent_case_contents_when_block = false +csharp_indent_labels = no_change +csharp_indent_switch_labels = true + +# Space preferences +csharp_space_after_cast = false +csharp_space_after_colon_in_inheritance_clause = true +csharp_space_after_comma = true +csharp_space_after_dot = false +csharp_space_after_keywords_in_control_flow_statements = true +csharp_space_after_semicolon_in_for_statement = true +csharp_space_around_binary_operators = before_and_after +csharp_space_around_declaration_statements = false +csharp_space_before_colon_in_inheritance_clause = true +csharp_space_before_comma = false +csharp_space_before_dot = false +csharp_space_before_open_square_brackets = false +csharp_space_before_semicolon_in_for_statement = false +csharp_space_between_empty_square_brackets = false +csharp_space_between_method_call_empty_parameter_list_parentheses = false +csharp_space_between_method_call_name_and_opening_parenthesis = false +csharp_space_between_method_call_parameter_list_parentheses = false +csharp_space_between_method_declaration_empty_parameter_list_parentheses = false +csharp_space_between_method_declaration_name_and_open_parenthesis = false +csharp_space_between_method_declaration_parameter_list_parentheses = false +csharp_space_between_parentheses = false +csharp_space_between_square_brackets = false + +# Wrapping preferences +csharp_preserve_single_line_blocks = true +csharp_preserve_single_line_statements = false + +#### Naming Conventions #### + +# Naming rules + +dotnet_naming_rule.interface_should_be_begins_with_i.severity = warning +dotnet_naming_rule.interface_should_be_begins_with_i.symbols = interface +dotnet_naming_rule.interface_should_be_begins_with_i.style = begins_with_i + +dotnet_naming_rule.types_should_be_pascal_case.severity = warning +dotnet_naming_rule.types_should_be_pascal_case.symbols = types +dotnet_naming_rule.types_should_be_pascal_case.style = pascal_case + +dotnet_naming_rule.non_field_members_should_be_pascal_case.severity = warning +dotnet_naming_rule.non_field_members_should_be_pascal_case.symbols = non_field_members +dotnet_naming_rule.non_field_members_should_be_pascal_case.style = pascal_case + +dotnet_naming_rule.private_or_internal_field_should_be_begins_with_underscore.severity = warning +dotnet_naming_rule.private_or_internal_field_should_be_begins_with_underscore.symbols = private_or_internal_field +dotnet_naming_rule.private_or_internal_field_should_be_begins_with_underscore.style = begins_with_underscore + +dotnet_naming_rule.constant_fields_should_be_pascal_case.severity = warning +dotnet_naming_rule.constant_fields_should_be_pascal_case.symbols = constant_fields +dotnet_naming_rule.constant_fields_should_be_pascal_case.style = pascal_case + +# Symbol specifications + +dotnet_naming_symbols.interface.applicable_kinds = interface +dotnet_naming_symbols.interface.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected +dotnet_naming_symbols.interface.required_modifiers = + +dotnet_naming_symbols.private_or_internal_field.applicable_kinds = field +dotnet_naming_symbols.private_or_internal_field.applicable_accessibilities = internal, private, private_protected +dotnet_naming_symbols.private_or_internal_field.required_modifiers = + +dotnet_naming_symbols.types.applicable_kinds = class, struct, interface, enum +dotnet_naming_symbols.types.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected +dotnet_naming_symbols.types.required_modifiers = + +dotnet_naming_symbols.non_field_members.applicable_kinds = property, event, method +dotnet_naming_symbols.non_field_members.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected +dotnet_naming_symbols.non_field_members.required_modifiers = + +dotnet_naming_symbols.constant_fields.applicable_kinds = field +dotnet_naming_symbols.constant_fields.applicable_accessibilities = * +dotnet_naming_symbols.constant_fields.required_modifiers = const + +# Naming styles + +dotnet_naming_style.pascal_case.required_prefix = +dotnet_naming_style.pascal_case.required_suffix = +dotnet_naming_style.pascal_case.word_separator = +dotnet_naming_style.pascal_case.capitalization = pascal_case + +dotnet_naming_style.begins_with_i.required_prefix = I +dotnet_naming_style.begins_with_i.required_suffix = +dotnet_naming_style.begins_with_i.word_separator = +dotnet_naming_style.begins_with_i.capitalization = pascal_case + +dotnet_naming_style.begins_with_underscore.required_prefix = _ +dotnet_naming_style.begins_with_underscore.required_suffix = +dotnet_naming_style.begins_with_underscore.word_separator = +dotnet_naming_style.begins_with_underscore.capitalization = camel_case + +#### Code Analysis Rules #### + +# CA1031: Do not catch general exception types +dotnet_diagnostic.CA1031.severity = suggestion + +# CA1062: Validate arguments of public methods +dotnet_diagnostic.CA1062.severity = suggestion + +# CA1303: Do not pass literals as localized parameters +dotnet_diagnostic.CA1303.severity = none + +# CA1720: Identifiers should not contain type names +dotnet_diagnostic.CA1720.severity = suggestion + +# CA2007: Do not directly await a Task +dotnet_diagnostic.CA2007.severity = none + +# IDE0005: Using directive is unnecessary +dotnet_diagnostic.IDE0005.severity = warning + +# IDE0058: Expression value is never used +dotnet_diagnostic.IDE0058.severity = none + +# IDE0063: Use simple 'using' statement +dotnet_diagnostic.IDE0063.severity = suggestion diff --git a/CLAUDE.md b/CLAUDE.md new file mode 100644 index 0000000..92b6ce5 --- /dev/null +++ b/CLAUDE.md @@ -0,0 +1,207 @@ +# CLAUDE.md + +This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository. + +## Project Overview + +Hiha-Arvio (Finnish: "Sleeve Estimate") is a .NET 8 MAUI cross-platform application that generates semi-random time estimates based on physical shake input (accelerometer on mobile, mouse movement on desktop). This is a humor app for "pulling an estimate from your sleeve." + +**Platforms (in priority order):** iOS (primary) → Web (Blazor) → macOS + +## Critical Requirements + +### Specification Compliance + +- **ALWAYS read `spec.md` before implementing features** - contains RFC 2119 formal requirements (MUST, REQUIRED, SHALL) +- **Design reference:** `docs/plans/2025-11-18-hiha-arvio-design.md` contains validated architecture decisions +- Nullable reference types MUST be enabled +- All compiler warnings MUST be treated as errors +- Minimum test coverage: 95% (enforced in CI/CD) + +### Architecture Constraints + +**MVVM Pattern with Strict Separation:** +- Models: Plain data objects only, no business logic +- ViewModels: All presentation logic, must be 100% testable without UI dependencies +- Views: Thin layer, data binding only, minimal presentation code +- Services: All business logic and infrastructure concerns + +**Dependency Injection:** +- All services MUST be injected via constructor (no service locator, no `new` keyword in ViewModels) +- Register services in `MauiProgram.cs` +- Platform-specific implementations use conditional compilation (`#if IOS`, `#elif WINDOWS || MACCATALYST`) + +### Testing Requirements + +- Test coverage MUST be ≥95% (measured with Coverlet, enforced in CI/CD) +- Testing stack: xUnit + NSubstitute (mocking) + FluentAssertions (assertions) +- All tests MUST use deterministic randomness (seeded RNG) +- Mock all external dependencies (sensors, database, file system) +- Use test data builders for complex objects + +## Technology Stack + +- **Framework:** .NET 8 MAUI (LTS) +- **Language:** C# 12 with nullable reference types +- **Database:** SQLite via `sqlite-net-pcl` +- **MVVM:** CommunityToolkit.Mvvm (source generators) +- **Testing:** xUnit, NSubstitute, FluentAssertions, Coverlet + +## Core Architecture + +### Service Layer (All Injectable) + +**IAccelerometerService** +- Platform abstraction: accelerometer (iOS) or mouse movement (desktop/web) +- Emits observable stream of sensor data + +**IShakeDetectionService** +- Processes accelerometer stream +- Detects shake start/stop, calculates normalized intensity [0.0-1.0] +- Tracks shake duration for easter egg trigger (>15 seconds) + +**IEstimateService** +- Generates estimates based on: intensity, duration, mode +- Implements intensity → range mapping: + - Intensity <0.3: narrow range (first 20% of pool) + - Intensity 0.3-0.7: medium range (first 50% of pool) + - Intensity >0.7: full range (entire pool) +- Easter egg: duration >15s forces Humorous mode +- MUST use cryptographically secure RNG (`System.Security.Cryptography.RandomNumberGenerator`) + +**IStorageService** +- Settings: Preferences API +- History: SQLite with auto-pruning (max 10 estimates) +- All operations MUST be async + +### Key Models + +```csharp +EstimateResult: Id, Timestamp, EstimateText, Mode, ShakeIntensity, ShakeDuration +EstimateMode enum: Work, Generic, Humorous +ShakeData: Intensity, Duration, IsShaking +AppSettings: SelectedMode, MaxHistorySize +``` + +### Estimate Pools (from spec.md §3.2.2) + +**Work Mode:** +- Gentle: "2 hours", "4 hours", "1 day", "2 days", "3 days", "5 days", "1 week" +- Hard: adds "15 minutes", "30 minutes", "2 weeks", "1 month", "3 months", "6 months", "1 year" + +**Generic Mode:** +- Gentle: "1 minute" → "3 hours" +- Hard: "30 seconds" → "1 month" + +**Humorous Mode (easter egg):** +- "tomorrow", "eventually", "next quarter", "when hell freezes over", "3 lifetimes", "Tuesday", "never", "your retirement" + +## Platform-Specific Implementation + +### iOS (Primary Platform) +- Accelerometer via `Microsoft.Maui.Devices.Sensors.Accelerometer` +- Shake detection: `magnitude = sqrt(x² + y² + z²)`, threshold 2.5g +- Must request motion permissions in Info.plist +- Haptic feedback on shake detection (recommended) +- Target iOS 15+ + +### Web (Blazor WebAssembly) +- Mouse movement simulation: track delta over 200ms window, calculate velocity +- PWA manifest for home screen install +- Support Device Orientation API for mobile browsers (optional) + +### macOS +- Mouse movement tracking (similar to web) +- Keyboard shortcut: Cmd+Shift+S for manual shake trigger +- Native menu bar integration + +## Project Structure (When Implemented) + +``` +HihaArvio.sln +├── src/HihaArvio/ # Main MAUI project +│ ├── Models/ +│ ├── ViewModels/ +│ ├── Views/ +│ ├── Services/ +│ │ ├── Interfaces/ +│ │ └── Platform/ # Platform-specific implementations +│ └── MauiProgram.cs +├── tests/ +│ ├── HihaArvio.Tests/ # Unit tests +│ ├── HihaArvio.IntegrationTests/ # Integration tests +│ └── HihaArvio.UITests/ # UI automation (future) +├── docs/plans/ # Design documents +└── spec.md # Formal specification +``` + +## Development Commands + +### Build Commands +- **Build all platforms:** `dotnet build HihaArvio.sln` +- **Build specific framework:** `dotnet build HihaArvio.sln -f net8.0` +- **Build iOS:** `dotnet build HihaArvio.sln -f net8.0-ios` +- **Build macOS:** `dotnet build HihaArvio.sln -f net8.0-maccatalyst` + +### Test Commands +- **Run all tests:** `dotnet test tests/HihaArvio.Tests/HihaArvio.Tests.csproj` +- **Run specific test class:** `dotnet test tests/HihaArvio.Tests/HihaArvio.Tests.csproj --filter "FullyQualifiedName~EstimateModeTests"` +- **Run single test:** `dotnet test --filter "FullyQualifiedName~TestClassName.TestMethodName"` + +### Code Coverage +- **Generate coverage:** `dotnet test tests/HihaArvio.Tests/HihaArvio.Tests.csproj --collect:"XPlat Code Coverage"` +- **Coverage files:** Located in `tests/HihaArvio.Tests/TestResults/{guid}/coverage.cobertura.xml` + +### Run Commands +- **iOS Simulator:** `dotnet build src/HihaArvio/HihaArvio.csproj -t:Run -f net8.0-ios` +- **macOS:** `dotnet build src/HihaArvio/HihaArvio.csproj -t:Run -f net8.0-maccatalyst` + +### Notes +- All commands should be run from the repository root directory +- Xcode must be installed and configured (`xcode-select -p` should point to Xcode.app) +- MAUI workload must be installed (`dotnet workload list` should show `maui`) + +## Critical Implementation Notes + +### Easter Egg Behavior +- Hidden feature: NO UI indication +- Trigger: shake duration >15 seconds +- Effect: temporarily force EstimateMode.Humorous +- Do NOT expose in Settings or UI + +### Shake Detection Algorithm +1. Monitor sensor stream (accelerometer or mouse) +2. Calculate magnitude/velocity +3. Detect start: exceeds threshold +4. Track peak intensity during session +5. Detect end: below threshold for 500ms continuous +6. Normalize to [0.0, 1.0] + +### Performance Requirements +- Shake response: <100ms latency +- Estimate display: <200ms after shake stop +- History load: <500ms +- All database operations: async, non-blocking + +### Security +- Use `System.Security.Cryptography.RandomNumberGenerator` for estimate selection +- No external data transmission +- All data stored locally only +- Request minimum required permissions + +## Code Quality Enforcement + +- Enable nullable reference types across all projects +- Treat warnings as errors +- Follow EditorConfig rules (when defined) +- Code analysis: StyleCop + built-in analyzers enabled +- CI/CD must enforce 95% coverage threshold and fail builds below this + +## Important Implementation Order + +Per design document, phased development: +1. **Phase 1:** iOS app (primary platform, accelerometer-based) +2. **Phase 2:** Web app (Blazor, mouse simulation) +3. **Phase 3:** macOS app (native integration) + +Focus on Phase 1 first to validate core shake detection and estimate generation logic. diff --git a/HihaArvio.sln b/HihaArvio.sln new file mode 100644 index 0000000..aebe75a --- /dev/null +++ b/HihaArvio.sln @@ -0,0 +1,36 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.0.31903.59 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{7228B5C2-A84A-4648-BB86-FF76E090592E}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HihaArvio", "src\HihaArvio\HihaArvio.csproj", "{E8438360-C957-4B6B-A7EA-9F910063D141}" +EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "tests", "tests", "{1BA313A1-7BF6-4504-B397-6EFA6B72D5AA}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HihaArvio.Tests", "tests\HihaArvio.Tests\HihaArvio.Tests.csproj", "{FCA4D2E3-827F-4557-BBD4-A2F9F81CB158}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {E8438360-C957-4B6B-A7EA-9F910063D141}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {E8438360-C957-4B6B-A7EA-9F910063D141}.Debug|Any CPU.Build.0 = Debug|Any CPU + {E8438360-C957-4B6B-A7EA-9F910063D141}.Release|Any CPU.ActiveCfg = Release|Any CPU + {E8438360-C957-4B6B-A7EA-9F910063D141}.Release|Any CPU.Build.0 = Release|Any CPU + {FCA4D2E3-827F-4557-BBD4-A2F9F81CB158}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {FCA4D2E3-827F-4557-BBD4-A2F9F81CB158}.Debug|Any CPU.Build.0 = Debug|Any CPU + {FCA4D2E3-827F-4557-BBD4-A2F9F81CB158}.Release|Any CPU.ActiveCfg = Release|Any CPU + {FCA4D2E3-827F-4557-BBD4-A2F9F81CB158}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(NestedProjects) = preSolution + {E8438360-C957-4B6B-A7EA-9F910063D141} = {7228B5C2-A84A-4648-BB86-FF76E090592E} + {FCA4D2E3-827F-4557-BBD4-A2F9F81CB158} = {1BA313A1-7BF6-4504-B397-6EFA6B72D5AA} + EndGlobalSection +EndGlobal diff --git a/src/HihaArvio/App.xaml b/src/HihaArvio/App.xaml new file mode 100644 index 0000000..22179c7 --- /dev/null +++ b/src/HihaArvio/App.xaml @@ -0,0 +1,14 @@ + + + + + + + + + + + diff --git a/src/HihaArvio/App.xaml.cs b/src/HihaArvio/App.xaml.cs new file mode 100644 index 0000000..d10ce75 --- /dev/null +++ b/src/HihaArvio/App.xaml.cs @@ -0,0 +1,11 @@ +namespace HihaArvio; + +public partial class App : Application +{ + public App() + { + InitializeComponent(); + + MainPage = new AppShell(); + } +} diff --git a/src/HihaArvio/AppShell.xaml b/src/HihaArvio/AppShell.xaml new file mode 100644 index 0000000..574c217 --- /dev/null +++ b/src/HihaArvio/AppShell.xaml @@ -0,0 +1,15 @@ + + + + + + diff --git a/src/HihaArvio/AppShell.xaml.cs b/src/HihaArvio/AppShell.xaml.cs new file mode 100644 index 0000000..875c7a8 --- /dev/null +++ b/src/HihaArvio/AppShell.xaml.cs @@ -0,0 +1,9 @@ +namespace HihaArvio; + +public partial class AppShell : Shell +{ + public AppShell() + { + InitializeComponent(); + } +} diff --git a/src/HihaArvio/HihaArvio.csproj b/src/HihaArvio/HihaArvio.csproj new file mode 100644 index 0000000..c1dfbfb --- /dev/null +++ b/src/HihaArvio/HihaArvio.csproj @@ -0,0 +1,70 @@ + + + + + + net8.0;net8.0-ios;net8.0-maccatalyst + + + + + Exe + Library + HihaArvio + true + true + enable + enable + + + true + 12 + + + HihaArvio + + + com.companyname.hihaarvio + + + 1.0 + 1 + + + 15.0 + 15.0 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/HihaArvio/MainPage.xaml b/src/HihaArvio/MainPage.xaml new file mode 100644 index 0000000..06ce07c --- /dev/null +++ b/src/HihaArvio/MainPage.xaml @@ -0,0 +1,36 @@ + + + + + + + +