/* 1792x828px at 326ppi */
@media only screen
and (device-width: 414px)
and (device-height: 896px)
and (-webkit-device-pixel-ratio: 2) { }This media query is also for: iPhone XR
| import { Directive, HostListener, Input, OnInit, Renderer2 } from '@angular/core'; | |
| import { DomController } from '@ionic/angular'; | |
| /** | |
| * Moves away the header when scrolling down. | |
| */ | |
| @Directive({ | |
| selector: '[appHideHeader]', | |
| }) | |
| export class HideHeaderDirective implements OnInit { |
| import { Injectable } from '@angular/core'; | |
| import { HttpEvent, HttpHandler, HttpInterceptor, HttpRequest, HttpResponse } from '@angular/common/http'; | |
| import { Observable, timer, throwError, of } from 'rxjs'; | |
| import { retryWhen, tap, mergeMap } from 'rxjs/operators'; | |
| @Injectable() | |
| export class HttpRequestInterceptor implements HttpInterceptor { | |
| retryDelay = 2000; | |
| retryMaxAttempts = 2; |
| #!/bin/sh | |
| # | |
| # Script that will use the provided Android App Bundle (.aab) and change its version code and version name to the provided values, avoiding re-building the whole .aab. | |
| # Run this script with: sh rollback.sh your_project.aab android_signing_key.key key_alias key_pwd version_code version_name | |
| # | |
| # Necessary setup: | |
| # | |
| # jarsigner - This binary should exist in the path | |
| # | |
| # Configuration.proto and Resources.proto can be found in aapt2's github |
| /* | |
| ##Device = Desktops | |
| ##Screen = 1281px to higher resolution desktops | |
| */ | |
| @media (min-width: 1281px) { | |
| /* CSS */ | |
| /* (320x480) iPhone (Original, 3G, 3GS) */ | |
| @media only screen and (min-device-width: 320px) and (max-device-width: 480px) { | |
| /* insert styles here */ | |
| } | |
| /* (320x480) Smartphone, Portrait */ | |
| @media only screen and (device-width: 320px) and (orientation: portrait) { | |
| /* insert styles here */ | |
| } | |