Skip to content
Merged
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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
root = true

[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
indent_style = space
indent_size = 4

[*.md]
trim_trailing_whitespace = false

[*.{yml,yaml}]
indent_size = 2
32 changes: 32 additions & 0 deletions docs/CODE_STYLE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Code Style Guidelines

## Kotlin Style

MediaKit follows:
- Kotlin-first APIs
- Readable code
- Minimal public APIs
- Clear separation of responsibilities

## General Rules

- Prefer immutable data where possible
- Keep functions focused
- Avoid large god classes
- Prefer composition over deep inheritance

## SDK Priorities

Higher priority than feature count:
- Stability
- Readability
- Maintainability
- Bitmap safety
- Lifecycle correctness

## Public API Guidelines

- Keep APIs predictable
- Avoid leaking internal implementation
- Prefer builder-style APIs when useful
- Keep module boundaries clean
35 changes: 35 additions & 0 deletions docs/MAINTENANCE_GUIDE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Maintenance Guide

## Goals

MediaKit maintenance should focus on:
- Stability
- Backward compatibility
- Lightweight architecture
- Reliable media handling

## Recommended Maintenance Areas

### Image Picker
- Permission flow validation
- Lifecycle testing
- Camera integration testing
- URI handling verification

### Image Cropper
- Crop accuracy validation
- Bitmap memory monitoring
- Matrix transformation validation
- Large image testing

## Release Maintenance

Before releases:
- Verify CI builds
- Review public API changes
- Update changelog
- Validate sample app

## Long-Term Direction

MediaKit should evolve carefully while keeping APIs stable and modular.
Loading