{"id":20881467,"url":"https://github.com/js-bhavyansh/deeplinking","last_synced_at":"2026-04-19T20:38:09.962Z","repository":{"id":243390858,"uuid":"812235065","full_name":"js-bhavyansh/DeepLinking","owner":"js-bhavyansh","description":"Implementing deep linking in an Android app using Jetpack Compose and Kotlin, allowing users to enter the app through browser links.","archived":false,"fork":false,"pushed_at":"2024-06-08T14:01:53.000Z","size":107,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-19T10:08:05.642Z","etag":null,"topics":["android","android-application","deeplink-navigation","deeplinking","jetpack-compose","jetpackcompose","kotlin"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/js-bhavyansh.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2024-06-08T10:13:56.000Z","updated_at":"2024-06-10T09:43:33.000Z","dependencies_parsed_at":"2024-06-08T15:22:16.090Z","dependency_job_id":"79be2329-5ee1-4d61-8562-44f5d160f64b","html_url":"https://github.com/js-bhavyansh/DeepLinking","commit_stats":null,"previous_names":["bhavyansh03-tech/deeplinking","js-bhavyansh/deeplinking"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/js-bhavyansh%2FDeepLinking","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/js-bhavyansh%2FDeepLinking/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/js-bhavyansh%2FDeepLinking/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/js-bhavyansh%2FDeepLinking/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/js-bhavyansh","download_url":"https://codeload.github.com/js-bhavyansh/DeepLinking/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243258498,"owners_count":20262300,"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":["android","android-application","deeplink-navigation","deeplinking","jetpack-compose","jetpackcompose","kotlin"],"created_at":"2024-11-18T07:24:58.089Z","updated_at":"2025-12-24T20:17:42.121Z","avatar_url":"https://github.com/js-bhavyansh.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Deep Linking with Jetpack Compose in Android\n\nThis repository demonstrates the implementation of deep linking in an Android application using Jetpack Compose and Kotlin. With this functionality, users can enter the app through links entered in their browser.\n\n## Features\n\n- **Deep Linking**: Seamlessly navigate to specific parts of the app using browser links.\n- **Jetpack Compose**: Utilizes Jetpack Compose for modern, declarative UI design.\n- **Kotlin**: Written entirely in Kotlin, leveraging its powerful features for Android development.\n\n\n## Screenshots\n\n\u003cdiv style=\"display: flex; justify-content: center; align-items: center;\"\u003e\n    \u003cimg src=\"https://github.com/Bhavyansh03-tech/DeepLinking/assets/96388594/fdd29ba7-a7d4-418e-86f7-14ad2d0b6630\" alt=\"Web Browser\" style=\"width: 200px; height: auto; margin-right: 10px;\"\u003e\n    \u003cimg src=\"https://github.com/Bhavyansh03-tech/DeepLinking/assets/96388594/f706a057-5275-418e-95b6-183c322cb6de\" alt=\"Application\" style=\"width: 200px; height: auto;\"\u003e\n\u003c/div\u003e\n\n\n## Getting Started\n\n### Installation\n\n1. **Clone the repository**:\n    ```sh\n    git clone https://github.com/Bhavyansh03-tech/DeepLinking.git\n    ```\n2. **Open the project in Android Studio**:\n    - File \u003e Open \u003e Select the cloned project directory.\n\n3. **Build the project**:\n    - Ensure that the necessary dependencies are downloaded and configured by building the project via Build \u003e Make Project.\n\n### Usage\n\n1. **Define Deep Links**:\n    - Deep links are defined in the `AndroidManifest.xml` file under the activity declaration or through `Tools \u003e ApplicationLinkAssistance \u003e Create or add Link to it and then Test it`.\n    ```xml\n    \u003cactivity\n            android:name=\".MainActivity\"\n            android:exported=\"true\"\n            android:theme=\"@style/Theme.DeepLinking\"\u003e\n            \u003ctools:validation testUrl=\"https://www.xiver.com\" /\u003e\n\n            \u003cintent-filter\u003e\n                \u003caction android:name=\"android.intent.action.MAIN\" /\u003e\n\n                \u003ccategory android:name=\"android.intent.category.LAUNCHER\" /\u003e\n            \u003c/intent-filter\u003e\n            \u003cintent-filter android:autoVerify=\"true\"\u003e\n                \u003caction android:name=\"android.intent.action.VIEW\" /\u003e\n\n                \u003ccategory android:name=\"android.intent.category.DEFAULT\" /\u003e\n                \u003ccategory android:name=\"android.intent.category.BROWSABLE\" /\u003e\n\n                \u003cdata android:scheme=\"https\" /\u003e\n                \u003cdata android:host=\"www.xiver.com\" /\u003e\n            \u003c/intent-filter\u003e\n        \u003c/activity\u003e\n    ```\n\n2. **Handle Deep Links in Compose**:\n    - Use `NavHost` and `NavController` to handle navigation in Jetpack Compose based on the deep link.\n\n    ```kotlin\n    class MainActivity : ComponentActivity() {\n    override fun onCreate(savedInstanceState: Bundle?) {\n        super.onCreate(savedInstanceState)\n        enableEdgeToEdge()\n        setContent {\n            DeepLinkingTheme {\n                val navController = rememberNavController()\n\n                val uri = \"https://www.xiver.com\"\n\n                NavHost(\n                    navController = navController,\n                    startDestination = \"home\"\n                ){\n\n                    composable(\n                        route = \"home\",\n                        deepLinks = listOf(\n                            navDeepLink {\n                                uriPattern = \"$uri/{id}\"\n                            }\n                        )\n                    ){ backStackEntry -\u003e\n                        val id = backStackEntry.arguments?.getString(\"id\")\n\n                        Box(\n                            modifier = Modifier.fillMaxSize(),\n                            contentAlignment = Alignment.Center\n                        ){\n                            Text(text = id ?: \"No id passed\")\n                        }\n                    }\n\n                }\n            }\n        }\n    }\n}\n    ```\n\n3. **Testing Deep Links**:\n    - Open a browser and enter the URL that matches the deep link pattern defined in the manifest (e.g., `https://www.example.com/path?id=123`).\n\n### Project Structure\n\n- `MainActivity.kt`: The main entry point of the app.\n- `navigation/`: Contains navigation logic using Jetpack Compose.\n- `ui/`: Contains the composable functions and UI components.\n\n## Contributing\n\nContributions are welcome! Please fork the repository and use a feature branch. Pull requests are warmly welcome.\n\n1. Fork the repository\n2. Create your feature branch (`git checkout -b feature/AmazingFeature`)\n3. Commit your changes (`git commit -m 'Add some AmazingFeature'`)\n4. Push to the branch (`git push origin feature/AmazingFeature`)\n5. Open a pull request\n\n## Acknowledgements\n\n- Inspiration from various Android development tutorials and documentation.\n\n\n## Contact\n\nFor questions or feedback, please contact [@Bhavyansh03-tech](https://github.com/Bhavyansh03-tech).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjs-bhavyansh%2Fdeeplinking","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjs-bhavyansh%2Fdeeplinking","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjs-bhavyansh%2Fdeeplinking/lists"}