Giter Site home page Giter Site logo

readom / pfwebviewcontroller Goto Github PK

View Code? Open in Web Editor NEW

This project forked from perfectfreeze/pfwebviewcontroller

0.0 0.0 0.0 37.21 MB

A light-weight webview controller using WKWebView. Support Safari-like reader mode.

License: MIT License

HTML 17.88% JavaScript 64.87% Objective-C 14.11% Ruby 3.14%

pfwebviewcontroller's Introduction

Readom - Random TOP Hacker News Build Status

FOSSA Status

README iOS App

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

Minimum Requirements

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.

Build

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.

Deploying to the App Store

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

Icons

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

Launch Images

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/

License

FOSSA Status

pfwebviewcontroller's People

Watchers

 avatar  avatar  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.