https://github.com/morfly/android-bazel-migration-sample
https://github.com/morfly/android-bazel-migration-sample
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/morfly/android-bazel-migration-sample
- Owner: Morfly
- Created: 2021-06-24T06:45:40.000Z (almost 4 years ago)
- Default Branch: automated_migration
- Last Pushed: 2021-11-22T02:11:21.000Z (over 3 years ago)
- Last Synced: 2025-01-10T10:33:41.492Z (5 months ago)
- Language: Kotlin
- Size: 3.39 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Android Bazel Migration Sample
Sample application for demonstrating the migration approaches of Android Gradle application to Bazel.
This repository consists of **3 branches**:
- **automated_migration**: contains a simple Gradle plugin that allows to automatically migrate Gradle
project to Bazel using.
- **manual_migration_1**: shows a manual migration to Bazel where each `BUILD.bazel` file corresponds to `build.gradle`.
- **manual_migration_granular**: That adds more build granularity to the `app` directory by adding more `BUILD.bazel`
files and targets per 1 Gradle module.
In order to start auto-migration run:
```shell
./gradlew migrateToBazel
```
In order to build Bazel project run:
```shell
bazel build //app:bin
```
In order to install and launch Bazel project to the mobile device run:
```shell
bazel mobile-install //app:bin --start_app
```