Git Product home page Git Product logo

ios-bazel's Introduction

ios-bazel

Demo iOS app with React Native using Bazel as build system.

Motivation

I was working in an ios app facing a lot of issues related to the native build system, it was hard to add new modules and the build time was terrible. Then I realized that exists other build system options that could help me to solve these issues.

I did start with Buck but after setup all the project using it, at that time I was not able to compile React Native dependencies. It happens because using a new build system implies that you have to create build rules for all your dependencies. It is really hard to compile react-native dependencies one by one since these dependencies are not just Swift or Obj-C frameworks/libraries.

Finally the Buck docs and community are not so large then I ended up having to try a different option.

After Buck attempt I found Bazel. Some important things like community support, docs and a lot of extensions made me give it a chance. But setting up all my project again I had the same issue using Buck, build all React Native dependencies.

Thinking how can I overcome this problem without having to maintain build rules to all React Native dependencies, I ended up using pre-compiled static libraries built with Xcode.

Here is the demo app I built using pre-compiled React Native libraries linked to a Swift based app using Bazel build system.

Building

bazel build //app:BazelAppSwift

Running in iOS Simulator

bazel run //app:BazelAppSwift

ios-bazel's People

Contributors

josuesasilva avatar

Stargazers

 avatar Dave Lyon avatar Jônatas avatar

Watchers

James Cloos avatar

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.