New version 1.5.0 beta 9
Phones, tablets, TVs and windows of every size (forms.md).
ScreenClass (scPhone, scTablet, scDesktop, scTV) and OnScreenClassChange on forms; a narrow window on a computer counts as a phone; PASTEL_SCREEN=phone|tablet|tv|desktop tries one
Views, like FireMonkey's: Home.tablet.pform (also phone, tv, desktop) next to Home.pform changes values for that kind of screen — sizes, places, fonts, texts, Visible; applied when the app starts and when the screen changes, undone when another screen has none; a TV uses the tablet's view; pastel build and pastel check make sure a view has only the form's controls; hot reload watches view files too
MaxContentWidth on forms and containers: the controls in the middle, at most that wide
A TV's remote: the arrows move the focus to the nearest control in that direction, with a clear ring; OK presses, ticks, brings the keyboard; on Android always, on a computer with PASTEL_SCREEN=tv
Android: the text size of the phone's settings (up to 1.3 times); apps are on Android TV's home screen, with a banner made from the icon, and need no touch screen
Android: the on-screen keyboard comes up for an edit on every phone and TV box — Pastel's activity has an editor view the keyboard types into (NativeActivity's own view is not one, so many devices showed no keyboard); a tap on an edit brings it back after the back button closed it
The keyboard an edit needs: KeyboardType on TEdit and TMemo (ktNumber, ktDecimal, ktPhone, ktEmail, ktUrl, ktTime; FireMonkey's name); TNumberEdit, TCurrencyEdit and TTimeEdit choose by themselves; Password gets a password keyboard
ReturnKeyType: what the keyboard's Enter key says and does — Done, Next (to the next control), Go, Search, Send; in a TMemo Enter makes a new line
Word suggestions of the keyboard (composing text) and its Backspace work
pastel logcat: the log of the app on the connected Android device, by its package name — its processes (learned from the system's start lines and the process list), its start and end, crash reports; a crash shows the Pascal function and line (<- ClearClick (Home.pas:33), from the debug build); --all, --clear; the whole log is saved in build/android/logcat.txt
pastel run --target android shows the app's log the same way (before: only some tags, without native crashes' libc lines)
New targets: android-arm (ARM 32-bit: older phones, TV boxes; Android 4.4 and newer), android-x86_64 (the Android emulator on a PC) and android-x86, besides android-arm64
pastel doctor --install android sets up all of them whose binutils are installed; the ARM 32-bit and x86 compilers are built from Free Pascal's sources (fpc-source, or the source archive with FPCDIR) in seconds — no NDK, no fpcupdeluxe
pastel package apk makes one .apk with every kind set up (lib/arm64-v8a, lib/armeabi-v7a, lib/x86_64, lib/x86), or one kind with --target; apps install on Android 4.4 and newer; libraries carry both kinds of symbol tables for older Android
pastel run --target android asks the phone or emulator for its CPU and builds for that
The app's icon: pastel new app puts Pastel's icon in assets/icon.png, ready to be replaced; Linux docks match the window to the app's menu entry (StartupWMClass, the window's class); forms.md says where the icon shows up
Pastel 1.5.0-beta.9
VSCode extension 1.5.5