Giter Site home page Giter Site logo

manniru / now-mobile Goto Github PK

View Code? Open in Web Editor NEW

This project forked from rdev/now-mobile

0.0 1.0 0.0 12.92 MB

Mobile client for ZEIT Now platform

Home Page: https://mobile.now.sh

Python 0.82% Java 1.43% JavaScript 75.98% Ruby 0.21% Swift 18.59% Objective-C 2.97%

now-mobile's Introduction

logo

About

This is the repo of a mobile app for ZEIT's Now platform built with React Native.

Contributing

If you want to contribute, here's how to work with the project:

  • Make sure you have React Native installed (npm install -g react-native-cli)
  • Clone the repo
  • Run npm install or yarn
  • Run react-native start to start the packager
  • Run react-native run-ios to start the app in the simulator

Swifty parts

Today extensions and Apple Watch companion app are built with Swift. Why? Well, for the Watch it's not possible to use React Native. As for Today widgets, while it is possible to build Today widgets with React Native, iOS puts an insane memory limit of 16MB on Today extensions, most of which will be eaten up by RN and I didn't want to worry about it. Also it was all part of my ongoing effort to learn Swift ๐Ÿ™ˆ

Swift <-> JS

All the necessary data is still passed to extensions from JS, but the extensions themselves are native. Today widgets use Shared App Groups and Watch uses Watch Connectivity to pass authentication data to the Watch.

CocoaPods and .xcworkspace

Watch app uses CocoaPods, so if you want to launch the app from Xcode, you should use the .xcworkspace instead of .xcproject to open the project.

Bugs

There's most likely a bunch of them, especially in Swift sections since I don't know Swift that well. If you find any, please report them and they shall be fixed. Also contributions are very welcome :)

TODO

  • Deployment details screen on tap
  • Cache latest state and show it on startup before loading from network. This is already beind done on the Watch so it's only fair main app has it
  • Simplify Provider component (?)
  • Flow types improvements
  • Android version. It's basically good to go but there's gonna be mandatory Android bugs to sort out
  • Today extension auth handling
  • Tests
  • Fastlane (?)

Landing page

Code for mobile.now.sh is available here.

Disclamer

This is not an official ZEIT software.

It just uses ZEIT's APIs, some of which is copied from Now Desktop and isn't documented on the official website.

If you have any questions or issues with this app, please don't bug people of ZEIT about it and just file an issue on this repo.

now-mobile's People

Contributors

rdev avatar

Watchers

 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.