commit
Add Doughmination Manager and Plural placeholders
Compose apps that build and show their name, nothing more, so CI and the build are in place before either is designed. Co-Authored-By: Claude Opus 5.5 <[email protected]>
diff --git a/doughmination-manager/app/build.gradle.kts b/doughmination-manager/app/build.gradle.kts
new file mode 100644
index 0000000..c2bc941
--- /dev/null
+++ b/doughmination-manager/app/build.gradle.kts
@@ -0,0 +1,66 @@
+plugins {
+ alias(libs.plugins.android.application)
+ alias(libs.plugins.kotlin.android)
+ alias(libs.plugins.kotlin.compose)
+}
+
+android {
+ namespace = "gay.doughmination.manager"
+ compileSdk = libs.versions.compileSdk.get().toInt()
+
+ defaultConfig {
+ // Not released yet, so this ID can still change. Once an APK ships,
+ // it (and the signing key) must stay the same for updates to install.
+ applicationId = "gay.doughmination.manager"
+ minSdk = libs.versions.minSdk.get().toInt()
+ targetSdk = libs.versions.targetSdk.get().toInt()
+ // CI sets these (see docs/releasing.md); local builds use the fallbacks.
+ versionCode = System.getenv("VERSION_CODE")?.toInt() ?: 1
+ versionName = System.getenv("VERSION_NAME") ?: "0.1.0"
+ }
+
+ // Same convention as Device Reporter: CI passes the key through SIGNING_*
+ // environment variables; without them release builds use the debug key.
+ val storeFilePath = System.getenv("SIGNING_STORE_FILE")
+ signingConfigs {
+ if (storeFilePath != null) {
+ create("release") {
+ storeFile = file(storeFilePath)
+ storePassword = System.getenv("SIGNING_STORE_PASSWORD")
+ keyAlias = System.getenv("SIGNING_KEY_ALIAS")
+ keyPassword = System.getenv("SIGNING_KEY_PASSWORD")
+ }
+ }
+ }
+
+ buildTypes {
+ release {
+ isMinifyEnabled = false
+ signingConfig = signingConfigs.findByName("release") ?: signingConfigs.getByName("debug")
+ }
+ }
+
+ buildFeatures {
+ compose = true
+ }
+
+ compileOptions {
+ sourceCompatibility = JavaVersion.VERSION_17
+ targetCompatibility = JavaVersion.VERSION_17
+ }
+
+ kotlinOptions {
+ jvmTarget = "17"
+ }
+}
+
+dependencies {
+ implementation(platform(libs.androidx.compose.bom))
+ implementation(libs.androidx.compose.material3)
+ implementation(libs.androidx.compose.ui)
+ implementation(libs.androidx.compose.ui.tooling.preview)
+ debugImplementation(libs.androidx.compose.ui.tooling)
+
+ implementation(libs.androidx.core.ktx)
+ implementation(libs.androidx.activity.compose)
+}
diff --git a/doughmination-manager/app/src/main/AndroidManifest.xml b/doughmination-manager/app/src/main/AndroidManifest.xml
new file mode 100644
index 0000000..8dbf531
--- /dev/null
+++ b/doughmination-manager/app/src/main/AndroidManifest.xml
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="utf-8"?>
+<manifest xmlns:android="http://schemas.android.com/apk/res/android">
+
+ <application
+ android:allowBackup="true"
+ android:icon="@mipmap/ic_launcher"
+ android:label="@string/app_name"
+ android:supportsRtl="true"
+ android:theme="@style/Theme.App">
+ <activity
+ android:name=".MainActivity"
+ android:exported="true">
+ <intent-filter>
+ <action android:name="android.intent.action.MAIN" />
+ <category android:name="android.intent.category.LAUNCHER" />
+ </intent-filter>
+ </activity>
+ </application>
+
+</manifest>
diff --git a/doughmination-manager/app/src/main/java/gay/doughmination/manager/MainActivity.kt b/doughmination-manager/app/src/main/java/gay/doughmination/manager/MainActivity.kt
new file mode 100644
index 0000000..074aed8
--- /dev/null
+++ b/doughmination-manager/app/src/main/java/gay/doughmination/manager/MainActivity.kt
@@ -0,0 +1,41 @@
+package gay.doughmination.manager
+
+import android.os.Bundle
+import androidx.activity.ComponentActivity
+import androidx.activity.compose.setContent
+import androidx.activity.enableEdgeToEdge
+import androidx.compose.foundation.layout.Box
+import androidx.compose.foundation.layout.fillMaxSize
+import androidx.compose.foundation.layout.padding
+import androidx.compose.material3.MaterialTheme
+import androidx.compose.material3.Scaffold
+import androidx.compose.material3.Text
+import androidx.compose.material3.darkColorScheme
+import androidx.compose.material3.lightColorScheme
+import androidx.compose.foundation.isSystemInDarkTheme
+import androidx.compose.runtime.Composable
+import androidx.compose.ui.Alignment
+import androidx.compose.ui.Modifier
+import androidx.compose.ui.res.stringResource
+
+/** Placeholder screen until the app's real features are designed. */
+class MainActivity : ComponentActivity() {
+ override fun onCreate(savedInstanceState: Bundle?) {
+ super.onCreate(savedInstanceState)
+ enableEdgeToEdge()
+ setContent {
+ MaterialTheme(colorScheme = if (isSystemInDarkTheme()) darkColorScheme() else lightColorScheme()) {
+ Placeholder()
+ }
+ }
+ }
+}
+
+@Composable
+private fun Placeholder() {
+ Scaffold { padding ->
+ Box(Modifier.fillMaxSize().padding(padding), contentAlignment = Alignment.Center) {
+ Text(stringResource(R.string.app_name), style = MaterialTheme.typography.headlineMedium)
+ }
+ }
+}
diff --git a/doughmination-manager/app/src/main/res/drawable/ic_launcher_foreground.xml b/doughmination-manager/app/src/main/res/drawable/ic_launcher_foreground.xml
new file mode 100644
index 0000000..03e59e5
--- /dev/null
+++ b/doughmination-manager/app/src/main/res/drawable/ic_launcher_foreground.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Placeholder doughnut until the app gets its real icon. -->
+<vector xmlns:android="http://schemas.android.com/apk/res/android"
+ android:width="108dp"
+ android:height="108dp"
+ android:viewportWidth="108"
+ android:viewportHeight="108">
+ <path
+ android:fillColor="#F5A9C8"
+ android:fillType="evenOdd"
+ android:pathData="M54,32a22,22 0,1 1,0 44a22,22 0,1 1,0 -44zM54,46a8,8 0,1 0,0 16a8,8 0,1 0,0 -16z" />
+</vector>
diff --git a/doughmination-manager/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml b/doughmination-manager/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
new file mode 100644
index 0000000..5c84730
--- /dev/null
+++ b/doughmination-manager/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="utf-8"?>
+<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
+ <background android:drawable="@color/ic_launcher_background" />
+ <foreground android:drawable="@drawable/ic_launcher_foreground" />
+ <monochrome android:drawable="@drawable/ic_launcher_foreground" />
+</adaptive-icon>
diff --git a/doughmination-manager/app/src/main/res/values/strings.xml b/doughmination-manager/app/src/main/res/values/strings.xml
new file mode 100644
index 0000000..2c7f48b
--- /dev/null
+++ b/doughmination-manager/app/src/main/res/values/strings.xml
@@ -0,0 +1,3 @@
+<resources>
+ <string name="app_name">Doughmination Manager</string>
+</resources>
diff --git a/doughmination-manager/app/src/main/res/values/themes.xml b/doughmination-manager/app/src/main/res/values/themes.xml
new file mode 100644
index 0000000..c2f0dd7
--- /dev/null
+++ b/doughmination-manager/app/src/main/res/values/themes.xml
@@ -0,0 +1,5 @@
+<resources>
+ <!-- Compose draws everything; this only covers the window before it does. -->
+ <style name="Theme.App" parent="android:Theme.Material.Light.NoActionBar" />
+ <color name="ic_launcher_background">#1E1B2E</color>
+</resources>
diff --git a/plural/app/build.gradle.kts b/plural/app/build.gradle.kts
new file mode 100644
index 0000000..99b16d5
--- /dev/null
+++ b/plural/app/build.gradle.kts
@@ -0,0 +1,66 @@
+plugins {
+ alias(libs.plugins.android.application)
+ alias(libs.plugins.kotlin.android)
+ alias(libs.plugins.kotlin.compose)
+}
+
+android {
+ namespace = "gay.doughmination.plural"
+ compileSdk = libs.versions.compileSdk.get().toInt()
+
+ defaultConfig {
+ // Not released yet, so this ID can still change. Once an APK ships,
+ // it (and the signing key) must stay the same for updates to install.
+ applicationId = "gay.doughmination.plural"
+ minSdk = libs.versions.minSdk.get().toInt()
+ targetSdk = libs.versions.targetSdk.get().toInt()
+ // CI sets these (see docs/releasing.md); local builds use the fallbacks.
+ versionCode = System.getenv("VERSION_CODE")?.toInt() ?: 1
+ versionName = System.getenv("VERSION_NAME") ?: "0.1.0"
+ }
+
+ // Same convention as Device Reporter: CI passes the key through SIGNING_*
+ // environment variables; without them release builds use the debug key.
+ val storeFilePath = System.getenv("SIGNING_STORE_FILE")
+ signingConfigs {
+ if (storeFilePath != null) {
+ create("release") {
+ storeFile = file(storeFilePath)
+ storePassword = System.getenv("SIGNING_STORE_PASSWORD")
+ keyAlias = System.getenv("SIGNING_KEY_ALIAS")
+ keyPassword = System.getenv("SIGNING_KEY_PASSWORD")
+ }
+ }
+ }
+
+ buildTypes {
+ release {
+ isMinifyEnabled = false
+ signingConfig = signingConfigs.findByName("release") ?: signingConfigs.getByName("debug")
+ }
+ }
+
+ buildFeatures {
+ compose = true
+ }
+
+ compileOptions {
+ sourceCompatibility = JavaVersion.VERSION_17
+ targetCompatibility = JavaVersion.VERSION_17
+ }
+
+ kotlinOptions {
+ jvmTarget = "17"
+ }
+}
+
+dependencies {
+ implementation(platform(libs.androidx.compose.bom))
+ implementation(libs.androidx.compose.material3)
+ implementation(libs.androidx.compose.ui)
+ implementation(libs.androidx.compose.ui.tooling.preview)
+ debugImplementation(libs.androidx.compose.ui.tooling)
+
+ implementation(libs.androidx.core.ktx)
+ implementation(libs.androidx.activity.compose)
+}
diff --git a/plural/app/src/main/AndroidManifest.xml b/plural/app/src/main/AndroidManifest.xml
new file mode 100644
index 0000000..8dbf531
--- /dev/null
+++ b/plural/app/src/main/AndroidManifest.xml
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="utf-8"?>
+<manifest xmlns:android="http://schemas.android.com/apk/res/android">
+
+ <application
+ android:allowBackup="true"
+ android:icon="@mipmap/ic_launcher"
+ android:label="@string/app_name"
+ android:supportsRtl="true"
+ android:theme="@style/Theme.App">
+ <activity
+ android:name=".MainActivity"
+ android:exported="true">
+ <intent-filter>
+ <action android:name="android.intent.action.MAIN" />
+ <category android:name="android.intent.category.LAUNCHER" />
+ </intent-filter>
+ </activity>
+ </application>
+
+</manifest>
diff --git a/plural/app/src/main/java/gay/doughmination/plural/MainActivity.kt b/plural/app/src/main/java/gay/doughmination/plural/MainActivity.kt
new file mode 100644
index 0000000..1d362f7
--- /dev/null
+++ b/plural/app/src/main/java/gay/doughmination/plural/MainActivity.kt
@@ -0,0 +1,41 @@
+package gay.doughmination.plural
+
+import android.os.Bundle
+import androidx.activity.ComponentActivity
+import androidx.activity.compose.setContent
+import androidx.activity.enableEdgeToEdge
+import androidx.compose.foundation.layout.Box
+import androidx.compose.foundation.layout.fillMaxSize
+import androidx.compose.foundation.layout.padding
+import androidx.compose.material3.MaterialTheme
+import androidx.compose.material3.Scaffold
+import androidx.compose.material3.Text
+import androidx.compose.material3.darkColorScheme
+import androidx.compose.material3.lightColorScheme
+import androidx.compose.foundation.isSystemInDarkTheme
+import androidx.compose.runtime.Composable
+import androidx.compose.ui.Alignment
+import androidx.compose.ui.Modifier
+import androidx.compose.ui.res.stringResource
+
+/** Placeholder screen until the app's real features are designed. */
+class MainActivity : ComponentActivity() {
+ override fun onCreate(savedInstanceState: Bundle?) {
+ super.onCreate(savedInstanceState)
+ enableEdgeToEdge()
+ setContent {
+ MaterialTheme(colorScheme = if (isSystemInDarkTheme()) darkColorScheme() else lightColorScheme()) {
+ Placeholder()
+ }
+ }
+ }
+}
+
+@Composable
+private fun Placeholder() {
+ Scaffold { padding ->
+ Box(Modifier.fillMaxSize().padding(padding), contentAlignment = Alignment.Center) {
+ Text(stringResource(R.string.app_name), style = MaterialTheme.typography.headlineMedium)
+ }
+ }
+}
diff --git a/plural/app/src/main/res/drawable/ic_launcher_foreground.xml b/plural/app/src/main/res/drawable/ic_launcher_foreground.xml
new file mode 100644
index 0000000..03e59e5
--- /dev/null
+++ b/plural/app/src/main/res/drawable/ic_launcher_foreground.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Placeholder doughnut until the app gets its real icon. -->
+<vector xmlns:android="http://schemas.android.com/apk/res/android"
+ android:width="108dp"
+ android:height="108dp"
+ android:viewportWidth="108"
+ android:viewportHeight="108">
+ <path
+ android:fillColor="#F5A9C8"
+ android:fillType="evenOdd"
+ android:pathData="M54,32a22,22 0,1 1,0 44a22,22 0,1 1,0 -44zM54,46a8,8 0,1 0,0 16a8,8 0,1 0,0 -16z" />
+</vector>
diff --git a/plural/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml b/plural/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
new file mode 100644
index 0000000..5c84730
--- /dev/null
+++ b/plural/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="utf-8"?>
+<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
+ <background android:drawable="@color/ic_launcher_background" />
+ <foreground android:drawable="@drawable/ic_launcher_foreground" />
+ <monochrome android:drawable="@drawable/ic_launcher_foreground" />
+</adaptive-icon>
diff --git a/plural/app/src/main/res/values/strings.xml b/plural/app/src/main/res/values/strings.xml
new file mode 100644
index 0000000..500c9df
--- /dev/null
+++ b/plural/app/src/main/res/values/strings.xml
@@ -0,0 +1,3 @@
+<resources>
+ <string name="app_name">Plural</string>
+</resources>
diff --git a/plural/app/src/main/res/values/themes.xml b/plural/app/src/main/res/values/themes.xml
new file mode 100644
index 0000000..c2f0dd7
--- /dev/null
+++ b/plural/app/src/main/res/values/themes.xml
@@ -0,0 +1,5 @@
+<resources>
+ <!-- Compose draws everything; this only covers the window before it does. -->
+ <style name="Theme.App" parent="android:Theme.Material.Light.NoActionBar" />
+ <color name="ic_launcher_background">#1E1B2E</color>
+</resources>