dab1425dea
### 🐛 Bug Fixes - Fix random crashes when switching video sources in settings management - Enhanced VodConfig.setHome() null pointer exception handling - Improved Fragment lifecycle checks to prevent crashes - Optimized HistoryDialog source switching safety - Enhanced thread safety for concurrent loading ### ⚡ Performance Improvements - Added automatic cache cleaning functionality - Improved memory usage optimization - Enhanced network request stability ### 🆕 New Features - Added comprehensive error handling mechanisms - Enhanced crash protection functionality - Improved Fragment state validation ### 📱 Build Improvements - Updated README with professional documentation - Enhanced build configuration for ARM64-V8A and ARM V7A - Improved APK packaging and signing process
26 lines
465 B
JavaScript
26 lines
465 B
JavaScript
function fail(message) {
|
|
if (message == null) {
|
|
throw Error("❌assert error.")
|
|
}
|
|
|
|
throw Error(message);
|
|
}
|
|
|
|
export function assertEquals(expected, actual) {
|
|
if (expected !== actual) {
|
|
fail(`❌assert failed, expected:[${expected}] but was:[${actual}]`)
|
|
}
|
|
}
|
|
|
|
export function assertTrue(condition) {
|
|
if (!condition) {
|
|
fail()
|
|
}
|
|
}
|
|
|
|
export function assertFalse(condition) {
|
|
if (condition) {
|
|
fail()
|
|
}
|
|
}
|