The home screen now starts empty under the clock. Long-press it to add apps (the drawer opens in a pick mode) or widgets, and long-press a slot to move or remove it. Swiping down opens the drawer with every app and a search; long-press there adds an app to home, swipe up closes it. Widgets are real AppWidgetHostViews layered over the WebView at the slots the page reports after each render, with Android's bind and configure screens on add and native long-press for their menu. ultra gains on_longpress(msg, arg) for this. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019EEjkJVV72Lu8ndDVWg5BT
38 lines
873 B
Groovy
38 lines
873 B
Groovy
plugins {
|
|
id "com.android.application"
|
|
}
|
|
|
|
android {
|
|
namespace "dev.ultra.launcher"
|
|
compileSdk 35
|
|
|
|
defaultConfig {
|
|
applicationId "dev.ultra.launcher"
|
|
minSdk 26
|
|
targetSdk 35
|
|
versionCode 1
|
|
versionName "0.1"
|
|
}
|
|
|
|
compileOptions {
|
|
sourceCompatibility JavaVersion.VERSION_17
|
|
targetCompatibility JavaVersion.VERSION_17
|
|
}
|
|
|
|
sourceSets {
|
|
// The home screen UI is the ultra app in examples/launcher, served from assets.
|
|
main.assets.srcDirs = ["$rootDir/../examples/launcher"]
|
|
}
|
|
|
|
androidResources {
|
|
// app.py is the LPython source; apps.json and widgets.json are the browser demo's stand-ins.
|
|
ignoreAssetsPattern = "!app.py:!apps.json:!widgets.json:!__pycache__:!.*"
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
minifyEnabled false
|
|
}
|
|
}
|
|
}
|