Add cxyz Android project structure and initial configuration

- Introduced a new Flutter project for the cxyz Android manga/comic reader, including essential files such as pubspec.yaml, AndroidManifest.xml, and Gradle configuration.
- Added .gitignore files to exclude unnecessary files and directories for both the main project and Android-specific files.
- Implemented initial README.md with project description, features, setup instructions, and API details for ComicLand, MangaRead, and MangaTown.
- Configured analysis options and dependencies in pubspec.yaml to support Flutter development.
- Established a pnpm workspace and lockfile for dependency management.
- Included various Android resources such as icons, styles, and launch backgrounds for a complete application setup.
This commit is contained in:
2026-08-29 17:50:31 +07:00
parent 6e7f1ced35
commit a7c6058540
105 changed files with 16721 additions and 275 deletions
@@ -0,0 +1,21 @@
import 'package:flutter_test/flutter_test.dart';
import 'package:cxyz_android/sources/comicland/urls.dart';
void main() {
test('parseComicLandUrl extracts slug and chapter', () {
final parts = parseComicLandUrl(
'https://comicland.org/comic/the-delinquent-girl/chapter/12',
);
expect(parts.slug, 'the-delinquent-girl');
expect(parts.chapterIndex, '12');
});
test('transferLinkBasename pads chapter numbers', () {
expect(transferLinkBasename('12', 'Chapter 12', null), 'chapter 012.cbz');
expect(transferLinkBasename('1.5', null, null), 'chapter 001.5.cbz');
});
test('sanitizeComicDirName strips illegal chars', () {
expect(sanitizeComicDirName('A/B:C*'), 'ABC');
});
}