Skip to content

fstephany/bazel-blog-post

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sample project showing how to use Bazel to build iOS and Android apps using a monorepo.

Companion blog post: https://tulipemoutarde.be/posts/bazel-for-mobile-apps-part-1/

Usage

Android

Build the app:

$ bazel build //App-A-Android:AppA-Android

Install the app on a connected device:

$ bazel mobile-install //App-A-Android:AppA-Android

Install and launch the app on a connected device/emulator:

$ bazel mobile-install --start_app //App-A-Android:AppA-Android

Incremental build & run:

$ bazel mobile-install --incremental //App-A-Android:AppA-Android

Build the Lib-Android:

$ bazel build //Lib-Android

iOS

$ bazel build //AppA-iOS
$ bazel build //Lib-Swift:Lib_Swift
$ bazel build @Rx//:RxSwift
$ bazel build @Rx//:RxCocoa

To run the app, generate an XCode project with Tulsi.

About

Companion repo of Bazel Blog posts: https://tulipemoutarde.be/posts/bazel-for-mobile-apps-part-1/

Resources

Stars

Watchers

Forks

Packages

No packages published