Git Product home page Git Product logo

bazel-ios-templates's Introduction

bazel-ios-cover

About

Hello guys, this is example project how to migrating to Bazel with iOS application. If you want to know how it works and how to develop, please check the article

Requirements

To build and test the project you need the following dependencies:

  • Xcode 13.3 (or higher)
  • Bazel 5.0.0
  • Carthage 0.38.0

If you want to generate the Xcode project, you will need to install Tulsi. You will need to setup the environment with carthage before build any target. I've built a script to automatizate this:

$ make init BUNDLE_ID=com.myapp PROJECT_NAME=MyApp

$ make setup

Usage

Add another third-party

git submodule add https://github.com/Alamofire/Alamofire third-part/Alamofire/Sources

To build the iOS app and generate an IPA file you will run:

$ make build

If you want to test all targets on project run the following:

$ make test

To run the app on simulator from terminal you could exec:

$ make run

Xcode project generation

To generate the xcode project from terminal you need to run:

$ make project

This command generate a project on Develop environment, if you want to change it, you could run:

$ build-system/tulsigen build-system/tulsi/{PROJECT_NAME}Bazel.tulsiproj Production

Advanced usage

If you want to build a release version with Production envinronment you need pass the following options:

$ tools/bazelw build //{PROJECT_NAME}:{PROJECT_NAME} --config release --define envinronment=production

Maybe you need to config the ios_signing_cert_name on .bazelrc, and specify the provisioning_profile to handle the signing of the IPA file.

bazel-ios-templates's People

Contributors

chinhpn-2177 avatar kiyochinh avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

bazel-ios-templates's Issues

[Chore] Automation distribution

Why

  • Say no to manual when distributions a releases.
  • Can automation build on local with fastlane

Acceptance Criteria

  • CD pipeline is run automatic
  • CD pipeline run and build a version and distribution to Firebase
  • Fastlane build and distribution on local

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.