|
| 1 | +# Changelog |
| 2 | + |
| 3 | +All notable changes to the gameframework_stream package will be documented in this file. |
| 4 | + |
| 5 | +The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), |
| 6 | +and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). |
| 7 | + |
| 8 | +## [0.0.1] - 2026-02-06 |
| 9 | + |
| 10 | +### Initial Release |
| 11 | + |
| 12 | +Asset streaming support for Flutter Game Framework. Enables on-demand downloading of Unity Addressable assets from GameFramework Cloud. |
| 13 | + |
| 14 | +#### Core Features |
| 15 | + |
| 16 | +**Asset Streaming:** |
| 17 | +- On-demand asset downloading from remote servers |
| 18 | +- Support for Unity Addressables integration |
| 19 | +- Asset bundle management and caching |
| 20 | +- Bandwidth-aware streaming with quality adaptation |
| 21 | +- Resume capability for interrupted downloads |
| 22 | +- Progress tracking and reporting |
| 23 | + |
| 24 | +**Cache Management:** |
| 25 | +- Local asset cache with configurable size limits |
| 26 | +- LRU (Least Recently Used) eviction strategy |
| 27 | +- Cache persistence across app sessions |
| 28 | +- Manual cache clearing APIs |
| 29 | +- Cache statistics and monitoring |
| 30 | + |
| 31 | +**Network Optimization:** |
| 32 | +- Automatic quality adjustment based on connection speed |
| 33 | +- Chunked downloads with retry logic |
| 34 | +- Concurrent download management |
| 35 | +- Bandwidth throttling options |
| 36 | +- Connection type awareness (WiFi vs Cellular) |
| 37 | + |
| 38 | +**API:** |
| 39 | +- `StreamingAssetManager` - Main asset streaming controller |
| 40 | +- `AssetDownloadRequest` - Request model for asset downloads |
| 41 | +- `StreamingConfig` - Configuration for streaming behavior |
| 42 | +- `CacheConfig` - Cache size and policy configuration |
| 43 | +- Event streams for download progress and completion |
| 44 | + |
| 45 | +**Integration:** |
| 46 | +- Seamless integration with `gameframework` core package |
| 47 | +- Compatible with Unity Addressables workflow |
| 48 | +- Works with GameFramework Cloud CDN |
| 49 | +- Platform-agnostic implementation |
| 50 | + |
| 51 | +#### Technical Specifications |
| 52 | + |
| 53 | +**Dependencies:** |
| 54 | +```yaml |
| 55 | +dependencies: |
| 56 | + gameframework: ^0.0.1 |
| 57 | + http: ^1.2.0 |
| 58 | + path_provider: ^2.1.1 |
| 59 | + crypto: ^3.0.3 |
| 60 | + connectivity_plus: ^6.0.0 |
| 61 | +``` |
| 62 | +
|
| 63 | +**Supported Platforms:** |
| 64 | +- Android (API 21+) |
| 65 | +- iOS (12.0+) |
| 66 | +- macOS (10.14+) |
| 67 | +- Windows (10+) |
| 68 | +- Linux (Ubuntu 20.04+) |
| 69 | +- Web (with limitations) |
| 70 | +
|
| 71 | +#### Usage Example |
| 72 | +
|
| 73 | +```dart |
| 74 | +import 'package:gameframework_stream/gameframework_stream.dart'; |
| 75 | + |
| 76 | +// Initialize streaming manager |
| 77 | +final manager = StreamingAssetManager( |
| 78 | + config: StreamingConfig( |
| 79 | + baseUrl: 'https://cdn.gameframework.cloud', |
| 80 | + maxCacheSizeMB: 500, |
| 81 | + enableBackgroundDownloads: true, |
| 82 | + ), |
| 83 | +); |
| 84 | + |
| 85 | +// Download an asset |
| 86 | +await manager.downloadAsset( |
| 87 | + AssetDownloadRequest( |
| 88 | + assetId: 'level_001', |
| 89 | + bundleName: 'levels.bundle', |
| 90 | + ), |
| 91 | + onProgress: (progress) { |
| 92 | + print('Download progress: ${progress * 100}%'); |
| 93 | + }, |
| 94 | +); |
| 95 | + |
| 96 | +// Load downloaded asset |
| 97 | +final assetPath = await manager.getAssetPath('level_001'); |
| 98 | +``` |
| 99 | + |
| 100 | +#### Features |
| 101 | + |
| 102 | +**Quality Adaptation:** |
| 103 | +- Automatic quality selection based on network speed |
| 104 | +- Manual quality override options |
| 105 | +- Progressive quality enhancement |
| 106 | + |
| 107 | +**Download Management:** |
| 108 | +- Priority-based download queue |
| 109 | +- Pause/resume support |
| 110 | +- Background download capability |
| 111 | +- Batch download operations |
| 112 | + |
| 113 | +**Error Handling:** |
| 114 | +- Automatic retry with exponential backoff |
| 115 | +- Network error recovery |
| 116 | +- Disk space monitoring |
| 117 | +- Graceful degradation |
| 118 | + |
| 119 | +**Monitoring:** |
| 120 | +- Real-time download progress |
| 121 | +- Cache utilization metrics |
| 122 | +- Network bandwidth usage |
| 123 | +- Download history tracking |
| 124 | + |
| 125 | +#### Breaking Changes |
| 126 | + |
| 127 | +None - Initial release. |
| 128 | + |
| 129 | +#### Known Limitations |
| 130 | + |
| 131 | +- Web platform has limited cache persistence |
| 132 | +- Background downloads require platform-specific permissions |
| 133 | +- Maximum concurrent downloads: 3 (configurable) |
| 134 | + |
| 135 | +--- |
| 136 | + |
| 137 | +## [Unreleased] |
| 138 | + |
| 139 | +### Planned Features |
| 140 | + |
| 141 | +**v0.1.0 - Enhanced Streaming:** |
| 142 | +- Differential asset updates |
| 143 | +- P2P asset sharing (experimental) |
| 144 | +- Advanced prefetching strategies |
| 145 | +- Custom CDN integrations |
| 146 | + |
| 147 | +**v0.2.0 - Analytics:** |
| 148 | +- Detailed streaming analytics |
| 149 | +- User behavior insights |
| 150 | +- Performance profiling |
| 151 | +- A/B testing support |
| 152 | + |
| 153 | +**v0.3.0 - Advanced Features:** |
| 154 | +- Multi-CDN failover |
| 155 | +- Regional content delivery |
| 156 | +- Asset version management |
| 157 | +- Content encryption support |
| 158 | + |
| 159 | +**v1.0.0 - Production Release:** |
| 160 | +- Complete documentation |
| 161 | +- Production performance benchmarks |
| 162 | +- Enterprise features |
| 163 | +- SLA guarantees |
| 164 | + |
| 165 | +--- |
| 166 | + |
| 167 | +## Links |
| 168 | + |
| 169 | +- [GitHub Repository](https://github.com/xraph/gameframework) |
| 170 | +- [Issue Tracker](https://github.com/xraph/gameframework/issues) |
| 171 | +- [pub.dev Package](https://pub.dev/packages/gameframework_stream) |
| 172 | + |
| 173 | +--- |
| 174 | + |
| 175 | +**Last Updated:** 2026-02-06 |
0 commit comments