diff --git a/AGENTS.md b/AGENTS.md index 863212d..dc937af 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -1,22 +1,23 @@ # OGS applications (`mj`) -Native SwiftUI apps on the Dialect v4 declarative reactive engine (v2.0.0). +Native SwiftUI and Compose apps on the Dialect v4 declarative reactive engine. Remote: `https://git.opengamestudio.org/mahjong/mahjong`. ## Apps -- `hello/hello-platform/` — macOS + iOS platform-support sample (Hello counter). Its +- `hello/hello-platform/` — macOS + iOS + Android platform-support sample (Hello counter). Its structure, startup flow and dialect rules are in [docs/hello-platform.md](docs/hello-platform.md); read that file whenever anything from hello-platform is referenced. ## Layout -- `/dialect.yml` → generates `/ver-mac/src/dialect.swift`. +- `/dialect.yml` → generates `/ver-mac/src/dialect.swift` and + `/ver-android/.../dialect.kt`. - `components/` — shared source of truth; app `src/` entries are relative symlinks: edit the real files and keep symlink parity. -- `hello-platform` uses `components/hp/` for its component, view model and shared - SwiftUI view, and `components/other/` for shared helpers. +- `hello-platform` uses `components/hp/` for its component, view models and views + (`mac/`, `ios/`, `android/`), and `components/other/` for shared helpers. - `history/gitjs/` — historical JS reference, outside the build. ## Build @@ -28,24 +29,28 @@ cd hello/hello-platform util/build-mac util/run-mac util/prepare-ios # xcodegen; xcodebuild command is in docs/hello-platform.md +util/prepare-android # generate dialect.kt; gradlew command is in docs/hello-platform.md ``` `build-mac` regenerates Dialect, runs `swift build` in `ver-mac/`, then packages the binary and `ver-mac/res/` into `ver-mac/.build/.app`. `ver-ios/` mirrors `ver-mac/` and shares `dialect.swift`, `HPView` and the app icon via symlinks. +`ver-android/` has its own generated `dialect.kt` and Compose view. Kotlin output is +LLM-transpiled: run `ollama serve` before generating (model `qwen2.5-coder:3b`). Dangling-symlink audit: `find components hello -type l ! -exec test -e {} \; -not -path '*/.build/*'` iOS simulator: use **IVA** (`EB867790-F2C0-4392-9F99-C509D4487FDA`, iPhone 17, -iOS 26.5), not iPhone 15 Pro. +iOS 26.5), not iPhone 15 Pro. Android emulator: **Small_30** (`-gpu +swiftshader_indirect` avoids a headless crash). ## Dialect - Edit `/dialect.yml` / `components/`, then `util/build-mac`; manual edits to the - generated `dialect.swift` are overwritten. -- `struct F` (field names) exists only in `dialect.swift`: a new field needs - `static let = ""` hand-patched in ASCII order or `F.` - will not build. + generated `dialect.swift` / `dialect.kt` are overwritten. +- `struct F` (field names) exists only in the generated files: a new field needs + `static let = ""` hand-patched in ASCII order in both + `dialect.swift` and `dialect.kt` or `F.` will not build. - Validate: `ruby -ryaml -e 'YAML.load_file("hello/hello-platform/dialect.yml")'`. Every should-label (`1. Upon each ...`) MUST end with a colon — `../dialect/components/yml/ymlFun.swift` blindly `dropLast()`s it. Complaints diff --git a/README.md b/README.md index 9168c44..4dc9ad9 100644 --- a/README.md +++ b/README.md @@ -11,8 +11,12 @@ [rzip]: https://github.com/ghera/raylib-iOS/releases/download/6.2.0-iOS/raylib-ios-xcframeworks-6.2.0-iOS.zip +### Android + +* Android Studio Quail 3 (2026.1.3) + ## Components | Name | Description | macOS | iOS | Android | Linux | Windows | Raspberry Pi | | --- | --- | --- | --- | --- | --- | --- | --- | -| hp | **hello-platform** is a simple UI to validate platform support | √ | √ | | | | | +| hp | **hello-platform** is a simple UI to validate platform support | √ | √ | √ | | | | diff --git a/components/hp/android/hp.kt b/components/hp/android/hp.kt new file mode 100644 index 0000000..8b98a79 --- /dev/null +++ b/components/hp/android/hp.kt @@ -0,0 +1,14 @@ +package org.opengamestudio + +object HPComponent { + val ctrl = DialectController(HPContext()) + + init { + hpRegisterEffects(ctrl) + hpRegisterShoulds(ctrl) + } + + fun setup() { + hpSet(F.didSetup, true) + } +} diff --git a/components/hp/android/hpVM.kt b/components/hp/android/hpVM.kt new file mode 100644 index 0000000..652726a --- /dev/null +++ b/components/hp/android/hpVM.kt @@ -0,0 +1,10 @@ +package org.opengamestudio + +import androidx.compose.runtime.* + +object HPVM { + var countText by mutableStateOf("") + + var shared: HPVM? = this + private set +} diff --git a/components/hp/android/view/HPView.kt b/components/hp/android/view/HPView.kt new file mode 100644 index 0000000..bb73b77 --- /dev/null +++ b/components/hp/android/view/HPView.kt @@ -0,0 +1,34 @@ +package org.opengamestudio + +import androidx.compose.foundation.layout.* +import androidx.compose.material3.* +import androidx.compose.runtime.Composable +import androidx.compose.ui.* +import androidx.compose.ui.text.font.FontFamily +import androidx.compose.ui.unit.dp + +@Composable +fun HPView() { + Column( + horizontalAlignment = Alignment.CenterHorizontally, + modifier = Modifier.padding(40.dp), + verticalArrangement = Arrangement.spacedBy(16.dp) + ) { + Text( + style = MaterialTheme.typography.headlineLarge, + text = "Hello, platform!" + ) + + Text( + fontFamily = FontFamily.Monospace, + style = MaterialTheme.typography.titleMedium, + text = HPVM.countText + ) + + Button( + onClick = { hpSet(F.didClickIncrement, true) } + ) { + Text("Increment") + } + } +} diff --git a/docs/hello-platform.md b/docs/hello-platform.md index ccd78aa..73fe65b 100644 --- a/docs/hello-platform.md +++ b/docs/hello-platform.md @@ -1,8 +1,9 @@ # hello-platform -Minimal macOS and iOS app that validates the platform foundation: a "Hello, -platform!" title, a count label and an Increment button. All state lives in -Dialect; SwiftUI only renders the view model and sends one input event. +Minimal macOS, iOS and Android app that validates the platform foundation: a +"Hello, platform!" title, a count label and an Increment button. All state lives +in Dialect; SwiftUI and Compose only render the view model and send one input +event. ## Layout @@ -13,6 +14,7 @@ hello/hello-platform/ │ ├── build-mac generate → build → package │ ├── run-mac run the packaged .app │ ├── prepare-ios generate → xcodegen project +│ ├── prepare-android generate Kotlin dialect.kt │ └── step/ │ ├── generateDialect sibling ../dialect generator on dialect.yml │ ├── buildMac swift build in ver-mac/ @@ -48,11 +50,35 @@ hello/hello-platform/ └── other/other.swift same symlink as the macOS tree ``` +The Android target mirrors the same layout: + +```text +hello/hello-platform/ver-android/ +├── settings.gradle.kts rootProject "hello-platform", includes app +├── app/build.gradle.kts org.opengamestudio.helloplatform, Compose +├── gradle/ AGP 8.7.3, Kotlin 2.1.0, wrapper 9.3.1 +├── local.properties sdk.dir, git-ignored +├── build/ Gradle output and APK (git-ignored) +└── app/src/main/ + ├── AndroidManifest.xml label hello-platform, Theme.MyApplication + ├── res/ strings, theme, adaptive launcher icon + └── kotlin/org/opengamestudio/ + ├── MainActivity.kt Compose Box → HPView, edge-to-edge + ├── HPActivityDelegate.kt HPComponent + logging, calls setup() + ├── dialect.kt generated Kotlin, never hand-edited + ├── hp/ relative symlinks into components/hp/android + │ ├── hp.kt + │ ├── hpVM.kt + │ └── view/HPView.kt → components/hp/android/view/HPView.kt + └── other/other.kt relative symlink into components/other +``` + `components/` is the source of truth. The `src/hp` and `src/other` entries are symlinks, so edit the real files under `components/` and keep the links intact. -Both platforms share one `dialect.swift` (the iOS one is a symlink to `ver-mac`), +macOS and iOS share one `dialect.swift` (the iOS one is a symlink to `ver-mac`), one `HPView` body (the iOS `components/hp/ios/view/HPView.swift` links back to -the macOS view) and one `res/AppIcon.png`. +the macOS view) and one `res/AppIcon.png`. Android has its own generated +`dialect.kt` and Compose view, with the same state and layout. ## Shared components @@ -65,7 +91,10 @@ the macOS view) and one `res/AppIcon.png`. button dispatches `hpSet(F.didClickIncrement, true)`. It is platform-neutral, so `components/hp/ios/view/HPView.swift` is a symlink back to it and both `src/hp/view/HPView.swift` links resolve to the same file. -- `components/other/other.swift` — helpers, including +- `components/hp/android/` — the Android mirror: `hp.kt` (same `HPComponent`), + `hpVM.kt` (`HPVM` with a Compose `mutableStateOf`) and `view/HPView.kt` + (Compose `Column`, headline, monospaced label, Increment button). +- `components/other/other.swift` / `other.kt` — helpers, including `otherSetupConsoleLogging(ctrl, "HP")`, which prints every processed field to stderr as `ИГР HP k/v: ''/''`. @@ -74,8 +103,9 @@ the macOS view) and one `res/AppIcon.png`. 1. `HPAppDelegate` creates `HPComponent` (which sets `HPComponent.singleton`) and then `HPVM` (which sets `HPVM.shared`). 2. The launch callback (`applicationDidFinishLaunching` on macOS, - `application(_:didFinishLaunchingWithOptions:)` on iOS) registers console - logging and calls `hp.setup()`; the macOS one also activates the app. + `application(_:didFinishLaunchingWithOptions:)` on iOS, + `HPActivityDelegate.setup()` in `MainActivity.onCreate` on Android) registers + console logging and calls `hp.setup()`; the macOS one also activates the app. 3. `setup()` queues `didSetup` in the controller. 4. The controller applies the changed field, runs every registered should in order, and queues each new `recentField` a should returns. Finally it reports @@ -111,9 +141,9 @@ util/run-mac `generateDialect` expects the sibling `../dialect` checkout (so `/Volumes/MOE/p/dialect` for this workspace). `build-mac` runs the steps in -order: regenerate `ver-mac/src/dialect.swift`, `swift build`, then package -`ver-mac/.build/debug/hello-platform`, `Info.plist` and `res/` into -`ver-mac/.build/hello-platform.app`. +order: regenerate `ver-mac/src/dialect.swift` and the Android `dialect.kt`, +`swift build`, then package `ver-mac/.build/debug/hello-platform`, `Info.plist` +and `res/` into `ver-mac/.build/hello-platform.app`. iOS needs `xcodegen` (see README prerequisites): @@ -130,10 +160,31 @@ xcodebuild -project ver-ios/hello-platform.xcodeproj \ `ver-ios/`. The generated `.xcodeproj` and `.build/` are git-ignored, so re-run it after changing `project.yml` or `Info.plist`. +Android needs the SDK and a JDK; `prepare-android` writes the Kotlin dialect, +then Gradle builds the app: + +```sh +cd hello/hello-platform +util/prepare-android +cd ver-android +JAVA_HOME="$HOME/.gradle/jdks/eclipse_adoptium-21-aarch64-os_x.2/jdk-21.0.7+6/Contents/Home" \ + ./gradlew assembleDebug +``` + +`ver-android/local.properties` points at `~/Library/Android/sdk` and is +git-ignored, so each checkout needs it once. Install the APK with +`adb install -r app/build/outputs/apk/debug/app-debug.apk` and start +`org.opengamestudio.helloplatform/org.opengamestudio.MainActivity`. Use JDK 21: +AGP 8.7.3 does not accept every newer JDK. + ## Pitfalls -- Change `dialect.yml`, not `dialect.swift`; retyping or reformatting the - generated file is pointless because every build overwrites it. +- Change `dialect.yml`, not the generated `dialect.swift` / `dialect.kt`; + retyping or reformatting them is pointless because every build overwrites + them. +- The Kotlin output is transpiled through the local LLM, so `ollama serve` must + be running (with `qwen2.5-coder:3b` pulled) before `prepare-android` or + `build-mac`; otherwise generation aborts and `dialect.kt` is left stale. - Every should label (`1. Upon ...`) must end with a colon: the sibling generator drops its last character (`../dialect/components/yml/ymlFun.swift`). - A should function may change only one field; its returned `recentField` drives @@ -141,4 +192,6 @@ re-run it after changing `project.yml` or `Info.plist`. - The generated oneliner and `hpSet` force-unwrap `HPVM.shared` / `HPComponent.singleton`; both must exist before dispatch. - Only one `dialect.swift` exists: `ver-ios/src/dialect.swift` is a symlink to - the macOS file, so `prepare-ios` regenerates the same source. + the macOS file, so `prepare-ios` regenerates the same source. The Kotlin + `dialect.kt` lives in `ver-android` and is generated from the same + `dialect.yml`. diff --git a/hello/hello-platform/dialect.yml b/hello/hello-platform/dialect.yml index 078c381..fb6bab0 100644 --- a/hello/hello-platform/dialect.yml +++ b/hello/hello-platform/dialect.yml @@ -1,6 +1,8 @@ version: 4 output: + ver-android/app/src/main/kotlin/org/opengamestudio/dialect.kt: + type: kotlin ver-mac/src/dialect.swift: type: swift diff --git a/hello/hello-platform/util/prepare-android b/hello/hello-platform/util/prepare-android new file mode 100755 index 0000000..75eec5b --- /dev/null +++ b/hello/hello-platform/util/prepare-android @@ -0,0 +1,8 @@ +#!/bin/bash -e +SDIR=$(cd "$(dirname "$0")" ; pwd -P) + +T=$SDIR/step +TARGET=hello-platform + +STEP=0 +source $T/generateDialect $TARGET diff --git a/hello/hello-platform/ver-android/app/build.gradle.kts b/hello/hello-platform/ver-android/app/build.gradle.kts new file mode 100644 index 0000000..635afdc --- /dev/null +++ b/hello/hello-platform/ver-android/app/build.gradle.kts @@ -0,0 +1,44 @@ +import org.jetbrains.kotlin.gradle.dsl.JvmTarget.* + +plugins { + alias(libs.plugins.android.application) + alias(libs.plugins.kotlin.android) + alias(libs.plugins.kotlin.compose) +} + +android { + namespace = "org.opengamestudio" + compileSdk = 35 + + buildFeatures { + compose = true + } + compileOptions { + sourceCompatibility = JavaVersion.VERSION_1_8 + targetCompatibility = JavaVersion.VERSION_1_8 + } + defaultConfig { + applicationId = "org.opengamestudio.helloplatform" + minSdk = 24 + targetSdk = 35 + versionCode = 1 + versionName = "1.0" + } +} + +dependencies { + implementation(libs.androidx.activity.compose) + implementation(platform(libs.androidx.compose.bom)) + implementation(libs.androidx.core.ktx) + implementation(libs.androidx.lifecycle.runtime.ktx) + implementation(libs.androidx.material3) + implementation(libs.androidx.ui) + implementation(libs.androidx.ui.graphics) + implementation(libs.androidx.ui.tooling.preview) +} + +kotlin { + compilerOptions { + jvmTarget = JVM_1_8 + } +} diff --git a/hello/hello-platform/ver-android/app/src/main/AndroidManifest.xml b/hello/hello-platform/ver-android/app/src/main/AndroidManifest.xml new file mode 100644 index 0000000..1ff58eb --- /dev/null +++ b/hello/hello-platform/ver-android/app/src/main/AndroidManifest.xml @@ -0,0 +1,29 @@ + + + + + + + + + + + + + + diff --git a/hello/hello-platform/ver-android/app/src/main/kotlin/org/opengamestudio/HPActivityDelegate.kt b/hello/hello-platform/ver-android/app/src/main/kotlin/org/opengamestudio/HPActivityDelegate.kt new file mode 100644 index 0000000..56419df --- /dev/null +++ b/hello/hello-platform/ver-android/app/src/main/kotlin/org/opengamestudio/HPActivityDelegate.kt @@ -0,0 +1,13 @@ +package org.opengamestudio + +object HPActivityDelegate { + val hp = HPComponent + + init { + otherSetupConsoleLogging(hp.ctrl, "HP") + } + + fun setup() { + hp.setup() + } +} diff --git a/hello/hello-platform/ver-android/app/src/main/kotlin/org/opengamestudio/MainActivity.kt b/hello/hello-platform/ver-android/app/src/main/kotlin/org/opengamestudio/MainActivity.kt new file mode 100644 index 0000000..b7171e8 --- /dev/null +++ b/hello/hello-platform/ver-android/app/src/main/kotlin/org/opengamestudio/MainActivity.kt @@ -0,0 +1,36 @@ +package org.opengamestudio + +import android.graphics.Color +import android.os.Bundle +import androidx.activity.* +import androidx.activity.compose.setContent +import androidx.compose.foundation.background +import androidx.compose.foundation.layout.* +import androidx.compose.ui.* +import androidx.compose.ui.graphics.Color as ComposeColor +import org.opengamestudio.ui.theme.MyApplicationTheme + +class MainActivity: ComponentActivity() { + override fun onCreate(savedInstanceState: Bundle?) { + super.onCreate(savedInstanceState) + + HPActivityDelegate.setup() + + enableEdgeToEdge( + navigationBarStyle = SystemBarStyle.light(Color.TRANSPARENT, Color.TRANSPARENT), + statusBarStyle = SystemBarStyle.light(Color.TRANSPARENT, Color.TRANSPARENT) + ) + setContent { + MyApplicationTheme { + Box( + contentAlignment = Alignment.Center, + modifier = Modifier + .fillMaxSize() + .background(ComposeColor.White) + ) { + HPView() + } + } + } + } +} diff --git a/hello/hello-platform/ver-android/app/src/main/kotlin/org/opengamestudio/dialect.kt b/hello/hello-platform/ver-android/app/src/main/kotlin/org/opengamestudio/dialect.kt new file mode 100644 index 0000000..0e9fdf5 --- /dev/null +++ b/hello/hello-platform/ver-android/app/src/main/kotlin/org/opengamestudio/dialect.kt @@ -0,0 +1,284 @@ +package org.opengamestudio + + +val DIALECT_CONTEXT_RECENT_FIELD_NONE = "none" + +interface DialectContext { + /** + * Name of the field that has just been changed + * + * Allows should-functions (reducers) to react only to + * relevant changes and ignore other changes of DialectContext + */ + var recentField: String + + /** + * Get field's value by its name + */ + fun field(name: String): T + /** + * Erase type + * + * Used by DialectController to assign recent field's value + */ + fun fieldAny(name: String): Any { + return field(name) + } + /** + * Create a copy of the DialectContext derivative + * + * Used by DialectController to treat all derived contexts as DialectContext + */ + fun selfCopy(): DialectContext + /** + * Set field's value by its name + */ + fun setField(name: String, value: Any?) +} + + +class DialectController( + var context: DialectContext +) { + internal var callbacks = mutableListOf<(c: DialectContext) -> Unit>() + internal var functions = mutableListOf<(c: DialectContext) -> DialectContext>() + var isProcessingQueue = false + internal var queue = mutableListOf() + + fun executeFunctions() { + val c = queue.removeAt(0) + // Keep SSOT: Only allow single field change per should-function + context.recentField = c.recentField + context.setField(c.recentField, c.fieldAny(c.recentField)) + + for (f in functions) { + val ctx = f(context.selfCopy()) + if (ctx.recentField != DIALECT_CONTEXT_RECENT_FIELD_NONE) { + queue.add(ctx) + } + } + + reportContext() + } + + fun processQueue() { + // Prevent recursion. + if (isProcessingQueue) { + return + } + + isProcessingQueue = true + + while (queue.size > 0) { + executeFunctions() + } + + isProcessingQueue = false + } + + fun registerCallback(cb: (c: DialectContext) -> Unit) { + callbacks.add(cb) + } + + fun registerFieldCallback( + fieldName: String, + cb: (DialectContext) -> Unit + ) { + callbacks.add({ c -> + if (c.recentField == fieldName) { + cb(c) + } + }) + } + + fun registerFunction(f: (DialectContext) -> DialectContext) { + functions.add(f) + } + + fun reportContext() { + for (cb in callbacks) { + cb(context) + } + } + + fun set(fieldName: String, value: Any) { + var c = context.selfCopy() + c.setField(fieldName, value) + c.recentField = fieldName + queue.add(c) + processQueue() + } +} + + +// Register several oneliner callbacks to a controller +@Suppress("UNCHECKED_CAST") +fun registerOneliners( + ctrl: DialectController, + items: Array +) { + val halfCount = items.size / 2 + for (i in 0.. Unit + ctrl.registerFieldCallback(field, callback) + } +} + +// Context field names for static type check +object F { + const val count = "count" + const val countText = "countText" + const val didClickIncrement = "didClickIncrement" + const val didLaunch = "didLaunch" + const val didSetup = "didSetup" + +} + +@Suppress("UNCHECKED_CAST") +data class HPContext( + var count: Int = 0, + var countText: String = "", + var didClickIncrement: Boolean = false, + var didLaunch: Boolean = false, + var didSetup: Boolean = false, + + override var recentField: String = "" +) : DialectContext { + override fun field(name: String): T { + if (name == "count") { + return count as T + } + else if (name == "countText") { + return countText as T + } + else if (name == "didClickIncrement") { + return didClickIncrement as T + } + else if (name == "didLaunch") { + return didLaunch as T + } + else if (name == "didSetup") { + return didSetup as T + } + + return "" as T + } + + override fun selfCopy(): DialectContext { + return this.copy() + } + + override fun setField( + name: String, + value: Any? + ) { + if (name == "count") { + count = value as Int + } + else if (name == "countText") { + countText = value as String + } + else if (name == "didClickIncrement") { + didClickIncrement = value as Boolean + } + else if (name == "didLaunch") { + didLaunch = value as Boolean + } + else if (name == "didSetup") { + didSetup = value as Boolean + } + + } +} + +fun hpSet( + key: String, + value: Any +) { + HPComponent.ctrl.set(key, value) +} + +fun hpShouldResetCount(c: HPContext): HPContext { + val c = c + + // 1. Upon hitting 7 + if ( +c.recentField == F.didClickIncrement && +c.count == 7 + ) { +c.count += 10 + c.recentField = F.count + return c + } + // 2. Upon each button click + if ( +c.recentField == F.didClickIncrement + ) { +c.count += 1 + c.recentField = F.count + return c + } + + c.recentField = DIALECT_CONTEXT_RECENT_FIELD_NONE + return c +} + +fun hpShouldResetCountText(c: HPContext): HPContext { + val c = c + + // 1. Upon each count change + if ( +c.recentField == F.count + ) { + c.countText = "Count: '${c.count}'" + c.recentField = F.countText + return c + } + // 2. Upon launch + if ( +c.recentField == F.didLaunch + ) { + c.countText = "Press the button to count" + c.recentField = F.countText + return c + } + + c.recentField = DIALECT_CONTEXT_RECENT_FIELD_NONE + return c +} + +fun hpShouldResetDidLaunch(c: HPContext): HPContext { + val c = c + + // 1. Only once during the first setup + if ( +c.recentField == F.didSetup && +c.didLaunch == false + ) { +c.didLaunch = true + c.recentField = F.didLaunch + return c + } + + c.recentField = DIALECT_CONTEXT_RECENT_FIELD_NONE + return c +} + +fun hpRegisterShoulds(ctrl: DialectController) { + listOf( + ::hpShouldResetCount, + ::hpShouldResetCountText, + ::hpShouldResetDidLaunch, + + ).forEach { f -> + ctrl.registerFunction { c -> f(c as HPContext) } + } +} + +fun hpRegisterEffects(ctrl: DialectController) { + registerOneliners(ctrl, arrayOf( + F.countText, { c: HPContext -> HPVM.shared!!.countText = c.countText }, + + )) +} diff --git a/hello/hello-platform/ver-android/app/src/main/kotlin/org/opengamestudio/hp/hp.kt b/hello/hello-platform/ver-android/app/src/main/kotlin/org/opengamestudio/hp/hp.kt new file mode 120000 index 0000000..36d762c --- /dev/null +++ b/hello/hello-platform/ver-android/app/src/main/kotlin/org/opengamestudio/hp/hp.kt @@ -0,0 +1 @@ +../../../../../../../../../../components/hp/android/hp.kt \ No newline at end of file diff --git a/hello/hello-platform/ver-android/app/src/main/kotlin/org/opengamestudio/hp/hpVM.kt b/hello/hello-platform/ver-android/app/src/main/kotlin/org/opengamestudio/hp/hpVM.kt new file mode 120000 index 0000000..3697b36 --- /dev/null +++ b/hello/hello-platform/ver-android/app/src/main/kotlin/org/opengamestudio/hp/hpVM.kt @@ -0,0 +1 @@ +../../../../../../../../../../components/hp/android/hpVM.kt \ No newline at end of file diff --git a/hello/hello-platform/ver-android/app/src/main/kotlin/org/opengamestudio/hp/view/HPView.kt b/hello/hello-platform/ver-android/app/src/main/kotlin/org/opengamestudio/hp/view/HPView.kt new file mode 120000 index 0000000..fb02396 --- /dev/null +++ b/hello/hello-platform/ver-android/app/src/main/kotlin/org/opengamestudio/hp/view/HPView.kt @@ -0,0 +1 @@ +../../../../../../../../../../../components/hp/android/view/HPView.kt \ No newline at end of file diff --git a/hello/hello-platform/ver-android/app/src/main/kotlin/org/opengamestudio/other/other.kt b/hello/hello-platform/ver-android/app/src/main/kotlin/org/opengamestudio/other/other.kt new file mode 120000 index 0000000..546b12d --- /dev/null +++ b/hello/hello-platform/ver-android/app/src/main/kotlin/org/opengamestudio/other/other.kt @@ -0,0 +1 @@ +../../../../../../../../../../components/other/other.kt \ No newline at end of file diff --git a/hello/hello-platform/ver-android/app/src/main/kotlin/org/opengamestudio/ui/theme/Color.kt b/hello/hello-platform/ver-android/app/src/main/kotlin/org/opengamestudio/ui/theme/Color.kt new file mode 100644 index 0000000..4908667 --- /dev/null +++ b/hello/hello-platform/ver-android/app/src/main/kotlin/org/opengamestudio/ui/theme/Color.kt @@ -0,0 +1,11 @@ +package org.opengamestudio.ui.theme + +import androidx.compose.ui.graphics.Color + +val Purple80 = Color(0xFFD0BCFF) +val PurpleGrey80 = Color(0xFFCCC2DC) +val Pink80 = Color(0xFFEFB8C8) + +val Purple40 = Color(0xFF6650a4) +val PurpleGrey40 = Color(0xFF625b71) +val Pink40 = Color(0xFF7D5260) diff --git a/hello/hello-platform/ver-android/app/src/main/kotlin/org/opengamestudio/ui/theme/Theme.kt b/hello/hello-platform/ver-android/app/src/main/kotlin/org/opengamestudio/ui/theme/Theme.kt new file mode 100644 index 0000000..dcb42e6 --- /dev/null +++ b/hello/hello-platform/ver-android/app/src/main/kotlin/org/opengamestudio/ui/theme/Theme.kt @@ -0,0 +1,39 @@ +package org.opengamestudio.ui.theme + +import android.os.Build +import androidx.compose.material3.* +import androidx.compose.runtime.Composable +import androidx.compose.ui.platform.LocalContext + +private val DarkColorScheme = darkColorScheme( + primary = Purple80, + secondary = PurpleGrey80, + tertiary = Pink80 +) + +private val LightColorScheme = lightColorScheme( + primary = Purple40, + secondary = PurpleGrey40, + tertiary = Pink40 +) + +@Composable +fun MyApplicationTheme( + darkTheme: Boolean = false, + dynamicColor: Boolean = false, + content: @Composable () -> Unit +) { + val colorScheme = when { + dynamicColor && Build.VERSION.SDK_INT >= Build.VERSION_CODES.S -> + if (darkTheme) dynamicDarkColorScheme(LocalContext.current) + else dynamicLightColorScheme(LocalContext.current) + darkTheme -> DarkColorScheme + else -> LightColorScheme + } + + MaterialTheme( + colorScheme = colorScheme, + typography = Typography, + content = content + ) +} diff --git a/hello/hello-platform/ver-android/app/src/main/kotlin/org/opengamestudio/ui/theme/Type.kt b/hello/hello-platform/ver-android/app/src/main/kotlin/org/opengamestudio/ui/theme/Type.kt new file mode 100644 index 0000000..51498b7 --- /dev/null +++ b/hello/hello-platform/ver-android/app/src/main/kotlin/org/opengamestudio/ui/theme/Type.kt @@ -0,0 +1,16 @@ +package org.opengamestudio.ui.theme + +import androidx.compose.material3.Typography +import androidx.compose.ui.text.TextStyle +import androidx.compose.ui.text.font.* +import androidx.compose.ui.unit.sp + +val Typography = Typography( + bodyLarge = TextStyle( + fontFamily = FontFamily.Default, + fontWeight = FontWeight.Normal, + fontSize = 16.sp, + lineHeight = 24.sp, + letterSpacing = 0.5.sp + ) +) diff --git a/hello/hello-platform/ver-android/app/src/main/res/drawable-nodpi/ic_launcher_artwork.png b/hello/hello-platform/ver-android/app/src/main/res/drawable-nodpi/ic_launcher_artwork.png new file mode 100644 index 0000000..b91ad1c Binary files /dev/null and b/hello/hello-platform/ver-android/app/src/main/res/drawable-nodpi/ic_launcher_artwork.png differ diff --git a/hello/hello-platform/ver-android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml b/hello/hello-platform/ver-android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml new file mode 100644 index 0000000..1eac136 --- /dev/null +++ b/hello/hello-platform/ver-android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml @@ -0,0 +1,5 @@ + + + + + diff --git a/hello/hello-platform/ver-android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml b/hello/hello-platform/ver-android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml new file mode 100644 index 0000000..1eac136 --- /dev/null +++ b/hello/hello-platform/ver-android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml @@ -0,0 +1,5 @@ + + + + + diff --git a/hello/hello-platform/ver-android/app/src/main/res/mipmap-hdpi/ic_launcher.png b/hello/hello-platform/ver-android/app/src/main/res/mipmap-hdpi/ic_launcher.png new file mode 100644 index 0000000..3e3ce28 Binary files /dev/null and b/hello/hello-platform/ver-android/app/src/main/res/mipmap-hdpi/ic_launcher.png differ diff --git a/hello/hello-platform/ver-android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png b/hello/hello-platform/ver-android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png new file mode 100644 index 0000000..3e3ce28 Binary files /dev/null and b/hello/hello-platform/ver-android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png differ diff --git a/hello/hello-platform/ver-android/app/src/main/res/mipmap-mdpi/ic_launcher.png b/hello/hello-platform/ver-android/app/src/main/res/mipmap-mdpi/ic_launcher.png new file mode 100644 index 0000000..c1a3eaf Binary files /dev/null and b/hello/hello-platform/ver-android/app/src/main/res/mipmap-mdpi/ic_launcher.png differ diff --git a/hello/hello-platform/ver-android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png b/hello/hello-platform/ver-android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png new file mode 100644 index 0000000..c1a3eaf Binary files /dev/null and b/hello/hello-platform/ver-android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png differ diff --git a/hello/hello-platform/ver-android/app/src/main/res/mipmap-xhdpi/ic_launcher.png b/hello/hello-platform/ver-android/app/src/main/res/mipmap-xhdpi/ic_launcher.png new file mode 100644 index 0000000..0d22983 Binary files /dev/null and b/hello/hello-platform/ver-android/app/src/main/res/mipmap-xhdpi/ic_launcher.png differ diff --git a/hello/hello-platform/ver-android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png b/hello/hello-platform/ver-android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png new file mode 100644 index 0000000..0d22983 Binary files /dev/null and b/hello/hello-platform/ver-android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png differ diff --git a/hello/hello-platform/ver-android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png b/hello/hello-platform/ver-android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png new file mode 100644 index 0000000..c4d37a5 Binary files /dev/null and b/hello/hello-platform/ver-android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png differ diff --git a/hello/hello-platform/ver-android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png b/hello/hello-platform/ver-android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png new file mode 100644 index 0000000..c4d37a5 Binary files /dev/null and b/hello/hello-platform/ver-android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png differ diff --git a/hello/hello-platform/ver-android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/hello/hello-platform/ver-android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png new file mode 100644 index 0000000..f464548 Binary files /dev/null and b/hello/hello-platform/ver-android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png differ diff --git a/hello/hello-platform/ver-android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png b/hello/hello-platform/ver-android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png new file mode 100644 index 0000000..f464548 Binary files /dev/null and b/hello/hello-platform/ver-android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png differ diff --git a/hello/hello-platform/ver-android/app/src/main/res/values/colors.xml b/hello/hello-platform/ver-android/app/src/main/res/values/colors.xml new file mode 100644 index 0000000..045e125 --- /dev/null +++ b/hello/hello-platform/ver-android/app/src/main/res/values/colors.xml @@ -0,0 +1,3 @@ + + + diff --git a/hello/hello-platform/ver-android/app/src/main/res/values/strings.xml b/hello/hello-platform/ver-android/app/src/main/res/values/strings.xml new file mode 100644 index 0000000..0345ee8 --- /dev/null +++ b/hello/hello-platform/ver-android/app/src/main/res/values/strings.xml @@ -0,0 +1,4 @@ + + + hello-platform + diff --git a/hello/hello-platform/ver-android/app/src/main/res/values/themes.xml b/hello/hello-platform/ver-android/app/src/main/res/values/themes.xml new file mode 100644 index 0000000..ed1eb88 --- /dev/null +++ b/hello/hello-platform/ver-android/app/src/main/res/values/themes.xml @@ -0,0 +1,6 @@ + + + + diff --git a/hello/hello-platform/ver-android/app/src/main/res/xml/backup_rules.xml b/hello/hello-platform/ver-android/app/src/main/res/xml/backup_rules.xml new file mode 100644 index 0000000..a608293 --- /dev/null +++ b/hello/hello-platform/ver-android/app/src/main/res/xml/backup_rules.xml @@ -0,0 +1,3 @@ + + + diff --git a/hello/hello-platform/ver-android/app/src/main/res/xml/data_extraction_rules.xml b/hello/hello-platform/ver-android/app/src/main/res/xml/data_extraction_rules.xml new file mode 100644 index 0000000..798f19b --- /dev/null +++ b/hello/hello-platform/ver-android/app/src/main/res/xml/data_extraction_rules.xml @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/hello/hello-platform/ver-android/build.gradle.kts b/hello/hello-platform/ver-android/build.gradle.kts new file mode 100644 index 0000000..81f6a88 --- /dev/null +++ b/hello/hello-platform/ver-android/build.gradle.kts @@ -0,0 +1,6 @@ +plugins { + alias(libs.plugins.android.application) apply false + alias(libs.plugins.android.library) apply false + alias(libs.plugins.kotlin.android) apply false + alias(libs.plugins.kotlin.compose) apply false +} diff --git a/hello/hello-platform/ver-android/gradle.properties b/hello/hello-platform/ver-android/gradle.properties new file mode 100644 index 0000000..4c028f0 --- /dev/null +++ b/hello/hello-platform/ver-android/gradle.properties @@ -0,0 +1,8 @@ +# Use Compose for Android +android.useAndroidX=true +# Verbose build log +org.gradle.console=verbose +# Cache artifacts +org.gradle.caching=true +# JVM heap for Gradle and daemon +org.gradle.jvmargs=-Xmx4g -XX:MaxMetaspaceSize=1g diff --git a/hello/hello-platform/ver-android/gradle/libs.versions.toml b/hello/hello-platform/ver-android/gradle/libs.versions.toml new file mode 100644 index 0000000..90493ef --- /dev/null +++ b/hello/hello-platform/ver-android/gradle/libs.versions.toml @@ -0,0 +1,24 @@ +[versions] +activityCompose = "1.9.3" +agp = "8.7.3" +composeBom = "2024.12.01" +coreKtx = "1.15.0" +kotlin = "2.1.0" +lifecycleRuntimeKtx = "2.8.7" + +[libraries] +androidx-activity-compose = { group = "androidx.activity", name = "activity-compose", version.ref = "activityCompose" } +androidx-compose-bom = { group = "androidx.compose", name = "compose-bom", version.ref = "composeBom" } +androidx-core-ktx = { group = "androidx.core", name = "core-ktx", version.ref = "coreKtx" } +androidx-lifecycle-runtime-ktx = { group = "androidx.lifecycle", name = "lifecycle-runtime-ktx", version.ref = "lifecycleRuntimeKtx" } +androidx-material3 = { group = "androidx.compose.material3", name = "material3" } +androidx-ui = { group = "androidx.compose.ui", name = "ui" } +androidx-ui-graphics = { group = "androidx.compose.ui", name = "ui-graphics" } +androidx-ui-tooling = { group = "androidx.compose.ui", name = "ui-tooling" } +androidx-ui-tooling-preview = { group = "androidx.compose.ui", name = "ui-tooling-preview" } + +[plugins] +android-application = { id = "com.android.application", version.ref = "agp" } +android-library = { id = "com.android.library", version.ref = "agp" } +kotlin-android = { id = "org.jetbrains.kotlin.android", version.ref = "kotlin" } +kotlin-compose = { id = "org.jetbrains.kotlin.plugin.compose", version.ref = "kotlin" } diff --git a/hello/hello-platform/ver-android/gradle/wrapper/gradle-wrapper.jar b/hello/hello-platform/ver-android/gradle/wrapper/gradle-wrapper.jar new file mode 100644 index 0000000..a4b76b9 Binary files /dev/null and b/hello/hello-platform/ver-android/gradle/wrapper/gradle-wrapper.jar differ diff --git a/hello/hello-platform/ver-android/gradle/wrapper/gradle-wrapper.properties b/hello/hello-platform/ver-android/gradle/wrapper/gradle-wrapper.properties new file mode 100644 index 0000000..37f78a6 --- /dev/null +++ b/hello/hello-platform/ver-android/gradle/wrapper/gradle-wrapper.properties @@ -0,0 +1,7 @@ +distributionBase=GRADLE_USER_HOME +distributionPath=wrapper/dists +distributionUrl=https\://services.gradle.org/distributions/gradle-9.3.1-bin.zip +networkTimeout=10000 +validateDistributionUrl=true +zipStoreBase=GRADLE_USER_HOME +zipStorePath=wrapper/dists diff --git a/hello/hello-platform/ver-android/gradlew b/hello/hello-platform/ver-android/gradlew new file mode 100755 index 0000000..f3b75f3 --- /dev/null +++ b/hello/hello-platform/ver-android/gradlew @@ -0,0 +1,251 @@ +#!/bin/sh + +# +# Copyright © 2015-2021 the original authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# SPDX-License-Identifier: Apache-2.0 +# + +############################################################################## +# +# Gradle start up script for POSIX generated by Gradle. +# +# Important for running: +# +# (1) You need a POSIX-compliant shell to run this script. If your /bin/sh is +# noncompliant, but you have some other compliant shell such as ksh or +# bash, then to run this script, type that shell name before the whole +# command line, like: +# +# ksh Gradle +# +# Busybox and similar reduced shells will NOT work, because this script +# requires all of these POSIX shell features: +# * functions; +# * expansions «$var», «${var}», «${var:-default}», «${var+SET}», +# «${var#prefix}», «${var%suffix}», and «$( cmd )»; +# * compound commands having a testable exit status, especially «case»; +# * various built-in commands including «command», «set», and «ulimit». +# +# Important for patching: +# +# (2) This script targets any POSIX shell, so it avoids extensions provided +# by Bash, Ksh, etc; in particular arrays are avoided. +# +# The "traditional" practice of packing multiple parameters into a +# space-separated string is a well documented source of bugs and security +# problems, so this is (mostly) avoided, by progressively accumulating +# options in "$@", and eventually passing that to Java. +# +# Where the inherited environment variables (DEFAULT_JVM_OPTS, JAVA_OPTS, +# and GRADLE_OPTS) rely on word-splitting, this is performed explicitly; +# see the in-line comments for details. +# +# There are tweaks for specific operating systems such as AIX, CygWin, +# Darwin, MinGW, and NonStop. +# +# (3) This script is generated from the Groovy template +# https://github.com/gradle/gradle/blob/HEAD/platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt +# within the Gradle project. +# +# You can find Gradle at https://github.com/gradle/gradle/. +# +############################################################################## + +# Attempt to set APP_HOME + +# Resolve links: $0 may be a link +app_path=$0 + +# Need this for daisy-chained symlinks. +while + APP_HOME=${app_path%"${app_path##*/}"} # leaves a trailing /; empty if no leading path + [ -h "$app_path" ] +do + ls=$( ls -ld "$app_path" ) + link=${ls#*' -> '} + case $link in #( + /*) app_path=$link ;; #( + *) app_path=$APP_HOME$link ;; + esac +done + +# This is normally unused +# shellcheck disable=SC2034 +APP_BASE_NAME=${0##*/} +# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036) +APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s\n' "$PWD" ) || exit + +# Use the maximum available, or set MAX_FD != -1 to use that value. +MAX_FD=maximum + +warn () { + echo "$*" +} >&2 + +die () { + echo + echo "$*" + echo + exit 1 +} >&2 + +# OS specific support (must be 'true' or 'false'). +cygwin=false +msys=false +darwin=false +nonstop=false +case "$( uname )" in #( + CYGWIN* ) cygwin=true ;; #( + Darwin* ) darwin=true ;; #( + MSYS* | MINGW* ) msys=true ;; #( + NONSTOP* ) nonstop=true ;; +esac + +CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar + + +# Determine the Java command to use to start the JVM. +if [ -n "$JAVA_HOME" ] ; then + if [ -x "$JAVA_HOME/jre/sh/java" ] ; then + # IBM's JDK on AIX uses strange locations for the executables + JAVACMD=$JAVA_HOME/jre/sh/java + else + JAVACMD=$JAVA_HOME/bin/java + fi + if [ ! -x "$JAVACMD" ] ; then + die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME + +Please set the JAVA_HOME variable in your environment to match the +location of your Java installation." + fi +else + JAVACMD=java + if ! command -v java >/dev/null 2>&1 + then + die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. + +Please set the JAVA_HOME variable in your environment to match the +location of your Java installation." + fi +fi + +# Increase the maximum file descriptors if we can. +if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then + case $MAX_FD in #( + max*) + # In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked. + # shellcheck disable=SC2039,SC3045 + MAX_FD=$( ulimit -H -n ) || + warn "Could not query maximum file descriptor limit" + esac + case $MAX_FD in #( + '' | soft) :;; #( + *) + # In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked. + # shellcheck disable=SC2039,SC3045 + ulimit -n "$MAX_FD" || + warn "Could not set maximum file descriptor limit to $MAX_FD" + esac +fi + +# Collect all arguments for the java command, stacking in reverse order: +# * args from the command line +# * the main class name +# * -classpath +# * -D...appname settings +# * --module-path (only if needed) +# * DEFAULT_JVM_OPTS, JAVA_OPTS, and GRADLE_OPTS environment variables. + +# For Cygwin or MSYS, switch paths to Windows format before running java +if "$cygwin" || "$msys" ; then + APP_HOME=$( cygpath --path --mixed "$APP_HOME" ) + CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" ) + + JAVACMD=$( cygpath --unix "$JAVACMD" ) + + # Now convert the arguments - kludge to limit ourselves to /bin/sh + for arg do + if + case $arg in #( + -*) false ;; # don't mess with options #( + /?*) t=${arg#/} t=/${t%%/*} # looks like a POSIX filepath + [ -e "$t" ] ;; #( + *) false ;; + esac + then + arg=$( cygpath --path --ignore --mixed "$arg" ) + fi + # Roll the args list around exactly as many times as the number of + # args, so each arg winds up back in the position where it started, but + # possibly modified. + # + # NB: a `for` loop captures its iteration list before it begins, so + # changing the positional parameters here affects neither the number of + # iterations, nor the values presented in `arg`. + shift # remove old arg + set -- "$@" "$arg" # push replacement arg + done +fi + + +# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"' + +# Collect all arguments for the java command: +# * DEFAULT_JVM_OPTS, JAVA_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments, +# and any embedded shellness will be escaped. +# * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be +# treated as '${Hostname}' itself on the command line. + +set -- \ + "-Dorg.gradle.appname=$APP_BASE_NAME" \ + -classpath "$CLASSPATH" \ + org.gradle.wrapper.GradleWrapperMain \ + "$@" + +# Stop when "xargs" is not available. +if ! command -v xargs >/dev/null 2>&1 +then + die "xargs is not available" +fi + +# Use "xargs" to parse quoted args. +# +# With -n1 it outputs one arg per line, with the quotes and backslashes removed. +# +# In Bash we could simply go: +# +# readarray ARGS < <( xargs -n1 <<<"$var" ) && +# set -- "${ARGS[@]}" "$@" +# +# but POSIX shell has neither arrays nor command substitution, so instead we +# post-process each arg (as a line of input to sed) to backslash-escape any +# character that might be a shell metacharacter, then use eval to reverse +# that process (while maintaining the separation between arguments), and wrap +# the whole thing up as a single "set" statement. +# +# This will of course break if any of these variables contains a newline or +# an unmatched quote. +# + +eval "set -- $( + printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS" | + xargs -n1 | + sed ' s~[^-[:alnum:]+,./:=@_]~\\&~g; ' | + tr '\n' ' ' + )" '"$@"' + +exec "$JAVACMD" "$@" diff --git a/hello/hello-platform/ver-android/settings.gradle.kts b/hello/hello-platform/ver-android/settings.gradle.kts new file mode 100644 index 0000000..d1c2c40 --- /dev/null +++ b/hello/hello-platform/ver-android/settings.gradle.kts @@ -0,0 +1,23 @@ +pluginManagement { + repositories { + google { + content { + includeGroupByRegex("com\\.android.*") + includeGroupByRegex("com\\.google.*") + includeGroupByRegex("androidx.*") + } + } + mavenCentral() + gradlePluginPortal() + } +} +dependencyResolutionManagement { + repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS) + repositories { + google() + mavenCentral() + } +} + +rootProject.name = "hello-platform" +include("app")