now-mobile

Mobile client for ZEIT Now platform

  • 所有者: rdev/now-mobile
  • 平台:
  • 許可證:
  • 分類:
  • 主題:
  • 喜歡:
    0
      比較:

Github星跟蹤圖

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.

主要指標

概覽
名稱與所有者rdev/now-mobile
主編程語言JavaScript
編程語言Python (語言數: 6)
平台
許可證
所有者活动
創建於2018-06-17 18:11:44
推送於2021-08-11 04:26:28
最后一次提交2019-02-10 18:16:18
發布數0
用户参与
星數206
關注者數4
派生數13
提交數74
已啟用問題?
問題數22
打開的問題數3
拉請求數13
打開的拉請求數15
關閉的拉請求數8
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?