{"id":29220143,"url":"https://github.com/blundell/aicoreminsdktemplate","last_synced_at":"2026-04-22T21:33:27.661Z","repository":{"id":281737412,"uuid":"946259802","full_name":"blundell/AICoreMinSdkTemplate","owner":"blundell","description":"AICore has minSDK 31, this template shows how to use it in a lower minSDK Android app","archived":false,"fork":false,"pushed_at":"2025-03-10T21:43:15.000Z","size":103,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-26T01:08:41.537Z","etag":null,"topics":["ai","androiddev","gemini-api","mediapipe"],"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/blundell.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":"2025-03-10T21:33:38.000Z","updated_at":"2025-03-13T14:23:21.000Z","dependencies_parsed_at":"2025-03-10T22:39:45.703Z","dependency_job_id":null,"html_url":"https://github.com/blundell/AICoreMinSdkTemplate","commit_stats":null,"previous_names":["blundell/aicoreminsdktemplate"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/blundell/AICoreMinSdkTemplate","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blundell%2FAICoreMinSdkTemplate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blundell%2FAICoreMinSdkTemplate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blundell%2FAICoreMinSdkTemplate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blundell%2FAICoreMinSdkTemplate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/blundell","download_url":"https://codeload.github.com/blundell/AICoreMinSdkTemplate/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blundell%2FAICoreMinSdkTemplate/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263248815,"owners_count":23437095,"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":["ai","androiddev","gemini-api","mediapipe"],"created_at":"2025-07-03T02:38:03.210Z","updated_at":"2026-04-22T21:33:27.616Z","avatar_url":"https://github.com/blundell.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"#### AICore has minSDK 31, this template shows how to use it in a lower minSDK Android app\n\n- The app module is minSDK 29\n\n- The gemini module is minSDK 31\n\nNormally you would get a manifest merger error:\n\n```\nManifest merger failed : uses-sdk:minSdkVersion 29 cannot be smaller than version 31 declared in library [:gemini] /MyApplication/gemini/build/intermediates/merged_manifest/debug/processDebugManifest/AndroidManifest.xml as the library might be using APIs not available in 29\n\tSuggestion: use a compatible library with a minSdk of at most 29,\n\t\tor increase this project's minSdk version to at least 31,\n\t\tor use tools:overrideLibrary=\"com.blundell.tut.gemini\" to force usage (may lead to runtime failures)\n```\n\nThis example uses `tools:overrideLibrary` in combination with a SDK version check in the gemini module, to allow you to test out AICore in\nan application that has a lower minSDK that Gemini AICore requires.\n\n- Inside of `gemini/src/main/java/com/blundell/tut/gemini/SecondViewModel.kt` there is an SDK atLeast check.\n- The `:gemini` module navigational composable checks with the ViewModel before proceeding to the UI.\n- `androidx.navigation.compose.NavHost` is used in the `MainActivity` to navigate between the two modules composables.\n\nWe will either show the `SecondScreen` or show a `NoAccessScreen`:\n\n```kotlin\n@Composable\nfun SecondComposable(viewModel: SecondViewModel = viewModel()) {\n    val accessible = remember { viewModel.onRequestAccess() }\n    if (accessible) {\n        val state by viewModel.state.collectAsState()\n        SecondScreen(state) {\n            viewModel.onSubmit(it)\n        }\n    } else {\n        NoAccessScreen()\n    }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblundell%2Faicoreminsdktemplate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fblundell%2Faicoreminsdktemplate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblundell%2Faicoreminsdktemplate/lists"}