{"id":16558227,"url":"https://github.com/jaredsburrows/android-bazel-java-app-template","last_synced_at":"2025-03-23T13:32:39.363Z","repository":{"id":34034550,"uuid":"164176510","full_name":"jaredsburrows/android-bazel-java-app-template","owner":"jaredsburrows","description":"Gradle + Android Studio + Robolectric + Espresso + Mockito + EasyMock/PowerMock + JaCoCo","archived":false,"fork":false,"pushed_at":"2024-10-24T18:37:20.000Z","size":517,"stargazers_count":17,"open_issues_count":6,"forks_count":5,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-18T20:54:08.203Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jaredsburrows.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":"2019-01-05T03:00:52.000Z","updated_at":"2023-07-01T22:10:06.000Z","dependencies_parsed_at":"2024-10-28T16:27:32.821Z","dependency_job_id":null,"html_url":"https://github.com/jaredsburrows/android-bazel-java-app-template","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaredsburrows%2Fandroid-bazel-java-app-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaredsburrows%2Fandroid-bazel-java-app-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaredsburrows%2Fandroid-bazel-java-app-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaredsburrows%2Fandroid-bazel-java-app-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jaredsburrows","download_url":"https://codeload.github.com/jaredsburrows/android-bazel-java-app-template/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245108319,"owners_count":20562021,"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":"2024-10-11T20:09:59.190Z","updated_at":"2025-03-23T13:32:38.889Z","avatar_url":"https://github.com/jaredsburrows.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Android Bazel Java App Template \n\n[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](http://www.apache.org/licenses/LICENSE-2.0)\n[![Build](https://github.com/jaredsburrows/android-bazel-java-app-template/actions/workflows/build.yml/badge.svg)](https://github.com/jaredsburrows/android-bazel-java-app-template/actions/workflows/build.yml)\n[![Twitter Follow](https://img.shields.io/twitter/follow/jaredsburrows.svg?style=social)](https://twitter.com/jaredsburrows)\n\nBazel + Android Studio + Robolectric + Espresso + Mockito + EasyMock/PowerMock\n\n## Technologies used:\n#### Build Tools:\n| Name                                                                                     | Description          |\n|------------------------------------------------------------------------------------------|----------------------|\n| [Bazel](https://bazel.build)                                                             | Bazel build system   |\n| [Android SDK](http://developer.android.com/tools/revisions/platforms.html#5.1)           | Official SDK         |\n| [Android SDK Build Tools](http://developer.android.com/tools/revisions/build-tools.html) | Official Build Tools |\n| [Android Studio](http://tools.android.com/recent) or                                     | Official IDE         |\n| [Intellij](https://www.jetbrains.com/idea/download/)                                     | Intellij IDE         |\n\n#### Testing Frameworks:\n| Name                                                                  | Description               |\n|-----------------------------------------------------------------------|---------------------------|\n| [Espresso](https://google.github.io/android-testing-support-library/) | Instrumentation Framework |\n| [Robolectric](https://github.com/robolectric/robolectric)             | Unit Testing Framework    |\n\n# Getting Started:\n## `Android Studio` or `Intellij` Support (Simple):\n- **Import/Open this project with Android Studio/Intellij**\n  1. Install the [Bazel plugin](https://ij.bazel.build/).\n  1. In the project selection dialog, click \"Import Bazel Project\".\n  1. For the project view, select \"Create from scratch\".\n  1. Click \"Finish\".\n\n## Building and Running\n\nThis project builds with [Bazel](https://bazel.build), Bazel's [Android\nrules](https://docs.bazel.build/versions/master/be/android.html), and the\nAndroid Build [tools](http://tools.android.com/tech-docs/new-build-system).\n\n**Build the APK:**\n\n    $ bazel build //src/main:template_app\n\n**Install the APK:**\n\n    $ bazel mobile-install //src/main:template_app\n    \nor:\n\n    $ bazel build //src/main:template_app \u0026\u0026 adb install bazel-bin/src/main/template_app.apk\n\n**Run the App:**\n\n    $ bazel mobile-install //src/main:template_app --start_app\n\n\u003e *Note:* Expect the first build to take a few minutes, depending on your\n\u003e machine, because Bazel's cache is clean. After Bazel downloads and builds the\n\u003e app once, subsequent builds will be much faster.\n\n## Testing\n\n**Running the Unit Tests:**\n\nThe [Junit](http://junit.org/junit4/) and\n[Robolectric](https://github.com/robolectric/robolectric) tests run on the JVM,\nno need for emulators or real devices.\n\n    $ bazel test //src/test:all\n\n**Run a single unit test (`android_local_test`):**\n\n    $ bazel test //src/test:play_services_utils_test\n\n**Get the list of all `android_local_test` targets:**\n\n    $ bazel query 'kind(android_local_test, //src/test/...)'\n\n**Running the Instrumentation Tests:**\n\nThe\n[Espresso](https://developer.android.com/training/testing/ui-testing/espresso-testing.html)\ninstrumentation tests run on the device. There is no need to launch an emulator,\nBazel will do it automatically as part of the instrumentation test.\n\nThis is currently only supported on Linux.\n\n    $ bazel test //src/androidTest:main_activity_test\n    \nRead the [Bazel docs\nhere](https://docs.bazel.build/versions/master/android-instrumentation-test.html).\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaredsburrows%2Fandroid-bazel-java-app-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjaredsburrows%2Fandroid-bazel-java-app-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaredsburrows%2Fandroid-bazel-java-app-template/lists"}