Skip to content

Commit 722699c

Browse files
lapc506claude
andauthored
feat(DOJ-2958): scaffold monorepo structure (#1)
Convert flat infra repo to monorepo with: - apps/web/ — React 19 + Vite + Tailwind scaffold - apps/mobile/ — Flutter project scaffold (dev/prod flavors) - packages/tokens/ — Style Dictionary pipeline (tokens.json → CSS + Dart) - infra/ — moved fdroid metadata and config Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 887f96d commit 722699c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+1559
-10
lines changed

.gitignore

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,20 @@ Thumbs.db
2121
__pycache__/
2222
*.pyc
2323
.venv/
24+
25+
# --- apps/web ---
26+
apps/web/node_modules/
27+
apps/web/dist/
28+
29+
# --- apps/mobile ---
30+
apps/mobile/.dart_tool/
31+
apps/mobile/build/
32+
apps/mobile/.flutter-plugins
33+
apps/mobile/.flutter-plugins-dependencies
34+
apps/mobile/.packages
35+
apps/mobile/android/.gradle/
36+
apps/mobile/android/local.properties
37+
38+
# --- packages/tokens ---
39+
packages/tokens/node_modules/
40+
packages/tokens/build/

README.md

Lines changed: 52 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,25 @@
11
# startups-android-marketplace
22

3-
F-Droid-compatible repository for Android apps built by startups incubated or accelerated through [DojoCodingLabs](https://github.com/DojoCodingLabs) hackathons and the [DojoOS Launchpad](https://dojocoding.io).
3+
F-Droid-compatible repository **and** cross-platform marketplace for Android apps built by startups incubated or accelerated through [DojoCodingLabs](https://github.com/DojoCodingLabs) hackathons and the [DojoOS Launchpad](https://dojocoding.io).
4+
5+
## Monorepo Structure
6+
7+
```
8+
apps/
9+
web/ React 19 + Vite + Tailwind (marketplace web UI)
10+
mobile/ Flutter (Android marketplace app, dev/prod flavors)
11+
packages/
12+
tokens/ Style Dictionary pipeline (tokens.json -> CSS + Dart)
13+
infra/
14+
config.yml fdroidserver configuration
15+
metadata/ F-Droid app metadata YAMLs
16+
docs/ Architecture docs, submission guide, advocacy
17+
go-to-market/ Ship plan and checkpoints
18+
```
419

520
## For Users
621

7-
Add this repository to your F-Droid client (Droid-ify, Neo Store, or F-Droid):
22+
Add the F-Droid repository to your client (Droid-ify, Neo Store, or F-Droid):
823

924
```
1025
https://marketplace.dojocoding.io/fdroid/repo
@@ -51,17 +66,42 @@ Just publish a new release on your own repo. Our pipeline periodically checks fo
5166

5267
We handle all of that. You just publish releases on your own repo.
5368

69+
## Development
70+
71+
### Web app
72+
73+
```bash
74+
cd packages/tokens && npm install && npm run build
75+
cd apps/web && npm install && npm run dev
76+
```
77+
78+
### Mobile app
79+
80+
```bash
81+
cd apps/mobile && flutter pub get
82+
flutter run --target lib/main_dev.dart # dev flavor
83+
flutter run --target lib/main_prod.dart # prod flavor
84+
```
85+
86+
### Design tokens
87+
88+
```bash
89+
cd packages/tokens && npm run build
90+
```
91+
92+
Outputs CSS variables (for web) and a Dart class (for mobile). See [packages/tokens/README.md](packages/tokens/README.md) for details.
93+
5494
## How It Works
5595

5696
```
5797
Startup publishes APK on their own GitHub Releases
58-
Startup opens issue requesting inclusion
59-
Maintainer adds metadata pointing to startup's repo
60-
Pipeline fetches APK from startup's release page
61-
APK scanned (signature, trackers)
62-
fdroidserver generates signed index
63-
Vercel deploys to CDN
64-
Users see the app in their F-Droid client
98+
-> Startup opens issue requesting inclusion
99+
-> Maintainer adds metadata pointing to startup's repo
100+
-> Pipeline fetches APK from startup's release page
101+
-> APK scanned (signature, trackers)
102+
-> fdroidserver generates signed index
103+
-> Vercel deploys to CDN
104+
-> Users see the app in their F-Droid client
65105
```
66106

67107
See [docs/ARCHITECTURE.md](docs/ARCHITECTURE.md) for the complete technical design.
@@ -74,6 +114,9 @@ Starting September 2026, Google's Android Developer Verification Program may res
74114

75115
| Component | Tool |
76116
|-----------|------|
117+
| Web frontend | React 19 + Vite + Tailwind CSS |
118+
| Mobile app | Flutter (Android) |
119+
| Design tokens | Style Dictionary |
77120
| Repo generation | fdroidserver |
78121
| APK sourcing | Fetched from developer's own releases |
79122
| Hosting | Vercel (CDN + security headers) |

apps/mobile/.gitignore

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# Miscellaneous
2+
*.class
3+
*.log
4+
*.pyc
5+
*.swp
6+
.DS_Store
7+
.atom/
8+
.build/
9+
.buildlog/
10+
.history
11+
.svn/
12+
.swiftpm/
13+
migrate_working_dir/
14+
15+
# IntelliJ related
16+
*.iml
17+
*.ipr
18+
*.iws
19+
.idea/
20+
21+
# The .vscode folder contains launch configuration and tasks you configure in
22+
# VS Code which you may wish to be included in version control, so this line
23+
# is commented out by default.
24+
#.vscode/
25+
26+
# Flutter/Dart/Pub related
27+
**/doc/api/
28+
**/ios/Flutter/.last_build_id
29+
.dart_tool/
30+
.flutter-plugins-dependencies
31+
.pub-cache/
32+
.pub/
33+
/build/
34+
/coverage/
35+
36+
# Symbolication related
37+
app.*.symbols
38+
39+
# Obfuscation related
40+
app.*.map.json
41+
42+
# Android Studio will place build artifacts here
43+
/android/app/debug
44+
/android/app/profile
45+
/android/app/release

apps/mobile/.metadata

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# This file tracks properties of this Flutter project.
2+
# Used by Flutter tool to assess capabilities and perform upgrades etc.
3+
#
4+
# This file should be version controlled and should not be manually edited.
5+
6+
version:
7+
revision: "582a0e7c5581dc0ca5f7bfd8662bb8db6f59d536"
8+
channel: "stable"
9+
10+
project_type: app
11+
12+
# Tracks metadata for the flutter migrate command
13+
migration:
14+
platforms:
15+
- platform: root
16+
create_revision: 582a0e7c5581dc0ca5f7bfd8662bb8db6f59d536
17+
base_revision: 582a0e7c5581dc0ca5f7bfd8662bb8db6f59d536
18+
- platform: android
19+
create_revision: 582a0e7c5581dc0ca5f7bfd8662bb8db6f59d536
20+
base_revision: 582a0e7c5581dc0ca5f7bfd8662bb8db6f59d536
21+
22+
# User provided section
23+
24+
# List of Local paths (relative to this file) that should be
25+
# ignored by the migrate tool.
26+
#
27+
# Files that are not part of the templates will be ignored by default.
28+
unmanaged_files:
29+
- 'lib/main.dart'
30+
- 'ios/Runner.xcodeproj/project.pbxproj'

apps/mobile/README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# dojo_marketplace
2+
3+
A new Flutter project.
4+
5+
## Getting Started
6+
7+
This project is a starting point for a Flutter application.
8+
9+
A few resources to get you started if this is your first Flutter project:
10+
11+
- [Learn Flutter](https://docs.flutter.dev/get-started/learn-flutter)
12+
- [Write your first Flutter app](https://docs.flutter.dev/get-started/codelab)
13+
- [Flutter learning resources](https://docs.flutter.dev/reference/learning-resources)
14+
15+
For help getting started with Flutter development, view the
16+
[online documentation](https://docs.flutter.dev/), which offers tutorials,
17+
samples, guidance on mobile development, and a full API reference.

apps/mobile/analysis_options.yaml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# This file configures the analyzer, which statically analyzes Dart code to
2+
# check for errors, warnings, and lints.
3+
#
4+
# The issues identified by the analyzer are surfaced in the UI of Dart-enabled
5+
# IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be
6+
# invoked from the command line by running `flutter analyze`.
7+
8+
# The following line activates a set of recommended lints for Flutter apps,
9+
# packages, and plugins designed to encourage good coding practices.
10+
include: package:flutter_lints/flutter.yaml
11+
12+
linter:
13+
# The lint rules applied to this project can be customized in the
14+
# section below to disable rules from the `package:flutter_lints/flutter.yaml`
15+
# included above or to enable additional rules. A list of all available lints
16+
# and their documentation is published at https://dart.dev/lints.
17+
#
18+
# Instead of disabling a lint rule for the entire project in the
19+
# section below, it can also be suppressed for a single line of code
20+
# or a specific dart file by using the `// ignore: name_of_lint` and
21+
# `// ignore_for_file: name_of_lint` syntax on the line or in the file
22+
# producing the lint.
23+
rules:
24+
# avoid_print: false # Uncomment to disable the `avoid_print` rule
25+
# prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule
26+
27+
# Additional information about this file can be found at
28+
# https://dart.dev/guides/language/analysis-options

apps/mobile/android/.gitignore

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
gradle-wrapper.jar
2+
/.gradle
3+
/captures/
4+
/gradlew
5+
/gradlew.bat
6+
/local.properties
7+
GeneratedPluginRegistrant.java
8+
.cxx/
9+
10+
# Remember to never publicly share your keystore.
11+
# See https://flutter.dev/to/reference-keystore
12+
key.properties
13+
**/*.keystore
14+
**/*.jks
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
plugins {
2+
id("com.android.application")
3+
id("kotlin-android")
4+
// The Flutter Gradle Plugin must be applied after the Android and Kotlin Gradle plugins.
5+
id("dev.flutter.flutter-gradle-plugin")
6+
}
7+
8+
android {
9+
namespace = "io.dojocoding.dojo_marketplace"
10+
compileSdk = flutter.compileSdkVersion
11+
ndkVersion = flutter.ndkVersion
12+
13+
compileOptions {
14+
sourceCompatibility = JavaVersion.VERSION_17
15+
targetCompatibility = JavaVersion.VERSION_17
16+
}
17+
18+
kotlinOptions {
19+
jvmTarget = JavaVersion.VERSION_17.toString()
20+
}
21+
22+
defaultConfig {
23+
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
24+
applicationId = "io.dojocoding.dojo_marketplace"
25+
// You can update the following values to match your application needs.
26+
// For more information, see: https://flutter.dev/to/review-gradle-config.
27+
minSdk = flutter.minSdkVersion
28+
targetSdk = flutter.targetSdkVersion
29+
versionCode = flutter.versionCode
30+
versionName = flutter.versionName
31+
}
32+
33+
buildTypes {
34+
release {
35+
// TODO: Add your own signing config for the release build.
36+
// Signing with the debug keys for now, so `flutter run --release` works.
37+
signingConfig = signingConfigs.getByName("debug")
38+
}
39+
}
40+
}
41+
42+
flutter {
43+
source = "../.."
44+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
2+
<!-- The INTERNET permission is required for development. Specifically,
3+
the Flutter tool needs it to communicate with the running application
4+
to allow setting breakpoints, to provide hot reload, etc.
5+
-->
6+
<uses-permission android:name="android.permission.INTERNET"/>
7+
</manifest>
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
2+
<application
3+
android:label="dojo_marketplace"
4+
android:name="${applicationName}"
5+
android:icon="@mipmap/ic_launcher">
6+
<activity
7+
android:name=".MainActivity"
8+
android:exported="true"
9+
android:launchMode="singleTop"
10+
android:taskAffinity=""
11+
android:theme="@style/LaunchTheme"
12+
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
13+
android:hardwareAccelerated="true"
14+
android:windowSoftInputMode="adjustResize">
15+
<!-- Specifies an Android theme to apply to this Activity as soon as
16+
the Android process has started. This theme is visible to the user
17+
while the Flutter UI initializes. After that, this theme continues
18+
to determine the Window background behind the Flutter UI. -->
19+
<meta-data
20+
android:name="io.flutter.embedding.android.NormalTheme"
21+
android:resource="@style/NormalTheme"
22+
/>
23+
<intent-filter>
24+
<action android:name="android.intent.action.MAIN"/>
25+
<category android:name="android.intent.category.LAUNCHER"/>
26+
</intent-filter>
27+
</activity>
28+
<!-- Don't delete the meta-data below.
29+
This is used by the Flutter tool to generate GeneratedPluginRegistrant.java -->
30+
<meta-data
31+
android:name="flutterEmbedding"
32+
android:value="2" />
33+
</application>
34+
<!-- Required to query activities that can process text, see:
35+
https://developer.android.com/training/package-visibility and
36+
https://developer.android.com/reference/android/content/Intent#ACTION_PROCESS_TEXT.
37+
38+
In particular, this is used by the Flutter engine in io.flutter.plugin.text.ProcessTextPlugin. -->
39+
<queries>
40+
<intent>
41+
<action android:name="android.intent.action.PROCESS_TEXT"/>
42+
<data android:mimeType="text/plain"/>
43+
</intent>
44+
</queries>
45+
</manifest>

0 commit comments

Comments
 (0)