README help you read stories and articles in an clear and enhanced 'Reader' view, make reading more enjoyable.
README aims to be an easy to use and simple read client, with features such as sync feeds from Hacker News(https://news.ycombinator.com), read in a clear safari readers view and share via social networks.
You can read news on:
-
Hacker News topics
- New Stories
- Top Stories
- Best Stories
- Ask Stories
- Show Stories
- Job Stories
-
Article links on Hacker News(HN) are submitted by HN users. Your should follow HN guidelines to use its data: https://news.ycombinator.com/newsguidelines.html
The minimum requirements to use this template are XCode 9 and RubyMotion 5.0.
Keep in mind that if you've recently upgraded from a previous versions
of XCode or RubyMotion, you'll want to run rake clean:all
as opposed
to just rake clean
.
To build using the default simulator, run: rake
(alias rake simulator
).
To run on a specific type of simulator. You can run rake simulator device_name="SIMULATOR"
. Here is a list of simulators available:
- `rake simulator device_name='iPhone 5s'
- `rake simulator device_name='iPhone 8 Plus'
- `rake simulator device_name='iPhone 8 Plus'
- `rake simulator device_name='iPhone X'
- `rake simulator device_name='iPad Pro (9.7-inch)'
- `rake simulator device_name='iPad Pro (10.5-inch)'
- `rake simulator device_name='iPad Pro (12.9-inch)'
Consider using https://github.com/KrauseFx/xcode-install (and other parts of FastLane) to streamline management of simulators, certificates, and pretty much everything else.
So, for example, you can run rake simulator device_name='iPhone X'
to see what your app would look like on iPhone X.
To deploy to the App Store, you'll want to use rake clean archive:distribution
. With a valid distribution certificate.
In your Rakefile
, set the following values:
#This is only an example, the location where you store your provisioning profiles is at your discretion.
app.codesign_certificate = "iPhone Distribution: xxxxx" #This is only an example, you certificate name may be different.
#This is only an example, the location where you store your provisioning profiles is at your discretion.
app.provisioning_profile = './profiles/distribution.mobileprovision'
For TestFlight builds, you'll need to include the following line (still using the distribution certificates):
app.entitlements['beta-reports-active'] = true
As of iOS 11, Apple requires the use of Asset Catalogs for defining
icons and launch screens. You'll find icon and launch screen templates
under ./resources/Assets.xcassets
. You can run the following script
to generate all the icon sizes (once you've specified 1024x1024.png
).
Keep in mind that your .png
files cannot contain alpha channels.
Save this following script to ./gen-icons.sh
and run it:
set -x
brew install imagemagick
pushd resources/Assets.xcassets/AppIcon.appiconset/
cp 1024x1024.png "[email protected]"
cp 1024x1024.png "[email protected]"
cp 1024x1024.png "[email protected]"
cp 1024x1024.png "[email protected]"
cp 1024x1024.png "[email protected]"
cp 1024x1024.png "[email protected]"
cp 1024x1024.png "[email protected]"
cp 1024x1024.png "[email protected]"
cp 1024x1024.png "20x20~ipad.png"
cp 1024x1024.png "[email protected]"
cp 1024x1024.png "29x29~ipad.png"
cp 1024x1024.png "[email protected]"
cp 1024x1024.png "40x40~ipad.png"
cp 1024x1024.png "[email protected]"
cp 1024x1024.png "76x76~ipad.png"
cp 1024x1024.png "[email protected]"
cp 1024x1024.png "[email protected]"
mogrify -resize 40x40 "[email protected]"
mogrify -resize 60x60 "[email protected]"
mogrify -resize 58x58 "[email protected]"
mogrify -resize 87x87 "[email protected]"
mogrify -resize 80x80 "[email protected]"
mogrify -resize 120x120 "[email protected]"
mogrify -resize 120x120 "[email protected]"
mogrify -resize 180x180 "[email protected]"
mogrify -resize 20x20 "20x20~ipad.png"
mogrify -resize 40x40 "[email protected]"
mogrify -resize 29x29 "29x29~ipad.png"
mogrify -resize 58x58 "[email protected]"
mogrify -resize 40x40 "40x40~ipad.png"
mogrify -resize 80x80 "[email protected]"
mogrify -resize 76x76 "76x76~ipad.png"
mogrify -resize 152x152 "[email protected]"
mogrify -resize 167x167 "[email protected]"
popd
pushd resources/Assets.xcassets/LaunchImage.launchimage/
cp 1242x2205.png "[email protected]"
cp 1242x2205.png "[email protected]"
cp 1242x2205.png "[email protected]"
cp 1242x2205.png "[email protected]"
cp 1242x2205.png "[email protected]"
cp 1242x2205.png "[email protected]"
cp 1242x2205.png "Default-ipad.png"
cp 1242x2205.png "[email protected]"
cp 1242x2205.png "Default.png"
mogrify -resize 1125x2436 "[email protected]"
mogrify -resize 750x1334 "[email protected]"
mogrify -resize 1242x2208 "[email protected]"
mogrify -resize 640x1136 "[email protected]"
mogrify -resize 750x1334 "[email protected]"
mogrify -resize 1242x2208 "[email protected]"
mogrify -resize 768x1024 "Default-ipad.png"
mogrify -resize 1536x2048 "[email protected]"
mogrify -resize 640x960 "Default.png"
popd
For more information about Asset Catalogs, refer to this link: https://developer.apple.com/library/content/documentation/Xcode/Reference/xcode_ref-Asset_Catalog_Format/