• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

zulip / zulip-mobile / 6479
47%

Build:
DEFAULT BRANCH: master
Ran 30 Jul 2018 10:52AM UTC
Jobs 1
Files 360
Run time 31s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
6479

push

travis-ci

gnprice
android: Fool rn-cli into starting the right app.

Our purpose here is to make just plain `react-native run-android`
do the right thing again, rather than have to tell everyone to
pass `--appIdSuffix=debug` or something equivalently nonobvious
now that we set the application ID of debug builds to
`com.zulipmobile.debug`.

The reason this doesn't work in the first place is that the RN CLI
is using a silly heuristic to figure out the ID of our app, which
gets it wrong here.  See the code:
  https://github.com/facebook/react-native/blob/46ffb1062/local-cli/runAndroid/runAndroid.js#L111

The piece of this code that does the main work is that line with
`package=` in a comment at the top of the manifest source file.
This exploits the same silly heuristic's limitations to tell it
the right answer.  Because it's in an XML comment, none of the
real build process notices or is affected.

But then fixing that causes it to make an assumption in turn about
the name of our main activity, and try to pass an intent filter
like `com.zulipmobile.debug/com.zulipmobile.debug.MainActivity`
to `am start -n`.

So we add a sort of alias to make that name work.

[greg: squashed fixup commits in; revised commit message;
 added comments in manifest.]

990 of 2048 branches covered (48.34%)

Branch coverage included in aggregate %.

1904 of 3692 relevant lines covered (51.57%)

32.25 hits per line

Jobs
ID Job ID Ran Files Coverage
1 6479.1 (COVERALLS_REPO_TOKEN=4eYQDtWoBJlDz2QkxoQ2UcnmJFcOB7zkv) 30 Jul 2018 10:52AM UTC 0
50.42
Travis Job 6479.1
Source Files on build 6479
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #6479
  • 0d16b604 on github
  • Prev Build on master (#3284)
  • Next Build on master (#6481)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc