{"id":24902986,"url":"https://github.com/paulcoding810/android-tools","last_synced_at":"2025-03-27T19:30:03.626Z","repository":{"id":274420625,"uuid":"922102067","full_name":"paulcoding810/android-tools","owner":"paulcoding810","description":null,"archived":false,"fork":false,"pushed_at":"2025-02-18T16:36:46.000Z","size":118,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-18T17:30:13.491Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://central.sonatype.com/artifact/com.paulcoding/androidtools","language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/paulcoding810.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-01-25T10:20:16.000Z","updated_at":"2025-02-18T16:36:47.000Z","dependencies_parsed_at":"2025-02-18T17:35:16.539Z","dependency_job_id":null,"html_url":"https://github.com/paulcoding810/android-tools","commit_stats":null,"previous_names":["paulcoding810/android-tools"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paulcoding810%2Fandroid-tools","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paulcoding810%2Fandroid-tools/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paulcoding810%2Fandroid-tools/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paulcoding810%2Fandroid-tools/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/paulcoding810","download_url":"https://codeload.github.com/paulcoding810/android-tools/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245910566,"owners_count":20692467,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-02-01T22:18:21.166Z","updated_at":"2025-03-27T19:30:03.617Z","avatar_url":"https://github.com/paulcoding810.png","language":"Kotlin","readme":"# AndroidTools\n\n[![Maven Central](https://img.shields.io/maven-central/v/com.paulcoding/androidtools.svg)](https://central.sonatype.com/artifact/com.paulcoding/androidtools)\n\nA collection of utility functions and extensions for Android development.\n\n## Installation\n\nAdd the dependency to your app's build.gradle:\n\n```groovy\nimplementation(\"com.paulcoding:androidtools:1.0.0\")\n```\n\n## Usage\n\nInitialize AndroidTools in your Application class:\n\n```kotlin\nAndroidTools.initialize(context) {\n    enableLogging = true // Optional, default is true\n    enableCrashReporting = true // Optional, default is true\n}\n```\n\n### Features\n\n#### Logging\n```kotlin\nlog(\"Your message\") // Prints formatted log message\nsomeValue.alsoLog() // Logs value and returns it\n```\n\n#### File Operations\n```kotlin\ncontext.readFile(\"path/to/file.txt\") // Read text file\ncontext.readJSONFile\u003cYourDataClass\u003e(\"data.json\") // Read and parse JSON file\n```\n\n#### Toast Messages\n```kotlin\nmakeToast(\"Message\") // Show short toast\nmakeToast(R.string.message) // Show toast from string resource\n```\n\n#### Navigation\n```kotlin\n// Animated navigation composable with fade transitions\nNavGraphBuilder.animatedComposable(\n    route = \"route\",\n    content = { /* Your composable content */ }\n)\n```\n\n#### App Info\n```kotlin\ngetAppName(context) // Get application name\ncontext.getSignature() // Get app signature details\n```\n\n#### Extensions\n\nActivity Extensions:\n```kotlin\nwindow.setSecureScreen(true) // Enable/disable secure screen\n```\n\nContext Extensions:\n```kotlin\ncontext.openInBrowser(\"https://example.com\") // Open URL in browser\n```\n\nList Extensions:\n```kotlin\nlazyListState.isScrolledToEnd() // Check if LazyList is at the end\nlazyListState.isScrollingUp() // Observe scroll direction\n```\n\nString Extensions:\n```kotlin\n\"hello\".toCapital() // Capitalize first letter\n\"text\".toInputStream() // Convert string to InputStream\n```\n\n## License\n\n[MIT](LICIENSE)\n\n## Contributing\n\nPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpaulcoding810%2Fandroid-tools","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpaulcoding810%2Fandroid-tools","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpaulcoding810%2Fandroid-tools/lists"}