From a9ab68bfb1574eef3f25a6043a216146c265caf5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ji=C5=99=C3=AD=20Richter?= Date: Thu, 20 Dec 2018 06:25:17 +0100 Subject: [PATCH] add some vendors and layout --- .gitignore | 3 + 404.html | 24 ++++++ Gemfile | 31 ++++++++ Gemfile.lock | 78 ++++++++++++++++++++ _config.yml | 46 ++++++++++++ _includes/card-vendor-award.html | 7 ++ _includes/card-vendor.html | 6 ++ _includes/footer.html | 8 ++ _includes/head.html | 12 +++ _layouts/home.html | 46 ++++++++++++ _posts/2018-12-19-welcome-to-jekyll.markdown | 25 +++++++ _sass/main.scss | 37 ++++++++++ _vendors/htc.md | 6 ++ _vendors/huawei.md | 6 ++ _vendors/lg.md | 6 ++ _vendors/meizu.md | 6 ++ _vendors/nokia.md | 7 ++ _vendors/oneplus.md | 7 ++ _vendors/samsung.md | 6 ++ _vendors/sony.md | 6 ++ _vendors/stock_android.md | 6 ++ _vendors/unihertz.md | 6 ++ _vendors/xiaomi.md | 6 ++ about.md | 17 +++++ assets/css/style.scss | 5 ++ index.md | 6 ++ 26 files changed, 419 insertions(+) create mode 100644 .gitignore create mode 100644 404.html create mode 100644 Gemfile create mode 100644 Gemfile.lock create mode 100644 _config.yml create mode 100644 _includes/card-vendor-award.html create mode 100644 _includes/card-vendor.html create mode 100644 _includes/footer.html create mode 100644 _includes/head.html create mode 100644 _layouts/home.html create mode 100644 _posts/2018-12-19-welcome-to-jekyll.markdown create mode 100644 _sass/main.scss create mode 100644 _vendors/htc.md create mode 100644 _vendors/huawei.md create mode 100644 _vendors/lg.md create mode 100644 _vendors/meizu.md create mode 100644 _vendors/nokia.md create mode 100644 _vendors/oneplus.md create mode 100644 _vendors/samsung.md create mode 100644 _vendors/sony.md create mode 100644 _vendors/stock_android.md create mode 100644 _vendors/unihertz.md create mode 100644 _vendors/xiaomi.md create mode 100644 about.md create mode 100644 assets/css/style.scss create mode 100644 index.md diff --git a/.gitignore b/.gitignore new file mode 100644 index 00000000..45c15053 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +_site +.sass-cache +.jekyll-metadata diff --git a/404.html b/404.html new file mode 100644 index 00000000..c472b4ea --- /dev/null +++ b/404.html @@ -0,0 +1,24 @@ +--- +layout: default +--- + + + +
+

404

+ +

Page not found :(

+

The requested page could not be found.

+
diff --git a/Gemfile b/Gemfile new file mode 100644 index 00000000..df9378ea --- /dev/null +++ b/Gemfile @@ -0,0 +1,31 @@ +source "https://rubygems.org" + +# Hello! This is where you manage which Jekyll version is used to run. +# When you want to use a different version, change it below, save the +# file and run `bundle install`. Run Jekyll with `bundle exec`, like so: +# +# bundle exec jekyll serve +# +# This will help ensure the proper Jekyll version is running. +# Happy Jekylling! +gem "jekyll", "~> 3.8.5" + +# This is the default theme for new Jekyll sites. You may change this to anything you like. +gem "minima", "~> 2.0" + +# If you want to use GitHub Pages, remove the "gem "jekyll"" above and +# uncomment the line below. To upgrade, run `bundle update github-pages`. +# gem "github-pages", group: :jekyll_plugins + +# If you have any plugins, put them here! +group :jekyll_plugins do + gem "jekyll-feed", "~> 0.6" + gem 'hawkins' + +end + +# Windows does not include zoneinfo files, so bundle the tzinfo-data gem +gem "tzinfo-data", platforms: [:mingw, :mswin, :x64_mingw, :jruby] + +# Performance-booster for watching directories on Windows +gem "wdm", "~> 0.1.0" if Gem.win_platform? \ No newline at end of file diff --git a/Gemfile.lock b/Gemfile.lock new file mode 100644 index 00000000..d518b773 --- /dev/null +++ b/Gemfile.lock @@ -0,0 +1,78 @@ +GEM + remote: https://rubygems.org/ + specs: + addressable (2.5.2) + public_suffix (>= 2.0.2, < 4.0) + colorator (1.1.0) + concurrent-ruby (1.1.4) + em-websocket (0.5.1) + eventmachine (>= 0.12.9) + http_parser.rb (~> 0.6.0) + eventmachine (1.2.7) + ffi (1.9.25) + forwardable-extended (2.6.0) + hawkins (2.0.5) + em-websocket (~> 0.5) + jekyll (~> 3.1) + http_parser.rb (0.6.0) + i18n (0.9.5) + concurrent-ruby (~> 1.0) + jekyll (3.8.5) + addressable (~> 2.4) + colorator (~> 1.0) + em-websocket (~> 0.5) + i18n (~> 0.7) + jekyll-sass-converter (~> 1.0) + jekyll-watch (~> 2.0) + kramdown (~> 1.14) + liquid (~> 4.0) + mercenary (~> 0.3.3) + pathutil (~> 0.9) + rouge (>= 1.7, < 4) + safe_yaml (~> 1.0) + jekyll-feed (0.11.0) + jekyll (~> 3.3) + jekyll-sass-converter (1.5.2) + sass (~> 3.4) + jekyll-seo-tag (2.5.0) + jekyll (~> 3.3) + jekyll-watch (2.1.2) + listen (~> 3.0) + kramdown (1.17.0) + liquid (4.0.1) + listen (3.1.5) + rb-fsevent (~> 0.9, >= 0.9.4) + rb-inotify (~> 0.9, >= 0.9.7) + ruby_dep (~> 1.2) + mercenary (0.3.6) + minima (2.5.0) + jekyll (~> 3.5) + jekyll-feed (~> 0.9) + jekyll-seo-tag (~> 2.1) + pathutil (0.16.2) + forwardable-extended (~> 2.6) + public_suffix (3.0.3) + rb-fsevent (0.10.3) + rb-inotify (0.10.0) + ffi (~> 1.0) + rouge (3.3.0) + ruby_dep (1.5.0) + safe_yaml (1.0.4) + sass (3.7.2) + sass-listen (~> 4.0.0) + sass-listen (4.0.0) + rb-fsevent (~> 0.9, >= 0.9.4) + rb-inotify (~> 0.9, >= 0.9.7) + +PLATFORMS + ruby + +DEPENDENCIES + hawkins + jekyll (~> 3.8.5) + jekyll-feed (~> 0.6) + minima (~> 2.0) + tzinfo-data + +BUNDLED WITH + 1.17.2 diff --git a/_config.yml b/_config.yml new file mode 100644 index 00000000..1fe1d913 --- /dev/null +++ b/_config.yml @@ -0,0 +1,46 @@ +# Welcome to Jekyll! +# +# This config file is meant for settings that affect your whole blog, values +# which you are expected to set up once and rarely edit after that. If you find +# yourself editing this file very often, consider using Jekyll's data files +# feature for the data you need to update frequently. +# +# For technical reasons, this file is *NOT* reloaded automatically when you use +# 'bundle exec jekyll serve'. If you change this file, please restart the server process. + +# Site settings +# These are used to personalize your new site. If you look in the HTML files, +# you will see them accessed via {{ site.title }}, {{ site.email }}, and so on. +# You can create any custom variable you would like, and they will be accessible +# in the templates via {{ site.myvariable }}. +title: Don't kill my app! +email: info@urbandroid.com +description: >- # this means to ignore newlines until "baseurl:" + Hey Android vendors, don't kill my app! +baseurl: "" # the subpath of your site, e.g. /blog +url: "http//dontkillmyapp.com" # the base hostname & protocol for your site, e.g. http://example.com +twitter_username: UrbandroidTeam +github_username: urbandroid-team + +# Build settings +markdown: kramdown +theme: minima +plugins: + - jekyll-feed + + +collections: + vendors: + output: true + +# Exclude from processing. +# The following items will not be processed, by default. Create a custom list +# to override the default setting. +# exclude: +# - Gemfile +# - Gemfile.lock +# - node_modules +# - vendor/bundle/ +# - vendor/cache/ +# - vendor/gems/ +# - vendor/ruby/ diff --git a/_includes/card-vendor-award.html b/_includes/card-vendor-award.html new file mode 100644 index 00000000..ebdb892a --- /dev/null +++ b/_includes/card-vendor-award.html @@ -0,0 +1,7 @@ + +

+ {{ vendor.name }} +

+

{{vendor.award}}

+ +
\ No newline at end of file diff --git a/_includes/card-vendor.html b/_includes/card-vendor.html new file mode 100644 index 00000000..48af9328 --- /dev/null +++ b/_includes/card-vendor.html @@ -0,0 +1,6 @@ + +

+ {{ vendor.name }} +

+ +
\ No newline at end of file diff --git a/_includes/footer.html b/_includes/footer.html new file mode 100644 index 00000000..bd10017e --- /dev/null +++ b/_includes/footer.html @@ -0,0 +1,8 @@ + diff --git a/_includes/head.html b/_includes/head.html new file mode 100644 index 00000000..c7097037 --- /dev/null +++ b/_includes/head.html @@ -0,0 +1,12 @@ + + + + + {%- seo -%} + + + {%- feed_meta -%} + {%- if jekyll.environment == 'production' and site.google_analytics -%} + {%- include google-analytics.html -%} + {%- endif -%} + diff --git a/_layouts/home.html b/_layouts/home.html new file mode 100644 index 00000000..17a20076 --- /dev/null +++ b/_layouts/home.html @@ -0,0 +1,46 @@ +--- +layout: default +--- + +
+ {%- if page.title -%} +

{{ page.title }}

+ {%- endif -%} + +
+ {%- if site.vendors.size > 0 -%} + + {%- for vendor in site.vendors -%} {% if vendor.award %} + {%- include card-vendor-award.html -%} + {%- endif -%} {%- endfor -%} + + {%- for vendor in site.vendors -%} {% unless vendor.award %} + {%- include card-vendor.html -%} + {%- endunless -%} {%- endfor -%} + + {%- endif -%} +
+ + + + + {%- endif -%} + +
\ No newline at end of file diff --git a/_posts/2018-12-19-welcome-to-jekyll.markdown b/_posts/2018-12-19-welcome-to-jekyll.markdown new file mode 100644 index 00000000..9f35760d --- /dev/null +++ b/_posts/2018-12-19-welcome-to-jekyll.markdown @@ -0,0 +1,25 @@ +--- +layout: post +title: "Welcome to Jekyll my ass!" +date: 2018-12-19 07:28:35 +0100 +categories: jekyll update +--- +You’ll find this post in your `_posts` directory. Go ahead and edit it and re-build the site to see your changes. You can rebuild the site in many different ways, but the most common way is to run `jekyll serve`, which launches a web server and auto-regenerates your site when a file is updated. + +To add new posts, simply add a file in the `_posts` directory that follows the convention `YYYY-MM-DD-name-of-post.ext` and includes the necessary front matter. Take a look at the source for this post to get an idea about how it works. + +Jekyll also offers powerful support for code snippets: + +{% highlight ruby %} +def print_hi(name) + puts "Hi, #{name}" +end +print_hi('Tom') +#=> prints 'Hi, Tom' to STDOUT. +{% endhighlight %} + +Check out the [Jekyll docs][jekyll-docs] for more info on how to get the most out of Jekyll. File all bugs/feature requests at [Jekyll’s GitHub repo][jekyll-gh]. If you have questions, you can ask them on [Jekyll Talk][jekyll-talk]. + +[jekyll-docs]: https://jekyllrb.com/docs/home +[jekyll-gh]: https://github.com/jekyll/jekyll +[jekyll-talk]: https://talk.jekyllrb.com/ diff --git a/_sass/main.scss b/_sass/main.scss new file mode 100644 index 00000000..859d7453 --- /dev/null +++ b/_sass/main.scss @@ -0,0 +1,37 @@ +.cardholder { + display: flex; + flex-wrap: wrap; + // justify-content: center; +} + +.card { + min-width: 40%; + display: flex; + justify-content: space-between; + padding: 1em; + margin: 1em; + h2 { + } + p { + font-size: 4em; + } +} + +.card-vendor { + background-color: lightskyblue; +} +.card-vendor:hover { + background-color: dodgerblue; +} +.card-vendor-award { + background-color: pink; +} +.card-vendor-award:hover { + background-color: palevioletred; +} +a, a:visited { + color: rgb(50,50,50) +} +a:hover { + text-decoration: none; +} \ No newline at end of file diff --git a/_vendors/htc.md b/_vendors/htc.md new file mode 100644 index 00000000..f5b6a531 --- /dev/null +++ b/_vendors/htc.md @@ -0,0 +1,6 @@ +--- +name: HTC +layout: default +--- + +HTC gets a honorable award for having a FAQ on their website with guide on how to disable their app destroying (AKA battery saving) features. \ No newline at end of file diff --git a/_vendors/huawei.md b/_vendors/huawei.md new file mode 100644 index 00000000..6cce4da7 --- /dev/null +++ b/_vendors/huawei.md @@ -0,0 +1,6 @@ +--- +name: Huawei +layout: default +--- + +Fuck you Huawei for being Chinese pirates \ No newline at end of file diff --git a/_vendors/lg.md b/_vendors/lg.md new file mode 100644 index 00000000..e4fdb90b --- /dev/null +++ b/_vendors/lg.md @@ -0,0 +1,6 @@ +--- +name: LG +layout: default +--- + +Letmelive \ No newline at end of file diff --git a/_vendors/meizu.md b/_vendors/meizu.md new file mode 100644 index 00000000..2c9cb07c --- /dev/null +++ b/_vendors/meizu.md @@ -0,0 +1,6 @@ +--- +name: Meizu +layout: default +--- + +Letmelive \ No newline at end of file diff --git a/_vendors/nokia.md b/_vendors/nokia.md new file mode 100644 index 00000000..aaee3ec9 --- /dev/null +++ b/_vendors/nokia.md @@ -0,0 +1,7 @@ +--- +name: Nokia +layout: default +award: 1 +--- + +Fuck you Nokia for collaborating with Chinese pirates \ No newline at end of file diff --git a/_vendors/oneplus.md b/_vendors/oneplus.md new file mode 100644 index 00000000..558be2a2 --- /dev/null +++ b/_vendors/oneplus.md @@ -0,0 +1,7 @@ +--- +name: OnePlus +layout: default +award: 2 +--- + +OnePlus \ No newline at end of file diff --git a/_vendors/samsung.md b/_vendors/samsung.md new file mode 100644 index 00000000..88cffc26 --- /dev/null +++ b/_vendors/samsung.md @@ -0,0 +1,6 @@ +--- +name: Samsung +layout: default +--- + +Letmelive \ No newline at end of file diff --git a/_vendors/sony.md b/_vendors/sony.md new file mode 100644 index 00000000..6377efe4 --- /dev/null +++ b/_vendors/sony.md @@ -0,0 +1,6 @@ +--- +name: Sony +layout: default +--- + +Letmelive \ No newline at end of file diff --git a/_vendors/stock_android.md b/_vendors/stock_android.md new file mode 100644 index 00000000..567bcfb1 --- /dev/null +++ b/_vendors/stock_android.md @@ -0,0 +1,6 @@ +--- +name: Stock Android +layout: default +--- + +Yes, even stock Android fell into this trap! \ No newline at end of file diff --git a/_vendors/unihertz.md b/_vendors/unihertz.md new file mode 100644 index 00000000..5d09f942 --- /dev/null +++ b/_vendors/unihertz.md @@ -0,0 +1,6 @@ +--- +name: Unihertz +layout: default +--- + +Why not include bizarre phones? \ No newline at end of file diff --git a/_vendors/xiaomi.md b/_vendors/xiaomi.md new file mode 100644 index 00000000..21a1f67d --- /dev/null +++ b/_vendors/xiaomi.md @@ -0,0 +1,6 @@ +--- +name: Xiaomi +layout: default +--- + +Letmelive \ No newline at end of file diff --git a/about.md b/about.md new file mode 100644 index 00000000..928cc42b --- /dev/null +++ b/about.md @@ -0,0 +1,17 @@ +--- +layout: page +title: The core of the problem +permalink: /problem/ +--- + +Smartphones are getting more and more powerful, but the battery capacity is lagging behind. Vendors are always trying to squeeze some battery saving features into the firmware with each new Android release. With Android 6 (Marshmallow), Google has introduced Doze mode to the base Android, in an attempt to unify battery saving across the various Android phones. + +Unfortunately, vendors such as Samsung, Huawei, OnePlus (and more) did not seem to catch that ball and they all have their own battery savers, usually very poorly written, saving battery only superficially. + +These battery saving features have lots of side effects. They usually kill long running processes – but don’t care whether the user wants the process to run or not (think sleep tracking, fitness tracking, ...). + +They also impose arbitrary limits on random things – like how many times can you schedule an alarm during a given period. If you go over the limit – boom! Your code doesn't run. That’s what you get for not reading the documentation on vendor modifications (oh wait, there is *no documentation*). + +How to prevent the alarm and sleep tracking from failing? **Opt out of the battery savers.** + +Which may or may not be so simple. \ No newline at end of file diff --git a/assets/css/style.scss b/assets/css/style.scss new file mode 100644 index 00000000..f3b74e5f --- /dev/null +++ b/assets/css/style.scss @@ -0,0 +1,5 @@ +--- +--- + +@import "minima"; +@import "main"; \ No newline at end of file diff --git a/index.md b/index.md new file mode 100644 index 00000000..06715078 --- /dev/null +++ b/index.md @@ -0,0 +1,6 @@ +--- +# Feel free to add content and custom Front Matter to this file. +# To modify the layout, see https://jekyllrb.com/docs/themes/#overriding-theme-defaults + +layout: home +---